configure revision b312a94c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXScrnSaver 1.2.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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='libXScrnSaver' 593PACKAGE_TARNAME='libXScrnSaver' 594PACKAGE_VERSION='1.2.3' 595PACKAGE_STRING='libXScrnSaver 1.2.3' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640MAKE_LINT_LIB_FALSE 641MAKE_LINT_LIB_TRUE 642LINTLIB 643LINT_FALSE 644LINT_TRUE 645LINT_FLAGS 646LINT 647XSCRNSAVER_LIBS 648XSCRNSAVER_CFLAGS 649XTMALLOC_ZERO_CFLAGS 650XMALLOC_ZERO_CFLAGS 651MALLOC_ZERO_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666INSTALL_CMD 667PKG_CONFIG_LIBDIR 668PKG_CONFIG_PATH 669PKG_CONFIG 670CHANGELOG_CMD 671STRICT_CFLAGS 672CWARNFLAGS 673BASE_CFLAGS 674CPP 675LT_SYS_LIBRARY_PATH 676OTOOL64 677OTOOL 678LIPO 679NMEDIT 680DSYMUTIL 681MANIFEST_TOOL 682RANLIB 683ac_ct_AR 684AR 685DLLTOOL 686OBJDUMP 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693EGREP 694GREP 695SED 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713host_os 714host_vendor 715host_cpu 716host 717build_os 718build_vendor 719build_cpu 720build 721LIBTOOL 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768localstatedir 769sharedstatedir 770sysconfdir 771datadir 772datarootdir 773libexecdir 774sbindir 775bindir 776program_transform_name 777prefix 778exec_prefix 779PACKAGE_URL 780PACKAGE_BUGREPORT 781PACKAGE_STRING 782PACKAGE_VERSION 783PACKAGE_TARNAME 784PACKAGE_NAME 785PATH_SEPARATOR 786SHELL' 787ac_subst_files='' 788ac_user_opts=' 789enable_option_checking 790enable_silent_rules 791enable_shared 792enable_static 793with_pic 794enable_fast_install 795with_aix_soname 796enable_dependency_tracking 797with_gnu_ld 798with_sysroot 799enable_libtool_lock 800enable_selective_werror 801enable_strict_compilation 802enable_malloc0returnsnull 803with_lint 804enable_lint_library 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814LT_SYS_LIBRARY_PATH 815CPP 816PKG_CONFIG 817PKG_CONFIG_PATH 818PKG_CONFIG_LIBDIR 819XSCRNSAVER_CFLAGS 820XSCRNSAVER_LIBS 821LINT 822LINT_FLAGS' 823 824 825# Initialize some variables set by options. 826ac_init_help= 827ac_init_version=false 828ac_unrecognized_opts= 829ac_unrecognized_sep= 830# The variables have the same names as the options, with 831# dashes changed to underlines. 832cache_file=/dev/null 833exec_prefix=NONE 834no_create= 835no_recursion= 836prefix=NONE 837program_prefix=NONE 838program_suffix=NONE 839program_transform_name=s,x,x, 840silent= 841site= 842srcdir= 843verbose= 844x_includes=NONE 845x_libraries=NONE 846 847# Installation directory options. 848# These are left unexpanded so users can "make install exec_prefix=/foo" 849# and all the variables that are supposed to be based on exec_prefix 850# by default will actually change. 851# Use braces instead of parens because sh, perl, etc. also accept them. 852# (The list follows the same order as the GNU Coding Standards.) 853bindir='${exec_prefix}/bin' 854sbindir='${exec_prefix}/sbin' 855libexecdir='${exec_prefix}/libexec' 856datarootdir='${prefix}/share' 857datadir='${datarootdir}' 858sysconfdir='${prefix}/etc' 859sharedstatedir='${prefix}/com' 860localstatedir='${prefix}/var' 861includedir='${prefix}/include' 862oldincludedir='/usr/include' 863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 864infodir='${datarootdir}/info' 865htmldir='${docdir}' 866dvidir='${docdir}' 867pdfdir='${docdir}' 868psdir='${docdir}' 869libdir='${exec_prefix}/lib' 870localedir='${datarootdir}/locale' 871mandir='${datarootdir}/man' 872 873ac_prev= 874ac_dashdash= 875for ac_option 876do 877 # If the previous option needs an argument, assign it. 878 if test -n "$ac_prev"; then 879 eval $ac_prev=\$ac_option 880 ac_prev= 881 continue 882 fi 883 884 case $ac_option in 885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 886 *=) ac_optarg= ;; 887 *) ac_optarg=yes ;; 888 esac 889 890 # Accept the important Cygnus configure options, so we can diagnose typos. 891 892 case $ac_dashdash$ac_option in 893 --) 894 ac_dashdash=yes ;; 895 896 -bindir | --bindir | --bindi | --bind | --bin | --bi) 897 ac_prev=bindir ;; 898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 899 bindir=$ac_optarg ;; 900 901 -build | --build | --buil | --bui | --bu) 902 ac_prev=build_alias ;; 903 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 904 build_alias=$ac_optarg ;; 905 906 -cache-file | --cache-file | --cache-fil | --cache-fi \ 907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 908 ac_prev=cache_file ;; 909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 911 cache_file=$ac_optarg ;; 912 913 --config-cache | -C) 914 cache_file=config.cache ;; 915 916 -datadir | --datadir | --datadi | --datad) 917 ac_prev=datadir ;; 918 -datadir=* | --datadir=* | --datadi=* | --datad=*) 919 datadir=$ac_optarg ;; 920 921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 922 | --dataroo | --dataro | --datar) 923 ac_prev=datarootdir ;; 924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 926 datarootdir=$ac_optarg ;; 927 928 -disable-* | --disable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=no ;; 943 944 -docdir | --docdir | --docdi | --doc | --do) 945 ac_prev=docdir ;; 946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 947 docdir=$ac_optarg ;; 948 949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 950 ac_prev=dvidir ;; 951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 952 dvidir=$ac_optarg ;; 953 954 -enable-* | --enable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: $ac_useropt" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=\$ac_optarg ;; 969 970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 972 | --exec | --exe | --ex) 973 ac_prev=exec_prefix ;; 974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 976 | --exec=* | --exe=* | --ex=*) 977 exec_prefix=$ac_optarg ;; 978 979 -gas | --gas | --ga | --g) 980 # Obsolete; use --with-gas. 981 with_gas=yes ;; 982 983 -help | --help | --hel | --he | -h) 984 ac_init_help=long ;; 985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 986 ac_init_help=recursive ;; 987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 988 ac_init_help=short ;; 989 990 -host | --host | --hos | --ho) 991 ac_prev=host_alias ;; 992 -host=* | --host=* | --hos=* | --ho=*) 993 host_alias=$ac_optarg ;; 994 995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 996 ac_prev=htmldir ;; 997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 998 | --ht=*) 999 htmldir=$ac_optarg ;; 1000 1001 -includedir | --includedir | --includedi | --included | --include \ 1002 | --includ | --inclu | --incl | --inc) 1003 ac_prev=includedir ;; 1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1005 | --includ=* | --inclu=* | --incl=* | --inc=*) 1006 includedir=$ac_optarg ;; 1007 1008 -infodir | --infodir | --infodi | --infod | --info | --inf) 1009 ac_prev=infodir ;; 1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1011 infodir=$ac_optarg ;; 1012 1013 -libdir | --libdir | --libdi | --libd) 1014 ac_prev=libdir ;; 1015 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1016 libdir=$ac_optarg ;; 1017 1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1019 | --libexe | --libex | --libe) 1020 ac_prev=libexecdir ;; 1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1022 | --libexe=* | --libex=* | --libe=*) 1023 libexecdir=$ac_optarg ;; 1024 1025 -localedir | --localedir | --localedi | --localed | --locale) 1026 ac_prev=localedir ;; 1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1028 localedir=$ac_optarg ;; 1029 1030 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1031 | --localstate | --localstat | --localsta | --localst | --locals) 1032 ac_prev=localstatedir ;; 1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1035 localstatedir=$ac_optarg ;; 1036 1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1038 ac_prev=mandir ;; 1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1040 mandir=$ac_optarg ;; 1041 1042 -nfp | --nfp | --nf) 1043 # Obsolete; use --without-fp. 1044 with_fp=no ;; 1045 1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1047 | --no-cr | --no-c | -n) 1048 no_create=yes ;; 1049 1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1052 no_recursion=yes ;; 1053 1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1056 | --oldin | --oldi | --old | --ol | --o) 1057 ac_prev=oldincludedir ;; 1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1061 oldincludedir=$ac_optarg ;; 1062 1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1064 ac_prev=prefix ;; 1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1066 prefix=$ac_optarg ;; 1067 1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1069 | --program-pre | --program-pr | --program-p) 1070 ac_prev=program_prefix ;; 1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1073 program_prefix=$ac_optarg ;; 1074 1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1076 | --program-suf | --program-su | --program-s) 1077 ac_prev=program_suffix ;; 1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1080 program_suffix=$ac_optarg ;; 1081 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 ac_prev=program_transform_name ;; 1090 -program-transform-name=* | --program-transform-name=* \ 1091 | --program-transform-nam=* | --program-transform-na=* \ 1092 | --program-transform-n=* | --program-transform-=* \ 1093 | --program-transform=* | --program-transfor=* \ 1094 | --program-transfo=* | --program-transf=* \ 1095 | --program-trans=* | --program-tran=* \ 1096 | --progr-tra=* | --program-tr=* | --program-t=*) 1097 program_transform_name=$ac_optarg ;; 1098 1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1100 ac_prev=pdfdir ;; 1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1102 pdfdir=$ac_optarg ;; 1103 1104 -psdir | --psdir | --psdi | --psd | --ps) 1105 ac_prev=psdir ;; 1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1107 psdir=$ac_optarg ;; 1108 1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1110 | -silent | --silent | --silen | --sile | --sil) 1111 silent=yes ;; 1112 1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1114 ac_prev=sbindir ;; 1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1116 | --sbi=* | --sb=*) 1117 sbindir=$ac_optarg ;; 1118 1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1121 | --sharedst | --shareds | --shared | --share | --shar \ 1122 | --sha | --sh) 1123 ac_prev=sharedstatedir ;; 1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1127 | --sha=* | --sh=*) 1128 sharedstatedir=$ac_optarg ;; 1129 1130 -site | --site | --sit) 1131 ac_prev=site ;; 1132 -site=* | --site=* | --sit=*) 1133 site=$ac_optarg ;; 1134 1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1136 ac_prev=srcdir ;; 1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1138 srcdir=$ac_optarg ;; 1139 1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1141 | --syscon | --sysco | --sysc | --sys | --sy) 1142 ac_prev=sysconfdir ;; 1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1145 sysconfdir=$ac_optarg ;; 1146 1147 -target | --target | --targe | --targ | --tar | --ta | --t) 1148 ac_prev=target_alias ;; 1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1150 target_alias=$ac_optarg ;; 1151 1152 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1153 verbose=yes ;; 1154 1155 -version | --version | --versio | --versi | --vers | -V) 1156 ac_init_version=: ;; 1157 1158 -with-* | --with-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=\$ac_optarg ;; 1173 1174 -without-* | --without-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error $? "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=no ;; 1189 1190 --x) 1191 # Obsolete; use --with-x. 1192 with_x=yes ;; 1193 1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1195 | --x-incl | --x-inc | --x-in | --x-i) 1196 ac_prev=x_includes ;; 1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1199 x_includes=$ac_optarg ;; 1200 1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1203 ac_prev=x_libraries ;; 1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1206 x_libraries=$ac_optarg ;; 1207 1208 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1209Try \`$0 --help' for more information" 1210 ;; 1211 1212 *=*) 1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1214 # Reject names that are not valid shell variable names. 1215 case $ac_envvar in #( 1216 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1218 esac 1219 eval $ac_envvar=\$ac_optarg 1220 export $ac_envvar ;; 1221 1222 *) 1223 # FIXME: should be removed in autoconf 3.0. 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1228 ;; 1229 1230 esac 1231done 1232 1233if test -n "$ac_prev"; then 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1235 as_fn_error $? "missing argument to $ac_option" 1236fi 1237 1238if test -n "$ac_unrecognized_opts"; then 1239 case $enable_option_checking in 1240 no) ;; 1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1243 esac 1244fi 1245 1246# Check all directory arguments for consistency. 1247for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1248 datadir sysconfdir sharedstatedir localstatedir includedir \ 1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1250 libdir localedir mandir 1251do 1252 eval ac_val=\$$ac_var 1253 # Remove trailing slashes. 1254 case $ac_val in 1255 */ ) 1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1257 eval $ac_var=\$ac_val;; 1258 esac 1259 # Be sure to have absolute directory names. 1260 case $ac_val in 1261 [\\/$]* | ?:[\\/]* ) continue;; 1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1263 esac 1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1265done 1266 1267# There might be people who depend on the old broken behavior: `$host' 1268# used to hold the argument of --host etc. 1269# FIXME: To remove some day. 1270build=$build_alias 1271host=$host_alias 1272target=$target_alias 1273 1274# FIXME: To remove some day. 1275if test "x$host_alias" != x; then 1276 if test "x$build_alias" = x; then 1277 cross_compiling=maybe 1278 elif test "x$build_alias" != "x$host_alias"; then 1279 cross_compiling=yes 1280 fi 1281fi 1282 1283ac_tool_prefix= 1284test -n "$host_alias" && ac_tool_prefix=$host_alias- 1285 1286test "$silent" = yes && exec 6>/dev/null 1287 1288 1289ac_pwd=`pwd` && test -n "$ac_pwd" && 1290ac_ls_di=`ls -di .` && 1291ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1292 as_fn_error $? "working directory cannot be determined" 1293test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1294 as_fn_error $? "pwd does not report name of working directory" 1295 1296 1297# Find the source files, if location was not specified. 1298if test -z "$srcdir"; then 1299 ac_srcdir_defaulted=yes 1300 # Try the directory containing this script, then the parent directory. 1301 ac_confdir=`$as_dirname -- "$as_myself" || 1302$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1303 X"$as_myself" : 'X\(//\)[^/]' \| \ 1304 X"$as_myself" : 'X\(//\)$' \| \ 1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1306$as_echo X"$as_myself" | 1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)[^/].*/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\).*/{ 1320 s//\1/ 1321 q 1322 } 1323 s/.*/./; q'` 1324 srcdir=$ac_confdir 1325 if test ! -r "$srcdir/$ac_unique_file"; then 1326 srcdir=.. 1327 fi 1328else 1329 ac_srcdir_defaulted=no 1330fi 1331if test ! -r "$srcdir/$ac_unique_file"; then 1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1334fi 1335ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1336ac_abs_confdir=`( 1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1338 pwd)` 1339# When building in place, set srcdir=. 1340if test "$ac_abs_confdir" = "$ac_pwd"; then 1341 srcdir=. 1342fi 1343# Remove unnecessary trailing slashes from srcdir. 1344# Double slashes in file names in object file debugging info 1345# mess up M-x gdb in Emacs. 1346case $srcdir in 1347*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1348esac 1349for ac_var in $ac_precious_vars; do 1350 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_env_${ac_var}_value=\$${ac_var} 1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1354done 1355 1356# 1357# Report the --help message. 1358# 1359if test "$ac_init_help" = "long"; then 1360 # Omit some internal or obsolete options to make the list less imposing. 1361 # This message is too long to be a string in the A/UX 3.1 sh. 1362 cat <<_ACEOF 1363\`configure' configures libXScrnSaver 1.2.3 to adapt to many kinds of systems. 1364 1365Usage: $0 [OPTION]... [VAR=VALUE]... 1366 1367To assign environment variables (e.g., CC, CFLAGS...), specify them as 1368VAR=VALUE. See below for descriptions of some of the useful variables. 1369 1370Defaults for the options are specified in brackets. 1371 1372Configuration: 1373 -h, --help display this help and exit 1374 --help=short display options specific to this package 1375 --help=recursive display the short help of all the included packages 1376 -V, --version display version information and exit 1377 -q, --quiet, --silent do not print \`checking ...' messages 1378 --cache-file=FILE cache test results in FILE [disabled] 1379 -C, --config-cache alias for \`--cache-file=config.cache' 1380 -n, --no-create do not create output files 1381 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1382 1383Installation directories: 1384 --prefix=PREFIX install architecture-independent files in PREFIX 1385 [$ac_default_prefix] 1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1387 [PREFIX] 1388 1389By default, \`make install' will install all the files in 1390\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1391an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1392for instance \`--prefix=\$HOME'. 1393 1394For better control, use the options below. 1395 1396Fine tuning of the installation directories: 1397 --bindir=DIR user executables [EPREFIX/bin] 1398 --sbindir=DIR system admin executables [EPREFIX/sbin] 1399 --libexecdir=DIR program executables [EPREFIX/libexec] 1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1403 --libdir=DIR object code libraries [EPREFIX/lib] 1404 --includedir=DIR C header files [PREFIX/include] 1405 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1408 --infodir=DIR info documentation [DATAROOTDIR/info] 1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1410 --mandir=DIR man documentation [DATAROOTDIR/man] 1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libXScrnSaver] 1412 --htmldir=DIR html documentation [DOCDIR] 1413 --dvidir=DIR dvi documentation [DOCDIR] 1414 --pdfdir=DIR pdf documentation [DOCDIR] 1415 --psdir=DIR ps documentation [DOCDIR] 1416_ACEOF 1417 1418 cat <<\_ACEOF 1419 1420Program names: 1421 --program-prefix=PREFIX prepend PREFIX to installed program names 1422 --program-suffix=SUFFIX append SUFFIX to installed program names 1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1424 1425System types: 1426 --build=BUILD configure for building on BUILD [guessed] 1427 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1428_ACEOF 1429fi 1430 1431if test -n "$ac_init_help"; then 1432 case $ac_init_help in 1433 short | recursive ) echo "Configuration of libXScrnSaver 1.2.3:";; 1434 esac 1435 cat <<\_ACEOF 1436 1437Optional Features: 1438 --disable-option-checking ignore unrecognized --enable/--with options 1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1441 --enable-silent-rules less verbose build output (undo: "make V=1") 1442 --disable-silent-rules verbose build output (undo: "make V=0") 1443 --enable-shared[=PKGS] build shared libraries [default=yes] 1444 --enable-static[=PKGS] build static libraries [default=yes] 1445 --enable-fast-install[=PKGS] 1446 optimize for fast installation [default=yes] 1447 --enable-dependency-tracking 1448 do not reject slow dependency extractors 1449 --disable-dependency-tracking 1450 speeds up one-time build 1451 --disable-libtool-lock avoid locking (might break parallel builds) 1452 --disable-selective-werror 1453 Turn off selective compiler errors. (default: 1454 enabled) 1455 --enable-strict-compilation 1456 Enable all warnings from compiler and make them 1457 errors (default: disabled) 1458 --enable-malloc0returnsnull 1459 malloc(0) returns NULL (default: auto) 1460 --enable-lint-library Create lint library (default: disabled) 1461 1462Optional Packages: 1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1465 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1466 both] 1467 --with-aix-soname=aix|svr4|both 1468 shared library versioning (aka "SONAME") variant to 1469 provide on AIX, [default=aix]. 1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1471 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1472 compiler's sysroot if not specified). 1473 --with-lint Use a lint-style source code checker (default: 1474 disabled) 1475 1476Some influential environment variables: 1477 CC C compiler command 1478 CFLAGS C compiler flags 1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1480 nonstandard directory <lib dir> 1481 LIBS libraries to pass to the linker, e.g. -l<library> 1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1483 you have headers in a nonstandard directory <include dir> 1484 LT_SYS_LIBRARY_PATH 1485 User-defined run-time library search path. 1486 CPP C preprocessor 1487 PKG_CONFIG path to pkg-config utility 1488 PKG_CONFIG_PATH 1489 directories to add to pkg-config's search path 1490 PKG_CONFIG_LIBDIR 1491 path overriding pkg-config's built-in search path 1492 XSCRNSAVER_CFLAGS 1493 C compiler flags for XSCRNSAVER, overriding pkg-config 1494 XSCRNSAVER_LIBS 1495 linker flags for XSCRNSAVER, overriding pkg-config 1496 LINT Path to a lint-style command 1497 LINT_FLAGS Flags for the lint-style command 1498 1499Use these variables to override the choices made by `configure' or to help 1500it to find libraries and programs with nonstandard names/locations. 1501 1502Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1503_ACEOF 1504ac_status=$? 1505fi 1506 1507if test "$ac_init_help" = "recursive"; then 1508 # If there are subdirs, report their specific --help. 1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1510 test -d "$ac_dir" || 1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1512 continue 1513 ac_builddir=. 1514 1515case "$ac_dir" in 1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1517*) 1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1519 # A ".." for each directory in $ac_dir_suffix. 1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1521 case $ac_top_builddir_sub in 1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1524 esac ;; 1525esac 1526ac_abs_top_builddir=$ac_pwd 1527ac_abs_builddir=$ac_pwd$ac_dir_suffix 1528# for backward compatibility: 1529ac_top_builddir=$ac_top_build_prefix 1530 1531case $srcdir in 1532 .) # We are building in place. 1533 ac_srcdir=. 1534 ac_top_srcdir=$ac_top_builddir_sub 1535 ac_abs_top_srcdir=$ac_pwd ;; 1536 [\\/]* | ?:[\\/]* ) # Absolute name. 1537 ac_srcdir=$srcdir$ac_dir_suffix; 1538 ac_top_srcdir=$srcdir 1539 ac_abs_top_srcdir=$srcdir ;; 1540 *) # Relative name. 1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1542 ac_top_srcdir=$ac_top_build_prefix$srcdir 1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1544esac 1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1546 1547 cd "$ac_dir" || { ac_status=$?; continue; } 1548 # Check for guested configure. 1549 if test -f "$ac_srcdir/configure.gnu"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1552 elif test -f "$ac_srcdir/configure"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure" --help=recursive 1555 else 1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1557 fi || ac_status=$? 1558 cd "$ac_pwd" || { ac_status=$?; break; } 1559 done 1560fi 1561 1562test -n "$ac_init_help" && exit $ac_status 1563if $ac_init_version; then 1564 cat <<\_ACEOF 1565libXScrnSaver configure 1.2.3 1566generated by GNU Autoconf 2.69 1567 1568Copyright (C) 2012 Free Software Foundation, Inc. 1569This configure script is free software; the Free Software Foundation 1570gives unlimited permission to copy, distribute and modify it. 1571_ACEOF 1572 exit 1573fi 1574 1575## ------------------------ ## 1576## Autoconf initialization. ## 1577## ------------------------ ## 1578 1579# ac_fn_c_try_compile LINENO 1580# -------------------------- 1581# Try to compile conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_compile () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext 1586 if { { ac_try="$ac_compile" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_compile") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest.$ac_objext; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615} # ac_fn_c_try_compile 1616 1617# ac_fn_c_try_link LINENO 1618# ----------------------- 1619# Try to link conftest.$ac_ext, and return whether this succeeded. 1620ac_fn_c_try_link () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 rm -f conftest.$ac_objext conftest$ac_exeext 1624 if { { ac_try="$ac_link" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_link") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } && { 1640 test -z "$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 } && test -s conftest$ac_exeext && { 1643 test "$cross_compiling" = yes || 1644 test -x conftest$ac_exeext 1645 }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: failed program was:" >&5 1649sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652fi 1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1655 # interfere with the next link command; also delete a directory that is 1656 # left behind by Apple's compiler. We do this before executing the actions. 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_link 1662 1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664# ------------------------------------------------------- 1665# Tests whether HEADER exists and can be compiled using the include files in 1666# INCLUDES, setting the cache variable VAR accordingly. 1667ac_fn_c_check_header_compile () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676/* end confdefs.h. */ 1677$4 1678#include <$2> 1679_ACEOF 1680if ac_fn_c_try_compile "$LINENO"; then : 1681 eval "$3=yes" 1682else 1683 eval "$3=no" 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686fi 1687eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689$as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692} # ac_fn_c_check_header_compile 1693 1694# ac_fn_c_try_cpp LINENO 1695# ---------------------- 1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1697ac_fn_c_try_cpp () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_cpp conftest.$ac_ext" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } > conftest.i && { 1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 }; then : 1719 ac_retval=0 1720else 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=1 1725fi 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_cpp 1730 1731# ac_fn_c_try_run LINENO 1732# ---------------------- 1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1734# that executables *can* be run. 1735ac_fn_c_try_run () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 if { { ac_try="$ac_link" 1739case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_link") 2>&5 1746 ac_status=$? 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1749 { { case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752esac 1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754$as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_try") 2>&5 1756 ac_status=$? 1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; }; }; then : 1759 ac_retval=0 1760else 1761 $as_echo "$as_me: program exited with status $ac_status" >&5 1762 $as_echo "$as_me: failed program was:" >&5 1763sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=$ac_status 1766fi 1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 as_fn_set_status $ac_retval 1770 1771} # ac_fn_c_try_run 1772 1773# ac_fn_c_check_func LINENO FUNC VAR 1774# ---------------------------------- 1775# Tests whether FUNC exists, setting the cache variable VAR accordingly 1776ac_fn_c_check_func () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if eval \${$3+:} false; then : 1782 $as_echo_n "(cached) " >&6 1783else 1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1785/* end confdefs.h. */ 1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1788#define $2 innocuous_$2 1789 1790/* System header to define __stub macros and hopefully few prototypes, 1791 which can conflict with char $2 (); below. 1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1793 <limits.h> exists even on freestanding compilers. */ 1794 1795#ifdef __STDC__ 1796# include <limits.h> 1797#else 1798# include <assert.h> 1799#endif 1800 1801#undef $2 1802 1803/* Override any GCC internal prototype to avoid an error. 1804 Use char because int might match the return type of a GCC 1805 builtin and then its argument prototype would still apply. */ 1806#ifdef __cplusplus 1807extern "C" 1808#endif 1809char $2 (); 1810/* The GNU C library defines this for functions which it implements 1811 to always fail with ENOSYS. Some functions are actually named 1812 something starting with __ and the normal name is an alias. */ 1813#if defined __stub_$2 || defined __stub___$2 1814choke me 1815#endif 1816 1817int 1818main () 1819{ 1820return $2 (); 1821 ; 1822 return 0; 1823} 1824_ACEOF 1825if ac_fn_c_try_link "$LINENO"; then : 1826 eval "$3=yes" 1827else 1828 eval "$3=no" 1829fi 1830rm -f core conftest.err conftest.$ac_objext \ 1831 conftest$ac_exeext conftest.$ac_ext 1832fi 1833eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835$as_echo "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838} # ac_fn_c_check_func 1839 1840# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1841# --------------------------------------------- 1842# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1843# accordingly. 1844ac_fn_c_check_decl () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 as_decl_name=`echo $2|sed 's/ *(.*//'` 1848 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1850$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856$4 1857int 1858main () 1859{ 1860#ifndef $as_decl_name 1861#ifdef __cplusplus 1862 (void) $as_decl_use; 1863#else 1864 (void) $as_decl_name; 1865#endif 1866#endif 1867 1868 ; 1869 return 0; 1870} 1871_ACEOF 1872if ac_fn_c_try_compile "$LINENO"; then : 1873 eval "$3=yes" 1874else 1875 eval "$3=no" 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1878fi 1879eval ac_res=\$$3 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1881$as_echo "$ac_res" >&6; } 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 1884} # ac_fn_c_check_decl 1885cat >config.log <<_ACEOF 1886This file contains any messages produced by compilers while 1887running configure, to aid debugging if configure makes a mistake. 1888 1889It was created by libXScrnSaver $as_me 1.2.3, which was 1890generated by GNU Autoconf 2.69. Invocation command line was 1891 1892 $ $0 $@ 1893 1894_ACEOF 1895exec 5>>config.log 1896{ 1897cat <<_ASUNAME 1898## --------- ## 1899## Platform. ## 1900## --------- ## 1901 1902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1903uname -m = `(uname -m) 2>/dev/null || echo unknown` 1904uname -r = `(uname -r) 2>/dev/null || echo unknown` 1905uname -s = `(uname -s) 2>/dev/null || echo unknown` 1906uname -v = `(uname -v) 2>/dev/null || echo unknown` 1907 1908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1910 1911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1918 1919_ASUNAME 1920 1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1922for as_dir in $PATH 1923do 1924 IFS=$as_save_IFS 1925 test -z "$as_dir" && as_dir=. 1926 $as_echo "PATH: $as_dir" 1927 done 1928IFS=$as_save_IFS 1929 1930} >&5 1931 1932cat >&5 <<_ACEOF 1933 1934 1935## ----------- ## 1936## Core tests. ## 1937## ----------- ## 1938 1939_ACEOF 1940 1941 1942# Keep a trace of the command line. 1943# Strip out --no-create and --no-recursion so they do not pile up. 1944# Strip out --silent because we don't want to record it for future runs. 1945# Also quote any args containing shell meta-characters. 1946# Make two passes to allow for proper duplicate-argument suppression. 1947ac_configure_args= 1948ac_configure_args0= 1949ac_configure_args1= 1950ac_must_keep_next=false 1951for ac_pass in 1 2 1952do 1953 for ac_arg 1954 do 1955 case $ac_arg in 1956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1958 | -silent | --silent | --silen | --sile | --sil) 1959 continue ;; 1960 *\'*) 1961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1962 esac 1963 case $ac_pass in 1964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1965 2) 1966 as_fn_append ac_configure_args1 " '$ac_arg'" 1967 if test $ac_must_keep_next = true; then 1968 ac_must_keep_next=false # Got value, back to normal. 1969 else 1970 case $ac_arg in 1971 *=* | --config-cache | -C | -disable-* | --disable-* \ 1972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1974 | -with-* | --with-* | -without-* | --without-* | --x) 1975 case "$ac_configure_args0 " in 1976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1977 esac 1978 ;; 1979 -* ) ac_must_keep_next=true ;; 1980 esac 1981 fi 1982 as_fn_append ac_configure_args " '$ac_arg'" 1983 ;; 1984 esac 1985 done 1986done 1987{ ac_configure_args0=; unset ac_configure_args0;} 1988{ ac_configure_args1=; unset ac_configure_args1;} 1989 1990# When interrupted or exit'd, cleanup temporary files, and complete 1991# config.log. We remove comments because anyway the quotes in there 1992# would cause problems or look ugly. 1993# WARNING: Use '\'' to represent an apostrophe within the trap. 1994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1995trap 'exit_status=$? 1996 # Save into config.log some information that might help in debugging. 1997 { 1998 echo 1999 2000 $as_echo "## ---------------- ## 2001## Cache variables. ## 2002## ---------------- ##" 2003 echo 2004 # The following way of writing the cache mishandles newlines in values, 2005( 2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2007 eval ac_val=\$$ac_var 2008 case $ac_val in #( 2009 *${as_nl}*) 2010 case $ac_var in #( 2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2013 esac 2014 case $ac_var in #( 2015 _ | IFS | as_nl) ;; #( 2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2017 *) { eval $ac_var=; unset $ac_var;} ;; 2018 esac ;; 2019 esac 2020 done 2021 (set) 2>&1 | 2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2023 *${as_nl}ac_space=\ *) 2024 sed -n \ 2025 "s/'\''/'\''\\\\'\'''\''/g; 2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2027 ;; #( 2028 *) 2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2030 ;; 2031 esac | 2032 sort 2033) 2034 echo 2035 2036 $as_echo "## ----------------- ## 2037## Output variables. ## 2038## ----------------- ##" 2039 echo 2040 for ac_var in $ac_subst_vars 2041 do 2042 eval ac_val=\$$ac_var 2043 case $ac_val in 2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2045 esac 2046 $as_echo "$ac_var='\''$ac_val'\''" 2047 done | sort 2048 echo 2049 2050 if test -n "$ac_subst_files"; then 2051 $as_echo "## ------------------- ## 2052## File substitutions. ## 2053## ------------------- ##" 2054 echo 2055 for ac_var in $ac_subst_files 2056 do 2057 eval ac_val=\$$ac_var 2058 case $ac_val in 2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2060 esac 2061 $as_echo "$ac_var='\''$ac_val'\''" 2062 done | sort 2063 echo 2064 fi 2065 2066 if test -s confdefs.h; then 2067 $as_echo "## ----------- ## 2068## confdefs.h. ## 2069## ----------- ##" 2070 echo 2071 cat confdefs.h 2072 echo 2073 fi 2074 test "$ac_signal" != 0 && 2075 $as_echo "$as_me: caught signal $ac_signal" 2076 $as_echo "$as_me: exit $exit_status" 2077 } >&5 2078 rm -f core *.core core.conftest.* && 2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2080 exit $exit_status 2081' 0 2082for ac_signal in 1 2 13 15; do 2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2084done 2085ac_signal=0 2086 2087# confdefs.h avoids OS command line length limits that DEFS can exceed. 2088rm -f -r conftest* confdefs.h 2089 2090$as_echo "/* confdefs.h */" > confdefs.h 2091 2092# Predefined preprocessor variables. 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_NAME "$PACKAGE_NAME" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2100_ACEOF 2101 2102cat >>confdefs.h <<_ACEOF 2103#define PACKAGE_VERSION "$PACKAGE_VERSION" 2104_ACEOF 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_STRING "$PACKAGE_STRING" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_URL "$PACKAGE_URL" 2116_ACEOF 2117 2118 2119# Let the site file select an alternate cache file if it wants to. 2120# Prefer an explicitly selected file to automatically selected ones. 2121ac_site_file1=NONE 2122ac_site_file2=NONE 2123if test -n "$CONFIG_SITE"; then 2124 # We do not want a PATH search for config.site. 2125 case $CONFIG_SITE in #(( 2126 -*) ac_site_file1=./$CONFIG_SITE;; 2127 */*) ac_site_file1=$CONFIG_SITE;; 2128 *) ac_site_file1=./$CONFIG_SITE;; 2129 esac 2130elif test "x$prefix" != xNONE; then 2131 ac_site_file1=$prefix/share/config.site 2132 ac_site_file2=$prefix/etc/config.site 2133else 2134 ac_site_file1=$ac_default_prefix/share/config.site 2135 ac_site_file2=$ac_default_prefix/etc/config.site 2136fi 2137for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2138do 2139 test "x$ac_site_file" = xNONE && continue 2140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2142$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2143 sed 's/^/| /' "$ac_site_file" >&5 2144 . "$ac_site_file" \ 2145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2147as_fn_error $? "failed to load site script $ac_site_file 2148See \`config.log' for more details" "$LINENO" 5; } 2149 fi 2150done 2151 2152if test -r "$cache_file"; then 2153 # Some versions of bash will fail to source /dev/null (special files 2154 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2157$as_echo "$as_me: loading cache $cache_file" >&6;} 2158 case $cache_file in 2159 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2160 *) . "./$cache_file";; 2161 esac 2162 fi 2163else 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2165$as_echo "$as_me: creating cache $cache_file" >&6;} 2166 >$cache_file 2167fi 2168 2169# Check that the precious variables saved in the cache have kept the same 2170# value. 2171ac_cache_corrupted=false 2172for ac_var in $ac_precious_vars; do 2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2174 eval ac_new_set=\$ac_env_${ac_var}_set 2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2176 eval ac_new_val=\$ac_env_${ac_var}_value 2177 case $ac_old_set,$ac_new_set in 2178 set,) 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2180$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2181 ac_cache_corrupted=: ;; 2182 ,set) 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2184$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2185 ac_cache_corrupted=: ;; 2186 ,);; 2187 *) 2188 if test "x$ac_old_val" != "x$ac_new_val"; then 2189 # differences in whitespace do not lead to failure. 2190 ac_old_val_w=`echo x $ac_old_val` 2191 ac_new_val_w=`echo x $ac_new_val` 2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2194$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2195 ac_cache_corrupted=: 2196 else 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2198$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2199 eval $ac_var=\$ac_old_val 2200 fi 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2202$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2204$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2205 fi;; 2206 esac 2207 # Pass precious variables to config.status. 2208 if test "$ac_new_set" = set; then 2209 case $ac_new_val in 2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2211 *) ac_arg=$ac_var=$ac_new_val ;; 2212 esac 2213 case " $ac_configure_args " in 2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2216 esac 2217 fi 2218done 2219if $ac_cache_corrupted; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2223$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2225fi 2226## -------------------- ## 2227## Main body of script. ## 2228## -------------------- ## 2229 2230ac_ext=c 2231ac_cpp='$CPP $CPPFLAGS' 2232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2234ac_compiler_gnu=$ac_cv_c_compiler_gnu 2235 2236 2237 2238ac_config_headers="$ac_config_headers config.h" 2239 2240 2241# Initialize Automake 2242am__api_version='1.15' 2243 2244ac_aux_dir= 2245for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2246 if test -f "$ac_dir/install-sh"; then 2247 ac_aux_dir=$ac_dir 2248 ac_install_sh="$ac_aux_dir/install-sh -c" 2249 break 2250 elif test -f "$ac_dir/install.sh"; then 2251 ac_aux_dir=$ac_dir 2252 ac_install_sh="$ac_aux_dir/install.sh -c" 2253 break 2254 elif test -f "$ac_dir/shtool"; then 2255 ac_aux_dir=$ac_dir 2256 ac_install_sh="$ac_aux_dir/shtool install -c" 2257 break 2258 fi 2259done 2260if test -z "$ac_aux_dir"; then 2261 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2262fi 2263 2264# These three variables are undocumented and unsupported, 2265# and are intended to be withdrawn in a future Autoconf release. 2266# They can cause serious problems if a builder's source tree is in a directory 2267# whose full name contains unusual characters. 2268ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2269ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2270ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2271 2272 2273# Find a good install program. We prefer a C program (faster), 2274# so one script is as good as another. But avoid the broken or 2275# incompatible versions: 2276# SysV /etc/install, /usr/sbin/install 2277# SunOS /usr/etc/install 2278# IRIX /sbin/install 2279# AIX /bin/install 2280# AmigaOS /C/install, which installs bootblocks on floppy discs 2281# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2282# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2283# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2284# OS/2's system install, which has a completely different semantic 2285# ./install, which can be erroneously created by make from ./install.sh. 2286# Reject install programs that cannot install multiple files. 2287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2288$as_echo_n "checking for a BSD-compatible install... " >&6; } 2289if test -z "$INSTALL"; then 2290if ${ac_cv_path_install+:} false; then : 2291 $as_echo_n "(cached) " >&6 2292else 2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2294for as_dir in $PATH 2295do 2296 IFS=$as_save_IFS 2297 test -z "$as_dir" && as_dir=. 2298 # Account for people who put trailing slashes in PATH elements. 2299case $as_dir/ in #(( 2300 ./ | .// | /[cC]/* | \ 2301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2302 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2303 /usr/ucb/* ) ;; 2304 *) 2305 # OSF1 and SCO ODT 3.0 have their own names for install. 2306 # Don't use installbsd from OSF since it installs stuff as root 2307 # by default. 2308 for ac_prog in ginstall scoinst install; do 2309 for ac_exec_ext in '' $ac_executable_extensions; do 2310 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2311 if test $ac_prog = install && 2312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2313 # AIX install. It has an incompatible calling convention. 2314 : 2315 elif test $ac_prog = install && 2316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2317 # program-specific install script used by HP pwplus--don't use. 2318 : 2319 else 2320 rm -rf conftest.one conftest.two conftest.dir 2321 echo one > conftest.one 2322 echo two > conftest.two 2323 mkdir conftest.dir 2324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2325 test -s conftest.one && test -s conftest.two && 2326 test -s conftest.dir/conftest.one && 2327 test -s conftest.dir/conftest.two 2328 then 2329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2330 break 3 2331 fi 2332 fi 2333 fi 2334 done 2335 done 2336 ;; 2337esac 2338 2339 done 2340IFS=$as_save_IFS 2341 2342rm -rf conftest.one conftest.two conftest.dir 2343 2344fi 2345 if test "${ac_cv_path_install+set}" = set; then 2346 INSTALL=$ac_cv_path_install 2347 else 2348 # As a last resort, use the slow shell script. Don't cache a 2349 # value for INSTALL within a source directory, because that will 2350 # break other packages using the cache if that directory is 2351 # removed, or if the value is a relative name. 2352 INSTALL=$ac_install_sh 2353 fi 2354fi 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2356$as_echo "$INSTALL" >&6; } 2357 2358# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2359# It thinks the first close brace ends the variable substitution. 2360test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2361 2362test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2363 2364test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2365 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2367$as_echo_n "checking whether build environment is sane... " >&6; } 2368# Reject unsafe characters in $srcdir or the absolute working directory 2369# name. Accept space and tab only in the latter. 2370am_lf=' 2371' 2372case `pwd` in 2373 *[\\\"\#\$\&\'\`$am_lf]*) 2374 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2375esac 2376case $srcdir in 2377 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2378 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2379esac 2380 2381# Do 'set' in a subshell so we don't clobber the current shell's 2382# arguments. Must try -L first in case configure is actually a 2383# symlink; some systems play weird games with the mod time of symlinks 2384# (eg FreeBSD returns the mod time of the symlink's containing 2385# directory). 2386if ( 2387 am_has_slept=no 2388 for am_try in 1 2; do 2389 echo "timestamp, slept: $am_has_slept" > conftest.file 2390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2391 if test "$*" = "X"; then 2392 # -L didn't work. 2393 set X `ls -t "$srcdir/configure" conftest.file` 2394 fi 2395 if test "$*" != "X $srcdir/configure conftest.file" \ 2396 && test "$*" != "X conftest.file $srcdir/configure"; then 2397 2398 # If neither matched, then we have a broken ls. This can happen 2399 # if, for instance, CONFIG_SHELL is bash and it inherits a 2400 # broken ls alias from the environment. This has actually 2401 # happened. Such a system could not be considered "sane". 2402 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2403 alias in your environment" "$LINENO" 5 2404 fi 2405 if test "$2" = conftest.file || test $am_try -eq 2; then 2406 break 2407 fi 2408 # Just in case. 2409 sleep 1 2410 am_has_slept=yes 2411 done 2412 test "$2" = conftest.file 2413 ) 2414then 2415 # Ok. 2416 : 2417else 2418 as_fn_error $? "newly created file is older than distributed files! 2419Check your system clock" "$LINENO" 5 2420fi 2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2422$as_echo "yes" >&6; } 2423# If we didn't sleep, we still need to ensure time stamps of config.status and 2424# generated files are strictly newer. 2425am_sleep_pid= 2426if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2427 ( sleep 1 ) & 2428 am_sleep_pid=$! 2429fi 2430 2431rm -f conftest.file 2432 2433test "$program_prefix" != NONE && 2434 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2435# Use a double $ so make ignores it. 2436test "$program_suffix" != NONE && 2437 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2438# Double any \ or $. 2439# By default was `s,x,x', remove it if useless. 2440ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2441program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2442 2443# Expand $ac_aux_dir to an absolute path. 2444am_aux_dir=`cd "$ac_aux_dir" && pwd` 2445 2446if test x"${MISSING+set}" != xset; then 2447 case $am_aux_dir in 2448 *\ * | *\ *) 2449 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2450 *) 2451 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2452 esac 2453fi 2454# Use eval to expand $SHELL 2455if eval "$MISSING --is-lightweight"; then 2456 am_missing_run="$MISSING " 2457else 2458 am_missing_run= 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2460$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2461fi 2462 2463if test x"${install_sh+set}" != xset; then 2464 case $am_aux_dir in 2465 *\ * | *\ *) 2466 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2467 *) 2468 install_sh="\${SHELL} $am_aux_dir/install-sh" 2469 esac 2470fi 2471 2472# Installed binaries are usually stripped using 'strip' when the user 2473# run "make install-strip". However 'strip' might not be the right 2474# tool to use in cross-compilation environments, therefore Automake 2475# will honor the 'STRIP' environment variable to overrule this program. 2476if test "$cross_compiling" != no; then 2477 if test -n "$ac_tool_prefix"; then 2478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2479set dummy ${ac_tool_prefix}strip; ac_word=$2 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2481$as_echo_n "checking for $ac_word... " >&6; } 2482if ${ac_cv_prog_STRIP+:} false; then : 2483 $as_echo_n "(cached) " >&6 2484else 2485 if test -n "$STRIP"; then 2486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2487else 2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH 2490do 2491 IFS=$as_save_IFS 2492 test -z "$as_dir" && as_dir=. 2493 for ac_exec_ext in '' $ac_executable_extensions; do 2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2495 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2497 break 2 2498 fi 2499done 2500 done 2501IFS=$as_save_IFS 2502 2503fi 2504fi 2505STRIP=$ac_cv_prog_STRIP 2506if test -n "$STRIP"; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2508$as_echo "$STRIP" >&6; } 2509else 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2511$as_echo "no" >&6; } 2512fi 2513 2514 2515fi 2516if test -z "$ac_cv_prog_STRIP"; then 2517 ac_ct_STRIP=$STRIP 2518 # Extract the first word of "strip", so it can be a program name with args. 2519set dummy strip; ac_word=$2 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2521$as_echo_n "checking for $ac_word... " >&6; } 2522if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2523 $as_echo_n "(cached) " >&6 2524else 2525 if test -n "$ac_ct_STRIP"; then 2526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2527else 2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2529for as_dir in $PATH 2530do 2531 IFS=$as_save_IFS 2532 test -z "$as_dir" && as_dir=. 2533 for ac_exec_ext in '' $ac_executable_extensions; do 2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2535 ac_cv_prog_ac_ct_STRIP="strip" 2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2537 break 2 2538 fi 2539done 2540 done 2541IFS=$as_save_IFS 2542 2543fi 2544fi 2545ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2546if test -n "$ac_ct_STRIP"; then 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2548$as_echo "$ac_ct_STRIP" >&6; } 2549else 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2551$as_echo "no" >&6; } 2552fi 2553 2554 if test "x$ac_ct_STRIP" = x; then 2555 STRIP=":" 2556 else 2557 case $cross_compiling:$ac_tool_warned in 2558yes:) 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2561ac_tool_warned=yes ;; 2562esac 2563 STRIP=$ac_ct_STRIP 2564 fi 2565else 2566 STRIP="$ac_cv_prog_STRIP" 2567fi 2568 2569fi 2570INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2571 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2573$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2574if test -z "$MKDIR_P"; then 2575 if ${ac_cv_path_mkdir+:} false; then : 2576 $as_echo_n "(cached) " >&6 2577else 2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_prog in mkdir gmkdir; do 2584 for ac_exec_ext in '' $ac_executable_extensions; do 2585 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2586 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2587 'mkdir (GNU coreutils) '* | \ 2588 'mkdir (coreutils) '* | \ 2589 'mkdir (fileutils) '4.1*) 2590 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2591 break 3;; 2592 esac 2593 done 2594 done 2595 done 2596IFS=$as_save_IFS 2597 2598fi 2599 2600 test -d ./--version && rmdir ./--version 2601 if test "${ac_cv_path_mkdir+set}" = set; then 2602 MKDIR_P="$ac_cv_path_mkdir -p" 2603 else 2604 # As a last resort, use the slow shell script. Don't cache a 2605 # value for MKDIR_P within a source directory, because that will 2606 # break other packages using the cache if that directory is 2607 # removed, or if the value is a relative name. 2608 MKDIR_P="$ac_install_sh -d" 2609 fi 2610fi 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2612$as_echo "$MKDIR_P" >&6; } 2613 2614for ac_prog in gawk mawk nawk awk 2615do 2616 # Extract the first word of "$ac_prog", so it can be a program name with args. 2617set dummy $ac_prog; ac_word=$2 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2619$as_echo_n "checking for $ac_word... " >&6; } 2620if ${ac_cv_prog_AWK+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 if test -n "$AWK"; then 2624 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 test -z "$as_dir" && as_dir=. 2631 for ac_exec_ext in '' $ac_executable_extensions; do 2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2633 ac_cv_prog_AWK="$ac_prog" 2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2635 break 2 2636 fi 2637done 2638 done 2639IFS=$as_save_IFS 2640 2641fi 2642fi 2643AWK=$ac_cv_prog_AWK 2644if test -n "$AWK"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2646$as_echo "$AWK" >&6; } 2647else 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2649$as_echo "no" >&6; } 2650fi 2651 2652 2653 test -n "$AWK" && break 2654done 2655 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2657$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2658set x ${MAKE-make} 2659ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2660if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 cat >conftest.make <<\_ACEOF 2664SHELL = /bin/sh 2665all: 2666 @echo '@@@%%%=$(MAKE)=@@@%%%' 2667_ACEOF 2668# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2669case `${MAKE-make} -f conftest.make 2>/dev/null` in 2670 *@@@%%%=?*=@@@%%%*) 2671 eval ac_cv_prog_make_${ac_make}_set=yes;; 2672 *) 2673 eval ac_cv_prog_make_${ac_make}_set=no;; 2674esac 2675rm -f conftest.make 2676fi 2677if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2679$as_echo "yes" >&6; } 2680 SET_MAKE= 2681else 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2683$as_echo "no" >&6; } 2684 SET_MAKE="MAKE=${MAKE-make}" 2685fi 2686 2687rm -rf .tst 2>/dev/null 2688mkdir .tst 2>/dev/null 2689if test -d .tst; then 2690 am__leading_dot=. 2691else 2692 am__leading_dot=_ 2693fi 2694rmdir .tst 2>/dev/null 2695 2696# Check whether --enable-silent-rules was given. 2697if test "${enable_silent_rules+set}" = set; then : 2698 enableval=$enable_silent_rules; 2699fi 2700 2701case $enable_silent_rules in # ((( 2702 yes) AM_DEFAULT_VERBOSITY=0;; 2703 no) AM_DEFAULT_VERBOSITY=1;; 2704 *) AM_DEFAULT_VERBOSITY=1;; 2705esac 2706am_make=${MAKE-make} 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2708$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2709if ${am_cv_make_support_nested_variables+:} false; then : 2710 $as_echo_n "(cached) " >&6 2711else 2712 if $as_echo 'TRUE=$(BAR$(V)) 2713BAR0=false 2714BAR1=true 2715V=1 2716am__doit: 2717 @$(TRUE) 2718.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2719 am_cv_make_support_nested_variables=yes 2720else 2721 am_cv_make_support_nested_variables=no 2722fi 2723fi 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2725$as_echo "$am_cv_make_support_nested_variables" >&6; } 2726if test $am_cv_make_support_nested_variables = yes; then 2727 AM_V='$(V)' 2728 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2729else 2730 AM_V=$AM_DEFAULT_VERBOSITY 2731 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2732fi 2733AM_BACKSLASH='\' 2734 2735if test "`cd $srcdir && pwd`" != "`pwd`"; then 2736 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2737 # is not polluted with repeated "-I." 2738 am__isrc=' -I$(srcdir)' 2739 # test to see if srcdir already configured 2740 if test -f $srcdir/config.status; then 2741 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2742 fi 2743fi 2744 2745# test whether we have cygpath 2746if test -z "$CYGPATH_W"; then 2747 if (cygpath --version) >/dev/null 2>/dev/null; then 2748 CYGPATH_W='cygpath -w' 2749 else 2750 CYGPATH_W=echo 2751 fi 2752fi 2753 2754 2755# Define the identity of the package. 2756 PACKAGE='libXScrnSaver' 2757 VERSION='1.2.3' 2758 2759 2760cat >>confdefs.h <<_ACEOF 2761#define PACKAGE "$PACKAGE" 2762_ACEOF 2763 2764 2765cat >>confdefs.h <<_ACEOF 2766#define VERSION "$VERSION" 2767_ACEOF 2768 2769# Some tools Automake needs. 2770 2771ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2772 2773 2774AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2775 2776 2777AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2778 2779 2780AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2781 2782 2783MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2784 2785# For better backward compatibility. To be removed once Automake 1.9.x 2786# dies out for good. For more background, see: 2787# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2788# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2789mkdir_p='$(MKDIR_P)' 2790 2791# We need awk for the "check" target (and possibly the TAP driver). The 2792# system "awk" is bad on some platforms. 2793# Always define AMTAR for backward compatibility. Yes, it's still used 2794# in the wild :-( We should find a proper way to deprecate it ... 2795AMTAR='$${TAR-tar}' 2796 2797 2798# We'll loop over all known methods to create a tar archive until one works. 2799_am_tools='gnutar pax cpio none' 2800 2801am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2802 2803 2804 2805 2806 2807 2808# POSIX will say in a future version that running "rm -f" with no argument 2809# is OK; and we want to be able to make that assumption in our Makefile 2810# recipes. So use an aggressive probe to check that the usage we want is 2811# actually supported "in the wild" to an acceptable degree. 2812# See automake bug#10828. 2813# To make any issue more visible, cause the running configure to be aborted 2814# by default if the 'rm' program in use doesn't match our expectations; the 2815# user can still override this though. 2816if rm -f && rm -fr && rm -rf; then : OK; else 2817 cat >&2 <<'END' 2818Oops! 2819 2820Your 'rm' program seems unable to run without file operands specified 2821on the command line, even when the '-f' option is present. This is contrary 2822to the behaviour of most rm programs out there, and not conforming with 2823the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2824 2825Please tell bug-automake@gnu.org about your system, including the value 2826of your $PATH and any error possibly output before this message. This 2827can help us improve future automake versions. 2828 2829END 2830 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2831 echo 'Configuration will proceed anyway, since you have set the' >&2 2832 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2833 echo >&2 2834 else 2835 cat >&2 <<'END' 2836Aborting the configuration process, to ensure you take notice of the issue. 2837 2838You can download and install GNU coreutils to get an 'rm' implementation 2839that behaves properly: <http://www.gnu.org/software/coreutils/>. 2840 2841If you want to complete the configuration process using your problematic 2842'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2843to "yes", and re-run configure. 2844 2845END 2846 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2847 fi 2848fi 2849 2850 2851# Initialize libtool 2852case `pwd` in 2853 *\ * | *\ *) 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2855$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2856esac 2857 2858 2859 2860macro_version='2.4.6' 2861macro_revision='2.4.6' 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875ltmain=$ac_aux_dir/ltmain.sh 2876 2877# Make sure we can run config.sub. 2878$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2879 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2880 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2882$as_echo_n "checking build system type... " >&6; } 2883if ${ac_cv_build+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 ac_build_alias=$build_alias 2887test "x$ac_build_alias" = x && 2888 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2889test "x$ac_build_alias" = x && 2890 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2891ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2892 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2893 2894fi 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2896$as_echo "$ac_cv_build" >&6; } 2897case $ac_cv_build in 2898*-*-*) ;; 2899*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2900esac 2901build=$ac_cv_build 2902ac_save_IFS=$IFS; IFS='-' 2903set x $ac_cv_build 2904shift 2905build_cpu=$1 2906build_vendor=$2 2907shift; shift 2908# Remember, the first character of IFS is used to create $*, 2909# except with old shells: 2910build_os=$* 2911IFS=$ac_save_IFS 2912case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2913 2914 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2916$as_echo_n "checking host system type... " >&6; } 2917if ${ac_cv_host+:} false; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test "x$host_alias" = x; then 2921 ac_cv_host=$ac_cv_build 2922else 2923 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2924 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2925fi 2926 2927fi 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2929$as_echo "$ac_cv_host" >&6; } 2930case $ac_cv_host in 2931*-*-*) ;; 2932*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2933esac 2934host=$ac_cv_host 2935ac_save_IFS=$IFS; IFS='-' 2936set x $ac_cv_host 2937shift 2938host_cpu=$1 2939host_vendor=$2 2940shift; shift 2941# Remember, the first character of IFS is used to create $*, 2942# except with old shells: 2943host_os=$* 2944IFS=$ac_save_IFS 2945case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2946 2947 2948# Backslashify metacharacters that are still active within 2949# double-quoted strings. 2950sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2951 2952# Same as above, but do not quote variable references. 2953double_quote_subst='s/\(["`\\]\)/\\\1/g' 2954 2955# Sed substitution to delay expansion of an escaped shell variable in a 2956# double_quote_subst'ed string. 2957delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2958 2959# Sed substitution to delay expansion of an escaped single quote. 2960delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2961 2962# Sed substitution to avoid accidental globbing in evaled expressions 2963no_glob_subst='s/\*/\\\*/g' 2964 2965ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2966ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2967ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2968 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2970$as_echo_n "checking how to print strings... " >&6; } 2971# Test print first, because it will be a builtin if present. 2972if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2973 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2974 ECHO='print -r --' 2975elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2976 ECHO='printf %s\n' 2977else 2978 # Use this function as a fallback that always works. 2979 func_fallback_echo () 2980 { 2981 eval 'cat <<_LTECHO_EOF 2982$1 2983_LTECHO_EOF' 2984 } 2985 ECHO='func_fallback_echo' 2986fi 2987 2988# func_echo_all arg... 2989# Invoke $ECHO with all args, space-separated. 2990func_echo_all () 2991{ 2992 $ECHO "" 2993} 2994 2995case $ECHO in 2996 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2997$as_echo "printf" >&6; } ;; 2998 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2999$as_echo "print -r" >&6; } ;; 3000 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3001$as_echo "cat" >&6; } ;; 3002esac 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017DEPDIR="${am__leading_dot}deps" 3018 3019ac_config_commands="$ac_config_commands depfiles" 3020 3021 3022am_make=${MAKE-make} 3023cat > confinc << 'END' 3024am__doit: 3025 @echo this is the am__doit target 3026.PHONY: am__doit 3027END 3028# If we don't find an include directive, just comment out the code. 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3030$as_echo_n "checking for style of include used by $am_make... " >&6; } 3031am__include="#" 3032am__quote= 3033_am_result=none 3034# First try GNU make style include. 3035echo "include confinc" > confmf 3036# Ignore all kinds of additional output from 'make'. 3037case `$am_make -s -f confmf 2> /dev/null` in #( 3038*the\ am__doit\ target*) 3039 am__include=include 3040 am__quote= 3041 _am_result=GNU 3042 ;; 3043esac 3044# Now try BSD make style include. 3045if test "$am__include" = "#"; then 3046 echo '.include "confinc"' > confmf 3047 case `$am_make -s -f confmf 2> /dev/null` in #( 3048 *the\ am__doit\ target*) 3049 am__include=.include 3050 am__quote="\"" 3051 _am_result=BSD 3052 ;; 3053 esac 3054fi 3055 3056 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3058$as_echo "$_am_result" >&6; } 3059rm -f confinc confmf 3060 3061# Check whether --enable-dependency-tracking was given. 3062if test "${enable_dependency_tracking+set}" = set; then : 3063 enableval=$enable_dependency_tracking; 3064fi 3065 3066if test "x$enable_dependency_tracking" != xno; then 3067 am_depcomp="$ac_aux_dir/depcomp" 3068 AMDEPBACKSLASH='\' 3069 am__nodep='_no' 3070fi 3071 if test "x$enable_dependency_tracking" != xno; then 3072 AMDEP_TRUE= 3073 AMDEP_FALSE='#' 3074else 3075 AMDEP_TRUE='#' 3076 AMDEP_FALSE= 3077fi 3078 3079 3080ac_ext=c 3081ac_cpp='$CPP $CPPFLAGS' 3082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3084ac_compiler_gnu=$ac_cv_c_compiler_gnu 3085if test -n "$ac_tool_prefix"; then 3086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3087set dummy ${ac_tool_prefix}gcc; ac_word=$2 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3089$as_echo_n "checking for $ac_word... " >&6; } 3090if ${ac_cv_prog_CC+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 if test -n "$CC"; then 3094 ac_cv_prog_CC="$CC" # Let the user override the test. 3095else 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3103 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111fi 3112fi 3113CC=$ac_cv_prog_CC 3114if test -n "$CC"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3116$as_echo "$CC" >&6; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120fi 3121 3122 3123fi 3124if test -z "$ac_cv_prog_CC"; then 3125 ac_ct_CC=$CC 3126 # Extract the first word of "gcc", so it can be a program name with args. 3127set dummy gcc; ac_word=$2 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3129$as_echo_n "checking for $ac_word... " >&6; } 3130if ${ac_cv_prog_ac_ct_CC+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 if test -n "$ac_ct_CC"; then 3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3135else 3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3137for as_dir in $PATH 3138do 3139 IFS=$as_save_IFS 3140 test -z "$as_dir" && as_dir=. 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3143 ac_cv_prog_ac_ct_CC="gcc" 3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147done 3148 done 3149IFS=$as_save_IFS 3150 3151fi 3152fi 3153ac_ct_CC=$ac_cv_prog_ac_ct_CC 3154if test -n "$ac_ct_CC"; then 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3156$as_echo "$ac_ct_CC" >&6; } 3157else 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3159$as_echo "no" >&6; } 3160fi 3161 3162 if test "x$ac_ct_CC" = x; then 3163 CC="" 3164 else 3165 case $cross_compiling:$ac_tool_warned in 3166yes:) 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3169ac_tool_warned=yes ;; 3170esac 3171 CC=$ac_ct_CC 3172 fi 3173else 3174 CC="$ac_cv_prog_CC" 3175fi 3176 3177if test -z "$CC"; then 3178 if test -n "$ac_tool_prefix"; then 3179 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3180set dummy ${ac_tool_prefix}cc; ac_word=$2 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3182$as_echo_n "checking for $ac_word... " >&6; } 3183if ${ac_cv_prog_CC+:} false; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 if test -n "$CC"; then 3187 ac_cv_prog_CC="$CC" # Let the user override the test. 3188else 3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3190for as_dir in $PATH 3191do 3192 IFS=$as_save_IFS 3193 test -z "$as_dir" && as_dir=. 3194 for ac_exec_ext in '' $ac_executable_extensions; do 3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3196 ac_cv_prog_CC="${ac_tool_prefix}cc" 3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3198 break 2 3199 fi 3200done 3201 done 3202IFS=$as_save_IFS 3203 3204fi 3205fi 3206CC=$ac_cv_prog_CC 3207if test -n "$CC"; then 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3209$as_echo "$CC" >&6; } 3210else 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3212$as_echo "no" >&6; } 3213fi 3214 3215 3216 fi 3217fi 3218if test -z "$CC"; then 3219 # Extract the first word of "cc", so it can be a program name with args. 3220set dummy cc; ac_word=$2 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3222$as_echo_n "checking for $ac_word... " >&6; } 3223if ${ac_cv_prog_CC+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 if test -n "$CC"; then 3227 ac_cv_prog_CC="$CC" # Let the user override the test. 3228else 3229 ac_prog_rejected=no 3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3238 ac_prog_rejected=yes 3239 continue 3240 fi 3241 ac_cv_prog_CC="cc" 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245done 3246 done 3247IFS=$as_save_IFS 3248 3249if test $ac_prog_rejected = yes; then 3250 # We found a bogon in the path, so make sure we never use it. 3251 set dummy $ac_cv_prog_CC 3252 shift 3253 if test $# != 0; then 3254 # We chose a different compiler from the bogus one. 3255 # However, it has the same basename, so the bogon will be chosen 3256 # first if we set CC to just the basename; use the full file name. 3257 shift 3258 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3259 fi 3260fi 3261fi 3262fi 3263CC=$ac_cv_prog_CC 3264if test -n "$CC"; then 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3266$as_echo "$CC" >&6; } 3267else 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269$as_echo "no" >&6; } 3270fi 3271 3272 3273fi 3274if test -z "$CC"; then 3275 if test -n "$ac_tool_prefix"; then 3276 for ac_prog in cl.exe 3277 do 3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3279set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3281$as_echo_n "checking for $ac_word... " >&6; } 3282if ${ac_cv_prog_CC+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 if test -n "$CC"; then 3286 ac_cv_prog_CC="$CC" # Let the user override the test. 3287else 3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289for as_dir in $PATH 3290do 3291 IFS=$as_save_IFS 3292 test -z "$as_dir" && as_dir=. 3293 for ac_exec_ext in '' $ac_executable_extensions; do 3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3297 break 2 3298 fi 3299done 3300 done 3301IFS=$as_save_IFS 3302 3303fi 3304fi 3305CC=$ac_cv_prog_CC 3306if test -n "$CC"; then 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3308$as_echo "$CC" >&6; } 3309else 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3311$as_echo "no" >&6; } 3312fi 3313 3314 3315 test -n "$CC" && break 3316 done 3317fi 3318if test -z "$CC"; then 3319 ac_ct_CC=$CC 3320 for ac_prog in cl.exe 3321do 3322 # Extract the first word of "$ac_prog", so it can be a program name with args. 3323set dummy $ac_prog; ac_word=$2 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3325$as_echo_n "checking for $ac_word... " >&6; } 3326if ${ac_cv_prog_ac_ct_CC+:} false; then : 3327 $as_echo_n "(cached) " >&6 3328else 3329 if test -n "$ac_ct_CC"; then 3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3331else 3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3333for as_dir in $PATH 3334do 3335 IFS=$as_save_IFS 3336 test -z "$as_dir" && as_dir=. 3337 for ac_exec_ext in '' $ac_executable_extensions; do 3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3339 ac_cv_prog_ac_ct_CC="$ac_prog" 3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3341 break 2 3342 fi 3343done 3344 done 3345IFS=$as_save_IFS 3346 3347fi 3348fi 3349ac_ct_CC=$ac_cv_prog_ac_ct_CC 3350if test -n "$ac_ct_CC"; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3352$as_echo "$ac_ct_CC" >&6; } 3353else 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356fi 3357 3358 3359 test -n "$ac_ct_CC" && break 3360done 3361 3362 if test "x$ac_ct_CC" = x; then 3363 CC="" 3364 else 3365 case $cross_compiling:$ac_tool_warned in 3366yes:) 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3369ac_tool_warned=yes ;; 3370esac 3371 CC=$ac_ct_CC 3372 fi 3373fi 3374 3375fi 3376 3377 3378test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3380as_fn_error $? "no acceptable C compiler found in \$PATH 3381See \`config.log' for more details" "$LINENO" 5; } 3382 3383# Provide some information about the compiler. 3384$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3385set X $ac_compile 3386ac_compiler=$2 3387for ac_option in --version -v -V -qversion; do 3388 { { ac_try="$ac_compiler $ac_option >&5" 3389case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3394$as_echo "$ac_try_echo"; } >&5 3395 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3396 ac_status=$? 3397 if test -s conftest.err; then 3398 sed '10a\ 3399... rest of stderr output deleted ... 3400 10q' conftest.err >conftest.er1 3401 cat conftest.er1 >&5 3402 fi 3403 rm -f conftest.er1 conftest.err 3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3405 test $ac_status = 0; } 3406done 3407 3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409/* end confdefs.h. */ 3410 3411int 3412main () 3413{ 3414 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419ac_clean_files_save=$ac_clean_files 3420ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3421# Try to create an executable without -o first, disregard a.out. 3422# It will help us diagnose broken compilers, and finding out an intuition 3423# of exeext. 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3425$as_echo_n "checking whether the C compiler works... " >&6; } 3426ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3427 3428# The possible output files: 3429ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3430 3431ac_rmfiles= 3432for ac_file in $ac_files 3433do 3434 case $ac_file in 3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3436 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3437 esac 3438done 3439rm -f $ac_rmfiles 3440 3441if { { ac_try="$ac_link_default" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3447$as_echo "$ac_try_echo"; } >&5 3448 (eval "$ac_link_default") 2>&5 3449 ac_status=$? 3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3451 test $ac_status = 0; }; then : 3452 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3453# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3454# in a Makefile. We should not override ac_cv_exeext if it was cached, 3455# so that the user can short-circuit this test for compilers unknown to 3456# Autoconf. 3457for ac_file in $ac_files '' 3458do 3459 test -f "$ac_file" || continue 3460 case $ac_file in 3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3462 ;; 3463 [ab].out ) 3464 # We found the default executable, but exeext='' is most 3465 # certainly right. 3466 break;; 3467 *.* ) 3468 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3469 then :; else 3470 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3471 fi 3472 # We set ac_cv_exeext here because the later test for it is not 3473 # safe: cross compilers may not add the suffix if given an `-o' 3474 # argument, so we may need to know it at that point already. 3475 # Even if this section looks crufty: it has the advantage of 3476 # actually working. 3477 break;; 3478 * ) 3479 break;; 3480 esac 3481done 3482test "$ac_cv_exeext" = no && ac_cv_exeext= 3483 3484else 3485 ac_file='' 3486fi 3487if test -z "$ac_file"; then : 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489$as_echo "no" >&6; } 3490$as_echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3495as_fn_error 77 "C compiler cannot create executables 3496See \`config.log' for more details" "$LINENO" 5; } 3497else 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3499$as_echo "yes" >&6; } 3500fi 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3502$as_echo_n "checking for C compiler default output file name... " >&6; } 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3504$as_echo "$ac_file" >&6; } 3505ac_exeext=$ac_cv_exeext 3506 3507rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3508ac_clean_files=$ac_clean_files_save 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3510$as_echo_n "checking for suffix of executables... " >&6; } 3511if { { ac_try="$ac_link" 3512case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3517$as_echo "$ac_try_echo"; } >&5 3518 (eval "$ac_link") 2>&5 3519 ac_status=$? 3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3521 test $ac_status = 0; }; then : 3522 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3523# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3524# work properly (i.e., refer to `conftest.exe'), while it won't with 3525# `rm'. 3526for ac_file in conftest.exe conftest conftest.*; do 3527 test -f "$ac_file" || continue 3528 case $ac_file in 3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3530 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3531 break;; 3532 * ) break;; 3533 esac 3534done 3535else 3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3539See \`config.log' for more details" "$LINENO" 5; } 3540fi 3541rm -f conftest conftest$ac_cv_exeext 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3543$as_echo "$ac_cv_exeext" >&6; } 3544 3545rm -f conftest.$ac_ext 3546EXEEXT=$ac_cv_exeext 3547ac_exeext=$EXEEXT 3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550#include <stdio.h> 3551int 3552main () 3553{ 3554FILE *f = fopen ("conftest.out", "w"); 3555 return ferror (f) || fclose (f) != 0; 3556 3557 ; 3558 return 0; 3559} 3560_ACEOF 3561ac_clean_files="$ac_clean_files conftest.out" 3562# Check that the compiler produces executables we can run. If not, either 3563# the compiler is broken, or we cross compile. 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3565$as_echo_n "checking whether we are cross compiling... " >&6; } 3566if test "$cross_compiling" != yes; then 3567 { { ac_try="$ac_link" 3568case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571esac 3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3573$as_echo "$ac_try_echo"; } >&5 3574 (eval "$ac_link") 2>&5 3575 ac_status=$? 3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3577 test $ac_status = 0; } 3578 if { ac_try='./conftest$ac_cv_exeext' 3579 { { case "(($ac_try" in 3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3581 *) ac_try_echo=$ac_try;; 3582esac 3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3584$as_echo "$ac_try_echo"; } >&5 3585 (eval "$ac_try") 2>&5 3586 ac_status=$? 3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3588 test $ac_status = 0; }; }; then 3589 cross_compiling=no 3590 else 3591 if test "$cross_compiling" = maybe; then 3592 cross_compiling=yes 3593 else 3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3596as_fn_error $? "cannot run C compiled programs. 3597If you meant to cross compile, use \`--host'. 3598See \`config.log' for more details" "$LINENO" 5; } 3599 fi 3600 fi 3601fi 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3603$as_echo "$cross_compiling" >&6; } 3604 3605rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3606ac_clean_files=$ac_clean_files_save 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3608$as_echo_n "checking for suffix of object files... " >&6; } 3609if ${ac_cv_objext+:} false; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613/* end confdefs.h. */ 3614 3615int 3616main () 3617{ 3618 3619 ; 3620 return 0; 3621} 3622_ACEOF 3623rm -f conftest.o conftest.obj 3624if { { ac_try="$ac_compile" 3625case "(($ac_try" in 3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *) ac_try_echo=$ac_try;; 3628esac 3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3630$as_echo "$ac_try_echo"; } >&5 3631 (eval "$ac_compile") 2>&5 3632 ac_status=$? 3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3634 test $ac_status = 0; }; then : 3635 for ac_file in conftest.o conftest.obj conftest.*; do 3636 test -f "$ac_file" || continue; 3637 case $ac_file in 3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3640 break;; 3641 esac 3642done 3643else 3644 $as_echo "$as_me: failed program was:" >&5 3645sed 's/^/| /' conftest.$ac_ext >&5 3646 3647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3649as_fn_error $? "cannot compute suffix of object files: cannot compile 3650See \`config.log' for more details" "$LINENO" 5; } 3651fi 3652rm -f conftest.$ac_cv_objext conftest.$ac_ext 3653fi 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3655$as_echo "$ac_cv_objext" >&6; } 3656OBJEXT=$ac_cv_objext 3657ac_objext=$OBJEXT 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3659$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3660if ${ac_cv_c_compiler_gnu+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666int 3667main () 3668{ 3669#ifndef __GNUC__ 3670 choke me 3671#endif 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_compiler_gnu=yes 3679else 3680 ac_compiler_gnu=no 3681fi 3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3683ac_cv_c_compiler_gnu=$ac_compiler_gnu 3684 3685fi 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3687$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3688if test $ac_compiler_gnu = yes; then 3689 GCC=yes 3690else 3691 GCC= 3692fi 3693ac_test_CFLAGS=${CFLAGS+set} 3694ac_save_CFLAGS=$CFLAGS 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3696$as_echo_n "checking whether $CC accepts -g... " >&6; } 3697if ${ac_cv_prog_cc_g+:} false; then : 3698 $as_echo_n "(cached) " >&6 3699else 3700 ac_save_c_werror_flag=$ac_c_werror_flag 3701 ac_c_werror_flag=yes 3702 ac_cv_prog_cc_g=no 3703 CFLAGS="-g" 3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706 3707int 3708main () 3709{ 3710 3711 ; 3712 return 0; 3713} 3714_ACEOF 3715if ac_fn_c_try_compile "$LINENO"; then : 3716 ac_cv_prog_cc_g=yes 3717else 3718 CFLAGS="" 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main () 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730if ac_fn_c_try_compile "$LINENO"; then : 3731 3732else 3733 ac_c_werror_flag=$ac_save_c_werror_flag 3734 CFLAGS="-g" 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737 3738int 3739main () 3740{ 3741 3742 ; 3743 return 0; 3744} 3745_ACEOF 3746if ac_fn_c_try_compile "$LINENO"; then : 3747 ac_cv_prog_cc_g=yes 3748fi 3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3750fi 3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3752fi 3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3754 ac_c_werror_flag=$ac_save_c_werror_flag 3755fi 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3757$as_echo "$ac_cv_prog_cc_g" >&6; } 3758if test "$ac_test_CFLAGS" = set; then 3759 CFLAGS=$ac_save_CFLAGS 3760elif test $ac_cv_prog_cc_g = yes; then 3761 if test "$GCC" = yes; then 3762 CFLAGS="-g -O2" 3763 else 3764 CFLAGS="-g" 3765 fi 3766else 3767 if test "$GCC" = yes; then 3768 CFLAGS="-O2" 3769 else 3770 CFLAGS= 3771 fi 3772fi 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3774$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3775if ${ac_cv_prog_cc_c89+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 ac_cv_prog_cc_c89=no 3779ac_save_CC=$CC 3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782#include <stdarg.h> 3783#include <stdio.h> 3784struct stat; 3785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3786struct buf { int x; }; 3787FILE * (*rcsopen) (struct buf *, struct stat *, int); 3788static char *e (p, i) 3789 char **p; 3790 int i; 3791{ 3792 return p[i]; 3793} 3794static char *f (char * (*g) (char **, int), char **p, ...) 3795{ 3796 char *s; 3797 va_list v; 3798 va_start (v,p); 3799 s = g (p, va_arg (v,int)); 3800 va_end (v); 3801 return s; 3802} 3803 3804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3805 function prototypes and stuff, but not '\xHH' hex character constants. 3806 These don't provoke an error unfortunately, instead are silently treated 3807 as 'x'. The following induces an error, until -std is added to get 3808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3809 array size at least. It's necessary to write '\x00'==0 to get something 3810 that's true only with -std. */ 3811int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3812 3813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3814 inside strings and character constants. */ 3815#define FOO(x) 'x' 3816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3817 3818int test (int i, double x); 3819struct s1 {int (*f) (int a);}; 3820struct s2 {int (*f) (double a);}; 3821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3822int argc; 3823char **argv; 3824int 3825main () 3826{ 3827return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3834do 3835 CC="$ac_save_CC $ac_arg" 3836 if ac_fn_c_try_compile "$LINENO"; then : 3837 ac_cv_prog_cc_c89=$ac_arg 3838fi 3839rm -f core conftest.err conftest.$ac_objext 3840 test "x$ac_cv_prog_cc_c89" != "xno" && break 3841done 3842rm -f conftest.$ac_ext 3843CC=$ac_save_CC 3844 3845fi 3846# AC_CACHE_VAL 3847case "x$ac_cv_prog_cc_c89" in 3848 x) 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3850$as_echo "none needed" >&6; } ;; 3851 xno) 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3853$as_echo "unsupported" >&6; } ;; 3854 *) 3855 CC="$CC $ac_cv_prog_cc_c89" 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3857$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3858esac 3859if test "x$ac_cv_prog_cc_c89" != xno; then : 3860 3861fi 3862 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868 3869ac_ext=c 3870ac_cpp='$CPP $CPPFLAGS' 3871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3873ac_compiler_gnu=$ac_cv_c_compiler_gnu 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3875$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3876if ${am_cv_prog_cc_c_o+:} false; then : 3877 $as_echo_n "(cached) " >&6 3878else 3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3880/* end confdefs.h. */ 3881 3882int 3883main () 3884{ 3885 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890 # Make sure it works both with $CC and with simple cc. 3891 # Following AC_PROG_CC_C_O, we do the test twice because some 3892 # compilers refuse to overwrite an existing .o file with -o, 3893 # though they will create one. 3894 am_cv_prog_cc_c_o=yes 3895 for am_i in 1 2; do 3896 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3897 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3898 ac_status=$? 3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3900 (exit $ac_status); } \ 3901 && test -f conftest2.$ac_objext; then 3902 : OK 3903 else 3904 am_cv_prog_cc_c_o=no 3905 break 3906 fi 3907 done 3908 rm -f core conftest* 3909 unset am_i 3910fi 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3912$as_echo "$am_cv_prog_cc_c_o" >&6; } 3913if test "$am_cv_prog_cc_c_o" != yes; then 3914 # Losing compiler, so override with the script. 3915 # FIXME: It is wrong to rewrite CC. 3916 # But if we don't then we get into trouble of one sort or another. 3917 # A longer-term fix would be to have automake use am__CC in this case, 3918 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3919 CC="$am_aux_dir/compile $CC" 3920fi 3921ac_ext=c 3922ac_cpp='$CPP $CPPFLAGS' 3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3925ac_compiler_gnu=$ac_cv_c_compiler_gnu 3926 3927 3928depcc="$CC" am_compiler_list= 3929 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3931$as_echo_n "checking dependency style of $depcc... " >&6; } 3932if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3936 # We make a subdir and do the tests there. Otherwise we can end up 3937 # making bogus files that we don't know about and never remove. For 3938 # instance it was reported that on HP-UX the gcc test will end up 3939 # making a dummy file named 'D' -- because '-MD' means "put the output 3940 # in D". 3941 rm -rf conftest.dir 3942 mkdir conftest.dir 3943 # Copy depcomp to subdir because otherwise we won't find it if we're 3944 # using a relative directory. 3945 cp "$am_depcomp" conftest.dir 3946 cd conftest.dir 3947 # We will build objects and dependencies in a subdirectory because 3948 # it helps to detect inapplicable dependency modes. For instance 3949 # both Tru64's cc and ICC support -MD to output dependencies as a 3950 # side effect of compilation, but ICC will put the dependencies in 3951 # the current directory while Tru64 will put them in the object 3952 # directory. 3953 mkdir sub 3954 3955 am_cv_CC_dependencies_compiler_type=none 3956 if test "$am_compiler_list" = ""; then 3957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3958 fi 3959 am__universal=false 3960 case " $depcc " in #( 3961 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3962 esac 3963 3964 for depmode in $am_compiler_list; do 3965 # Setup a source with many dependencies, because some compilers 3966 # like to wrap large dependency lists on column 80 (with \), and 3967 # we should not choose a depcomp mode which is confused by this. 3968 # 3969 # We need to recreate these files for each test, as the compiler may 3970 # overwrite some of them when testing with obscure command lines. 3971 # This happens at least with the AIX C compiler. 3972 : > sub/conftest.c 3973 for i in 1 2 3 4 5 6; do 3974 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3975 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3976 # Solaris 10 /bin/sh. 3977 echo '/* dummy */' > sub/conftst$i.h 3978 done 3979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3980 3981 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3982 # mode. It turns out that the SunPro C++ compiler does not properly 3983 # handle '-M -o', and we need to detect this. Also, some Intel 3984 # versions had trouble with output in subdirs. 3985 am__obj=sub/conftest.${OBJEXT-o} 3986 am__minus_obj="-o $am__obj" 3987 case $depmode in 3988 gcc) 3989 # This depmode causes a compiler race in universal mode. 3990 test "$am__universal" = false || continue 3991 ;; 3992 nosideeffect) 3993 # After this tag, mechanisms are not by side-effect, so they'll 3994 # only be used when explicitly requested. 3995 if test "x$enable_dependency_tracking" = xyes; then 3996 continue 3997 else 3998 break 3999 fi 4000 ;; 4001 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4002 # This compiler won't grok '-c -o', but also, the minuso test has 4003 # not run yet. These depmodes are late enough in the game, and 4004 # so weak that their functioning should not be impacted. 4005 am__obj=conftest.${OBJEXT-o} 4006 am__minus_obj= 4007 ;; 4008 none) break ;; 4009 esac 4010 if depmode=$depmode \ 4011 source=sub/conftest.c object=$am__obj \ 4012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4014 >/dev/null 2>conftest.err && 4015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4019 # icc doesn't choke on unknown options, it will just issue warnings 4020 # or remarks (even with -Werror). So we grep stderr for any message 4021 # that says an option was ignored or not supported. 4022 # When given -MP, icc 7.0 and 7.1 complain thusly: 4023 # icc: Command line warning: ignoring option '-M'; no argument required 4024 # The diagnosis changed in icc 8.0: 4025 # icc: Command line remark: option '-MP' not supported 4026 if (grep 'ignoring option' conftest.err || 4027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4028 am_cv_CC_dependencies_compiler_type=$depmode 4029 break 4030 fi 4031 fi 4032 done 4033 4034 cd .. 4035 rm -rf conftest.dir 4036else 4037 am_cv_CC_dependencies_compiler_type=none 4038fi 4039 4040fi 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4042$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4043CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4044 4045 if 4046 test "x$enable_dependency_tracking" != xno \ 4047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4048 am__fastdepCC_TRUE= 4049 am__fastdepCC_FALSE='#' 4050else 4051 am__fastdepCC_TRUE='#' 4052 am__fastdepCC_FALSE= 4053fi 4054 4055 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4057$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4058if ${ac_cv_path_SED+:} false; then : 4059 $as_echo_n "(cached) " >&6 4060else 4061 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4062 for ac_i in 1 2 3 4 5 6 7; do 4063 ac_script="$ac_script$as_nl$ac_script" 4064 done 4065 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4066 { ac_script=; unset ac_script;} 4067 if test -z "$SED"; then 4068 ac_path_SED_found=false 4069 # Loop through the user's path and test for each of PROGNAME-LIST 4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4071for as_dir in $PATH 4072do 4073 IFS=$as_save_IFS 4074 test -z "$as_dir" && as_dir=. 4075 for ac_prog in sed gsed; do 4076 for ac_exec_ext in '' $ac_executable_extensions; do 4077 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4078 as_fn_executable_p "$ac_path_SED" || continue 4079# Check for GNU ac_path_SED and select it if it is found. 4080 # Check for GNU $ac_path_SED 4081case `"$ac_path_SED" --version 2>&1` in 4082*GNU*) 4083 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4084*) 4085 ac_count=0 4086 $as_echo_n 0123456789 >"conftest.in" 4087 while : 4088 do 4089 cat "conftest.in" "conftest.in" >"conftest.tmp" 4090 mv "conftest.tmp" "conftest.in" 4091 cp "conftest.in" "conftest.nl" 4092 $as_echo '' >> "conftest.nl" 4093 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4095 as_fn_arith $ac_count + 1 && ac_count=$as_val 4096 if test $ac_count -gt ${ac_path_SED_max-0}; then 4097 # Best one so far, save it but keep looking for a better one 4098 ac_cv_path_SED="$ac_path_SED" 4099 ac_path_SED_max=$ac_count 4100 fi 4101 # 10*(2^10) chars as input seems more than enough 4102 test $ac_count -gt 10 && break 4103 done 4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4105esac 4106 4107 $ac_path_SED_found && break 3 4108 done 4109 done 4110 done 4111IFS=$as_save_IFS 4112 if test -z "$ac_cv_path_SED"; then 4113 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4114 fi 4115else 4116 ac_cv_path_SED=$SED 4117fi 4118 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4121$as_echo "$ac_cv_path_SED" >&6; } 4122 SED="$ac_cv_path_SED" 4123 rm -f conftest.sed 4124 4125test -z "$SED" && SED=sed 4126Xsed="$SED -e 1s/^X//" 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4139$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4140if ${ac_cv_path_GREP+:} false; then : 4141 $as_echo_n "(cached) " >&6 4142else 4143 if test -z "$GREP"; then 4144 ac_path_GREP_found=false 4145 # Loop through the user's path and test for each of PROGNAME-LIST 4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4148do 4149 IFS=$as_save_IFS 4150 test -z "$as_dir" && as_dir=. 4151 for ac_prog in grep ggrep; do 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4154 as_fn_executable_p "$ac_path_GREP" || continue 4155# Check for GNU ac_path_GREP and select it if it is found. 4156 # Check for GNU $ac_path_GREP 4157case `"$ac_path_GREP" --version 2>&1` in 4158*GNU*) 4159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4160*) 4161 ac_count=0 4162 $as_echo_n 0123456789 >"conftest.in" 4163 while : 4164 do 4165 cat "conftest.in" "conftest.in" >"conftest.tmp" 4166 mv "conftest.tmp" "conftest.in" 4167 cp "conftest.in" "conftest.nl" 4168 $as_echo 'GREP' >> "conftest.nl" 4169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4171 as_fn_arith $ac_count + 1 && ac_count=$as_val 4172 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4173 # Best one so far, save it but keep looking for a better one 4174 ac_cv_path_GREP="$ac_path_GREP" 4175 ac_path_GREP_max=$ac_count 4176 fi 4177 # 10*(2^10) chars as input seems more than enough 4178 test $ac_count -gt 10 && break 4179 done 4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4181esac 4182 4183 $ac_path_GREP_found && break 3 4184 done 4185 done 4186 done 4187IFS=$as_save_IFS 4188 if test -z "$ac_cv_path_GREP"; then 4189 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4190 fi 4191else 4192 ac_cv_path_GREP=$GREP 4193fi 4194 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4197$as_echo "$ac_cv_path_GREP" >&6; } 4198 GREP="$ac_cv_path_GREP" 4199 4200 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4202$as_echo_n "checking for egrep... " >&6; } 4203if ${ac_cv_path_EGREP+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4207 then ac_cv_path_EGREP="$GREP -E" 4208 else 4209 if test -z "$EGREP"; then 4210 ac_path_EGREP_found=false 4211 # Loop through the user's path and test for each of PROGNAME-LIST 4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4214do 4215 IFS=$as_save_IFS 4216 test -z "$as_dir" && as_dir=. 4217 for ac_prog in egrep; do 4218 for ac_exec_ext in '' $ac_executable_extensions; do 4219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4220 as_fn_executable_p "$ac_path_EGREP" || continue 4221# Check for GNU ac_path_EGREP and select it if it is found. 4222 # Check for GNU $ac_path_EGREP 4223case `"$ac_path_EGREP" --version 2>&1` in 4224*GNU*) 4225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4226*) 4227 ac_count=0 4228 $as_echo_n 0123456789 >"conftest.in" 4229 while : 4230 do 4231 cat "conftest.in" "conftest.in" >"conftest.tmp" 4232 mv "conftest.tmp" "conftest.in" 4233 cp "conftest.in" "conftest.nl" 4234 $as_echo 'EGREP' >> "conftest.nl" 4235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4237 as_fn_arith $ac_count + 1 && ac_count=$as_val 4238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4239 # Best one so far, save it but keep looking for a better one 4240 ac_cv_path_EGREP="$ac_path_EGREP" 4241 ac_path_EGREP_max=$ac_count 4242 fi 4243 # 10*(2^10) chars as input seems more than enough 4244 test $ac_count -gt 10 && break 4245 done 4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4247esac 4248 4249 $ac_path_EGREP_found && break 3 4250 done 4251 done 4252 done 4253IFS=$as_save_IFS 4254 if test -z "$ac_cv_path_EGREP"; then 4255 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4256 fi 4257else 4258 ac_cv_path_EGREP=$EGREP 4259fi 4260 4261 fi 4262fi 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4264$as_echo "$ac_cv_path_EGREP" >&6; } 4265 EGREP="$ac_cv_path_EGREP" 4266 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4269$as_echo_n "checking for fgrep... " >&6; } 4270if ${ac_cv_path_FGREP+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4274 then ac_cv_path_FGREP="$GREP -F" 4275 else 4276 if test -z "$FGREP"; then 4277 ac_path_FGREP_found=false 4278 # Loop through the user's path and test for each of PROGNAME-LIST 4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4281do 4282 IFS=$as_save_IFS 4283 test -z "$as_dir" && as_dir=. 4284 for ac_prog in fgrep; do 4285 for ac_exec_ext in '' $ac_executable_extensions; do 4286 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4287 as_fn_executable_p "$ac_path_FGREP" || continue 4288# Check for GNU ac_path_FGREP and select it if it is found. 4289 # Check for GNU $ac_path_FGREP 4290case `"$ac_path_FGREP" --version 2>&1` in 4291*GNU*) 4292 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4293*) 4294 ac_count=0 4295 $as_echo_n 0123456789 >"conftest.in" 4296 while : 4297 do 4298 cat "conftest.in" "conftest.in" >"conftest.tmp" 4299 mv "conftest.tmp" "conftest.in" 4300 cp "conftest.in" "conftest.nl" 4301 $as_echo 'FGREP' >> "conftest.nl" 4302 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4304 as_fn_arith $ac_count + 1 && ac_count=$as_val 4305 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4306 # Best one so far, save it but keep looking for a better one 4307 ac_cv_path_FGREP="$ac_path_FGREP" 4308 ac_path_FGREP_max=$ac_count 4309 fi 4310 # 10*(2^10) chars as input seems more than enough 4311 test $ac_count -gt 10 && break 4312 done 4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4314esac 4315 4316 $ac_path_FGREP_found && break 3 4317 done 4318 done 4319 done 4320IFS=$as_save_IFS 4321 if test -z "$ac_cv_path_FGREP"; then 4322 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4323 fi 4324else 4325 ac_cv_path_FGREP=$FGREP 4326fi 4327 4328 fi 4329fi 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4331$as_echo "$ac_cv_path_FGREP" >&6; } 4332 FGREP="$ac_cv_path_FGREP" 4333 4334 4335test -z "$GREP" && GREP=grep 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355# Check whether --with-gnu-ld was given. 4356if test "${with_gnu_ld+set}" = set; then : 4357 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4358else 4359 with_gnu_ld=no 4360fi 4361 4362ac_prog=ld 4363if test yes = "$GCC"; then 4364 # Check if gcc -print-prog-name=ld gives a path. 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4366$as_echo_n "checking for ld used by $CC... " >&6; } 4367 case $host in 4368 *-*-mingw*) 4369 # gcc leaves a trailing carriage return, which upsets mingw 4370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4371 *) 4372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4373 esac 4374 case $ac_prog in 4375 # Accept absolute paths. 4376 [\\/]* | ?:[\\/]*) 4377 re_direlt='/[^/][^/]*/\.\./' 4378 # Canonicalize the pathname of ld 4379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4382 done 4383 test -z "$LD" && LD=$ac_prog 4384 ;; 4385 "") 4386 # If it fails, then pretend we aren't using GCC. 4387 ac_prog=ld 4388 ;; 4389 *) 4390 # If it is relative, then search for the first ld in PATH. 4391 with_gnu_ld=unknown 4392 ;; 4393 esac 4394elif test yes = "$with_gnu_ld"; then 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4396$as_echo_n "checking for GNU ld... " >&6; } 4397else 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4399$as_echo_n "checking for non-GNU ld... " >&6; } 4400fi 4401if ${lt_cv_path_LD+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 if test -z "$LD"; then 4405 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4406 for ac_dir in $PATH; do 4407 IFS=$lt_save_ifs 4408 test -z "$ac_dir" && ac_dir=. 4409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4410 lt_cv_path_LD=$ac_dir/$ac_prog 4411 # Check to see if the program is GNU ld. I'd rather use --version, 4412 # but apparently some variants of GNU ld only accept -v. 4413 # Break only if it was the GNU/non-GNU ld that we prefer. 4414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4415 *GNU* | *'with BFD'*) 4416 test no != "$with_gnu_ld" && break 4417 ;; 4418 *) 4419 test yes != "$with_gnu_ld" && break 4420 ;; 4421 esac 4422 fi 4423 done 4424 IFS=$lt_save_ifs 4425else 4426 lt_cv_path_LD=$LD # Let the user override the test with a path. 4427fi 4428fi 4429 4430LD=$lt_cv_path_LD 4431if test -n "$LD"; then 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4433$as_echo "$LD" >&6; } 4434else 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4436$as_echo "no" >&6; } 4437fi 4438test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4441if ${lt_cv_prog_gnu_ld+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4445case `$LD -v 2>&1 </dev/null` in 4446*GNU* | *'with BFD'*) 4447 lt_cv_prog_gnu_ld=yes 4448 ;; 4449*) 4450 lt_cv_prog_gnu_ld=no 4451 ;; 4452esac 4453fi 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4455$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4456with_gnu_ld=$lt_cv_prog_gnu_ld 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4467$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4468if ${lt_cv_path_NM+:} false; then : 4469 $as_echo_n "(cached) " >&6 4470else 4471 if test -n "$NM"; then 4472 # Let the user override the test. 4473 lt_cv_path_NM=$NM 4474else 4475 lt_nm_to_check=${ac_tool_prefix}nm 4476 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4477 lt_nm_to_check="$lt_nm_to_check nm" 4478 fi 4479 for lt_tmp_nm in $lt_nm_to_check; do 4480 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4481 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4482 IFS=$lt_save_ifs 4483 test -z "$ac_dir" && ac_dir=. 4484 tmp_nm=$ac_dir/$lt_tmp_nm 4485 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4486 # Check to see if the nm accepts a BSD-compat flag. 4487 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4488 # nm: unknown option "B" ignored 4489 # Tru64's nm complains that /dev/null is an invalid object file 4490 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4491 case $build_os in 4492 mingw*) lt_bad_file=conftest.nm/nofile ;; 4493 *) lt_bad_file=/dev/null ;; 4494 esac 4495 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4496 *$lt_bad_file* | *'Invalid file or object type'*) 4497 lt_cv_path_NM="$tmp_nm -B" 4498 break 2 4499 ;; 4500 *) 4501 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4502 */dev/null*) 4503 lt_cv_path_NM="$tmp_nm -p" 4504 break 2 4505 ;; 4506 *) 4507 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4508 continue # so that we can try to find one that supports BSD flags 4509 ;; 4510 esac 4511 ;; 4512 esac 4513 fi 4514 done 4515 IFS=$lt_save_ifs 4516 done 4517 : ${lt_cv_path_NM=no} 4518fi 4519fi 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4521$as_echo "$lt_cv_path_NM" >&6; } 4522if test no != "$lt_cv_path_NM"; then 4523 NM=$lt_cv_path_NM 4524else 4525 # Didn't find any BSD compatible name lister, look for dumpbin. 4526 if test -n "$DUMPBIN"; then : 4527 # Let the user override the test. 4528 else 4529 if test -n "$ac_tool_prefix"; then 4530 for ac_prog in dumpbin "link -dump" 4531 do 4532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4533set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4535$as_echo_n "checking for $ac_word... " >&6; } 4536if ${ac_cv_prog_DUMPBIN+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if test -n "$DUMPBIN"; then 4540 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4541else 4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4543for as_dir in $PATH 4544do 4545 IFS=$as_save_IFS 4546 test -z "$as_dir" && as_dir=. 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4549 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4551 break 2 4552 fi 4553done 4554 done 4555IFS=$as_save_IFS 4556 4557fi 4558fi 4559DUMPBIN=$ac_cv_prog_DUMPBIN 4560if test -n "$DUMPBIN"; then 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4562$as_echo "$DUMPBIN" >&6; } 4563else 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4565$as_echo "no" >&6; } 4566fi 4567 4568 4569 test -n "$DUMPBIN" && break 4570 done 4571fi 4572if test -z "$DUMPBIN"; then 4573 ac_ct_DUMPBIN=$DUMPBIN 4574 for ac_prog in dumpbin "link -dump" 4575do 4576 # Extract the first word of "$ac_prog", so it can be a program name with args. 4577set dummy $ac_prog; ac_word=$2 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579$as_echo_n "checking for $ac_word... " >&6; } 4580if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 if test -n "$ac_ct_DUMPBIN"; then 4584 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4585else 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4593 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4595 break 2 4596 fi 4597done 4598 done 4599IFS=$as_save_IFS 4600 4601fi 4602fi 4603ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4604if test -n "$ac_ct_DUMPBIN"; then 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4606$as_echo "$ac_ct_DUMPBIN" >&6; } 4607else 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609$as_echo "no" >&6; } 4610fi 4611 4612 4613 test -n "$ac_ct_DUMPBIN" && break 4614done 4615 4616 if test "x$ac_ct_DUMPBIN" = x; then 4617 DUMPBIN=":" 4618 else 4619 case $cross_compiling:$ac_tool_warned in 4620yes:) 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4623ac_tool_warned=yes ;; 4624esac 4625 DUMPBIN=$ac_ct_DUMPBIN 4626 fi 4627fi 4628 4629 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4630 *COFF*) 4631 DUMPBIN="$DUMPBIN -symbols -headers" 4632 ;; 4633 *) 4634 DUMPBIN=: 4635 ;; 4636 esac 4637 fi 4638 4639 if test : != "$DUMPBIN"; then 4640 NM=$DUMPBIN 4641 fi 4642fi 4643test -z "$NM" && NM=nm 4644 4645 4646 4647 4648 4649 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4651$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4652if ${lt_cv_nm_interface+:} false; then : 4653 $as_echo_n "(cached) " >&6 4654else 4655 lt_cv_nm_interface="BSD nm" 4656 echo "int some_variable = 0;" > conftest.$ac_ext 4657 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4658 (eval "$ac_compile" 2>conftest.err) 4659 cat conftest.err >&5 4660 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4661 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4662 cat conftest.err >&5 4663 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4664 cat conftest.out >&5 4665 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4666 lt_cv_nm_interface="MS dumpbin" 4667 fi 4668 rm -f conftest* 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4671$as_echo "$lt_cv_nm_interface" >&6; } 4672 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4674$as_echo_n "checking whether ln -s works... " >&6; } 4675LN_S=$as_ln_s 4676if test "$LN_S" = "ln -s"; then 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4678$as_echo "yes" >&6; } 4679else 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4681$as_echo "no, using $LN_S" >&6; } 4682fi 4683 4684# find the maximum length of command line arguments 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4686$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4687if ${lt_cv_sys_max_cmd_len+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 i=0 4691 teststring=ABCD 4692 4693 case $build_os in 4694 msdosdjgpp*) 4695 # On DJGPP, this test can blow up pretty badly due to problems in libc 4696 # (any single argument exceeding 2000 bytes causes a buffer overrun 4697 # during glob expansion). Even if it were fixed, the result of this 4698 # check would be larger than it should be. 4699 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4700 ;; 4701 4702 gnu*) 4703 # Under GNU Hurd, this test is not required because there is 4704 # no limit to the length of command line arguments. 4705 # Libtool will interpret -1 as no limit whatsoever 4706 lt_cv_sys_max_cmd_len=-1; 4707 ;; 4708 4709 cygwin* | mingw* | cegcc*) 4710 # On Win9x/ME, this test blows up -- it succeeds, but takes 4711 # about 5 minutes as the teststring grows exponentially. 4712 # Worse, since 9x/ME are not pre-emptively multitasking, 4713 # you end up with a "frozen" computer, even though with patience 4714 # the test eventually succeeds (with a max line length of 256k). 4715 # Instead, let's just punt: use the minimum linelength reported by 4716 # all of the supported platforms: 8192 (on NT/2K/XP). 4717 lt_cv_sys_max_cmd_len=8192; 4718 ;; 4719 4720 mint*) 4721 # On MiNT this can take a long time and run out of memory. 4722 lt_cv_sys_max_cmd_len=8192; 4723 ;; 4724 4725 amigaos*) 4726 # On AmigaOS with pdksh, this test takes hours, literally. 4727 # So we just punt and use a minimum line length of 8192. 4728 lt_cv_sys_max_cmd_len=8192; 4729 ;; 4730 4731 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4732 # This has been around since 386BSD, at least. Likely further. 4733 if test -x /sbin/sysctl; then 4734 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4735 elif test -x /usr/sbin/sysctl; then 4736 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4737 else 4738 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4739 fi 4740 # And add a safety zone 4741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4743 ;; 4744 4745 interix*) 4746 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4747 lt_cv_sys_max_cmd_len=196608 4748 ;; 4749 4750 os2*) 4751 # The test takes a long time on OS/2. 4752 lt_cv_sys_max_cmd_len=8192 4753 ;; 4754 4755 osf*) 4756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4758 # nice to cause kernel panics so lets avoid the loop below. 4759 # First set a reasonable default. 4760 lt_cv_sys_max_cmd_len=16384 4761 # 4762 if test -x /sbin/sysconfig; then 4763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4764 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4765 esac 4766 fi 4767 ;; 4768 sco3.2v5*) 4769 lt_cv_sys_max_cmd_len=102400 4770 ;; 4771 sysv5* | sco5v6* | sysv4.2uw2*) 4772 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4773 if test -n "$kargmax"; then 4774 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4775 else 4776 lt_cv_sys_max_cmd_len=32768 4777 fi 4778 ;; 4779 *) 4780 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4781 if test -n "$lt_cv_sys_max_cmd_len" && \ 4782 test undefined != "$lt_cv_sys_max_cmd_len"; then 4783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4785 else 4786 # Make teststring a little bigger before we do anything with it. 4787 # a 1K string should be a reasonable start. 4788 for i in 1 2 3 4 5 6 7 8; do 4789 teststring=$teststring$teststring 4790 done 4791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4792 # If test is not a shell built-in, we'll probably end up computing a 4793 # maximum length that is only half of the actual maximum length, but 4794 # we can't tell. 4795 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4796 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4797 test 17 != "$i" # 1/2 MB should be enough 4798 do 4799 i=`expr $i + 1` 4800 teststring=$teststring$teststring 4801 done 4802 # Only check the string length outside the loop. 4803 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4804 teststring= 4805 # Add a significant safety factor because C++ compilers can tack on 4806 # massive amounts of additional arguments before passing them to the 4807 # linker. It appears as though 1/2 is a usable value. 4808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4809 fi 4810 ;; 4811 esac 4812 4813fi 4814 4815if test -n "$lt_cv_sys_max_cmd_len"; then 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4817$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4818else 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4820$as_echo "none" >&6; } 4821fi 4822max_cmd_len=$lt_cv_sys_max_cmd_len 4823 4824 4825 4826 4827 4828 4829: ${CP="cp -f"} 4830: ${MV="mv -f"} 4831: ${RM="rm -f"} 4832 4833if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4834 lt_unset=unset 4835else 4836 lt_unset=false 4837fi 4838 4839 4840 4841 4842 4843# test EBCDIC or ASCII 4844case `echo X|tr X '\101'` in 4845 A) # ASCII based system 4846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4847 lt_SP2NL='tr \040 \012' 4848 lt_NL2SP='tr \015\012 \040\040' 4849 ;; 4850 *) # EBCDIC based system 4851 lt_SP2NL='tr \100 \n' 4852 lt_NL2SP='tr \r\n \100\100' 4853 ;; 4854esac 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4865$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4866if ${lt_cv_to_host_file_cmd+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 case $host in 4870 *-*-mingw* ) 4871 case $build in 4872 *-*-mingw* ) # actually msys 4873 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4874 ;; 4875 *-*-cygwin* ) 4876 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4877 ;; 4878 * ) # otherwise, assume *nix 4879 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4880 ;; 4881 esac 4882 ;; 4883 *-*-cygwin* ) 4884 case $build in 4885 *-*-mingw* ) # actually msys 4886 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4887 ;; 4888 *-*-cygwin* ) 4889 lt_cv_to_host_file_cmd=func_convert_file_noop 4890 ;; 4891 * ) # otherwise, assume *nix 4892 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4893 ;; 4894 esac 4895 ;; 4896 * ) # unhandled hosts (and "normal" native builds) 4897 lt_cv_to_host_file_cmd=func_convert_file_noop 4898 ;; 4899esac 4900 4901fi 4902 4903to_host_file_cmd=$lt_cv_to_host_file_cmd 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4905$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4906 4907 4908 4909 4910 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4912$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4913if ${lt_cv_to_tool_file_cmd+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 #assume ordinary cross tools, or native build. 4917lt_cv_to_tool_file_cmd=func_convert_file_noop 4918case $host in 4919 *-*-mingw* ) 4920 case $build in 4921 *-*-mingw* ) # actually msys 4922 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4923 ;; 4924 esac 4925 ;; 4926esac 4927 4928fi 4929 4930to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4932$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4933 4934 4935 4936 4937 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4939$as_echo_n "checking for $LD option to reload object files... " >&6; } 4940if ${lt_cv_ld_reload_flag+:} false; then : 4941 $as_echo_n "(cached) " >&6 4942else 4943 lt_cv_ld_reload_flag='-r' 4944fi 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4946$as_echo "$lt_cv_ld_reload_flag" >&6; } 4947reload_flag=$lt_cv_ld_reload_flag 4948case $reload_flag in 4949"" | " "*) ;; 4950*) reload_flag=" $reload_flag" ;; 4951esac 4952reload_cmds='$LD$reload_flag -o $output$reload_objs' 4953case $host_os in 4954 cygwin* | mingw* | pw32* | cegcc*) 4955 if test yes != "$GCC"; then 4956 reload_cmds=false 4957 fi 4958 ;; 4959 darwin*) 4960 if test yes = "$GCC"; then 4961 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4962 else 4963 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4964 fi 4965 ;; 4966esac 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976if test -n "$ac_tool_prefix"; then 4977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4978set dummy ${ac_tool_prefix}objdump; ac_word=$2 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4980$as_echo_n "checking for $ac_word... " >&6; } 4981if ${ac_cv_prog_OBJDUMP+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 if test -n "$OBJDUMP"; then 4985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4986else 4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4988for as_dir in $PATH 4989do 4990 IFS=$as_save_IFS 4991 test -z "$as_dir" && as_dir=. 4992 for ac_exec_ext in '' $ac_executable_extensions; do 4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4996 break 2 4997 fi 4998done 4999 done 5000IFS=$as_save_IFS 5001 5002fi 5003fi 5004OBJDUMP=$ac_cv_prog_OBJDUMP 5005if test -n "$OBJDUMP"; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5007$as_echo "$OBJDUMP" >&6; } 5008else 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5010$as_echo "no" >&6; } 5011fi 5012 5013 5014fi 5015if test -z "$ac_cv_prog_OBJDUMP"; then 5016 ac_ct_OBJDUMP=$OBJDUMP 5017 # Extract the first word of "objdump", so it can be a program name with args. 5018set dummy objdump; ac_word=$2 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5020$as_echo_n "checking for $ac_word... " >&6; } 5021if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 if test -n "$ac_ct_OBJDUMP"; then 5025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5026else 5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5028for as_dir in $PATH 5029do 5030 IFS=$as_save_IFS 5031 test -z "$as_dir" && as_dir=. 5032 for ac_exec_ext in '' $ac_executable_extensions; do 5033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5034 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5036 break 2 5037 fi 5038done 5039 done 5040IFS=$as_save_IFS 5041 5042fi 5043fi 5044ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5045if test -n "$ac_ct_OBJDUMP"; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5047$as_echo "$ac_ct_OBJDUMP" >&6; } 5048else 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5050$as_echo "no" >&6; } 5051fi 5052 5053 if test "x$ac_ct_OBJDUMP" = x; then 5054 OBJDUMP="false" 5055 else 5056 case $cross_compiling:$ac_tool_warned in 5057yes:) 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5060ac_tool_warned=yes ;; 5061esac 5062 OBJDUMP=$ac_ct_OBJDUMP 5063 fi 5064else 5065 OBJDUMP="$ac_cv_prog_OBJDUMP" 5066fi 5067 5068test -z "$OBJDUMP" && OBJDUMP=objdump 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5079$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5080if ${lt_cv_deplibs_check_method+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 lt_cv_file_magic_cmd='$MAGIC_CMD' 5084lt_cv_file_magic_test_file= 5085lt_cv_deplibs_check_method='unknown' 5086# Need to set the preceding variable on all platforms that support 5087# interlibrary dependencies. 5088# 'none' -- dependencies not supported. 5089# 'unknown' -- same as none, but documents that we really don't know. 5090# 'pass_all' -- all dependencies passed with no checks. 5091# 'test_compile' -- check by making test program. 5092# 'file_magic [[regex]]' -- check by looking for files in library path 5093# that responds to the $file_magic_cmd with a given extended regex. 5094# If you have 'file' or equivalent on your system and you're not sure 5095# whether 'pass_all' will *always* work, you probably want this one. 5096 5097case $host_os in 5098aix[4-9]*) 5099 lt_cv_deplibs_check_method=pass_all 5100 ;; 5101 5102beos*) 5103 lt_cv_deplibs_check_method=pass_all 5104 ;; 5105 5106bsdi[45]*) 5107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5108 lt_cv_file_magic_cmd='/usr/bin/file -L' 5109 lt_cv_file_magic_test_file=/shlib/libc.so 5110 ;; 5111 5112cygwin*) 5113 # func_win32_libid is a shell function defined in ltmain.sh 5114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5115 lt_cv_file_magic_cmd='func_win32_libid' 5116 ;; 5117 5118mingw* | pw32*) 5119 # Base MSYS/MinGW do not provide the 'file' command needed by 5120 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5121 # unless we find 'file', for example because we are cross-compiling. 5122 if ( file / ) >/dev/null 2>&1; then 5123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5124 lt_cv_file_magic_cmd='func_win32_libid' 5125 else 5126 # Keep this pattern in sync with the one in func_win32_libid. 5127 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5128 lt_cv_file_magic_cmd='$OBJDUMP -f' 5129 fi 5130 ;; 5131 5132cegcc*) 5133 # use the weaker test based on 'objdump'. See mingw*. 5134 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5135 lt_cv_file_magic_cmd='$OBJDUMP -f' 5136 ;; 5137 5138darwin* | rhapsody*) 5139 lt_cv_deplibs_check_method=pass_all 5140 ;; 5141 5142freebsd* | dragonfly*) 5143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5144 case $host_cpu in 5145 i*86 ) 5146 # Not sure whether the presence of OpenBSD here was a mistake. 5147 # Let's accept both of them until this is cleared up. 5148 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5149 lt_cv_file_magic_cmd=/usr/bin/file 5150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5151 ;; 5152 esac 5153 else 5154 lt_cv_deplibs_check_method=pass_all 5155 fi 5156 ;; 5157 5158haiku*) 5159 lt_cv_deplibs_check_method=pass_all 5160 ;; 5161 5162hpux10.20* | hpux11*) 5163 lt_cv_file_magic_cmd=/usr/bin/file 5164 case $host_cpu in 5165 ia64*) 5166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5167 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5168 ;; 5169 hppa*64*) 5170 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]' 5171 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5172 ;; 5173 *) 5174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5175 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5176 ;; 5177 esac 5178 ;; 5179 5180interix[3-9]*) 5181 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5183 ;; 5184 5185irix5* | irix6* | nonstopux*) 5186 case $LD in 5187 *-32|*"-32 ") libmagic=32-bit;; 5188 *-n32|*"-n32 ") libmagic=N32;; 5189 *-64|*"-64 ") libmagic=64-bit;; 5190 *) libmagic=never-match;; 5191 esac 5192 lt_cv_deplibs_check_method=pass_all 5193 ;; 5194 5195# This must be glibc/ELF. 5196linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5197 lt_cv_deplibs_check_method=pass_all 5198 ;; 5199 5200netbsd*) 5201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5203 else 5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5205 fi 5206 ;; 5207 5208newos6*) 5209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5210 lt_cv_file_magic_cmd=/usr/bin/file 5211 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5212 ;; 5213 5214*nto* | *qnx*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218openbsd* | bitrig*) 5219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5221 else 5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5223 fi 5224 ;; 5225 5226osf3* | osf4* | osf5*) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230rdos*) 5231 lt_cv_deplibs_check_method=pass_all 5232 ;; 5233 5234solaris*) 5235 lt_cv_deplibs_check_method=pass_all 5236 ;; 5237 5238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5239 lt_cv_deplibs_check_method=pass_all 5240 ;; 5241 5242sysv4 | sysv4.3*) 5243 case $host_vendor in 5244 motorola) 5245 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]' 5246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5247 ;; 5248 ncr) 5249 lt_cv_deplibs_check_method=pass_all 5250 ;; 5251 sequent) 5252 lt_cv_file_magic_cmd='/bin/file' 5253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5254 ;; 5255 sni) 5256 lt_cv_file_magic_cmd='/bin/file' 5257 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5258 lt_cv_file_magic_test_file=/lib/libc.so 5259 ;; 5260 siemens) 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263 pc) 5264 lt_cv_deplibs_check_method=pass_all 5265 ;; 5266 esac 5267 ;; 5268 5269tpf*) 5270 lt_cv_deplibs_check_method=pass_all 5271 ;; 5272os2*) 5273 lt_cv_deplibs_check_method=pass_all 5274 ;; 5275esac 5276 5277fi 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5279$as_echo "$lt_cv_deplibs_check_method" >&6; } 5280 5281file_magic_glob= 5282want_nocaseglob=no 5283if test "$build" = "$host"; then 5284 case $host_os in 5285 mingw* | pw32*) 5286 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5287 want_nocaseglob=yes 5288 else 5289 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5290 fi 5291 ;; 5292 esac 5293fi 5294 5295file_magic_cmd=$lt_cv_file_magic_cmd 5296deplibs_check_method=$lt_cv_deplibs_check_method 5297test -z "$deplibs_check_method" && deplibs_check_method=unknown 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320if test -n "$ac_tool_prefix"; then 5321 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5322set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324$as_echo_n "checking for $ac_word... " >&6; } 5325if ${ac_cv_prog_DLLTOOL+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327else 5328 if test -n "$DLLTOOL"; then 5329 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5330else 5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332for as_dir in $PATH 5333do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_exec_ext in '' $ac_executable_extensions; do 5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5338 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5340 break 2 5341 fi 5342done 5343 done 5344IFS=$as_save_IFS 5345 5346fi 5347fi 5348DLLTOOL=$ac_cv_prog_DLLTOOL 5349if test -n "$DLLTOOL"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5351$as_echo "$DLLTOOL" >&6; } 5352else 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5354$as_echo "no" >&6; } 5355fi 5356 5357 5358fi 5359if test -z "$ac_cv_prog_DLLTOOL"; then 5360 ac_ct_DLLTOOL=$DLLTOOL 5361 # Extract the first word of "dlltool", so it can be a program name with args. 5362set dummy dlltool; ac_word=$2 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364$as_echo_n "checking for $ac_word... " >&6; } 5365if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 if test -n "$ac_ct_DLLTOOL"; then 5369 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5370else 5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372for as_dir in $PATH 5373do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5378 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382done 5383 done 5384IFS=$as_save_IFS 5385 5386fi 5387fi 5388ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5389if test -n "$ac_ct_DLLTOOL"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5391$as_echo "$ac_ct_DLLTOOL" >&6; } 5392else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5394$as_echo "no" >&6; } 5395fi 5396 5397 if test "x$ac_ct_DLLTOOL" = x; then 5398 DLLTOOL="false" 5399 else 5400 case $cross_compiling:$ac_tool_warned in 5401yes:) 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5404ac_tool_warned=yes ;; 5405esac 5406 DLLTOOL=$ac_ct_DLLTOOL 5407 fi 5408else 5409 DLLTOOL="$ac_cv_prog_DLLTOOL" 5410fi 5411 5412test -z "$DLLTOOL" && DLLTOOL=dlltool 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5424$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5425if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 lt_cv_sharedlib_from_linklib_cmd='unknown' 5429 5430case $host_os in 5431cygwin* | mingw* | pw32* | cegcc*) 5432 # two different shell functions defined in ltmain.sh; 5433 # decide which one to use based on capabilities of $DLLTOOL 5434 case `$DLLTOOL --help 2>&1` in 5435 *--identify-strict*) 5436 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5437 ;; 5438 *) 5439 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5440 ;; 5441 esac 5442 ;; 5443*) 5444 # fallback: assume linklib IS sharedlib 5445 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5446 ;; 5447esac 5448 5449fi 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5451$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5452sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5453test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5454 5455 5456 5457 5458 5459 5460 5461 5462if test -n "$ac_tool_prefix"; then 5463 for ac_prog in ar 5464 do 5465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5466set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5468$as_echo_n "checking for $ac_word... " >&6; } 5469if ${ac_cv_prog_AR+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 if test -n "$AR"; then 5473 ac_cv_prog_AR="$AR" # Let the user override the test. 5474else 5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5476for as_dir in $PATH 5477do 5478 IFS=$as_save_IFS 5479 test -z "$as_dir" && as_dir=. 5480 for ac_exec_ext in '' $ac_executable_extensions; do 5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5482 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5484 break 2 5485 fi 5486done 5487 done 5488IFS=$as_save_IFS 5489 5490fi 5491fi 5492AR=$ac_cv_prog_AR 5493if test -n "$AR"; then 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5495$as_echo "$AR" >&6; } 5496else 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5498$as_echo "no" >&6; } 5499fi 5500 5501 5502 test -n "$AR" && break 5503 done 5504fi 5505if test -z "$AR"; then 5506 ac_ct_AR=$AR 5507 for ac_prog in ar 5508do 5509 # Extract the first word of "$ac_prog", so it can be a program name with args. 5510set dummy $ac_prog; ac_word=$2 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5512$as_echo_n "checking for $ac_word... " >&6; } 5513if ${ac_cv_prog_ac_ct_AR+:} false; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 if test -n "$ac_ct_AR"; then 5517 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5518else 5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5520for as_dir in $PATH 5521do 5522 IFS=$as_save_IFS 5523 test -z "$as_dir" && as_dir=. 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5526 ac_cv_prog_ac_ct_AR="$ac_prog" 5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5528 break 2 5529 fi 5530done 5531 done 5532IFS=$as_save_IFS 5533 5534fi 5535fi 5536ac_ct_AR=$ac_cv_prog_ac_ct_AR 5537if test -n "$ac_ct_AR"; then 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5539$as_echo "$ac_ct_AR" >&6; } 5540else 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5542$as_echo "no" >&6; } 5543fi 5544 5545 5546 test -n "$ac_ct_AR" && break 5547done 5548 5549 if test "x$ac_ct_AR" = x; then 5550 AR="false" 5551 else 5552 case $cross_compiling:$ac_tool_warned in 5553yes:) 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5556ac_tool_warned=yes ;; 5557esac 5558 AR=$ac_ct_AR 5559 fi 5560fi 5561 5562: ${AR=ar} 5563: ${AR_FLAGS=cru} 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5576$as_echo_n "checking for archiver @FILE support... " >&6; } 5577if ${lt_cv_ar_at_file+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 lt_cv_ar_at_file=no 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582/* end confdefs.h. */ 5583 5584int 5585main () 5586{ 5587 5588 ; 5589 return 0; 5590} 5591_ACEOF 5592if ac_fn_c_try_compile "$LINENO"; then : 5593 echo conftest.$ac_objext > conftest.lst 5594 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5596 (eval $lt_ar_try) 2>&5 5597 ac_status=$? 5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5599 test $ac_status = 0; } 5600 if test 0 -eq "$ac_status"; then 5601 # Ensure the archiver fails upon bogus file names. 5602 rm -f conftest.$ac_objext libconftest.a 5603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5604 (eval $lt_ar_try) 2>&5 5605 ac_status=$? 5606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5607 test $ac_status = 0; } 5608 if test 0 -ne "$ac_status"; then 5609 lt_cv_ar_at_file=@ 5610 fi 5611 fi 5612 rm -f conftest.* libconftest.a 5613 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616 5617fi 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5619$as_echo "$lt_cv_ar_at_file" >&6; } 5620 5621if test no = "$lt_cv_ar_at_file"; then 5622 archiver_list_spec= 5623else 5624 archiver_list_spec=$lt_cv_ar_at_file 5625fi 5626 5627 5628 5629 5630 5631 5632 5633if test -n "$ac_tool_prefix"; then 5634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5635set dummy ${ac_tool_prefix}strip; ac_word=$2 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5637$as_echo_n "checking for $ac_word... " >&6; } 5638if ${ac_cv_prog_STRIP+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 if test -n "$STRIP"; then 5642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5643else 5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5645for as_dir in $PATH 5646do 5647 IFS=$as_save_IFS 5648 test -z "$as_dir" && as_dir=. 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5651 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5653 break 2 5654 fi 5655done 5656 done 5657IFS=$as_save_IFS 5658 5659fi 5660fi 5661STRIP=$ac_cv_prog_STRIP 5662if test -n "$STRIP"; then 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5664$as_echo "$STRIP" >&6; } 5665else 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5667$as_echo "no" >&6; } 5668fi 5669 5670 5671fi 5672if test -z "$ac_cv_prog_STRIP"; then 5673 ac_ct_STRIP=$STRIP 5674 # Extract the first word of "strip", so it can be a program name with args. 5675set dummy strip; ac_word=$2 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5677$as_echo_n "checking for $ac_word... " >&6; } 5678if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 if test -n "$ac_ct_STRIP"; then 5682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5683else 5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5685for as_dir in $PATH 5686do 5687 IFS=$as_save_IFS 5688 test -z "$as_dir" && as_dir=. 5689 for ac_exec_ext in '' $ac_executable_extensions; do 5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5691 ac_cv_prog_ac_ct_STRIP="strip" 5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5693 break 2 5694 fi 5695done 5696 done 5697IFS=$as_save_IFS 5698 5699fi 5700fi 5701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5702if test -n "$ac_ct_STRIP"; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5704$as_echo "$ac_ct_STRIP" >&6; } 5705else 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5707$as_echo "no" >&6; } 5708fi 5709 5710 if test "x$ac_ct_STRIP" = x; then 5711 STRIP=":" 5712 else 5713 case $cross_compiling:$ac_tool_warned in 5714yes:) 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5717ac_tool_warned=yes ;; 5718esac 5719 STRIP=$ac_ct_STRIP 5720 fi 5721else 5722 STRIP="$ac_cv_prog_STRIP" 5723fi 5724 5725test -z "$STRIP" && STRIP=: 5726 5727 5728 5729 5730 5731 5732if test -n "$ac_tool_prefix"; then 5733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5734set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5736$as_echo_n "checking for $ac_word... " >&6; } 5737if ${ac_cv_prog_RANLIB+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739else 5740 if test -n "$RANLIB"; then 5741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5742else 5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744for as_dir in $PATH 5745do 5746 IFS=$as_save_IFS 5747 test -z "$as_dir" && as_dir=. 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755 done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760RANLIB=$ac_cv_prog_RANLIB 5761if test -n "$RANLIB"; then 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5763$as_echo "$RANLIB" >&6; } 5764else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766$as_echo "no" >&6; } 5767fi 5768 5769 5770fi 5771if test -z "$ac_cv_prog_RANLIB"; then 5772 ac_ct_RANLIB=$RANLIB 5773 # Extract the first word of "ranlib", so it can be a program name with args. 5774set dummy ranlib; ac_word=$2 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5776$as_echo_n "checking for $ac_word... " >&6; } 5777if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 if test -n "$ac_ct_RANLIB"; then 5781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5782else 5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784for as_dir in $PATH 5785do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_exec_ext in '' $ac_executable_extensions; do 5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5790 ac_cv_prog_ac_ct_RANLIB="ranlib" 5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5792 break 2 5793 fi 5794done 5795 done 5796IFS=$as_save_IFS 5797 5798fi 5799fi 5800ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5801if test -n "$ac_ct_RANLIB"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5803$as_echo "$ac_ct_RANLIB" >&6; } 5804else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5806$as_echo "no" >&6; } 5807fi 5808 5809 if test "x$ac_ct_RANLIB" = x; then 5810 RANLIB=":" 5811 else 5812 case $cross_compiling:$ac_tool_warned in 5813yes:) 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5816ac_tool_warned=yes ;; 5817esac 5818 RANLIB=$ac_ct_RANLIB 5819 fi 5820else 5821 RANLIB="$ac_cv_prog_RANLIB" 5822fi 5823 5824test -z "$RANLIB" && RANLIB=: 5825 5826 5827 5828 5829 5830 5831# Determine commands to create old-style static archives. 5832old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5833old_postinstall_cmds='chmod 644 $oldlib' 5834old_postuninstall_cmds= 5835 5836if test -n "$RANLIB"; then 5837 case $host_os in 5838 bitrig* | openbsd*) 5839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5840 ;; 5841 *) 5842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5843 ;; 5844 esac 5845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5846fi 5847 5848case $host_os in 5849 darwin*) 5850 lock_old_archive_extraction=yes ;; 5851 *) 5852 lock_old_archive_extraction=no ;; 5853esac 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893# If no C compiler was specified, use CC. 5894LTCC=${LTCC-"$CC"} 5895 5896# If no C compiler flags were specified, use CFLAGS. 5897LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5898 5899# Allow CC to be a program name with arguments. 5900compiler=$CC 5901 5902 5903# Check for command to grab the raw symbol name followed by C symbol from nm. 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5905$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5906if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 5910# These are sane defaults that work on at least a few old systems. 5911# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5912 5913# Character class describing NM global symbol codes. 5914symcode='[BCDEGRST]' 5915 5916# Regexp to match symbols that can be accessed directly from C. 5917sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5918 5919# Define system-specific variables. 5920case $host_os in 5921aix*) 5922 symcode='[BCDT]' 5923 ;; 5924cygwin* | mingw* | pw32* | cegcc*) 5925 symcode='[ABCDGISTW]' 5926 ;; 5927hpux*) 5928 if test ia64 = "$host_cpu"; then 5929 symcode='[ABCDEGRST]' 5930 fi 5931 ;; 5932irix* | nonstopux*) 5933 symcode='[BCDEGRST]' 5934 ;; 5935osf*) 5936 symcode='[BCDEGQRST]' 5937 ;; 5938solaris*) 5939 symcode='[BDRT]' 5940 ;; 5941sco3.2v5*) 5942 symcode='[DT]' 5943 ;; 5944sysv4.2uw2*) 5945 symcode='[DT]' 5946 ;; 5947sysv5* | sco5v6* | unixware* | OpenUNIX*) 5948 symcode='[ABDT]' 5949 ;; 5950sysv4) 5951 symcode='[DFNSTU]' 5952 ;; 5953esac 5954 5955# If we're using GNU nm, then use its standard symbol codes. 5956case `$NM -V 2>&1` in 5957*GNU* | *'with BFD'*) 5958 symcode='[ABCDGIRSTW]' ;; 5959esac 5960 5961if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5962 # Gets list of data symbols to import. 5963 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5964 # Adjust the below global symbol transforms to fixup imported variables. 5965 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5966 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5967 lt_c_name_lib_hook="\ 5968 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5969 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5970else 5971 # Disable hooks by default. 5972 lt_cv_sys_global_symbol_to_import= 5973 lt_cdecl_hook= 5974 lt_c_name_hook= 5975 lt_c_name_lib_hook= 5976fi 5977 5978# Transform an extracted symbol line into a proper C declaration. 5979# Some systems (esp. on ia64) link data and code symbols differently, 5980# so use this general approach. 5981lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5982$lt_cdecl_hook\ 5983" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5984" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5985 5986# Transform an extracted symbol line into symbol name and symbol address 5987lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5988$lt_c_name_hook\ 5989" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5990" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5991 5992# Transform an extracted symbol line into symbol name with lib prefix and 5993# symbol address. 5994lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5995$lt_c_name_lib_hook\ 5996" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5997" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5998" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5999 6000# Handle CRLF in mingw tool chain 6001opt_cr= 6002case $build_os in 6003mingw*) 6004 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6005 ;; 6006esac 6007 6008# Try without a prefix underscore, then with it. 6009for ac_symprfx in "" "_"; do 6010 6011 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6012 symxfrm="\\1 $ac_symprfx\\2 \\2" 6013 6014 # Write the raw and C identifiers. 6015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6016 # Fake it for dumpbin and say T for any non-static function, 6017 # D for any global variable and I for any imported variable. 6018 # Also find C++ and __fastcall symbols from MSVC++, 6019 # which start with @ or ?. 6020 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6021" {last_section=section; section=\$ 3};"\ 6022" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6023" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6024" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6025" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6026" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6027" \$ 0!~/External *\|/{next};"\ 6028" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6029" {if(hide[section]) next};"\ 6030" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6031" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6032" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6033" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6034" ' prfx=^$ac_symprfx" 6035 else 6036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6037 fi 6038 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6039 6040 # Check to see that the pipe works correctly. 6041 pipe_works=no 6042 6043 rm -f conftest* 6044 cat > conftest.$ac_ext <<_LT_EOF 6045#ifdef __cplusplus 6046extern "C" { 6047#endif 6048char nm_test_var; 6049void nm_test_func(void); 6050void nm_test_func(void){} 6051#ifdef __cplusplus 6052} 6053#endif 6054int main(){nm_test_var='a';nm_test_func();return(0);} 6055_LT_EOF 6056 6057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6058 (eval $ac_compile) 2>&5 6059 ac_status=$? 6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6061 test $ac_status = 0; }; then 6062 # Now try to grab the symbols. 6063 nlist=conftest.nm 6064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6066 ac_status=$? 6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6068 test $ac_status = 0; } && test -s "$nlist"; then 6069 # Try sorting and uniquifying the output. 6070 if sort "$nlist" | uniq > "$nlist"T; then 6071 mv -f "$nlist"T "$nlist" 6072 else 6073 rm -f "$nlist"T 6074 fi 6075 6076 # Make sure that we snagged all the symbols we need. 6077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6079 cat <<_LT_EOF > conftest.$ac_ext 6080/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6081#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6082/* DATA imports from DLLs on WIN32 can't be const, because runtime 6083 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6084# define LT_DLSYM_CONST 6085#elif defined __osf__ 6086/* This system does not cope well with relocations in const data. */ 6087# define LT_DLSYM_CONST 6088#else 6089# define LT_DLSYM_CONST const 6090#endif 6091 6092#ifdef __cplusplus 6093extern "C" { 6094#endif 6095 6096_LT_EOF 6097 # Now generate the symbol file. 6098 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6099 6100 cat <<_LT_EOF >> conftest.$ac_ext 6101 6102/* The mapping between symbol names and symbols. */ 6103LT_DLSYM_CONST struct { 6104 const char *name; 6105 void *address; 6106} 6107lt__PROGRAM__LTX_preloaded_symbols[] = 6108{ 6109 { "@PROGRAM@", (void *) 0 }, 6110_LT_EOF 6111 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6112 cat <<\_LT_EOF >> conftest.$ac_ext 6113 {0, (void *) 0} 6114}; 6115 6116/* This works around a problem in FreeBSD linker */ 6117#ifdef FREEBSD_WORKAROUND 6118static const void *lt_preloaded_setup() { 6119 return lt__PROGRAM__LTX_preloaded_symbols; 6120} 6121#endif 6122 6123#ifdef __cplusplus 6124} 6125#endif 6126_LT_EOF 6127 # Now try linking the two files. 6128 mv conftest.$ac_objext conftstm.$ac_objext 6129 lt_globsym_save_LIBS=$LIBS 6130 lt_globsym_save_CFLAGS=$CFLAGS 6131 LIBS=conftstm.$ac_objext 6132 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6134 (eval $ac_link) 2>&5 6135 ac_status=$? 6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6137 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6138 pipe_works=yes 6139 fi 6140 LIBS=$lt_globsym_save_LIBS 6141 CFLAGS=$lt_globsym_save_CFLAGS 6142 else 6143 echo "cannot find nm_test_func in $nlist" >&5 6144 fi 6145 else 6146 echo "cannot find nm_test_var in $nlist" >&5 6147 fi 6148 else 6149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6150 fi 6151 else 6152 echo "$progname: failed program was:" >&5 6153 cat conftest.$ac_ext >&5 6154 fi 6155 rm -rf conftest* conftst* 6156 6157 # Do not use the global_symbol_pipe unless it works. 6158 if test yes = "$pipe_works"; then 6159 break 6160 else 6161 lt_cv_sys_global_symbol_pipe= 6162 fi 6163done 6164 6165fi 6166 6167if test -z "$lt_cv_sys_global_symbol_pipe"; then 6168 lt_cv_sys_global_symbol_to_cdecl= 6169fi 6170if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6172$as_echo "failed" >&6; } 6173else 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6175$as_echo "ok" >&6; } 6176fi 6177 6178# Response file support. 6179if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6180 nm_file_list_spec='@' 6181elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6182 nm_file_list_spec='@' 6183fi 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6222$as_echo_n "checking for sysroot... " >&6; } 6223 6224# Check whether --with-sysroot was given. 6225if test "${with_sysroot+set}" = set; then : 6226 withval=$with_sysroot; 6227else 6228 with_sysroot=no 6229fi 6230 6231 6232lt_sysroot= 6233case $with_sysroot in #( 6234 yes) 6235 if test yes = "$GCC"; then 6236 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6237 fi 6238 ;; #( 6239 /*) 6240 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6241 ;; #( 6242 no|'') 6243 ;; #( 6244 *) 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6246$as_echo "$with_sysroot" >&6; } 6247 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6248 ;; 6249esac 6250 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6252$as_echo "${lt_sysroot:-no}" >&6; } 6253 6254 6255 6256 6257 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6259$as_echo_n "checking for a working dd... " >&6; } 6260if ${ac_cv_path_lt_DD+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 printf 0123456789abcdef0123456789abcdef >conftest.i 6264cat conftest.i conftest.i >conftest2.i 6265: ${lt_DD:=$DD} 6266if test -z "$lt_DD"; then 6267 ac_path_lt_DD_found=false 6268 # Loop through the user's path and test for each of PROGNAME-LIST 6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270for as_dir in $PATH 6271do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_prog in dd; do 6275 for ac_exec_ext in '' $ac_executable_extensions; do 6276 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6277 as_fn_executable_p "$ac_path_lt_DD" || continue 6278if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6279 cmp -s conftest.i conftest.out \ 6280 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6281fi 6282 $ac_path_lt_DD_found && break 3 6283 done 6284 done 6285 done 6286IFS=$as_save_IFS 6287 if test -z "$ac_cv_path_lt_DD"; then 6288 : 6289 fi 6290else 6291 ac_cv_path_lt_DD=$lt_DD 6292fi 6293 6294rm -f conftest.i conftest2.i conftest.out 6295fi 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6297$as_echo "$ac_cv_path_lt_DD" >&6; } 6298 6299 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6301$as_echo_n "checking how to truncate binary pipes... " >&6; } 6302if ${lt_cv_truncate_bin+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 printf 0123456789abcdef0123456789abcdef >conftest.i 6306cat conftest.i conftest.i >conftest2.i 6307lt_cv_truncate_bin= 6308if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6309 cmp -s conftest.i conftest.out \ 6310 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6311fi 6312rm -f conftest.i conftest2.i conftest.out 6313test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6314fi 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6316$as_echo "$lt_cv_truncate_bin" >&6; } 6317 6318 6319 6320 6321 6322 6323 6324# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6325func_cc_basename () 6326{ 6327 for cc_temp in $*""; do 6328 case $cc_temp in 6329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6331 \-*) ;; 6332 *) break;; 6333 esac 6334 done 6335 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6336} 6337 6338# Check whether --enable-libtool-lock was given. 6339if test "${enable_libtool_lock+set}" = set; then : 6340 enableval=$enable_libtool_lock; 6341fi 6342 6343test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6344 6345# Some flags need to be propagated to the compiler or linker for good 6346# libtool support. 6347case $host in 6348ia64-*-hpux*) 6349 # Find out what ABI is being produced by ac_compile, and set mode 6350 # options accordingly. 6351 echo 'int i;' > conftest.$ac_ext 6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6353 (eval $ac_compile) 2>&5 6354 ac_status=$? 6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6356 test $ac_status = 0; }; then 6357 case `/usr/bin/file conftest.$ac_objext` in 6358 *ELF-32*) 6359 HPUX_IA64_MODE=32 6360 ;; 6361 *ELF-64*) 6362 HPUX_IA64_MODE=64 6363 ;; 6364 esac 6365 fi 6366 rm -rf conftest* 6367 ;; 6368*-*-irix6*) 6369 # Find out what ABI is being produced by ac_compile, and set linker 6370 # options accordingly. 6371 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6373 (eval $ac_compile) 2>&5 6374 ac_status=$? 6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6376 test $ac_status = 0; }; then 6377 if test yes = "$lt_cv_prog_gnu_ld"; then 6378 case `/usr/bin/file conftest.$ac_objext` in 6379 *32-bit*) 6380 LD="${LD-ld} -melf32bsmip" 6381 ;; 6382 *N32*) 6383 LD="${LD-ld} -melf32bmipn32" 6384 ;; 6385 *64-bit*) 6386 LD="${LD-ld} -melf64bmip" 6387 ;; 6388 esac 6389 else 6390 case `/usr/bin/file conftest.$ac_objext` in 6391 *32-bit*) 6392 LD="${LD-ld} -32" 6393 ;; 6394 *N32*) 6395 LD="${LD-ld} -n32" 6396 ;; 6397 *64-bit*) 6398 LD="${LD-ld} -64" 6399 ;; 6400 esac 6401 fi 6402 fi 6403 rm -rf conftest* 6404 ;; 6405 6406mips64*-*linux*) 6407 # Find out what ABI is being produced by ac_compile, and set linker 6408 # options accordingly. 6409 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6411 (eval $ac_compile) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; }; then 6415 emul=elf 6416 case `/usr/bin/file conftest.$ac_objext` in 6417 *32-bit*) 6418 emul="${emul}32" 6419 ;; 6420 *64-bit*) 6421 emul="${emul}64" 6422 ;; 6423 esac 6424 case `/usr/bin/file conftest.$ac_objext` in 6425 *MSB*) 6426 emul="${emul}btsmip" 6427 ;; 6428 *LSB*) 6429 emul="${emul}ltsmip" 6430 ;; 6431 esac 6432 case `/usr/bin/file conftest.$ac_objext` in 6433 *N32*) 6434 emul="${emul}n32" 6435 ;; 6436 esac 6437 LD="${LD-ld} -m $emul" 6438 fi 6439 rm -rf conftest* 6440 ;; 6441 6442x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6443s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6444 # Find out what ABI is being produced by ac_compile, and set linker 6445 # options accordingly. Note that the listed cases only cover the 6446 # situations where additional linker options are needed (such as when 6447 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6448 # vice versa); the common cases where no linker options are needed do 6449 # not appear in the list. 6450 echo 'int i;' > conftest.$ac_ext 6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6452 (eval $ac_compile) 2>&5 6453 ac_status=$? 6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6455 test $ac_status = 0; }; then 6456 case `/usr/bin/file conftest.o` in 6457 *32-bit*) 6458 case $host in 6459 x86_64-*kfreebsd*-gnu) 6460 LD="${LD-ld} -m elf_i386_fbsd" 6461 ;; 6462 x86_64-*linux*) 6463 case `/usr/bin/file conftest.o` in 6464 *x86-64*) 6465 LD="${LD-ld} -m elf32_x86_64" 6466 ;; 6467 *) 6468 LD="${LD-ld} -m elf_i386" 6469 ;; 6470 esac 6471 ;; 6472 powerpc64le-*linux*) 6473 LD="${LD-ld} -m elf32lppclinux" 6474 ;; 6475 powerpc64-*linux*) 6476 LD="${LD-ld} -m elf32ppclinux" 6477 ;; 6478 s390x-*linux*) 6479 LD="${LD-ld} -m elf_s390" 6480 ;; 6481 sparc64-*linux*) 6482 LD="${LD-ld} -m elf32_sparc" 6483 ;; 6484 esac 6485 ;; 6486 *64-bit*) 6487 case $host in 6488 x86_64-*kfreebsd*-gnu) 6489 LD="${LD-ld} -m elf_x86_64_fbsd" 6490 ;; 6491 x86_64-*linux*) 6492 LD="${LD-ld} -m elf_x86_64" 6493 ;; 6494 powerpcle-*linux*) 6495 LD="${LD-ld} -m elf64lppc" 6496 ;; 6497 powerpc-*linux*) 6498 LD="${LD-ld} -m elf64ppc" 6499 ;; 6500 s390*-*linux*|s390*-*tpf*) 6501 LD="${LD-ld} -m elf64_s390" 6502 ;; 6503 sparc*-*linux*) 6504 LD="${LD-ld} -m elf64_sparc" 6505 ;; 6506 esac 6507 ;; 6508 esac 6509 fi 6510 rm -rf conftest* 6511 ;; 6512 6513*-*-sco3.2v5*) 6514 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6515 SAVE_CFLAGS=$CFLAGS 6516 CFLAGS="$CFLAGS -belf" 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6518$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6519if ${lt_cv_cc_needs_belf+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521else 6522 ac_ext=c 6523ac_cpp='$CPP $CPPFLAGS' 6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6526ac_compiler_gnu=$ac_cv_c_compiler_gnu 6527 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530 6531int 6532main () 6533{ 6534 6535 ; 6536 return 0; 6537} 6538_ACEOF 6539if ac_fn_c_try_link "$LINENO"; then : 6540 lt_cv_cc_needs_belf=yes 6541else 6542 lt_cv_cc_needs_belf=no 6543fi 6544rm -f core conftest.err conftest.$ac_objext \ 6545 conftest$ac_exeext conftest.$ac_ext 6546 ac_ext=c 6547ac_cpp='$CPP $CPPFLAGS' 6548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6550ac_compiler_gnu=$ac_cv_c_compiler_gnu 6551 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6554$as_echo "$lt_cv_cc_needs_belf" >&6; } 6555 if test yes != "$lt_cv_cc_needs_belf"; then 6556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6557 CFLAGS=$SAVE_CFLAGS 6558 fi 6559 ;; 6560*-*solaris*) 6561 # Find out what ABI is being produced by ac_compile, and set linker 6562 # options accordingly. 6563 echo 'int i;' > conftest.$ac_ext 6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6565 (eval $ac_compile) 2>&5 6566 ac_status=$? 6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6568 test $ac_status = 0; }; then 6569 case `/usr/bin/file conftest.o` in 6570 *64-bit*) 6571 case $lt_cv_prog_gnu_ld in 6572 yes*) 6573 case $host in 6574 i?86-*-solaris*|x86_64-*-solaris*) 6575 LD="${LD-ld} -m elf_x86_64" 6576 ;; 6577 sparc*-*-solaris*) 6578 LD="${LD-ld} -m elf64_sparc" 6579 ;; 6580 esac 6581 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6582 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6583 LD=${LD-ld}_sol2 6584 fi 6585 ;; 6586 *) 6587 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6588 LD="${LD-ld} -64" 6589 fi 6590 ;; 6591 esac 6592 ;; 6593 esac 6594 fi 6595 rm -rf conftest* 6596 ;; 6597esac 6598 6599need_locks=$enable_libtool_lock 6600 6601if test -n "$ac_tool_prefix"; then 6602 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6603set dummy ${ac_tool_prefix}mt; ac_word=$2 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6605$as_echo_n "checking for $ac_word... " >&6; } 6606if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 if test -n "$MANIFEST_TOOL"; then 6610 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6619 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624 done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6630if test -n "$MANIFEST_TOOL"; then 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6632$as_echo "$MANIFEST_TOOL" >&6; } 6633else 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6635$as_echo "no" >&6; } 6636fi 6637 6638 6639fi 6640if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6641 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6642 # Extract the first word of "mt", so it can be a program name with args. 6643set dummy mt; ac_word=$2 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645$as_echo_n "checking for $ac_word... " >&6; } 6646if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 if test -n "$ac_ct_MANIFEST_TOOL"; then 6650 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6651else 6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6653for as_dir in $PATH 6654do 6655 IFS=$as_save_IFS 6656 test -z "$as_dir" && as_dir=. 6657 for ac_exec_ext in '' $ac_executable_extensions; do 6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6659 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6661 break 2 6662 fi 6663done 6664 done 6665IFS=$as_save_IFS 6666 6667fi 6668fi 6669ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6670if test -n "$ac_ct_MANIFEST_TOOL"; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6672$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; } 6676fi 6677 6678 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6679 MANIFEST_TOOL=":" 6680 else 6681 case $cross_compiling:$ac_tool_warned in 6682yes:) 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6685ac_tool_warned=yes ;; 6686esac 6687 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6688 fi 6689else 6690 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6691fi 6692 6693test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6695$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6696if ${lt_cv_path_mainfest_tool+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 lt_cv_path_mainfest_tool=no 6700 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6701 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6702 cat conftest.err >&5 6703 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6704 lt_cv_path_mainfest_tool=yes 6705 fi 6706 rm -f conftest* 6707fi 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6709$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6710if test yes != "$lt_cv_path_mainfest_tool"; then 6711 MANIFEST_TOOL=: 6712fi 6713 6714 6715 6716 6717 6718 6719 case $host_os in 6720 rhapsody* | darwin*) 6721 if test -n "$ac_tool_prefix"; then 6722 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6723set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725$as_echo_n "checking for $ac_word... " >&6; } 6726if ${ac_cv_prog_DSYMUTIL+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 if test -n "$DSYMUTIL"; then 6730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6731else 6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747fi 6748fi 6749DSYMUTIL=$ac_cv_prog_DSYMUTIL 6750if test -n "$DSYMUTIL"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6752$as_echo "$DSYMUTIL" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755$as_echo "no" >&6; } 6756fi 6757 6758 6759fi 6760if test -z "$ac_cv_prog_DSYMUTIL"; then 6761 ac_ct_DSYMUTIL=$DSYMUTIL 6762 # Extract the first word of "dsymutil", so it can be a program name with args. 6763set dummy dsymutil; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$ac_ct_DSYMUTIL"; then 6770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6790if test -n "$ac_ct_DSYMUTIL"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6792$as_echo "$ac_ct_DSYMUTIL" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 if test "x$ac_ct_DSYMUTIL" = x; then 6799 DSYMUTIL=":" 6800 else 6801 case $cross_compiling:$ac_tool_warned in 6802yes:) 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6805ac_tool_warned=yes ;; 6806esac 6807 DSYMUTIL=$ac_ct_DSYMUTIL 6808 fi 6809else 6810 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6811fi 6812 6813 if test -n "$ac_tool_prefix"; then 6814 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6815set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817$as_echo_n "checking for $ac_word... " >&6; } 6818if ${ac_cv_prog_NMEDIT+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 if test -n "$NMEDIT"; then 6822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6823else 6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi 6840fi 6841NMEDIT=$ac_cv_prog_NMEDIT 6842if test -n "$NMEDIT"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6844$as_echo "$NMEDIT" >&6; } 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848fi 6849 6850 6851fi 6852if test -z "$ac_cv_prog_NMEDIT"; then 6853 ac_ct_NMEDIT=$NMEDIT 6854 # Extract the first word of "nmedit", so it can be a program name with args. 6855set dummy nmedit; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$ac_ct_NMEDIT"; then 6862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6871 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6882if test -n "$ac_ct_NMEDIT"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6884$as_echo "$ac_ct_NMEDIT" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 if test "x$ac_ct_NMEDIT" = x; then 6891 NMEDIT=":" 6892 else 6893 case $cross_compiling:$ac_tool_warned in 6894yes:) 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6897ac_tool_warned=yes ;; 6898esac 6899 NMEDIT=$ac_ct_NMEDIT 6900 fi 6901else 6902 NMEDIT="$ac_cv_prog_NMEDIT" 6903fi 6904 6905 if test -n "$ac_tool_prefix"; then 6906 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6907set dummy ${ac_tool_prefix}lipo; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_prog_LIPO+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$LIPO"; then 6914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933LIPO=$ac_cv_prog_LIPO 6934if test -n "$LIPO"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6936$as_echo "$LIPO" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 6943fi 6944if test -z "$ac_cv_prog_LIPO"; then 6945 ac_ct_LIPO=$LIPO 6946 # Extract the first word of "lipo", so it can be a program name with args. 6947set dummy lipo; ac_word=$2 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949$as_echo_n "checking for $ac_word... " >&6; } 6950if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 if test -n "$ac_ct_LIPO"; then 6954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6955else 6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6963 ac_cv_prog_ac_ct_LIPO="lipo" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971fi 6972fi 6973ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6974if test -n "$ac_ct_LIPO"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6976$as_echo "$ac_ct_LIPO" >&6; } 6977else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979$as_echo "no" >&6; } 6980fi 6981 6982 if test "x$ac_ct_LIPO" = x; then 6983 LIPO=":" 6984 else 6985 case $cross_compiling:$ac_tool_warned in 6986yes:) 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6989ac_tool_warned=yes ;; 6990esac 6991 LIPO=$ac_ct_LIPO 6992 fi 6993else 6994 LIPO="$ac_cv_prog_LIPO" 6995fi 6996 6997 if test -n "$ac_tool_prefix"; then 6998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6999set dummy ${ac_tool_prefix}otool; ac_word=$2 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7001$as_echo_n "checking for $ac_word... " >&6; } 7002if ${ac_cv_prog_OTOOL+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 if test -n "$OTOOL"; then 7006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7007else 7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009for as_dir in $PATH 7010do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019done 7020 done 7021IFS=$as_save_IFS 7022 7023fi 7024fi 7025OTOOL=$ac_cv_prog_OTOOL 7026if test -n "$OTOOL"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7028$as_echo "$OTOOL" >&6; } 7029else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031$as_echo "no" >&6; } 7032fi 7033 7034 7035fi 7036if test -z "$ac_cv_prog_OTOOL"; then 7037 ac_ct_OTOOL=$OTOOL 7038 # Extract the first word of "otool", so it can be a program name with args. 7039set dummy otool; ac_word=$2 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7041$as_echo_n "checking for $ac_word... " >&6; } 7042if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 if test -n "$ac_ct_OTOOL"; then 7046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7047else 7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7049for as_dir in $PATH 7050do 7051 IFS=$as_save_IFS 7052 test -z "$as_dir" && as_dir=. 7053 for ac_exec_ext in '' $ac_executable_extensions; do 7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7055 ac_cv_prog_ac_ct_OTOOL="otool" 7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7057 break 2 7058 fi 7059done 7060 done 7061IFS=$as_save_IFS 7062 7063fi 7064fi 7065ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7066if test -n "$ac_ct_OTOOL"; then 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7068$as_echo "$ac_ct_OTOOL" >&6; } 7069else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071$as_echo "no" >&6; } 7072fi 7073 7074 if test "x$ac_ct_OTOOL" = x; then 7075 OTOOL=":" 7076 else 7077 case $cross_compiling:$ac_tool_warned in 7078yes:) 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7081ac_tool_warned=yes ;; 7082esac 7083 OTOOL=$ac_ct_OTOOL 7084 fi 7085else 7086 OTOOL="$ac_cv_prog_OTOOL" 7087fi 7088 7089 if test -n "$ac_tool_prefix"; then 7090 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7091set dummy ${ac_tool_prefix}otool64; ac_word=$2 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093$as_echo_n "checking for $ac_word... " >&6; } 7094if ${ac_cv_prog_OTOOL64+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test -n "$OTOOL64"; then 7098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7099else 7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101for as_dir in $PATH 7102do 7103 IFS=$as_save_IFS 7104 test -z "$as_dir" && as_dir=. 7105 for ac_exec_ext in '' $ac_executable_extensions; do 7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7109 break 2 7110 fi 7111done 7112 done 7113IFS=$as_save_IFS 7114 7115fi 7116fi 7117OTOOL64=$ac_cv_prog_OTOOL64 7118if test -n "$OTOOL64"; then 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7120$as_echo "$OTOOL64" >&6; } 7121else 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123$as_echo "no" >&6; } 7124fi 7125 7126 7127fi 7128if test -z "$ac_cv_prog_OTOOL64"; then 7129 ac_ct_OTOOL64=$OTOOL64 7130 # Extract the first word of "otool64", so it can be a program name with args. 7131set dummy otool64; ac_word=$2 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7133$as_echo_n "checking for $ac_word... " >&6; } 7134if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 if test -n "$ac_ct_OTOOL64"; then 7138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7139else 7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141for as_dir in $PATH 7142do 7143 IFS=$as_save_IFS 7144 test -z "$as_dir" && as_dir=. 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7147 ac_cv_prog_ac_ct_OTOOL64="otool64" 7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7149 break 2 7150 fi 7151done 7152 done 7153IFS=$as_save_IFS 7154 7155fi 7156fi 7157ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7158if test -n "$ac_ct_OTOOL64"; then 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7160$as_echo "$ac_ct_OTOOL64" >&6; } 7161else 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163$as_echo "no" >&6; } 7164fi 7165 7166 if test "x$ac_ct_OTOOL64" = x; then 7167 OTOOL64=":" 7168 else 7169 case $cross_compiling:$ac_tool_warned in 7170yes:) 7171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7173ac_tool_warned=yes ;; 7174esac 7175 OTOOL64=$ac_ct_OTOOL64 7176 fi 7177else 7178 OTOOL64="$ac_cv_prog_OTOOL64" 7179fi 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7208$as_echo_n "checking for -single_module linker flag... " >&6; } 7209if ${lt_cv_apple_cc_single_mod+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 lt_cv_apple_cc_single_mod=no 7213 if test -z "$LT_MULTI_MODULE"; then 7214 # By default we will add the -single_module flag. You can override 7215 # by either setting the environment variable LT_MULTI_MODULE 7216 # non-empty at configure time, or by adding -multi_module to the 7217 # link flags. 7218 rm -rf libconftest.dylib* 7219 echo "int foo(void){return 1;}" > conftest.c 7220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7221-dynamiclib -Wl,-single_module conftest.c" >&5 7222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7224 _lt_result=$? 7225 # If there is a non-empty error log, and "single_module" 7226 # appears in it, assume the flag caused a linker warning 7227 if test -s conftest.err && $GREP single_module conftest.err; then 7228 cat conftest.err >&5 7229 # Otherwise, if the output was created with a 0 exit code from 7230 # the compiler, it worked. 7231 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7232 lt_cv_apple_cc_single_mod=yes 7233 else 7234 cat conftest.err >&5 7235 fi 7236 rm -rf libconftest.dylib* 7237 rm -f conftest.* 7238 fi 7239fi 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7241$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7242 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7244$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7245if ${lt_cv_ld_exported_symbols_list+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 lt_cv_ld_exported_symbols_list=no 7249 save_LDFLAGS=$LDFLAGS 7250 echo "_main" > conftest.sym 7251 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254 7255int 7256main () 7257{ 7258 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263if ac_fn_c_try_link "$LINENO"; then : 7264 lt_cv_ld_exported_symbols_list=yes 7265else 7266 lt_cv_ld_exported_symbols_list=no 7267fi 7268rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270 LDFLAGS=$save_LDFLAGS 7271 7272fi 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7274$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7275 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7277$as_echo_n "checking for -force_load linker flag... " >&6; } 7278if ${lt_cv_ld_force_load+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 lt_cv_ld_force_load=no 7282 cat > conftest.c << _LT_EOF 7283int forced_loaded() { return 2;} 7284_LT_EOF 7285 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7286 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7287 echo "$AR cru libconftest.a conftest.o" >&5 7288 $AR cru libconftest.a conftest.o 2>&5 7289 echo "$RANLIB libconftest.a" >&5 7290 $RANLIB libconftest.a 2>&5 7291 cat > conftest.c << _LT_EOF 7292int main() { return 0;} 7293_LT_EOF 7294 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7295 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7296 _lt_result=$? 7297 if test -s conftest.err && $GREP force_load conftest.err; then 7298 cat conftest.err >&5 7299 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7300 lt_cv_ld_force_load=yes 7301 else 7302 cat conftest.err >&5 7303 fi 7304 rm -f conftest.err libconftest.a conftest conftest.c 7305 rm -rf conftest.dSYM 7306 7307fi 7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7309$as_echo "$lt_cv_ld_force_load" >&6; } 7310 case $host_os in 7311 rhapsody* | darwin1.[012]) 7312 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7313 darwin1.*) 7314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7315 darwin*) # darwin 5.x on 7316 # if running on 10.5 or later, the deployment target defaults 7317 # to the OS version, if on x86, and 10.4, the deployment 7318 # target defaults to 10.4. Don't you love it? 7319 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7320 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7321 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7322 10.[012][,.]*) 7323 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7324 10.*) 7325 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7326 esac 7327 ;; 7328 esac 7329 if test yes = "$lt_cv_apple_cc_single_mod"; then 7330 _lt_dar_single_mod='$single_module' 7331 fi 7332 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7333 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7334 else 7335 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7336 fi 7337 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7338 _lt_dsymutil='~$DSYMUTIL $lib || :' 7339 else 7340 _lt_dsymutil= 7341 fi 7342 ;; 7343 esac 7344 7345# func_munge_path_list VARIABLE PATH 7346# ----------------------------------- 7347# VARIABLE is name of variable containing _space_ separated list of 7348# directories to be munged by the contents of PATH, which is string 7349# having a format: 7350# "DIR[:DIR]:" 7351# string "DIR[ DIR]" will be prepended to VARIABLE 7352# ":DIR[:DIR]" 7353# string "DIR[ DIR]" will be appended to VARIABLE 7354# "DIRP[:DIRP]::[DIRA:]DIRA" 7355# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7356# "DIRA[ DIRA]" will be appended to VARIABLE 7357# "DIR[:DIR]" 7358# VARIABLE will be replaced by "DIR[ DIR]" 7359func_munge_path_list () 7360{ 7361 case x$2 in 7362 x) 7363 ;; 7364 *:) 7365 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7366 ;; 7367 x:*) 7368 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7369 ;; 7370 *::*) 7371 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7372 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7373 ;; 7374 *) 7375 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7376 ;; 7377 esac 7378} 7379 7380ac_ext=c 7381ac_cpp='$CPP $CPPFLAGS' 7382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7384ac_compiler_gnu=$ac_cv_c_compiler_gnu 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7386$as_echo_n "checking how to run the C preprocessor... " >&6; } 7387# On Suns, sometimes $CPP names a directory. 7388if test -n "$CPP" && test -d "$CPP"; then 7389 CPP= 7390fi 7391if test -z "$CPP"; then 7392 if ${ac_cv_prog_CPP+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 # Double quotes because CPP needs to be expanded 7396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7397 do 7398 ac_preproc_ok=false 7399for ac_c_preproc_warn_flag in '' yes 7400do 7401 # Use a header file that comes with gcc, so configuring glibc 7402 # with a fresh cross-compiler works. 7403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7404 # <limits.h> exists even on freestanding compilers. 7405 # On the NeXT, cc -E runs the code through the compiler's parser, 7406 # not just through cpp. "Syntax error" is here to catch this case. 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409#ifdef __STDC__ 7410# include <limits.h> 7411#else 7412# include <assert.h> 7413#endif 7414 Syntax error 7415_ACEOF 7416if ac_fn_c_try_cpp "$LINENO"; then : 7417 7418else 7419 # Broken: fails on valid input. 7420continue 7421fi 7422rm -f conftest.err conftest.i conftest.$ac_ext 7423 7424 # OK, works on sane cases. Now check whether nonexistent headers 7425 # can be detected and how. 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428#include <ac_nonexistent.h> 7429_ACEOF 7430if ac_fn_c_try_cpp "$LINENO"; then : 7431 # Broken: success on invalid input. 7432continue 7433else 7434 # Passes both tests. 7435ac_preproc_ok=: 7436break 7437fi 7438rm -f conftest.err conftest.i conftest.$ac_ext 7439 7440done 7441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7442rm -f conftest.i conftest.err conftest.$ac_ext 7443if $ac_preproc_ok; then : 7444 break 7445fi 7446 7447 done 7448 ac_cv_prog_CPP=$CPP 7449 7450fi 7451 CPP=$ac_cv_prog_CPP 7452else 7453 ac_cv_prog_CPP=$CPP 7454fi 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7456$as_echo "$CPP" >&6; } 7457ac_preproc_ok=false 7458for ac_c_preproc_warn_flag in '' yes 7459do 7460 # Use a header file that comes with gcc, so configuring glibc 7461 # with a fresh cross-compiler works. 7462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7463 # <limits.h> exists even on freestanding compilers. 7464 # On the NeXT, cc -E runs the code through the compiler's parser, 7465 # not just through cpp. "Syntax error" is here to catch this case. 7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7467/* end confdefs.h. */ 7468#ifdef __STDC__ 7469# include <limits.h> 7470#else 7471# include <assert.h> 7472#endif 7473 Syntax error 7474_ACEOF 7475if ac_fn_c_try_cpp "$LINENO"; then : 7476 7477else 7478 # Broken: fails on valid input. 7479continue 7480fi 7481rm -f conftest.err conftest.i conftest.$ac_ext 7482 7483 # OK, works on sane cases. Now check whether nonexistent headers 7484 # can be detected and how. 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487#include <ac_nonexistent.h> 7488_ACEOF 7489if ac_fn_c_try_cpp "$LINENO"; then : 7490 # Broken: success on invalid input. 7491continue 7492else 7493 # Passes both tests. 7494ac_preproc_ok=: 7495break 7496fi 7497rm -f conftest.err conftest.i conftest.$ac_ext 7498 7499done 7500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7501rm -f conftest.i conftest.err conftest.$ac_ext 7502if $ac_preproc_ok; then : 7503 7504else 7505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7507as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7508See \`config.log' for more details" "$LINENO" 5; } 7509fi 7510 7511ac_ext=c 7512ac_cpp='$CPP $CPPFLAGS' 7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7515ac_compiler_gnu=$ac_cv_c_compiler_gnu 7516 7517 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7519$as_echo_n "checking for ANSI C header files... " >&6; } 7520if ${ac_cv_header_stdc+:} false; then : 7521 $as_echo_n "(cached) " >&6 7522else 7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7524/* end confdefs.h. */ 7525#include <stdlib.h> 7526#include <stdarg.h> 7527#include <string.h> 7528#include <float.h> 7529 7530int 7531main () 7532{ 7533 7534 ; 7535 return 0; 7536} 7537_ACEOF 7538if ac_fn_c_try_compile "$LINENO"; then : 7539 ac_cv_header_stdc=yes 7540else 7541 ac_cv_header_stdc=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7544 7545if test $ac_cv_header_stdc = yes; then 7546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549#include <string.h> 7550 7551_ACEOF 7552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7553 $EGREP "memchr" >/dev/null 2>&1; then : 7554 7555else 7556 ac_cv_header_stdc=no 7557fi 7558rm -f conftest* 7559 7560fi 7561 7562if test $ac_cv_header_stdc = yes; then 7563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7565/* end confdefs.h. */ 7566#include <stdlib.h> 7567 7568_ACEOF 7569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7570 $EGREP "free" >/dev/null 2>&1; then : 7571 7572else 7573 ac_cv_header_stdc=no 7574fi 7575rm -f conftest* 7576 7577fi 7578 7579if test $ac_cv_header_stdc = yes; then 7580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7581 if test "$cross_compiling" = yes; then : 7582 : 7583else 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586#include <ctype.h> 7587#include <stdlib.h> 7588#if ((' ' & 0x0FF) == 0x020) 7589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7591#else 7592# define ISLOWER(c) \ 7593 (('a' <= (c) && (c) <= 'i') \ 7594 || ('j' <= (c) && (c) <= 'r') \ 7595 || ('s' <= (c) && (c) <= 'z')) 7596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7597#endif 7598 7599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7600int 7601main () 7602{ 7603 int i; 7604 for (i = 0; i < 256; i++) 7605 if (XOR (islower (i), ISLOWER (i)) 7606 || toupper (i) != TOUPPER (i)) 7607 return 2; 7608 return 0; 7609} 7610_ACEOF 7611if ac_fn_c_try_run "$LINENO"; then : 7612 7613else 7614 ac_cv_header_stdc=no 7615fi 7616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7617 conftest.$ac_objext conftest.beam conftest.$ac_ext 7618fi 7619 7620fi 7621fi 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7623$as_echo "$ac_cv_header_stdc" >&6; } 7624if test $ac_cv_header_stdc = yes; then 7625 7626$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7627 7628fi 7629 7630# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7632 inttypes.h stdint.h unistd.h 7633do : 7634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7635ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7636" 7637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7638 cat >>confdefs.h <<_ACEOF 7639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7640_ACEOF 7641 7642fi 7643 7644done 7645 7646 7647for ac_header in dlfcn.h 7648do : 7649 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7650" 7651if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7652 cat >>confdefs.h <<_ACEOF 7653#define HAVE_DLFCN_H 1 7654_ACEOF 7655 7656fi 7657 7658done 7659 7660 7661 7662 7663 7664# Set options 7665 7666 7667 7668 enable_dlopen=no 7669 7670 7671 enable_win32_dll=no 7672 7673 7674 # Check whether --enable-shared was given. 7675if test "${enable_shared+set}" = set; then : 7676 enableval=$enable_shared; p=${PACKAGE-default} 7677 case $enableval in 7678 yes) enable_shared=yes ;; 7679 no) enable_shared=no ;; 7680 *) 7681 enable_shared=no 7682 # Look at the argument we got. We use all the common list separators. 7683 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7684 for pkg in $enableval; do 7685 IFS=$lt_save_ifs 7686 if test "X$pkg" = "X$p"; then 7687 enable_shared=yes 7688 fi 7689 done 7690 IFS=$lt_save_ifs 7691 ;; 7692 esac 7693else 7694 enable_shared=yes 7695fi 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 # Check whether --enable-static was given. 7706if test "${enable_static+set}" = set; then : 7707 enableval=$enable_static; p=${PACKAGE-default} 7708 case $enableval in 7709 yes) enable_static=yes ;; 7710 no) enable_static=no ;; 7711 *) 7712 enable_static=no 7713 # Look at the argument we got. We use all the common list separators. 7714 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7715 for pkg in $enableval; do 7716 IFS=$lt_save_ifs 7717 if test "X$pkg" = "X$p"; then 7718 enable_static=yes 7719 fi 7720 done 7721 IFS=$lt_save_ifs 7722 ;; 7723 esac 7724else 7725 enable_static=yes 7726fi 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737# Check whether --with-pic was given. 7738if test "${with_pic+set}" = set; then : 7739 withval=$with_pic; lt_p=${PACKAGE-default} 7740 case $withval in 7741 yes|no) pic_mode=$withval ;; 7742 *) 7743 pic_mode=default 7744 # Look at the argument we got. We use all the common list separators. 7745 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7746 for lt_pkg in $withval; do 7747 IFS=$lt_save_ifs 7748 if test "X$lt_pkg" = "X$lt_p"; then 7749 pic_mode=yes 7750 fi 7751 done 7752 IFS=$lt_save_ifs 7753 ;; 7754 esac 7755else 7756 pic_mode=default 7757fi 7758 7759 7760 7761 7762 7763 7764 7765 7766 # Check whether --enable-fast-install was given. 7767if test "${enable_fast_install+set}" = set; then : 7768 enableval=$enable_fast_install; p=${PACKAGE-default} 7769 case $enableval in 7770 yes) enable_fast_install=yes ;; 7771 no) enable_fast_install=no ;; 7772 *) 7773 enable_fast_install=no 7774 # Look at the argument we got. We use all the common list separators. 7775 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7776 for pkg in $enableval; do 7777 IFS=$lt_save_ifs 7778 if test "X$pkg" = "X$p"; then 7779 enable_fast_install=yes 7780 fi 7781 done 7782 IFS=$lt_save_ifs 7783 ;; 7784 esac 7785else 7786 enable_fast_install=yes 7787fi 7788 7789 7790 7791 7792 7793 7794 7795 7796 shared_archive_member_spec= 7797case $host,$enable_shared in 7798power*-*-aix[5-9]*,yes) 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7800$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7801 7802# Check whether --with-aix-soname was given. 7803if test "${with_aix_soname+set}" = set; then : 7804 withval=$with_aix_soname; case $withval in 7805 aix|svr4|both) 7806 ;; 7807 *) 7808 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7809 ;; 7810 esac 7811 lt_cv_with_aix_soname=$with_aix_soname 7812else 7813 if ${lt_cv_with_aix_soname+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 lt_cv_with_aix_soname=aix 7817fi 7818 7819 with_aix_soname=$lt_cv_with_aix_soname 7820fi 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7823$as_echo "$with_aix_soname" >&6; } 7824 if test aix != "$with_aix_soname"; then 7825 # For the AIX way of multilib, we name the shared archive member 7826 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7827 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7828 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7829 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7830 if test 64 = "${OBJECT_MODE-32}"; then 7831 shared_archive_member_spec=shr_64 7832 else 7833 shared_archive_member_spec=shr 7834 fi 7835 fi 7836 ;; 7837*) 7838 with_aix_soname=aix 7839 ;; 7840esac 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851# This can be used to rebuild libtool when needed 7852LIBTOOL_DEPS=$ltmain 7853 7854# Always use our own libtool. 7855LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886test -z "$LN_S" && LN_S="ln -s" 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901if test -n "${ZSH_VERSION+set}"; then 7902 setopt NO_GLOB_SUBST 7903fi 7904 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7906$as_echo_n "checking for objdir... " >&6; } 7907if ${lt_cv_objdir+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 rm -f .libs 2>/dev/null 7911mkdir .libs 2>/dev/null 7912if test -d .libs; then 7913 lt_cv_objdir=.libs 7914else 7915 # MS-DOS does not allow filenames that begin with a dot. 7916 lt_cv_objdir=_libs 7917fi 7918rmdir .libs 2>/dev/null 7919fi 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7921$as_echo "$lt_cv_objdir" >&6; } 7922objdir=$lt_cv_objdir 7923 7924 7925 7926 7927 7928cat >>confdefs.h <<_ACEOF 7929#define LT_OBJDIR "$lt_cv_objdir/" 7930_ACEOF 7931 7932 7933 7934 7935case $host_os in 7936aix3*) 7937 # AIX sometimes has problems with the GCC collect2 program. For some 7938 # reason, if we set the COLLECT_NAMES environment variable, the problems 7939 # vanish in a puff of smoke. 7940 if test set != "${COLLECT_NAMES+set}"; then 7941 COLLECT_NAMES= 7942 export COLLECT_NAMES 7943 fi 7944 ;; 7945esac 7946 7947# Global variables: 7948ofile=libtool 7949can_build_shared=yes 7950 7951# All known linkers require a '.a' archive for static linking (except MSVC, 7952# which needs '.lib'). 7953libext=a 7954 7955with_gnu_ld=$lt_cv_prog_gnu_ld 7956 7957old_CC=$CC 7958old_CFLAGS=$CFLAGS 7959 7960# Set sane defaults for various variables 7961test -z "$CC" && CC=cc 7962test -z "$LTCC" && LTCC=$CC 7963test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7964test -z "$LD" && LD=ld 7965test -z "$ac_objext" && ac_objext=o 7966 7967func_cc_basename $compiler 7968cc_basename=$func_cc_basename_result 7969 7970 7971# Only perform the check for file, if the check method requires it 7972test -z "$MAGIC_CMD" && MAGIC_CMD=file 7973case $deplibs_check_method in 7974file_magic*) 7975 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7977$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7978if ${lt_cv_path_MAGIC_CMD+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 case $MAGIC_CMD in 7982[\\/*] | ?:[\\/]*) 7983 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7984 ;; 7985*) 7986 lt_save_MAGIC_CMD=$MAGIC_CMD 7987 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7988 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7989 for ac_dir in $ac_dummy; do 7990 IFS=$lt_save_ifs 7991 test -z "$ac_dir" && ac_dir=. 7992 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7993 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7994 if test -n "$file_magic_test_file"; then 7995 case $deplibs_check_method in 7996 "file_magic "*) 7997 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7998 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7999 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8000 $EGREP "$file_magic_regex" > /dev/null; then 8001 : 8002 else 8003 cat <<_LT_EOF 1>&2 8004 8005*** Warning: the command libtool uses to detect shared libraries, 8006*** $file_magic_cmd, produces output that libtool cannot recognize. 8007*** The result is that libtool may fail to recognize shared libraries 8008*** as such. This will affect the creation of libtool libraries that 8009*** depend on shared libraries, but programs linked with such libtool 8010*** libraries will work regardless of this problem. Nevertheless, you 8011*** may want to report the problem to your system manager and/or to 8012*** bug-libtool@gnu.org 8013 8014_LT_EOF 8015 fi ;; 8016 esac 8017 fi 8018 break 8019 fi 8020 done 8021 IFS=$lt_save_ifs 8022 MAGIC_CMD=$lt_save_MAGIC_CMD 8023 ;; 8024esac 8025fi 8026 8027MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8028if test -n "$MAGIC_CMD"; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8030$as_echo "$MAGIC_CMD" >&6; } 8031else 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8033$as_echo "no" >&6; } 8034fi 8035 8036 8037 8038 8039 8040if test -z "$lt_cv_path_MAGIC_CMD"; then 8041 if test -n "$ac_tool_prefix"; then 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8043$as_echo_n "checking for file... " >&6; } 8044if ${lt_cv_path_MAGIC_CMD+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046else 8047 case $MAGIC_CMD in 8048[\\/*] | ?:[\\/]*) 8049 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8050 ;; 8051*) 8052 lt_save_MAGIC_CMD=$MAGIC_CMD 8053 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8055 for ac_dir in $ac_dummy; do 8056 IFS=$lt_save_ifs 8057 test -z "$ac_dir" && ac_dir=. 8058 if test -f "$ac_dir/file"; then 8059 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8060 if test -n "$file_magic_test_file"; then 8061 case $deplibs_check_method in 8062 "file_magic "*) 8063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8064 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8066 $EGREP "$file_magic_regex" > /dev/null; then 8067 : 8068 else 8069 cat <<_LT_EOF 1>&2 8070 8071*** Warning: the command libtool uses to detect shared libraries, 8072*** $file_magic_cmd, produces output that libtool cannot recognize. 8073*** The result is that libtool may fail to recognize shared libraries 8074*** as such. This will affect the creation of libtool libraries that 8075*** depend on shared libraries, but programs linked with such libtool 8076*** libraries will work regardless of this problem. Nevertheless, you 8077*** may want to report the problem to your system manager and/or to 8078*** bug-libtool@gnu.org 8079 8080_LT_EOF 8081 fi ;; 8082 esac 8083 fi 8084 break 8085 fi 8086 done 8087 IFS=$lt_save_ifs 8088 MAGIC_CMD=$lt_save_MAGIC_CMD 8089 ;; 8090esac 8091fi 8092 8093MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8094if test -n "$MAGIC_CMD"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8096$as_echo "$MAGIC_CMD" >&6; } 8097else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099$as_echo "no" >&6; } 8100fi 8101 8102 8103 else 8104 MAGIC_CMD=: 8105 fi 8106fi 8107 8108 fi 8109 ;; 8110esac 8111 8112# Use C for the default configuration in the libtool script 8113 8114lt_save_CC=$CC 8115ac_ext=c 8116ac_cpp='$CPP $CPPFLAGS' 8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8119ac_compiler_gnu=$ac_cv_c_compiler_gnu 8120 8121 8122# Source file extension for C test sources. 8123ac_ext=c 8124 8125# Object file extension for compiled C test sources. 8126objext=o 8127objext=$objext 8128 8129# Code to be used in simple compile tests 8130lt_simple_compile_test_code="int some_variable = 0;" 8131 8132# Code to be used in simple link tests 8133lt_simple_link_test_code='int main(){return(0);}' 8134 8135 8136 8137 8138 8139 8140 8141# If no C compiler was specified, use CC. 8142LTCC=${LTCC-"$CC"} 8143 8144# If no C compiler flags were specified, use CFLAGS. 8145LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8146 8147# Allow CC to be a program name with arguments. 8148compiler=$CC 8149 8150# Save the default compiler, since it gets overwritten when the other 8151# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8152compiler_DEFAULT=$CC 8153 8154# save warnings/boilerplate of simple test code 8155ac_outfile=conftest.$ac_objext 8156echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8157eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8158_lt_compiler_boilerplate=`cat conftest.err` 8159$RM conftest* 8160 8161ac_outfile=conftest.$ac_objext 8162echo "$lt_simple_link_test_code" >conftest.$ac_ext 8163eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8164_lt_linker_boilerplate=`cat conftest.err` 8165$RM -r conftest* 8166 8167 8168if test -n "$compiler"; then 8169 8170lt_prog_compiler_no_builtin_flag= 8171 8172if test yes = "$GCC"; then 8173 case $cc_basename in 8174 nvcc*) 8175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8176 *) 8177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8178 esac 8179 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8182if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8183 $as_echo_n "(cached) " >&6 8184else 8185 lt_cv_prog_compiler_rtti_exceptions=no 8186 ac_outfile=conftest.$ac_objext 8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8188 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8189 # Insert the option either (1) after the last *FLAGS variable, or 8190 # (2) before a word containing "conftest.", or (3) at the end. 8191 # Note that $ac_compile itself does not contain backslashes and begins 8192 # with a dollar sign (not a hyphen), so the echo should work correctly. 8193 # The option is referenced via a variable to avoid confusing sed. 8194 lt_compile=`echo "$ac_compile" | $SED \ 8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8197 -e 's:$: $lt_compiler_flag:'` 8198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8199 (eval "$lt_compile" 2>conftest.err) 8200 ac_status=$? 8201 cat conftest.err >&5 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 if (exit $ac_status) && test -s "$ac_outfile"; then 8204 # The compiler can only warn and ignore the option if not recognized 8205 # So say no if there are warnings other than the usual output. 8206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8209 lt_cv_prog_compiler_rtti_exceptions=yes 8210 fi 8211 fi 8212 $RM conftest* 8213 8214fi 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8217 8218if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8220else 8221 : 8222fi 8223 8224fi 8225 8226 8227 8228 8229 8230 8231 lt_prog_compiler_wl= 8232lt_prog_compiler_pic= 8233lt_prog_compiler_static= 8234 8235 8236 if test yes = "$GCC"; then 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_static='-static' 8239 8240 case $host_os in 8241 aix*) 8242 # All AIX code is PIC. 8243 if test ia64 = "$host_cpu"; then 8244 # AIX 5 now supports IA64 processor 8245 lt_prog_compiler_static='-Bstatic' 8246 fi 8247 lt_prog_compiler_pic='-fPIC' 8248 ;; 8249 8250 amigaos*) 8251 case $host_cpu in 8252 powerpc) 8253 # see comment about AmigaOS4 .so support 8254 lt_prog_compiler_pic='-fPIC' 8255 ;; 8256 m68k) 8257 # FIXME: we need at least 68020 code to build shared libraries, but 8258 # adding the '-m68020' flag to GCC prevents building anything better, 8259 # like '-m68040'. 8260 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8261 ;; 8262 esac 8263 ;; 8264 8265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8266 # PIC is the default for these OSes. 8267 ;; 8268 8269 mingw* | cygwin* | pw32* | os2* | cegcc*) 8270 # This hack is so that the source file can tell whether it is being 8271 # built for inclusion in a dll (and should export symbols for example). 8272 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8273 # (--disable-auto-import) libraries 8274 lt_prog_compiler_pic='-DDLL_EXPORT' 8275 case $host_os in 8276 os2*) 8277 lt_prog_compiler_static='$wl-static' 8278 ;; 8279 esac 8280 ;; 8281 8282 darwin* | rhapsody*) 8283 # PIC is the default on this platform 8284 # Common symbols not allowed in MH_DYLIB files 8285 lt_prog_compiler_pic='-fno-common' 8286 ;; 8287 8288 haiku*) 8289 # PIC is the default for Haiku. 8290 # The "-static" flag exists, but is broken. 8291 lt_prog_compiler_static= 8292 ;; 8293 8294 hpux*) 8295 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8296 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8297 # sets the default TLS model and affects inlining. 8298 case $host_cpu in 8299 hppa*64*) 8300 # +Z the default 8301 ;; 8302 *) 8303 lt_prog_compiler_pic='-fPIC' 8304 ;; 8305 esac 8306 ;; 8307 8308 interix[3-9]*) 8309 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8310 # Instead, we relocate shared libraries at runtime. 8311 ;; 8312 8313 msdosdjgpp*) 8314 # Just because we use GCC doesn't mean we suddenly get shared libraries 8315 # on systems that don't support them. 8316 lt_prog_compiler_can_build_shared=no 8317 enable_shared=no 8318 ;; 8319 8320 *nto* | *qnx*) 8321 # QNX uses GNU C++, but need to define -shared option too, otherwise 8322 # it will coredump. 8323 lt_prog_compiler_pic='-fPIC -shared' 8324 ;; 8325 8326 sysv4*MP*) 8327 if test -d /usr/nec; then 8328 lt_prog_compiler_pic=-Kconform_pic 8329 fi 8330 ;; 8331 8332 *) 8333 lt_prog_compiler_pic='-fPIC' 8334 ;; 8335 esac 8336 8337 case $cc_basename in 8338 nvcc*) # Cuda Compiler Driver 2.2 8339 lt_prog_compiler_wl='-Xlinker ' 8340 if test -n "$lt_prog_compiler_pic"; then 8341 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8342 fi 8343 ;; 8344 esac 8345 else 8346 # PORTME Check for flag to pass linker flags through the system compiler. 8347 case $host_os in 8348 aix*) 8349 lt_prog_compiler_wl='-Wl,' 8350 if test ia64 = "$host_cpu"; then 8351 # AIX 5 now supports IA64 processor 8352 lt_prog_compiler_static='-Bstatic' 8353 else 8354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8355 fi 8356 ;; 8357 8358 darwin* | rhapsody*) 8359 # PIC is the default on this platform 8360 # Common symbols not allowed in MH_DYLIB files 8361 lt_prog_compiler_pic='-fno-common' 8362 case $cc_basename in 8363 nagfor*) 8364 # NAG Fortran compiler 8365 lt_prog_compiler_wl='-Wl,-Wl,,' 8366 lt_prog_compiler_pic='-PIC' 8367 lt_prog_compiler_static='-Bstatic' 8368 ;; 8369 esac 8370 ;; 8371 8372 mingw* | cygwin* | pw32* | os2* | cegcc*) 8373 # This hack is so that the source file can tell whether it is being 8374 # built for inclusion in a dll (and should export symbols for example). 8375 lt_prog_compiler_pic='-DDLL_EXPORT' 8376 case $host_os in 8377 os2*) 8378 lt_prog_compiler_static='$wl-static' 8379 ;; 8380 esac 8381 ;; 8382 8383 hpux9* | hpux10* | hpux11*) 8384 lt_prog_compiler_wl='-Wl,' 8385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8386 # not for PA HP-UX. 8387 case $host_cpu in 8388 hppa*64*|ia64*) 8389 # +Z the default 8390 ;; 8391 *) 8392 lt_prog_compiler_pic='+Z' 8393 ;; 8394 esac 8395 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8396 lt_prog_compiler_static='$wl-a ${wl}archive' 8397 ;; 8398 8399 irix5* | irix6* | nonstopux*) 8400 lt_prog_compiler_wl='-Wl,' 8401 # PIC (with -KPIC) is the default. 8402 lt_prog_compiler_static='-non_shared' 8403 ;; 8404 8405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8406 case $cc_basename in 8407 # old Intel for x86_64, which still supported -KPIC. 8408 ecc*) 8409 lt_prog_compiler_wl='-Wl,' 8410 lt_prog_compiler_pic='-KPIC' 8411 lt_prog_compiler_static='-static' 8412 ;; 8413 # icc used to be incompatible with GCC. 8414 # ICC 10 doesn't accept -KPIC any more. 8415 icc* | ifort*) 8416 lt_prog_compiler_wl='-Wl,' 8417 lt_prog_compiler_pic='-fPIC' 8418 lt_prog_compiler_static='-static' 8419 ;; 8420 # Lahey Fortran 8.1. 8421 lf95*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_pic='--shared' 8424 lt_prog_compiler_static='--static' 8425 ;; 8426 nagfor*) 8427 # NAG Fortran compiler 8428 lt_prog_compiler_wl='-Wl,-Wl,,' 8429 lt_prog_compiler_pic='-PIC' 8430 lt_prog_compiler_static='-Bstatic' 8431 ;; 8432 tcc*) 8433 # Fabrice Bellard et al's Tiny C Compiler 8434 lt_prog_compiler_wl='-Wl,' 8435 lt_prog_compiler_pic='-fPIC' 8436 lt_prog_compiler_static='-static' 8437 ;; 8438 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8439 # Portland Group compilers (*not* the Pentium gcc compiler, 8440 # which looks to be a dead project) 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_pic='-fpic' 8443 lt_prog_compiler_static='-Bstatic' 8444 ;; 8445 ccc*) 8446 lt_prog_compiler_wl='-Wl,' 8447 # All Alpha code is PIC. 8448 lt_prog_compiler_static='-non_shared' 8449 ;; 8450 xl* | bgxl* | bgf* | mpixl*) 8451 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8452 lt_prog_compiler_wl='-Wl,' 8453 lt_prog_compiler_pic='-qpic' 8454 lt_prog_compiler_static='-qstaticlink' 8455 ;; 8456 *) 8457 case `$CC -V 2>&1 | sed 5q` in 8458 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8459 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8460 lt_prog_compiler_pic='-KPIC' 8461 lt_prog_compiler_static='-Bstatic' 8462 lt_prog_compiler_wl='' 8463 ;; 8464 *Sun\ F* | *Sun*Fortran*) 8465 lt_prog_compiler_pic='-KPIC' 8466 lt_prog_compiler_static='-Bstatic' 8467 lt_prog_compiler_wl='-Qoption ld ' 8468 ;; 8469 *Sun\ C*) 8470 # Sun C 5.9 8471 lt_prog_compiler_pic='-KPIC' 8472 lt_prog_compiler_static='-Bstatic' 8473 lt_prog_compiler_wl='-Wl,' 8474 ;; 8475 *Intel*\ [CF]*Compiler*) 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_pic='-fPIC' 8478 lt_prog_compiler_static='-static' 8479 ;; 8480 *Portland\ Group*) 8481 lt_prog_compiler_wl='-Wl,' 8482 lt_prog_compiler_pic='-fpic' 8483 lt_prog_compiler_static='-Bstatic' 8484 ;; 8485 esac 8486 ;; 8487 esac 8488 ;; 8489 8490 newsos6) 8491 lt_prog_compiler_pic='-KPIC' 8492 lt_prog_compiler_static='-Bstatic' 8493 ;; 8494 8495 *nto* | *qnx*) 8496 # QNX uses GNU C++, but need to define -shared option too, otherwise 8497 # it will coredump. 8498 lt_prog_compiler_pic='-fPIC -shared' 8499 ;; 8500 8501 osf3* | osf4* | osf5*) 8502 lt_prog_compiler_wl='-Wl,' 8503 # All OSF/1 code is PIC. 8504 lt_prog_compiler_static='-non_shared' 8505 ;; 8506 8507 rdos*) 8508 lt_prog_compiler_static='-non_shared' 8509 ;; 8510 8511 solaris*) 8512 lt_prog_compiler_pic='-KPIC' 8513 lt_prog_compiler_static='-Bstatic' 8514 case $cc_basename in 8515 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8516 lt_prog_compiler_wl='-Qoption ld ';; 8517 *) 8518 lt_prog_compiler_wl='-Wl,';; 8519 esac 8520 ;; 8521 8522 sunos4*) 8523 lt_prog_compiler_wl='-Qoption ld ' 8524 lt_prog_compiler_pic='-PIC' 8525 lt_prog_compiler_static='-Bstatic' 8526 ;; 8527 8528 sysv4 | sysv4.2uw2* | sysv4.3*) 8529 lt_prog_compiler_wl='-Wl,' 8530 lt_prog_compiler_pic='-KPIC' 8531 lt_prog_compiler_static='-Bstatic' 8532 ;; 8533 8534 sysv4*MP*) 8535 if test -d /usr/nec; then 8536 lt_prog_compiler_pic='-Kconform_pic' 8537 lt_prog_compiler_static='-Bstatic' 8538 fi 8539 ;; 8540 8541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8542 lt_prog_compiler_wl='-Wl,' 8543 lt_prog_compiler_pic='-KPIC' 8544 lt_prog_compiler_static='-Bstatic' 8545 ;; 8546 8547 unicos*) 8548 lt_prog_compiler_wl='-Wl,' 8549 lt_prog_compiler_can_build_shared=no 8550 ;; 8551 8552 uts4*) 8553 lt_prog_compiler_pic='-pic' 8554 lt_prog_compiler_static='-Bstatic' 8555 ;; 8556 8557 *) 8558 lt_prog_compiler_can_build_shared=no 8559 ;; 8560 esac 8561 fi 8562 8563case $host_os in 8564 # For platforms that do not support PIC, -DPIC is meaningless: 8565 *djgpp*) 8566 lt_prog_compiler_pic= 8567 ;; 8568 *) 8569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8570 ;; 8571esac 8572 8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8574$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8575if ${lt_cv_prog_compiler_pic+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577else 8578 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8579fi 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8581$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8582lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8583 8584# 8585# Check to make sure the PIC flag actually works. 8586# 8587if test -n "$lt_prog_compiler_pic"; then 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8589$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8590if ${lt_cv_prog_compiler_pic_works+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 lt_cv_prog_compiler_pic_works=no 8594 ac_outfile=conftest.$ac_objext 8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8596 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8597 # Insert the option either (1) after the last *FLAGS variable, or 8598 # (2) before a word containing "conftest.", or (3) at the end. 8599 # Note that $ac_compile itself does not contain backslashes and begins 8600 # with a dollar sign (not a hyphen), so the echo should work correctly. 8601 # The option is referenced via a variable to avoid confusing sed. 8602 lt_compile=`echo "$ac_compile" | $SED \ 8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8605 -e 's:$: $lt_compiler_flag:'` 8606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8607 (eval "$lt_compile" 2>conftest.err) 8608 ac_status=$? 8609 cat conftest.err >&5 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 if (exit $ac_status) && test -s "$ac_outfile"; then 8612 # The compiler can only warn and ignore the option if not recognized 8613 # So say no if there are warnings other than the usual output. 8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8617 lt_cv_prog_compiler_pic_works=yes 8618 fi 8619 fi 8620 $RM conftest* 8621 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8624$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8625 8626if test yes = "$lt_cv_prog_compiler_pic_works"; then 8627 case $lt_prog_compiler_pic in 8628 "" | " "*) ;; 8629 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8630 esac 8631else 8632 lt_prog_compiler_pic= 8633 lt_prog_compiler_can_build_shared=no 8634fi 8635 8636fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648# 8649# Check to make sure the static flag actually works. 8650# 8651wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8653$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8654if ${lt_cv_prog_compiler_static_works+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 lt_cv_prog_compiler_static_works=no 8658 save_LDFLAGS=$LDFLAGS 8659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8660 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8662 # The linker can only warn and ignore the option if not recognized 8663 # So say no if there are warnings 8664 if test -s conftest.err; then 8665 # Append any errors to the config.log. 8666 cat conftest.err 1>&5 8667 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8669 if diff conftest.exp conftest.er2 >/dev/null; then 8670 lt_cv_prog_compiler_static_works=yes 8671 fi 8672 else 8673 lt_cv_prog_compiler_static_works=yes 8674 fi 8675 fi 8676 $RM -r conftest* 8677 LDFLAGS=$save_LDFLAGS 8678 8679fi 8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8681$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8682 8683if test yes = "$lt_cv_prog_compiler_static_works"; then 8684 : 8685else 8686 lt_prog_compiler_static= 8687fi 8688 8689 8690 8691 8692 8693 8694 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8697if ${lt_cv_prog_compiler_c_o+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 lt_cv_prog_compiler_c_o=no 8701 $RM -r conftest 2>/dev/null 8702 mkdir conftest 8703 cd conftest 8704 mkdir out 8705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8706 8707 lt_compiler_flag="-o out/conftest2.$ac_objext" 8708 # Insert the option either (1) after the last *FLAGS variable, or 8709 # (2) before a word containing "conftest.", or (3) at the end. 8710 # Note that $ac_compile itself does not contain backslashes and begins 8711 # with a dollar sign (not a hyphen), so the echo should work correctly. 8712 lt_compile=`echo "$ac_compile" | $SED \ 8713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8715 -e 's:$: $lt_compiler_flag:'` 8716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8717 (eval "$lt_compile" 2>out/conftest.err) 8718 ac_status=$? 8719 cat out/conftest.err >&5 8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8722 then 8723 # The compiler can only warn and ignore the option if not recognized 8724 # So say no if there are warnings 8725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8728 lt_cv_prog_compiler_c_o=yes 8729 fi 8730 fi 8731 chmod u+w . 2>&5 8732 $RM conftest* 8733 # SGI C++ compiler will create directory out/ii_files/ for 8734 # template instantiation 8735 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8736 $RM out/* && rmdir out 8737 cd .. 8738 $RM -r conftest 8739 $RM conftest* 8740 8741fi 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8743$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8744 8745 8746 8747 8748 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8752if ${lt_cv_prog_compiler_c_o+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 lt_cv_prog_compiler_c_o=no 8756 $RM -r conftest 2>/dev/null 8757 mkdir conftest 8758 cd conftest 8759 mkdir out 8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8761 8762 lt_compiler_flag="-o out/conftest2.$ac_objext" 8763 # Insert the option either (1) after the last *FLAGS variable, or 8764 # (2) before a word containing "conftest.", or (3) at the end. 8765 # Note that $ac_compile itself does not contain backslashes and begins 8766 # with a dollar sign (not a hyphen), so the echo should work correctly. 8767 lt_compile=`echo "$ac_compile" | $SED \ 8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8770 -e 's:$: $lt_compiler_flag:'` 8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8772 (eval "$lt_compile" 2>out/conftest.err) 8773 ac_status=$? 8774 cat out/conftest.err >&5 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8776 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8777 then 8778 # The compiler can only warn and ignore the option if not recognized 8779 # So say no if there are warnings 8780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8783 lt_cv_prog_compiler_c_o=yes 8784 fi 8785 fi 8786 chmod u+w . 2>&5 8787 $RM conftest* 8788 # SGI C++ compiler will create directory out/ii_files/ for 8789 # template instantiation 8790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8791 $RM out/* && rmdir out 8792 cd .. 8793 $RM -r conftest 8794 $RM conftest* 8795 8796fi 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8798$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8799 8800 8801 8802 8803hard_links=nottested 8804if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8805 # do not overwrite the value of need_locks provided by the user 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8807$as_echo_n "checking if we can lock with hard links... " >&6; } 8808 hard_links=yes 8809 $RM conftest* 8810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8811 touch conftest.a 8812 ln conftest.a conftest.b 2>&5 || hard_links=no 8813 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8815$as_echo "$hard_links" >&6; } 8816 if test no = "$hard_links"; then 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8818$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8819 need_locks=warn 8820 fi 8821else 8822 need_locks=no 8823fi 8824 8825 8826 8827 8828 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8831$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8832 8833 runpath_var= 8834 allow_undefined_flag= 8835 always_export_symbols=no 8836 archive_cmds= 8837 archive_expsym_cmds= 8838 compiler_needs_object=no 8839 enable_shared_with_static_runtimes=no 8840 export_dynamic_flag_spec= 8841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8842 hardcode_automatic=no 8843 hardcode_direct=no 8844 hardcode_direct_absolute=no 8845 hardcode_libdir_flag_spec= 8846 hardcode_libdir_separator= 8847 hardcode_minus_L=no 8848 hardcode_shlibpath_var=unsupported 8849 inherit_rpath=no 8850 link_all_deplibs=unknown 8851 module_cmds= 8852 module_expsym_cmds= 8853 old_archive_from_new_cmds= 8854 old_archive_from_expsyms_cmds= 8855 thread_safe_flag_spec= 8856 whole_archive_flag_spec= 8857 # include_expsyms should be a list of space-separated symbols to be *always* 8858 # included in the symbol list 8859 include_expsyms= 8860 # exclude_expsyms can be an extended regexp of symbols to exclude 8861 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8862 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8863 # as well as any symbol that contains 'd'. 8864 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8866 # platforms (ab)use it in PIC code, but their linkers get confused if 8867 # the symbol is explicitly referenced. Since portable code cannot 8868 # rely on this symbol name, it's probably fine to never include it in 8869 # preloaded symbol tables. 8870 # Exclude shared library initialization/finalization symbols. 8871 extract_expsyms_cmds= 8872 8873 case $host_os in 8874 cygwin* | mingw* | pw32* | cegcc*) 8875 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8876 # When not using gcc, we currently assume that we are using 8877 # Microsoft Visual C++. 8878 if test yes != "$GCC"; then 8879 with_gnu_ld=no 8880 fi 8881 ;; 8882 interix*) 8883 # we just hope/assume this is gcc and not c89 (= MSVC++) 8884 with_gnu_ld=yes 8885 ;; 8886 openbsd* | bitrig*) 8887 with_gnu_ld=no 8888 ;; 8889 esac 8890 8891 ld_shlibs=yes 8892 8893 # On some targets, GNU ld is compatible enough with the native linker 8894 # that we're better off using the native interface for both. 8895 lt_use_gnu_ld_interface=no 8896 if test yes = "$with_gnu_ld"; then 8897 case $host_os in 8898 aix*) 8899 # The AIX port of GNU ld has always aspired to compatibility 8900 # with the native linker. However, as the warning in the GNU ld 8901 # block says, versions before 2.19.5* couldn't really create working 8902 # shared libraries, regardless of the interface used. 8903 case `$LD -v 2>&1` in 8904 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8905 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8906 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8907 *) 8908 lt_use_gnu_ld_interface=yes 8909 ;; 8910 esac 8911 ;; 8912 *) 8913 lt_use_gnu_ld_interface=yes 8914 ;; 8915 esac 8916 fi 8917 8918 if test yes = "$lt_use_gnu_ld_interface"; then 8919 # If archive_cmds runs LD, not CC, wlarc should be empty 8920 wlarc='$wl' 8921 8922 # Set some defaults for GNU ld with shared library support. These 8923 # are reset later if shared libraries are not supported. Putting them 8924 # here allows them to be overridden if necessary. 8925 runpath_var=LD_RUN_PATH 8926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8927 export_dynamic_flag_spec='$wl--export-dynamic' 8928 # ancient GNU ld didn't support --whole-archive et. al. 8929 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8930 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8931 else 8932 whole_archive_flag_spec= 8933 fi 8934 supports_anon_versioning=no 8935 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8936 *GNU\ gold*) supports_anon_versioning=yes ;; 8937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8940 *\ 2.11.*) ;; # other 2.11 versions 8941 *) supports_anon_versioning=yes ;; 8942 esac 8943 8944 # See if GNU ld supports shared libraries. 8945 case $host_os in 8946 aix[3-9]*) 8947 # On AIX/PPC, the GNU linker is very broken 8948 if test ia64 != "$host_cpu"; then 8949 ld_shlibs=no 8950 cat <<_LT_EOF 1>&2 8951 8952*** Warning: the GNU linker, at least up to release 2.19, is reported 8953*** to be unable to reliably create shared libraries on AIX. 8954*** Therefore, libtool is disabling shared libraries support. If you 8955*** really care for shared libraries, you may want to install binutils 8956*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8957*** You will then need to restart the configuration process. 8958 8959_LT_EOF 8960 fi 8961 ;; 8962 8963 amigaos*) 8964 case $host_cpu in 8965 powerpc) 8966 # see comment about AmigaOS4 .so support 8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8968 archive_expsym_cmds='' 8969 ;; 8970 m68k) 8971 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)' 8972 hardcode_libdir_flag_spec='-L$libdir' 8973 hardcode_minus_L=yes 8974 ;; 8975 esac 8976 ;; 8977 8978 beos*) 8979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8980 allow_undefined_flag=unsupported 8981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8982 # support --undefined. This deserves some investigation. FIXME 8983 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8984 else 8985 ld_shlibs=no 8986 fi 8987 ;; 8988 8989 cygwin* | mingw* | pw32* | cegcc*) 8990 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8991 # as there is no search path for DLLs. 8992 hardcode_libdir_flag_spec='-L$libdir' 8993 export_dynamic_flag_spec='$wl--export-all-symbols' 8994 allow_undefined_flag=unsupported 8995 always_export_symbols=no 8996 enable_shared_with_static_runtimes=yes 8997 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' 8998 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8999 9000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9002 # If the export-symbols file already is a .def file, use it as 9003 # is; otherwise, prepend EXPORTS... 9004 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9005 cp $export_symbols $output_objdir/$soname.def; 9006 else 9007 echo EXPORTS > $output_objdir/$soname.def; 9008 cat $export_symbols >> $output_objdir/$soname.def; 9009 fi~ 9010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9011 else 9012 ld_shlibs=no 9013 fi 9014 ;; 9015 9016 haiku*) 9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9018 link_all_deplibs=yes 9019 ;; 9020 9021 os2*) 9022 hardcode_libdir_flag_spec='-L$libdir' 9023 hardcode_minus_L=yes 9024 allow_undefined_flag=unsupported 9025 shrext_cmds=.dll 9026 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9029 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9030 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9031 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9032 emximp -o $lib $output_objdir/$libname.def' 9033 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9034 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9035 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9036 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9037 prefix_cmds="$SED"~ 9038 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9039 prefix_cmds="$prefix_cmds -e 1d"; 9040 fi~ 9041 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9042 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9043 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9044 emximp -o $lib $output_objdir/$libname.def' 9045 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9046 enable_shared_with_static_runtimes=yes 9047 ;; 9048 9049 interix[3-9]*) 9050 hardcode_direct=no 9051 hardcode_shlibpath_var=no 9052 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9053 export_dynamic_flag_spec='$wl-E' 9054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9055 # Instead, shared libraries are loaded at an image base (0x10000000 by 9056 # default) and relocated if they conflict, which is a slow very memory 9057 # consuming and fragmenting process. To avoid this, we pick a random, 9058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9059 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9061 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' 9062 ;; 9063 9064 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9065 tmp_diet=no 9066 if test linux-dietlibc = "$host_os"; then 9067 case $cc_basename in 9068 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9069 esac 9070 fi 9071 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9072 && test no = "$tmp_diet" 9073 then 9074 tmp_addflag=' $pic_flag' 9075 tmp_sharedflag='-shared' 9076 case $cc_basename,$host_cpu in 9077 pgcc*) # Portland Group C compiler 9078 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' 9079 tmp_addflag=' $pic_flag' 9080 ;; 9081 pgf77* | pgf90* | pgf95* | pgfortran*) 9082 # Portland Group f77 and f90 compilers 9083 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' 9084 tmp_addflag=' $pic_flag -Mnomain' ;; 9085 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9086 tmp_addflag=' -i_dynamic' ;; 9087 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9088 tmp_addflag=' -i_dynamic -nofor_main' ;; 9089 ifc* | ifort*) # Intel Fortran compiler 9090 tmp_addflag=' -nofor_main' ;; 9091 lf95*) # Lahey Fortran 8.1 9092 whole_archive_flag_spec= 9093 tmp_sharedflag='--shared' ;; 9094 nagfor*) # NAGFOR 5.3 9095 tmp_sharedflag='-Wl,-shared' ;; 9096 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9097 tmp_sharedflag='-qmkshrobj' 9098 tmp_addflag= ;; 9099 nvcc*) # Cuda Compiler Driver 2.2 9100 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' 9101 compiler_needs_object=yes 9102 ;; 9103 esac 9104 case `$CC -V 2>&1 | sed 5q` in 9105 *Sun\ C*) # Sun C 5.9 9106 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' 9107 compiler_needs_object=yes 9108 tmp_sharedflag='-G' ;; 9109 *Sun\ F*) # Sun Fortran 8.3 9110 tmp_sharedflag='-G' ;; 9111 esac 9112 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9113 9114 if test yes = "$supports_anon_versioning"; then 9115 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9117 echo "local: *; };" >> $output_objdir/$libname.ver~ 9118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9119 fi 9120 9121 case $cc_basename in 9122 tcc*) 9123 export_dynamic_flag_spec='-rdynamic' 9124 ;; 9125 xlf* | bgf* | bgxlf* | mpixlf*) 9126 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9127 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9128 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9129 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9130 if test yes = "$supports_anon_versioning"; then 9131 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9133 echo "local: *; };" >> $output_objdir/$libname.ver~ 9134 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9135 fi 9136 ;; 9137 esac 9138 else 9139 ld_shlibs=no 9140 fi 9141 ;; 9142 9143 netbsd*) 9144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9146 wlarc= 9147 else 9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9150 fi 9151 ;; 9152 9153 solaris*) 9154 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9155 ld_shlibs=no 9156 cat <<_LT_EOF 1>&2 9157 9158*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9159*** create shared libraries on Solaris systems. Therefore, libtool 9160*** is disabling shared libraries support. We urge you to upgrade GNU 9161*** binutils to release 2.9.1 or newer. Another option is to modify 9162*** your PATH or compiler configuration so that the native linker is 9163*** used, and then restart. 9164 9165_LT_EOF 9166 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9168 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9169 else 9170 ld_shlibs=no 9171 fi 9172 ;; 9173 9174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9175 case `$LD -v 2>&1` in 9176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9177 ld_shlibs=no 9178 cat <<_LT_EOF 1>&2 9179 9180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9181*** reliably create shared libraries on SCO systems. Therefore, libtool 9182*** is disabling shared libraries support. We urge you to upgrade GNU 9183*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9184*** your PATH or compiler configuration so that the native linker is 9185*** used, and then restart. 9186 9187_LT_EOF 9188 ;; 9189 *) 9190 # For security reasons, it is highly recommended that you always 9191 # use absolute paths for naming shared libraries, and exclude the 9192 # DT_RUNPATH tag from executables and libraries. But doing so 9193 # requires that you compile everything twice, which is a pain. 9194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9198 else 9199 ld_shlibs=no 9200 fi 9201 ;; 9202 esac 9203 ;; 9204 9205 sunos4*) 9206 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9207 wlarc= 9208 hardcode_direct=yes 9209 hardcode_shlibpath_var=no 9210 ;; 9211 9212 *) 9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9215 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9216 else 9217 ld_shlibs=no 9218 fi 9219 ;; 9220 esac 9221 9222 if test no = "$ld_shlibs"; then 9223 runpath_var= 9224 hardcode_libdir_flag_spec= 9225 export_dynamic_flag_spec= 9226 whole_archive_flag_spec= 9227 fi 9228 else 9229 # PORTME fill in a description of your system's linker (not GNU ld) 9230 case $host_os in 9231 aix3*) 9232 allow_undefined_flag=unsupported 9233 always_export_symbols=yes 9234 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' 9235 # Note: this linker hardcodes the directories in LIBPATH if there 9236 # are no directories specified by -L. 9237 hardcode_minus_L=yes 9238 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9239 # Neither direct hardcoding nor static linking is supported with a 9240 # broken collect2. 9241 hardcode_direct=unsupported 9242 fi 9243 ;; 9244 9245 aix[4-9]*) 9246 if test ia64 = "$host_cpu"; then 9247 # On IA64, the linker does run time linking by default, so we don't 9248 # have to do anything special. 9249 aix_use_runtimelinking=no 9250 exp_sym_flag='-Bexport' 9251 no_entry_flag= 9252 else 9253 # If we're using GNU nm, then we don't want the "-C" option. 9254 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9255 # Without the "-l" option, or with the "-B" option, AIX nm treats 9256 # weak defined symbols like other global defined symbols, whereas 9257 # GNU nm marks them as "W". 9258 # While the 'weak' keyword is ignored in the Export File, we need 9259 # it in the Import File for the 'aix-soname' feature, so we have 9260 # to replace the "-B" option with "-P" for AIX nm. 9261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9262 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' 9263 else 9264 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' 9265 fi 9266 aix_use_runtimelinking=no 9267 9268 # Test if we are trying to use run time linking or normal 9269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9270 # have runtime linking enabled, and use it for executables. 9271 # For shared libraries, we enable/disable runtime linking 9272 # depending on the kind of the shared library created - 9273 # when "with_aix_soname,aix_use_runtimelinking" is: 9274 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9275 # "aix,yes" lib.so shared, rtl:yes, for executables 9276 # lib.a static archive 9277 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9278 # lib.a(lib.so.V) shared, rtl:no, for executables 9279 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9280 # lib.a(lib.so.V) shared, rtl:no 9281 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9282 # lib.a static archive 9283 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9284 for ld_flag in $LDFLAGS; do 9285 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9286 aix_use_runtimelinking=yes 9287 break 9288 fi 9289 done 9290 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9291 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9292 # so we don't have lib.a shared libs to link our executables. 9293 # We have to force runtime linking in this case. 9294 aix_use_runtimelinking=yes 9295 LDFLAGS="$LDFLAGS -Wl,-brtl" 9296 fi 9297 ;; 9298 esac 9299 9300 exp_sym_flag='-bexport' 9301 no_entry_flag='-bnoentry' 9302 fi 9303 9304 # When large executables or shared objects are built, AIX ld can 9305 # have problems creating the table of contents. If linking a library 9306 # or program results in "error TOC overflow" add -mminimal-toc to 9307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9309 9310 archive_cmds='' 9311 hardcode_direct=yes 9312 hardcode_direct_absolute=yes 9313 hardcode_libdir_separator=':' 9314 link_all_deplibs=yes 9315 file_list_spec='$wl-f,' 9316 case $with_aix_soname,$aix_use_runtimelinking in 9317 aix,*) ;; # traditional, no import file 9318 svr4,* | *,yes) # use import file 9319 # The Import File defines what to hardcode. 9320 hardcode_direct=no 9321 hardcode_direct_absolute=no 9322 ;; 9323 esac 9324 9325 if test yes = "$GCC"; then 9326 case $host_os in aix4.[012]|aix4.[012].*) 9327 # We only want to do this on AIX 4.2 and lower, the check 9328 # below for broken collect2 doesn't work under 4.3+ 9329 collect2name=`$CC -print-prog-name=collect2` 9330 if test -f "$collect2name" && 9331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9332 then 9333 # We have reworked collect2 9334 : 9335 else 9336 # We have old collect2 9337 hardcode_direct=unsupported 9338 # It fails to find uninstalled libraries when the uninstalled 9339 # path is not listed in the libpath. Setting hardcode_minus_L 9340 # to unsupported forces relinking 9341 hardcode_minus_L=yes 9342 hardcode_libdir_flag_spec='-L$libdir' 9343 hardcode_libdir_separator= 9344 fi 9345 ;; 9346 esac 9347 shared_flag='-shared' 9348 if test yes = "$aix_use_runtimelinking"; then 9349 shared_flag="$shared_flag "'$wl-G' 9350 fi 9351 # Need to ensure runtime linking is disabled for the traditional 9352 # shared library, or the linker may eventually find shared libraries 9353 # /with/ Import File - we do not want to mix them. 9354 shared_flag_aix='-shared' 9355 shared_flag_svr4='-shared $wl-G' 9356 else 9357 # not using gcc 9358 if test ia64 = "$host_cpu"; then 9359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9360 # chokes on -Wl,-G. The following line is correct: 9361 shared_flag='-G' 9362 else 9363 if test yes = "$aix_use_runtimelinking"; then 9364 shared_flag='$wl-G' 9365 else 9366 shared_flag='$wl-bM:SRE' 9367 fi 9368 shared_flag_aix='$wl-bM:SRE' 9369 shared_flag_svr4='$wl-G' 9370 fi 9371 fi 9372 9373 export_dynamic_flag_spec='$wl-bexpall' 9374 # It seems that -bexpall does not export symbols beginning with 9375 # underscore (_), so it is better to generate a list of symbols to export. 9376 always_export_symbols=yes 9377 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9378 # Warning - without using the other runtime loading flags (-brtl), 9379 # -berok will link without error, but may produce a broken library. 9380 allow_undefined_flag='-berok' 9381 # Determine the default libpath from the value encoded in an 9382 # empty executable. 9383 if test set = "${lt_cv_aix_libpath+set}"; then 9384 aix_libpath=$lt_cv_aix_libpath 9385else 9386 if ${lt_cv_aix_libpath_+:} false; then : 9387 $as_echo_n "(cached) " >&6 9388else 9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9390/* end confdefs.h. */ 9391 9392int 9393main () 9394{ 9395 9396 ; 9397 return 0; 9398} 9399_ACEOF 9400if ac_fn_c_try_link "$LINENO"; then : 9401 9402 lt_aix_libpath_sed=' 9403 /Import File Strings/,/^$/ { 9404 /^0/ { 9405 s/^0 *\([^ ]*\) *$/\1/ 9406 p 9407 } 9408 }' 9409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9410 # Check for a 64-bit object if we didn't find anything. 9411 if test -z "$lt_cv_aix_libpath_"; then 9412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9413 fi 9414fi 9415rm -f core conftest.err conftest.$ac_objext \ 9416 conftest$ac_exeext conftest.$ac_ext 9417 if test -z "$lt_cv_aix_libpath_"; then 9418 lt_cv_aix_libpath_=/usr/lib:/lib 9419 fi 9420 9421fi 9422 9423 aix_libpath=$lt_cv_aix_libpath_ 9424fi 9425 9426 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9427 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 9428 else 9429 if test ia64 = "$host_cpu"; then 9430 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9431 allow_undefined_flag="-z nodefs" 9432 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" 9433 else 9434 # Determine the default libpath from the value encoded in an 9435 # empty executable. 9436 if test set = "${lt_cv_aix_libpath+set}"; then 9437 aix_libpath=$lt_cv_aix_libpath 9438else 9439 if ${lt_cv_aix_libpath_+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444 9445int 9446main () 9447{ 9448 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453if ac_fn_c_try_link "$LINENO"; then : 9454 9455 lt_aix_libpath_sed=' 9456 /Import File Strings/,/^$/ { 9457 /^0/ { 9458 s/^0 *\([^ ]*\) *$/\1/ 9459 p 9460 } 9461 }' 9462 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9463 # Check for a 64-bit object if we didn't find anything. 9464 if test -z "$lt_cv_aix_libpath_"; then 9465 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9466 fi 9467fi 9468rm -f core conftest.err conftest.$ac_objext \ 9469 conftest$ac_exeext conftest.$ac_ext 9470 if test -z "$lt_cv_aix_libpath_"; then 9471 lt_cv_aix_libpath_=/usr/lib:/lib 9472 fi 9473 9474fi 9475 9476 aix_libpath=$lt_cv_aix_libpath_ 9477fi 9478 9479 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9480 # Warning - without using the other run time loading flags, 9481 # -berok will link without error, but may produce a broken library. 9482 no_undefined_flag=' $wl-bernotok' 9483 allow_undefined_flag=' $wl-berok' 9484 if test yes = "$with_gnu_ld"; then 9485 # We only use this code for GNU lds that support --whole-archive. 9486 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9487 else 9488 # Exported symbols can be pulled into shared objects from archives 9489 whole_archive_flag_spec='$convenience' 9490 fi 9491 archive_cmds_need_lc=yes 9492 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9493 # -brtl affects multiple linker settings, -berok does not and is overridden later 9494 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9495 if test svr4 != "$with_aix_soname"; then 9496 # This is similar to how AIX traditionally builds its shared libraries. 9497 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' 9498 fi 9499 if test aix != "$with_aix_soname"; then 9500 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' 9501 else 9502 # used by -dlpreopen to get the symbols 9503 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9504 fi 9505 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9506 fi 9507 fi 9508 ;; 9509 9510 amigaos*) 9511 case $host_cpu in 9512 powerpc) 9513 # see comment about AmigaOS4 .so support 9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9515 archive_expsym_cmds='' 9516 ;; 9517 m68k) 9518 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)' 9519 hardcode_libdir_flag_spec='-L$libdir' 9520 hardcode_minus_L=yes 9521 ;; 9522 esac 9523 ;; 9524 9525 bsdi[45]*) 9526 export_dynamic_flag_spec=-rdynamic 9527 ;; 9528 9529 cygwin* | mingw* | pw32* | cegcc*) 9530 # When not using gcc, we currently assume that we are using 9531 # Microsoft Visual C++. 9532 # hardcode_libdir_flag_spec is actually meaningless, as there is 9533 # no search path for DLLs. 9534 case $cc_basename in 9535 cl*) 9536 # Native MSVC 9537 hardcode_libdir_flag_spec=' ' 9538 allow_undefined_flag=unsupported 9539 always_export_symbols=yes 9540 file_list_spec='@' 9541 # Tell ltmain to make .lib files, not .a files. 9542 libext=lib 9543 # Tell ltmain to make .dll files, not .so files. 9544 shrext_cmds=.dll 9545 # FIXME: Setting linknames here is a bad hack. 9546 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9547 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9548 cp "$export_symbols" "$output_objdir/$soname.def"; 9549 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9550 else 9551 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9552 fi~ 9553 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9554 linknames=' 9555 # The linker will not automatically build a static lib if we build a DLL. 9556 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9557 enable_shared_with_static_runtimes=yes 9558 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9560 # Don't use ranlib 9561 old_postinstall_cmds='chmod 644 $oldlib' 9562 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9563 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9564 case $lt_outputfile in 9565 *.exe|*.EXE) ;; 9566 *) 9567 lt_outputfile=$lt_outputfile.exe 9568 lt_tool_outputfile=$lt_tool_outputfile.exe 9569 ;; 9570 esac~ 9571 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9572 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9573 $RM "$lt_outputfile.manifest"; 9574 fi' 9575 ;; 9576 *) 9577 # Assume MSVC wrapper 9578 hardcode_libdir_flag_spec=' ' 9579 allow_undefined_flag=unsupported 9580 # Tell ltmain to make .lib files, not .a files. 9581 libext=lib 9582 # Tell ltmain to make .dll files, not .so files. 9583 shrext_cmds=.dll 9584 # FIXME: Setting linknames here is a bad hack. 9585 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9586 # The linker will automatically build a .lib file if we build a DLL. 9587 old_archive_from_new_cmds='true' 9588 # FIXME: Should let the user specify the lib program. 9589 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9590 enable_shared_with_static_runtimes=yes 9591 ;; 9592 esac 9593 ;; 9594 9595 darwin* | rhapsody*) 9596 9597 9598 archive_cmds_need_lc=no 9599 hardcode_direct=no 9600 hardcode_automatic=yes 9601 hardcode_shlibpath_var=unsupported 9602 if test yes = "$lt_cv_ld_force_load"; then 9603 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\"`' 9604 9605 else 9606 whole_archive_flag_spec='' 9607 fi 9608 link_all_deplibs=yes 9609 allow_undefined_flag=$_lt_dar_allow_undefined 9610 case $cc_basename in 9611 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9612 *) _lt_dar_can_shared=$GCC ;; 9613 esac 9614 if test yes = "$_lt_dar_can_shared"; then 9615 output_verbose_link_cmd=func_echo_all 9616 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9617 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9618 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" 9619 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" 9620 9621 else 9622 ld_shlibs=no 9623 fi 9624 9625 ;; 9626 9627 dgux*) 9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9629 hardcode_libdir_flag_spec='-L$libdir' 9630 hardcode_shlibpath_var=no 9631 ;; 9632 9633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9634 # support. Future versions do this automatically, but an explicit c++rt0.o 9635 # does not break anything, and helps significantly (at the cost of a little 9636 # extra space). 9637 freebsd2.2*) 9638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9639 hardcode_libdir_flag_spec='-R$libdir' 9640 hardcode_direct=yes 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9645 freebsd2.*) 9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9647 hardcode_direct=yes 9648 hardcode_minus_L=yes 9649 hardcode_shlibpath_var=no 9650 ;; 9651 9652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9653 freebsd* | dragonfly*) 9654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9655 hardcode_libdir_flag_spec='-R$libdir' 9656 hardcode_direct=yes 9657 hardcode_shlibpath_var=no 9658 ;; 9659 9660 hpux9*) 9661 if test yes = "$GCC"; then 9662 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' 9663 else 9664 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' 9665 fi 9666 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9667 hardcode_libdir_separator=: 9668 hardcode_direct=yes 9669 9670 # hardcode_minus_L: Not really in the search PATH, 9671 # but as the default location of the library. 9672 hardcode_minus_L=yes 9673 export_dynamic_flag_spec='$wl-E' 9674 ;; 9675 9676 hpux10*) 9677 if test yes,no = "$GCC,$with_gnu_ld"; then 9678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9679 else 9680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9681 fi 9682 if test no = "$with_gnu_ld"; then 9683 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9684 hardcode_libdir_separator=: 9685 hardcode_direct=yes 9686 hardcode_direct_absolute=yes 9687 export_dynamic_flag_spec='$wl-E' 9688 # hardcode_minus_L: Not really in the search PATH, 9689 # but as the default location of the library. 9690 hardcode_minus_L=yes 9691 fi 9692 ;; 9693 9694 hpux11*) 9695 if test yes,no = "$GCC,$with_gnu_ld"; then 9696 case $host_cpu in 9697 hppa*64*) 9698 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9699 ;; 9700 ia64*) 9701 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9702 ;; 9703 *) 9704 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9705 ;; 9706 esac 9707 else 9708 case $host_cpu in 9709 hppa*64*) 9710 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9711 ;; 9712 ia64*) 9713 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9714 ;; 9715 *) 9716 9717 # Older versions of the 11.00 compiler do not understand -b yet 9718 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9720$as_echo_n "checking if $CC understands -b... " >&6; } 9721if ${lt_cv_prog_compiler__b+:} false; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 lt_cv_prog_compiler__b=no 9725 save_LDFLAGS=$LDFLAGS 9726 LDFLAGS="$LDFLAGS -b" 9727 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9729 # The linker can only warn and ignore the option if not recognized 9730 # So say no if there are warnings 9731 if test -s conftest.err; then 9732 # Append any errors to the config.log. 9733 cat conftest.err 1>&5 9734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9736 if diff conftest.exp conftest.er2 >/dev/null; then 9737 lt_cv_prog_compiler__b=yes 9738 fi 9739 else 9740 lt_cv_prog_compiler__b=yes 9741 fi 9742 fi 9743 $RM -r conftest* 9744 LDFLAGS=$save_LDFLAGS 9745 9746fi 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9748$as_echo "$lt_cv_prog_compiler__b" >&6; } 9749 9750if test yes = "$lt_cv_prog_compiler__b"; then 9751 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9752else 9753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9754fi 9755 9756 ;; 9757 esac 9758 fi 9759 if test no = "$with_gnu_ld"; then 9760 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9761 hardcode_libdir_separator=: 9762 9763 case $host_cpu in 9764 hppa*64*|ia64*) 9765 hardcode_direct=no 9766 hardcode_shlibpath_var=no 9767 ;; 9768 *) 9769 hardcode_direct=yes 9770 hardcode_direct_absolute=yes 9771 export_dynamic_flag_spec='$wl-E' 9772 9773 # hardcode_minus_L: Not really in the search PATH, 9774 # but as the default location of the library. 9775 hardcode_minus_L=yes 9776 ;; 9777 esac 9778 fi 9779 ;; 9780 9781 irix5* | irix6* | nonstopux*) 9782 if test yes = "$GCC"; then 9783 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' 9784 # Try to use the -exported_symbol ld option, if it does not 9785 # work, assume that -exports_file does not work either and 9786 # implicitly export all symbols. 9787 # This should be the same for all languages, so no per-tag cache variable. 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9789$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9790if ${lt_cv_irix_exported_symbol+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 save_LDFLAGS=$LDFLAGS 9794 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797int foo (void) { return 0; } 9798_ACEOF 9799if ac_fn_c_try_link "$LINENO"; then : 9800 lt_cv_irix_exported_symbol=yes 9801else 9802 lt_cv_irix_exported_symbol=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext \ 9805 conftest$ac_exeext conftest.$ac_ext 9806 LDFLAGS=$save_LDFLAGS 9807fi 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9809$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9810 if test yes = "$lt_cv_irix_exported_symbol"; then 9811 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' 9812 fi 9813 else 9814 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' 9815 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' 9816 fi 9817 archive_cmds_need_lc='no' 9818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9819 hardcode_libdir_separator=: 9820 inherit_rpath=yes 9821 link_all_deplibs=yes 9822 ;; 9823 9824 linux*) 9825 case $cc_basename in 9826 tcc*) 9827 # Fabrice Bellard et al's Tiny C Compiler 9828 ld_shlibs=yes 9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9830 ;; 9831 esac 9832 ;; 9833 9834 netbsd*) 9835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9837 else 9838 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9839 fi 9840 hardcode_libdir_flag_spec='-R$libdir' 9841 hardcode_direct=yes 9842 hardcode_shlibpath_var=no 9843 ;; 9844 9845 newsos6) 9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9847 hardcode_direct=yes 9848 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9849 hardcode_libdir_separator=: 9850 hardcode_shlibpath_var=no 9851 ;; 9852 9853 *nto* | *qnx*) 9854 ;; 9855 9856 openbsd* | bitrig*) 9857 if test -f /usr/libexec/ld.so; then 9858 hardcode_direct=yes 9859 hardcode_shlibpath_var=no 9860 hardcode_direct_absolute=yes 9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9864 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9865 export_dynamic_flag_spec='$wl-E' 9866 else 9867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9868 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9869 fi 9870 else 9871 ld_shlibs=no 9872 fi 9873 ;; 9874 9875 os2*) 9876 hardcode_libdir_flag_spec='-L$libdir' 9877 hardcode_minus_L=yes 9878 allow_undefined_flag=unsupported 9879 shrext_cmds=.dll 9880 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9884 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9886 emximp -o $lib $output_objdir/$libname.def' 9887 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9888 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9889 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9890 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9891 prefix_cmds="$SED"~ 9892 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9893 prefix_cmds="$prefix_cmds -e 1d"; 9894 fi~ 9895 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9896 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9897 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9898 emximp -o $lib $output_objdir/$libname.def' 9899 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9900 enable_shared_with_static_runtimes=yes 9901 ;; 9902 9903 osf3*) 9904 if test yes = "$GCC"; then 9905 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9906 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' 9907 else 9908 allow_undefined_flag=' -expect_unresolved \*' 9909 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' 9910 fi 9911 archive_cmds_need_lc='no' 9912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9913 hardcode_libdir_separator=: 9914 ;; 9915 9916 osf4* | osf5*) # as osf3* with the addition of -msym flag 9917 if test yes = "$GCC"; then 9918 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9919 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' 9920 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9921 else 9922 allow_undefined_flag=' -expect_unresolved \*' 9923 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' 9924 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~ 9925 $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' 9926 9927 # Both c and cxx compiler support -rpath directly 9928 hardcode_libdir_flag_spec='-rpath $libdir' 9929 fi 9930 archive_cmds_need_lc='no' 9931 hardcode_libdir_separator=: 9932 ;; 9933 9934 solaris*) 9935 no_undefined_flag=' -z defs' 9936 if test yes = "$GCC"; then 9937 wlarc='$wl' 9938 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9940 $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' 9941 else 9942 case `$CC -V 2>&1` in 9943 *"Compilers 5.0"*) 9944 wlarc='' 9945 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9947 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9948 ;; 9949 *) 9950 wlarc='$wl' 9951 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9953 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9954 ;; 9955 esac 9956 fi 9957 hardcode_libdir_flag_spec='-R$libdir' 9958 hardcode_shlibpath_var=no 9959 case $host_os in 9960 solaris2.[0-5] | solaris2.[0-5].*) ;; 9961 *) 9962 # The compiler driver will combine and reorder linker options, 9963 # but understands '-z linker_flag'. GCC discards it without '$wl', 9964 # but is careful enough not to reorder. 9965 # Supported since Solaris 2.6 (maybe 2.5.1?) 9966 if test yes = "$GCC"; then 9967 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9968 else 9969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9970 fi 9971 ;; 9972 esac 9973 link_all_deplibs=yes 9974 ;; 9975 9976 sunos4*) 9977 if test sequent = "$host_vendor"; then 9978 # Use $CC to link under sequent, because it throws in some extra .o 9979 # files that make .init and .fini sections work. 9980 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9981 else 9982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9983 fi 9984 hardcode_libdir_flag_spec='-L$libdir' 9985 hardcode_direct=yes 9986 hardcode_minus_L=yes 9987 hardcode_shlibpath_var=no 9988 ;; 9989 9990 sysv4) 9991 case $host_vendor in 9992 sni) 9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9994 hardcode_direct=yes # is this really true??? 9995 ;; 9996 siemens) 9997 ## LD is ld it makes a PLAMLIB 9998 ## CC just makes a GrossModule. 9999 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10000 reload_cmds='$CC -r -o $output$reload_objs' 10001 hardcode_direct=no 10002 ;; 10003 motorola) 10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10005 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10006 ;; 10007 esac 10008 runpath_var='LD_RUN_PATH' 10009 hardcode_shlibpath_var=no 10010 ;; 10011 10012 sysv4.3*) 10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10014 hardcode_shlibpath_var=no 10015 export_dynamic_flag_spec='-Bexport' 10016 ;; 10017 10018 sysv4*MP*) 10019 if test -d /usr/nec; then 10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10021 hardcode_shlibpath_var=no 10022 runpath_var=LD_RUN_PATH 10023 hardcode_runpath_var=yes 10024 ld_shlibs=yes 10025 fi 10026 ;; 10027 10028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10029 no_undefined_flag='$wl-z,text' 10030 archive_cmds_need_lc=no 10031 hardcode_shlibpath_var=no 10032 runpath_var='LD_RUN_PATH' 10033 10034 if test yes = "$GCC"; then 10035 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10036 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10037 else 10038 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10039 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10040 fi 10041 ;; 10042 10043 sysv5* | sco3.2v5* | sco5v6*) 10044 # Note: We CANNOT use -z defs as we might desire, because we do not 10045 # link with -lc, and that would cause any symbols used from libc to 10046 # always be unresolved, which means just about no library would 10047 # ever link correctly. If we're not using GNU ld we use -z text 10048 # though, which does catch some bad symbols but isn't as heavy-handed 10049 # as -z defs. 10050 no_undefined_flag='$wl-z,text' 10051 allow_undefined_flag='$wl-z,nodefs' 10052 archive_cmds_need_lc=no 10053 hardcode_shlibpath_var=no 10054 hardcode_libdir_flag_spec='$wl-R,$libdir' 10055 hardcode_libdir_separator=':' 10056 link_all_deplibs=yes 10057 export_dynamic_flag_spec='$wl-Bexport' 10058 runpath_var='LD_RUN_PATH' 10059 10060 if test yes = "$GCC"; then 10061 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10062 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10063 else 10064 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10065 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10066 fi 10067 ;; 10068 10069 uts4*) 10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10071 hardcode_libdir_flag_spec='-L$libdir' 10072 hardcode_shlibpath_var=no 10073 ;; 10074 10075 *) 10076 ld_shlibs=no 10077 ;; 10078 esac 10079 10080 if test sni = "$host_vendor"; then 10081 case $host in 10082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10083 export_dynamic_flag_spec='$wl-Blargedynsym' 10084 ;; 10085 esac 10086 fi 10087 fi 10088 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10090$as_echo "$ld_shlibs" >&6; } 10091test no = "$ld_shlibs" && can_build_shared=no 10092 10093with_gnu_ld=$with_gnu_ld 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109# 10110# Do we need to explicitly link libc? 10111# 10112case "x$archive_cmds_need_lc" in 10113x|xyes) 10114 # Assume -lc should be added 10115 archive_cmds_need_lc=yes 10116 10117 if test yes,yes = "$GCC,$enable_shared"; then 10118 case $archive_cmds in 10119 *'~'*) 10120 # FIXME: we may have to deal with multi-command sequences. 10121 ;; 10122 '$CC '*) 10123 # Test whether the compiler implicitly links with -lc since on some 10124 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10125 # to ld, don't add -lc before -lgcc. 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10128if ${lt_cv_archive_cmds_need_lc+:} false; then : 10129 $as_echo_n "(cached) " >&6 10130else 10131 $RM conftest* 10132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10133 10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10135 (eval $ac_compile) 2>&5 10136 ac_status=$? 10137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10138 test $ac_status = 0; } 2>conftest.err; then 10139 soname=conftest 10140 lib=conftest 10141 libobjs=conftest.$ac_objext 10142 deplibs= 10143 wl=$lt_prog_compiler_wl 10144 pic_flag=$lt_prog_compiler_pic 10145 compiler_flags=-v 10146 linker_flags=-v 10147 verstring= 10148 output_objdir=. 10149 libname=conftest 10150 lt_save_allow_undefined_flag=$allow_undefined_flag 10151 allow_undefined_flag= 10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10153 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10154 ac_status=$? 10155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10156 test $ac_status = 0; } 10157 then 10158 lt_cv_archive_cmds_need_lc=no 10159 else 10160 lt_cv_archive_cmds_need_lc=yes 10161 fi 10162 allow_undefined_flag=$lt_save_allow_undefined_flag 10163 else 10164 cat conftest.err 1>&5 10165 fi 10166 $RM conftest* 10167 10168fi 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10170$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10171 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10172 ;; 10173 esac 10174 fi 10175 ;; 10176esac 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10330$as_echo_n "checking dynamic linker characteristics... " >&6; } 10331 10332if test yes = "$GCC"; then 10333 case $host_os in 10334 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10335 *) lt_awk_arg='/^libraries:/' ;; 10336 esac 10337 case $host_os in 10338 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10339 *) lt_sed_strip_eq='s|=/|/|g' ;; 10340 esac 10341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10342 case $lt_search_path_spec in 10343 *\;*) 10344 # if the path contains ";" then we assume it to be the separator 10345 # otherwise default to the standard path separator (i.e. ":") - it is 10346 # assumed that no part of a normal pathname contains ";" but that should 10347 # okay in the real world where ";" in dirpaths is itself problematic. 10348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10349 ;; 10350 *) 10351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10352 ;; 10353 esac 10354 # Ok, now we have the path, separated by spaces, we can step through it 10355 # and add multilib dir if necessary... 10356 lt_tmp_lt_search_path_spec= 10357 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10358 # ...but if some path component already ends with the multilib dir we assume 10359 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10360 case "$lt_multi_os_dir; $lt_search_path_spec " in 10361 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10362 lt_multi_os_dir= 10363 ;; 10364 esac 10365 for lt_sys_path in $lt_search_path_spec; do 10366 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10368 elif test -n "$lt_multi_os_dir"; then 10369 test -d "$lt_sys_path" && \ 10370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10371 fi 10372 done 10373 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10374BEGIN {RS = " "; FS = "/|\n";} { 10375 lt_foo = ""; 10376 lt_count = 0; 10377 for (lt_i = NF; lt_i > 0; lt_i--) { 10378 if ($lt_i != "" && $lt_i != ".") { 10379 if ($lt_i == "..") { 10380 lt_count++; 10381 } else { 10382 if (lt_count == 0) { 10383 lt_foo = "/" $lt_i lt_foo; 10384 } else { 10385 lt_count--; 10386 } 10387 } 10388 } 10389 } 10390 if (lt_foo != "") { lt_freq[lt_foo]++; } 10391 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10392}'` 10393 # AWK program above erroneously prepends '/' to C:/dos/paths 10394 # for these hosts. 10395 case $host_os in 10396 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10397 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10398 esac 10399 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10400else 10401 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10402fi 10403library_names_spec= 10404libname_spec='lib$name' 10405soname_spec= 10406shrext_cmds=.so 10407postinstall_cmds= 10408postuninstall_cmds= 10409finish_cmds= 10410finish_eval= 10411shlibpath_var= 10412shlibpath_overrides_runpath=unknown 10413version_type=none 10414dynamic_linker="$host_os ld.so" 10415sys_lib_dlsearch_path_spec="/lib /usr/lib" 10416need_lib_prefix=unknown 10417hardcode_into_libs=no 10418 10419# when you set need_version to no, make sure it does not cause -set_version 10420# flags to be left without arguments 10421need_version=unknown 10422 10423 10424 10425case $host_os in 10426aix3*) 10427 version_type=linux # correct to gnu/linux during the next big refactor 10428 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10429 shlibpath_var=LIBPATH 10430 10431 # AIX 3 has no versioning support, so we append a major version to the name. 10432 soname_spec='$libname$release$shared_ext$major' 10433 ;; 10434 10435aix[4-9]*) 10436 version_type=linux # correct to gnu/linux during the next big refactor 10437 need_lib_prefix=no 10438 need_version=no 10439 hardcode_into_libs=yes 10440 if test ia64 = "$host_cpu"; then 10441 # AIX 5 supports IA64 10442 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10443 shlibpath_var=LD_LIBRARY_PATH 10444 else 10445 # With GCC up to 2.95.x, collect2 would create an import file 10446 # for dependence libraries. The import file would start with 10447 # the line '#! .'. This would cause the generated library to 10448 # depend on '.', always an invalid library. This was fixed in 10449 # development snapshots of GCC prior to 3.0. 10450 case $host_os in 10451 aix4 | aix4.[01] | aix4.[01].*) 10452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10453 echo ' yes ' 10454 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10455 : 10456 else 10457 can_build_shared=no 10458 fi 10459 ;; 10460 esac 10461 # Using Import Files as archive members, it is possible to support 10462 # filename-based versioning of shared library archives on AIX. While 10463 # this would work for both with and without runtime linking, it will 10464 # prevent static linking of such archives. So we do filename-based 10465 # shared library versioning with .so extension only, which is used 10466 # when both runtime linking and shared linking is enabled. 10467 # Unfortunately, runtime linking may impact performance, so we do 10468 # not want this to be the default eventually. Also, we use the 10469 # versioned .so libs for executables only if there is the -brtl 10470 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10471 # To allow for filename-based versioning support, we need to create 10472 # libNAME.so.V as an archive file, containing: 10473 # *) an Import File, referring to the versioned filename of the 10474 # archive as well as the shared archive member, telling the 10475 # bitwidth (32 or 64) of that shared object, and providing the 10476 # list of exported symbols of that shared object, eventually 10477 # decorated with the 'weak' keyword 10478 # *) the shared object with the F_LOADONLY flag set, to really avoid 10479 # it being seen by the linker. 10480 # At run time we better use the real file rather than another symlink, 10481 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10482 10483 case $with_aix_soname,$aix_use_runtimelinking in 10484 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10485 # soname into executable. Probably we can add versioning support to 10486 # collect2, so additional links can be useful in future. 10487 aix,yes) # traditional libtool 10488 dynamic_linker='AIX unversionable lib.so' 10489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10490 # instead of lib<name>.a to let people know that these are not 10491 # typical AIX shared libraries. 10492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10493 ;; 10494 aix,no) # traditional AIX only 10495 dynamic_linker='AIX lib.a(lib.so.V)' 10496 # We preserve .a as extension for shared libraries through AIX4.2 10497 # and later when we are not doing run time linking. 10498 library_names_spec='$libname$release.a $libname.a' 10499 soname_spec='$libname$release$shared_ext$major' 10500 ;; 10501 svr4,*) # full svr4 only 10502 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10503 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10504 # We do not specify a path in Import Files, so LIBPATH fires. 10505 shlibpath_overrides_runpath=yes 10506 ;; 10507 *,yes) # both, prefer svr4 10508 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10509 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10510 # unpreferred sharedlib libNAME.a needs extra handling 10511 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"' 10512 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"' 10513 # We do not specify a path in Import Files, so LIBPATH fires. 10514 shlibpath_overrides_runpath=yes 10515 ;; 10516 *,no) # both, prefer aix 10517 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10518 library_names_spec='$libname$release.a $libname.a' 10519 soname_spec='$libname$release$shared_ext$major' 10520 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10521 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)' 10522 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"' 10523 ;; 10524 esac 10525 shlibpath_var=LIBPATH 10526 fi 10527 ;; 10528 10529amigaos*) 10530 case $host_cpu in 10531 powerpc) 10532 # Since July 2007 AmigaOS4 officially supports .so libraries. 10533 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10535 ;; 10536 m68k) 10537 library_names_spec='$libname.ixlibrary $libname.a' 10538 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10539 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' 10540 ;; 10541 esac 10542 ;; 10543 10544beos*) 10545 library_names_spec='$libname$shared_ext' 10546 dynamic_linker="$host_os ld.so" 10547 shlibpath_var=LIBRARY_PATH 10548 ;; 10549 10550bsdi[45]*) 10551 version_type=linux # correct to gnu/linux during the next big refactor 10552 need_version=no 10553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10554 soname_spec='$libname$release$shared_ext$major' 10555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10559 # the default ld.so.conf also contains /usr/contrib/lib and 10560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10561 # libtool to hard-code these into programs 10562 ;; 10563 10564cygwin* | mingw* | pw32* | cegcc*) 10565 version_type=windows 10566 shrext_cmds=.dll 10567 need_version=no 10568 need_lib_prefix=no 10569 10570 case $GCC,$cc_basename in 10571 yes,*) 10572 # gcc 10573 library_names_spec='$libname.dll.a' 10574 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10575 postinstall_cmds='base_file=`basename \$file`~ 10576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10577 dldir=$destdir/`dirname \$dlpath`~ 10578 test -d \$dldir || mkdir -p \$dldir~ 10579 $install_prog $dir/$dlname \$dldir/$dlname~ 10580 chmod a+x \$dldir/$dlname~ 10581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10583 fi' 10584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10585 dlpath=$dir/\$dldll~ 10586 $RM \$dlpath' 10587 shlibpath_overrides_runpath=yes 10588 10589 case $host_os in 10590 cygwin*) 10591 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10592 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10593 10594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10595 ;; 10596 mingw* | cegcc*) 10597 # MinGW DLLs use traditional 'lib' prefix 10598 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10599 ;; 10600 pw32*) 10601 # pw32 DLLs use 'pw' prefix rather than 'lib' 10602 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10603 ;; 10604 esac 10605 dynamic_linker='Win32 ld.exe' 10606 ;; 10607 10608 *,cl*) 10609 # Native MSVC 10610 libname_spec='$name' 10611 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10612 library_names_spec='$libname.dll.lib' 10613 10614 case $build_os in 10615 mingw*) 10616 sys_lib_search_path_spec= 10617 lt_save_ifs=$IFS 10618 IFS=';' 10619 for lt_path in $LIB 10620 do 10621 IFS=$lt_save_ifs 10622 # Let DOS variable expansion print the short 8.3 style file name. 10623 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10624 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10625 done 10626 IFS=$lt_save_ifs 10627 # Convert to MSYS style. 10628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10629 ;; 10630 cygwin*) 10631 # Convert to unix form, then to dos form, then back to unix form 10632 # but this time dos style (no spaces!) so that the unix form looks 10633 # like /cygdrive/c/PROGRA~1:/cygdr... 10634 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10635 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10636 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10637 ;; 10638 *) 10639 sys_lib_search_path_spec=$LIB 10640 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10641 # It is most probably a Windows format PATH. 10642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10643 else 10644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10645 fi 10646 # FIXME: find the short name or the path components, as spaces are 10647 # common. (e.g. "Program Files" -> "PROGRA~1") 10648 ;; 10649 esac 10650 10651 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10652 postinstall_cmds='base_file=`basename \$file`~ 10653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10654 dldir=$destdir/`dirname \$dlpath`~ 10655 test -d \$dldir || mkdir -p \$dldir~ 10656 $install_prog $dir/$dlname \$dldir/$dlname' 10657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10658 dlpath=$dir/\$dldll~ 10659 $RM \$dlpath' 10660 shlibpath_overrides_runpath=yes 10661 dynamic_linker='Win32 link.exe' 10662 ;; 10663 10664 *) 10665 # Assume MSVC wrapper 10666 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10667 dynamic_linker='Win32 ld.exe' 10668 ;; 10669 esac 10670 # FIXME: first we should search . and the directory the executable is in 10671 shlibpath_var=PATH 10672 ;; 10673 10674darwin* | rhapsody*) 10675 dynamic_linker="$host_os dyld" 10676 version_type=darwin 10677 need_lib_prefix=no 10678 need_version=no 10679 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10680 soname_spec='$libname$release$major$shared_ext' 10681 shlibpath_overrides_runpath=yes 10682 shlibpath_var=DYLD_LIBRARY_PATH 10683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10684 10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10687 ;; 10688 10689dgux*) 10690 version_type=linux # correct to gnu/linux during the next big refactor 10691 need_lib_prefix=no 10692 need_version=no 10693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10694 soname_spec='$libname$release$shared_ext$major' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 ;; 10697 10698freebsd* | dragonfly*) 10699 # DragonFly does not have aout. When/if they implement a new 10700 # versioning mechanism, adjust this. 10701 if test -x /usr/bin/objformat; then 10702 objformat=`/usr/bin/objformat` 10703 else 10704 case $host_os in 10705 freebsd[23].*) objformat=aout ;; 10706 *) objformat=elf ;; 10707 esac 10708 fi 10709 version_type=freebsd-$objformat 10710 case $version_type in 10711 freebsd-elf*) 10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10713 soname_spec='$libname$release$shared_ext$major' 10714 need_version=no 10715 need_lib_prefix=no 10716 ;; 10717 freebsd-*) 10718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10719 need_version=yes 10720 ;; 10721 esac 10722 shlibpath_var=LD_LIBRARY_PATH 10723 case $host_os in 10724 freebsd2.*) 10725 shlibpath_overrides_runpath=yes 10726 ;; 10727 freebsd3.[01]* | freebsdelf3.[01]*) 10728 shlibpath_overrides_runpath=yes 10729 hardcode_into_libs=yes 10730 ;; 10731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10733 shlibpath_overrides_runpath=no 10734 hardcode_into_libs=yes 10735 ;; 10736 *) # from 4.6 on, and DragonFly 10737 shlibpath_overrides_runpath=yes 10738 hardcode_into_libs=yes 10739 ;; 10740 esac 10741 ;; 10742 10743haiku*) 10744 version_type=linux # correct to gnu/linux during the next big refactor 10745 need_lib_prefix=no 10746 need_version=no 10747 dynamic_linker="$host_os runtime_loader" 10748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10749 soname_spec='$libname$release$shared_ext$major' 10750 shlibpath_var=LIBRARY_PATH 10751 shlibpath_overrides_runpath=no 10752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10753 hardcode_into_libs=yes 10754 ;; 10755 10756hpux9* | hpux10* | hpux11*) 10757 # Give a soname corresponding to the major version so that dld.sl refuses to 10758 # link against other versions. 10759 version_type=sunos 10760 need_lib_prefix=no 10761 need_version=no 10762 case $host_cpu in 10763 ia64*) 10764 shrext_cmds='.so' 10765 hardcode_into_libs=yes 10766 dynamic_linker="$host_os dld.so" 10767 shlibpath_var=LD_LIBRARY_PATH 10768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10770 soname_spec='$libname$release$shared_ext$major' 10771 if test 32 = "$HPUX_IA64_MODE"; then 10772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10773 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10774 else 10775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10776 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10777 fi 10778 ;; 10779 hppa*64*) 10780 shrext_cmds='.sl' 10781 hardcode_into_libs=yes 10782 dynamic_linker="$host_os dld.sl" 10783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10786 soname_spec='$libname$release$shared_ext$major' 10787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10789 ;; 10790 *) 10791 shrext_cmds='.sl' 10792 dynamic_linker="$host_os dld.sl" 10793 shlibpath_var=SHLIB_PATH 10794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10796 soname_spec='$libname$release$shared_ext$major' 10797 ;; 10798 esac 10799 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10800 postinstall_cmds='chmod 555 $lib' 10801 # or fails outright, so override atomically: 10802 install_override_mode=555 10803 ;; 10804 10805interix[3-9]*) 10806 version_type=linux # correct to gnu/linux during the next big refactor 10807 need_lib_prefix=no 10808 need_version=no 10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10810 soname_spec='$libname$release$shared_ext$major' 10811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10812 shlibpath_var=LD_LIBRARY_PATH 10813 shlibpath_overrides_runpath=no 10814 hardcode_into_libs=yes 10815 ;; 10816 10817irix5* | irix6* | nonstopux*) 10818 case $host_os in 10819 nonstopux*) version_type=nonstopux ;; 10820 *) 10821 if test yes = "$lt_cv_prog_gnu_ld"; then 10822 version_type=linux # correct to gnu/linux during the next big refactor 10823 else 10824 version_type=irix 10825 fi ;; 10826 esac 10827 need_lib_prefix=no 10828 need_version=no 10829 soname_spec='$libname$release$shared_ext$major' 10830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10831 case $host_os in 10832 irix5* | nonstopux*) 10833 libsuff= shlibsuff= 10834 ;; 10835 *) 10836 case $LD in # libtool.m4 will add one of these switches to LD 10837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10838 libsuff= shlibsuff= libmagic=32-bit;; 10839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10840 libsuff=32 shlibsuff=N32 libmagic=N32;; 10841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10842 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10843 *) libsuff= shlibsuff= libmagic=never-match;; 10844 esac 10845 ;; 10846 esac 10847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10848 shlibpath_overrides_runpath=no 10849 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10850 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10851 hardcode_into_libs=yes 10852 ;; 10853 10854# No shared lib support for Linux oldld, aout, or coff. 10855linux*oldld* | linux*aout* | linux*coff*) 10856 dynamic_linker=no 10857 ;; 10858 10859linux*android*) 10860 version_type=none # Android doesn't support versioned libraries. 10861 need_lib_prefix=no 10862 need_version=no 10863 library_names_spec='$libname$release$shared_ext' 10864 soname_spec='$libname$release$shared_ext' 10865 finish_cmds= 10866 shlibpath_var=LD_LIBRARY_PATH 10867 shlibpath_overrides_runpath=yes 10868 10869 # This implies no fast_install, which is unacceptable. 10870 # Some rework will be needed to allow for fast_install 10871 # before this can be enabled. 10872 hardcode_into_libs=yes 10873 10874 dynamic_linker='Android linker' 10875 # Don't embed -rpath directories since the linker doesn't support them. 10876 hardcode_libdir_flag_spec='-L$libdir' 10877 ;; 10878 10879# This must be glibc/ELF. 10880linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10881 version_type=linux # correct to gnu/linux during the next big refactor 10882 need_lib_prefix=no 10883 need_version=no 10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10885 soname_spec='$libname$release$shared_ext$major' 10886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 shlibpath_overrides_runpath=no 10889 10890 # Some binutils ld are patched to set DT_RUNPATH 10891 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 lt_cv_shlibpath_overrides_runpath=no 10895 save_LDFLAGS=$LDFLAGS 10896 save_libdir=$libdir 10897 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10898 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901 10902int 10903main () 10904{ 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_link "$LINENO"; then : 10911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10912 lt_cv_shlibpath_overrides_runpath=yes 10913fi 10914fi 10915rm -f core conftest.err conftest.$ac_objext \ 10916 conftest$ac_exeext conftest.$ac_ext 10917 LDFLAGS=$save_LDFLAGS 10918 libdir=$save_libdir 10919 10920fi 10921 10922 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10923 10924 # This implies no fast_install, which is unacceptable. 10925 # Some rework will be needed to allow for fast_install 10926 # before this can be enabled. 10927 hardcode_into_libs=yes 10928 10929 # Add ABI-specific directories to the system library path. 10930 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10931 10932 # Ideally, we could use ldconfig to report *all* directores which are 10933 # searched for libraries, however this is still not possible. Aside from not 10934 # being certain /sbin/ldconfig is available, command 10935 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10936 # even though it is searched at run-time. Try to do the best guess by 10937 # appending ld.so.conf contents (and includes) to the search path. 10938 if test -f /etc/ld.so.conf; then 10939 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' ' '` 10940 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10941 fi 10942 10943 # We used to test for /lib/ld.so.1 and disable shared libraries on 10944 # powerpc, because MkLinux only supported shared libraries with the 10945 # GNU dynamic linker. Since this was broken with cross compilers, 10946 # most powerpc-linux boxes support dynamic linking these days and 10947 # people can always --disable-shared, the test was removed, and we 10948 # assume the GNU/Linux dynamic linker is in use. 10949 dynamic_linker='GNU/Linux ld.so' 10950 ;; 10951 10952netbsd*) 10953 version_type=sunos 10954 need_lib_prefix=no 10955 need_version=no 10956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10959 dynamic_linker='NetBSD (a.out) ld.so' 10960 else 10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10962 soname_spec='$libname$release$shared_ext$major' 10963 dynamic_linker='NetBSD ld.elf_so' 10964 fi 10965 shlibpath_var=LD_LIBRARY_PATH 10966 shlibpath_overrides_runpath=yes 10967 hardcode_into_libs=yes 10968 ;; 10969 10970newsos6) 10971 version_type=linux # correct to gnu/linux during the next big refactor 10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10973 shlibpath_var=LD_LIBRARY_PATH 10974 shlibpath_overrides_runpath=yes 10975 ;; 10976 10977*nto* | *qnx*) 10978 version_type=qnx 10979 need_lib_prefix=no 10980 need_version=no 10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10982 soname_spec='$libname$release$shared_ext$major' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 shlibpath_overrides_runpath=no 10985 hardcode_into_libs=yes 10986 dynamic_linker='ldqnx.so' 10987 ;; 10988 10989openbsd* | bitrig*) 10990 version_type=sunos 10991 sys_lib_dlsearch_path_spec=/usr/lib 10992 need_lib_prefix=no 10993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10994 need_version=no 10995 else 10996 need_version=yes 10997 fi 10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 shlibpath_overrides_runpath=yes 11002 ;; 11003 11004os2*) 11005 libname_spec='$name' 11006 version_type=windows 11007 shrext_cmds=.dll 11008 need_version=no 11009 need_lib_prefix=no 11010 # OS/2 can only load a DLL with a base name of 8 characters or less. 11011 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11012 v=$($ECHO $release$versuffix | tr -d .-); 11013 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11014 $ECHO $n$v`$shared_ext' 11015 library_names_spec='${libname}_dll.$libext' 11016 dynamic_linker='OS/2 ld.exe' 11017 shlibpath_var=BEGINLIBPATH 11018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11020 postinstall_cmds='base_file=`basename \$file`~ 11021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11022 dldir=$destdir/`dirname \$dlpath`~ 11023 test -d \$dldir || mkdir -p \$dldir~ 11024 $install_prog $dir/$dlname \$dldir/$dlname~ 11025 chmod a+x \$dldir/$dlname~ 11026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11028 fi' 11029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11030 dlpath=$dir/\$dldll~ 11031 $RM \$dlpath' 11032 ;; 11033 11034osf3* | osf4* | osf5*) 11035 version_type=osf 11036 need_lib_prefix=no 11037 need_version=no 11038 soname_spec='$libname$release$shared_ext$major' 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11040 shlibpath_var=LD_LIBRARY_PATH 11041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11043 ;; 11044 11045rdos*) 11046 dynamic_linker=no 11047 ;; 11048 11049solaris*) 11050 version_type=linux # correct to gnu/linux during the next big refactor 11051 need_lib_prefix=no 11052 need_version=no 11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11054 soname_spec='$libname$release$shared_ext$major' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 shlibpath_overrides_runpath=yes 11057 hardcode_into_libs=yes 11058 # ldd complains unless libraries are executable 11059 postinstall_cmds='chmod +x $lib' 11060 ;; 11061 11062sunos4*) 11063 version_type=sunos 11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11066 shlibpath_var=LD_LIBRARY_PATH 11067 shlibpath_overrides_runpath=yes 11068 if test yes = "$with_gnu_ld"; then 11069 need_lib_prefix=no 11070 fi 11071 need_version=yes 11072 ;; 11073 11074sysv4 | sysv4.3*) 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11077 soname_spec='$libname$release$shared_ext$major' 11078 shlibpath_var=LD_LIBRARY_PATH 11079 case $host_vendor in 11080 sni) 11081 shlibpath_overrides_runpath=no 11082 need_lib_prefix=no 11083 runpath_var=LD_RUN_PATH 11084 ;; 11085 siemens) 11086 need_lib_prefix=no 11087 ;; 11088 motorola) 11089 need_lib_prefix=no 11090 need_version=no 11091 shlibpath_overrides_runpath=no 11092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11093 ;; 11094 esac 11095 ;; 11096 11097sysv4*MP*) 11098 if test -d /usr/nec; then 11099 version_type=linux # correct to gnu/linux during the next big refactor 11100 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11101 soname_spec='$libname$shared_ext.$major' 11102 shlibpath_var=LD_LIBRARY_PATH 11103 fi 11104 ;; 11105 11106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11107 version_type=sco 11108 need_lib_prefix=no 11109 need_version=no 11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11111 soname_spec='$libname$release$shared_ext$major' 11112 shlibpath_var=LD_LIBRARY_PATH 11113 shlibpath_overrides_runpath=yes 11114 hardcode_into_libs=yes 11115 if test yes = "$with_gnu_ld"; then 11116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11117 else 11118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11119 case $host_os in 11120 sco3.2v5*) 11121 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11122 ;; 11123 esac 11124 fi 11125 sys_lib_dlsearch_path_spec='/usr/lib' 11126 ;; 11127 11128tpf*) 11129 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11130 version_type=linux # correct to gnu/linux during the next big refactor 11131 need_lib_prefix=no 11132 need_version=no 11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11134 shlibpath_var=LD_LIBRARY_PATH 11135 shlibpath_overrides_runpath=no 11136 hardcode_into_libs=yes 11137 ;; 11138 11139uts4*) 11140 version_type=linux # correct to gnu/linux during the next big refactor 11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11142 soname_spec='$libname$release$shared_ext$major' 11143 shlibpath_var=LD_LIBRARY_PATH 11144 ;; 11145 11146*) 11147 dynamic_linker=no 11148 ;; 11149esac 11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11151$as_echo "$dynamic_linker" >&6; } 11152test no = "$dynamic_linker" && can_build_shared=no 11153 11154variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11155if test yes = "$GCC"; then 11156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11157fi 11158 11159if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11160 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11161fi 11162 11163if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11164 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11165fi 11166 11167# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11168configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11169 11170# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11171func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11172 11173# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11174configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11273$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11274hardcode_action= 11275if test -n "$hardcode_libdir_flag_spec" || 11276 test -n "$runpath_var" || 11277 test yes = "$hardcode_automatic"; then 11278 11279 # We can hardcode non-existent directories. 11280 if test no != "$hardcode_direct" && 11281 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11282 # have to relink, otherwise we might link with an installed library 11283 # when we should be linking with a yet-to-be-installed one 11284 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11285 test no != "$hardcode_minus_L"; then 11286 # Linking always hardcodes the temporary library directory. 11287 hardcode_action=relink 11288 else 11289 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11290 hardcode_action=immediate 11291 fi 11292else 11293 # We cannot hardcode anything, or else we can only hardcode existing 11294 # directories. 11295 hardcode_action=unsupported 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11298$as_echo "$hardcode_action" >&6; } 11299 11300if test relink = "$hardcode_action" || 11301 test yes = "$inherit_rpath"; then 11302 # Fast installation is not supported 11303 enable_fast_install=no 11304elif test yes = "$shlibpath_overrides_runpath" || 11305 test no = "$enable_shared"; then 11306 # Fast installation is not necessary 11307 enable_fast_install=needless 11308fi 11309 11310 11311 11312 11313 11314 11315 if test yes != "$enable_dlopen"; then 11316 enable_dlopen=unknown 11317 enable_dlopen_self=unknown 11318 enable_dlopen_self_static=unknown 11319else 11320 lt_cv_dlopen=no 11321 lt_cv_dlopen_libs= 11322 11323 case $host_os in 11324 beos*) 11325 lt_cv_dlopen=load_add_on 11326 lt_cv_dlopen_libs= 11327 lt_cv_dlopen_self=yes 11328 ;; 11329 11330 mingw* | pw32* | cegcc*) 11331 lt_cv_dlopen=LoadLibrary 11332 lt_cv_dlopen_libs= 11333 ;; 11334 11335 cygwin*) 11336 lt_cv_dlopen=dlopen 11337 lt_cv_dlopen_libs= 11338 ;; 11339 11340 darwin*) 11341 # if libdl is installed we need to link against it 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11343$as_echo_n "checking for dlopen in -ldl... " >&6; } 11344if ${ac_cv_lib_dl_dlopen+:} false; then : 11345 $as_echo_n "(cached) " >&6 11346else 11347 ac_check_lib_save_LIBS=$LIBS 11348LIBS="-ldl $LIBS" 11349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351 11352/* Override any GCC internal prototype to avoid an error. 11353 Use char because int might match the return type of a GCC 11354 builtin and then its argument prototype would still apply. */ 11355#ifdef __cplusplus 11356extern "C" 11357#endif 11358char dlopen (); 11359int 11360main () 11361{ 11362return dlopen (); 11363 ; 11364 return 0; 11365} 11366_ACEOF 11367if ac_fn_c_try_link "$LINENO"; then : 11368 ac_cv_lib_dl_dlopen=yes 11369else 11370 ac_cv_lib_dl_dlopen=no 11371fi 11372rm -f core conftest.err conftest.$ac_objext \ 11373 conftest$ac_exeext conftest.$ac_ext 11374LIBS=$ac_check_lib_save_LIBS 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11377$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11378if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11379 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11380else 11381 11382 lt_cv_dlopen=dyld 11383 lt_cv_dlopen_libs= 11384 lt_cv_dlopen_self=yes 11385 11386fi 11387 11388 ;; 11389 11390 tpf*) 11391 # Don't try to run any link tests for TPF. We know it's impossible 11392 # because TPF is a cross-compiler, and we know how we open DSOs. 11393 lt_cv_dlopen=dlopen 11394 lt_cv_dlopen_libs= 11395 lt_cv_dlopen_self=no 11396 ;; 11397 11398 *) 11399 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11400if test "x$ac_cv_func_shl_load" = xyes; then : 11401 lt_cv_dlopen=shl_load 11402else 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11404$as_echo_n "checking for shl_load in -ldld... " >&6; } 11405if ${ac_cv_lib_dld_shl_load+:} false; then : 11406 $as_echo_n "(cached) " >&6 11407else 11408 ac_check_lib_save_LIBS=$LIBS 11409LIBS="-ldld $LIBS" 11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11411/* end confdefs.h. */ 11412 11413/* Override any GCC internal prototype to avoid an error. 11414 Use char because int might match the return type of a GCC 11415 builtin and then its argument prototype would still apply. */ 11416#ifdef __cplusplus 11417extern "C" 11418#endif 11419char shl_load (); 11420int 11421main () 11422{ 11423return shl_load (); 11424 ; 11425 return 0; 11426} 11427_ACEOF 11428if ac_fn_c_try_link "$LINENO"; then : 11429 ac_cv_lib_dld_shl_load=yes 11430else 11431 ac_cv_lib_dld_shl_load=no 11432fi 11433rm -f core conftest.err conftest.$ac_objext \ 11434 conftest$ac_exeext conftest.$ac_ext 11435LIBS=$ac_check_lib_save_LIBS 11436fi 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11438$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11439if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11440 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11441else 11442 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11443if test "x$ac_cv_func_dlopen" = xyes; then : 11444 lt_cv_dlopen=dlopen 11445else 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11447$as_echo_n "checking for dlopen in -ldl... " >&6; } 11448if ${ac_cv_lib_dl_dlopen+:} false; then : 11449 $as_echo_n "(cached) " >&6 11450else 11451 ac_check_lib_save_LIBS=$LIBS 11452LIBS="-ldl $LIBS" 11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454/* end confdefs.h. */ 11455 11456/* Override any GCC internal prototype to avoid an error. 11457 Use char because int might match the return type of a GCC 11458 builtin and then its argument prototype would still apply. */ 11459#ifdef __cplusplus 11460extern "C" 11461#endif 11462char dlopen (); 11463int 11464main () 11465{ 11466return dlopen (); 11467 ; 11468 return 0; 11469} 11470_ACEOF 11471if ac_fn_c_try_link "$LINENO"; then : 11472 ac_cv_lib_dl_dlopen=yes 11473else 11474 ac_cv_lib_dl_dlopen=no 11475fi 11476rm -f core conftest.err conftest.$ac_objext \ 11477 conftest$ac_exeext conftest.$ac_ext 11478LIBS=$ac_check_lib_save_LIBS 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11481$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11482if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11483 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11484else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11486$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11487if ${ac_cv_lib_svld_dlopen+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489else 11490 ac_check_lib_save_LIBS=$LIBS 11491LIBS="-lsvld $LIBS" 11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11493/* end confdefs.h. */ 11494 11495/* Override any GCC internal prototype to avoid an error. 11496 Use char because int might match the return type of a GCC 11497 builtin and then its argument prototype would still apply. */ 11498#ifdef __cplusplus 11499extern "C" 11500#endif 11501char dlopen (); 11502int 11503main () 11504{ 11505return dlopen (); 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510if ac_fn_c_try_link "$LINENO"; then : 11511 ac_cv_lib_svld_dlopen=yes 11512else 11513 ac_cv_lib_svld_dlopen=no 11514fi 11515rm -f core conftest.err conftest.$ac_objext \ 11516 conftest$ac_exeext conftest.$ac_ext 11517LIBS=$ac_check_lib_save_LIBS 11518fi 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11520$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11521if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11522 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11523else 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11525$as_echo_n "checking for dld_link in -ldld... " >&6; } 11526if ${ac_cv_lib_dld_dld_link+:} false; then : 11527 $as_echo_n "(cached) " >&6 11528else 11529 ac_check_lib_save_LIBS=$LIBS 11530LIBS="-ldld $LIBS" 11531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11532/* end confdefs.h. */ 11533 11534/* Override any GCC internal prototype to avoid an error. 11535 Use char because int might match the return type of a GCC 11536 builtin and then its argument prototype would still apply. */ 11537#ifdef __cplusplus 11538extern "C" 11539#endif 11540char dld_link (); 11541int 11542main () 11543{ 11544return dld_link (); 11545 ; 11546 return 0; 11547} 11548_ACEOF 11549if ac_fn_c_try_link "$LINENO"; then : 11550 ac_cv_lib_dld_dld_link=yes 11551else 11552 ac_cv_lib_dld_dld_link=no 11553fi 11554rm -f core conftest.err conftest.$ac_objext \ 11555 conftest$ac_exeext conftest.$ac_ext 11556LIBS=$ac_check_lib_save_LIBS 11557fi 11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11559$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11560if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11561 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11562fi 11563 11564 11565fi 11566 11567 11568fi 11569 11570 11571fi 11572 11573 11574fi 11575 11576 11577fi 11578 11579 ;; 11580 esac 11581 11582 if test no = "$lt_cv_dlopen"; then 11583 enable_dlopen=no 11584 else 11585 enable_dlopen=yes 11586 fi 11587 11588 case $lt_cv_dlopen in 11589 dlopen) 11590 save_CPPFLAGS=$CPPFLAGS 11591 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11592 11593 save_LDFLAGS=$LDFLAGS 11594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11595 11596 save_LIBS=$LIBS 11597 LIBS="$lt_cv_dlopen_libs $LIBS" 11598 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11600$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11601if ${lt_cv_dlopen_self+:} false; then : 11602 $as_echo_n "(cached) " >&6 11603else 11604 if test yes = "$cross_compiling"; then : 11605 lt_cv_dlopen_self=cross 11606else 11607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11608 lt_status=$lt_dlunknown 11609 cat > conftest.$ac_ext <<_LT_EOF 11610#line $LINENO "configure" 11611#include "confdefs.h" 11612 11613#if HAVE_DLFCN_H 11614#include <dlfcn.h> 11615#endif 11616 11617#include <stdio.h> 11618 11619#ifdef RTLD_GLOBAL 11620# define LT_DLGLOBAL RTLD_GLOBAL 11621#else 11622# ifdef DL_GLOBAL 11623# define LT_DLGLOBAL DL_GLOBAL 11624# else 11625# define LT_DLGLOBAL 0 11626# endif 11627#endif 11628 11629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11630 find out it does not work in some platform. */ 11631#ifndef LT_DLLAZY_OR_NOW 11632# ifdef RTLD_LAZY 11633# define LT_DLLAZY_OR_NOW RTLD_LAZY 11634# else 11635# ifdef DL_LAZY 11636# define LT_DLLAZY_OR_NOW DL_LAZY 11637# else 11638# ifdef RTLD_NOW 11639# define LT_DLLAZY_OR_NOW RTLD_NOW 11640# else 11641# ifdef DL_NOW 11642# define LT_DLLAZY_OR_NOW DL_NOW 11643# else 11644# define LT_DLLAZY_OR_NOW 0 11645# endif 11646# endif 11647# endif 11648# endif 11649#endif 11650 11651/* When -fvisibility=hidden is used, assume the code has been annotated 11652 correspondingly for the symbols needed. */ 11653#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11654int fnord () __attribute__((visibility("default"))); 11655#endif 11656 11657int fnord () { return 42; } 11658int main () 11659{ 11660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11661 int status = $lt_dlunknown; 11662 11663 if (self) 11664 { 11665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11666 else 11667 { 11668 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11669 else puts (dlerror ()); 11670 } 11671 /* dlclose (self); */ 11672 } 11673 else 11674 puts (dlerror ()); 11675 11676 return status; 11677} 11678_LT_EOF 11679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11680 (eval $ac_link) 2>&5 11681 ac_status=$? 11682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11683 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11684 (./conftest; exit; ) >&5 2>/dev/null 11685 lt_status=$? 11686 case x$lt_status in 11687 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11688 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11689 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11690 esac 11691 else : 11692 # compilation failed 11693 lt_cv_dlopen_self=no 11694 fi 11695fi 11696rm -fr conftest* 11697 11698 11699fi 11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11701$as_echo "$lt_cv_dlopen_self" >&6; } 11702 11703 if test yes = "$lt_cv_dlopen_self"; then 11704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11706$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11707if ${lt_cv_dlopen_self_static+:} false; then : 11708 $as_echo_n "(cached) " >&6 11709else 11710 if test yes = "$cross_compiling"; then : 11711 lt_cv_dlopen_self_static=cross 11712else 11713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11714 lt_status=$lt_dlunknown 11715 cat > conftest.$ac_ext <<_LT_EOF 11716#line $LINENO "configure" 11717#include "confdefs.h" 11718 11719#if HAVE_DLFCN_H 11720#include <dlfcn.h> 11721#endif 11722 11723#include <stdio.h> 11724 11725#ifdef RTLD_GLOBAL 11726# define LT_DLGLOBAL RTLD_GLOBAL 11727#else 11728# ifdef DL_GLOBAL 11729# define LT_DLGLOBAL DL_GLOBAL 11730# else 11731# define LT_DLGLOBAL 0 11732# endif 11733#endif 11734 11735/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11736 find out it does not work in some platform. */ 11737#ifndef LT_DLLAZY_OR_NOW 11738# ifdef RTLD_LAZY 11739# define LT_DLLAZY_OR_NOW RTLD_LAZY 11740# else 11741# ifdef DL_LAZY 11742# define LT_DLLAZY_OR_NOW DL_LAZY 11743# else 11744# ifdef RTLD_NOW 11745# define LT_DLLAZY_OR_NOW RTLD_NOW 11746# else 11747# ifdef DL_NOW 11748# define LT_DLLAZY_OR_NOW DL_NOW 11749# else 11750# define LT_DLLAZY_OR_NOW 0 11751# endif 11752# endif 11753# endif 11754# endif 11755#endif 11756 11757/* When -fvisibility=hidden is used, assume the code has been annotated 11758 correspondingly for the symbols needed. */ 11759#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11760int fnord () __attribute__((visibility("default"))); 11761#endif 11762 11763int fnord () { return 42; } 11764int main () 11765{ 11766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11767 int status = $lt_dlunknown; 11768 11769 if (self) 11770 { 11771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11772 else 11773 { 11774 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11775 else puts (dlerror ()); 11776 } 11777 /* dlclose (self); */ 11778 } 11779 else 11780 puts (dlerror ()); 11781 11782 return status; 11783} 11784_LT_EOF 11785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11786 (eval $ac_link) 2>&5 11787 ac_status=$? 11788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11789 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11790 (./conftest; exit; ) >&5 2>/dev/null 11791 lt_status=$? 11792 case x$lt_status in 11793 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11794 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11795 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11796 esac 11797 else : 11798 # compilation failed 11799 lt_cv_dlopen_self_static=no 11800 fi 11801fi 11802rm -fr conftest* 11803 11804 11805fi 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11807$as_echo "$lt_cv_dlopen_self_static" >&6; } 11808 fi 11809 11810 CPPFLAGS=$save_CPPFLAGS 11811 LDFLAGS=$save_LDFLAGS 11812 LIBS=$save_LIBS 11813 ;; 11814 esac 11815 11816 case $lt_cv_dlopen_self in 11817 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11818 *) enable_dlopen_self=unknown ;; 11819 esac 11820 11821 case $lt_cv_dlopen_self_static in 11822 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11823 *) enable_dlopen_self_static=unknown ;; 11824 esac 11825fi 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843striplib= 11844old_striplib= 11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11846$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11847if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11849 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11851$as_echo "yes" >&6; } 11852else 11853# FIXME - insert some real tests, host_os isn't really good enough 11854 case $host_os in 11855 darwin*) 11856 if test -n "$STRIP"; then 11857 striplib="$STRIP -x" 11858 old_striplib="$STRIP -S" 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11860$as_echo "yes" >&6; } 11861 else 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11863$as_echo "no" >&6; } 11864 fi 11865 ;; 11866 *) 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11868$as_echo "no" >&6; } 11869 ;; 11870 esac 11871fi 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 # Report what library types will actually be built 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11886$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11888$as_echo "$can_build_shared" >&6; } 11889 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11891$as_echo_n "checking whether to build shared libraries... " >&6; } 11892 test no = "$can_build_shared" && enable_shared=no 11893 11894 # On AIX, shared libraries and static libraries use the same namespace, and 11895 # are all built from PIC. 11896 case $host_os in 11897 aix3*) 11898 test yes = "$enable_shared" && enable_static=no 11899 if test -n "$RANLIB"; then 11900 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11901 postinstall_cmds='$RANLIB $lib' 11902 fi 11903 ;; 11904 11905 aix[4-9]*) 11906 if test ia64 != "$host_cpu"; then 11907 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11908 yes,aix,yes) ;; # shared object as lib.so file only 11909 yes,svr4,*) ;; # shared object as lib.so archive member only 11910 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11911 esac 11912 fi 11913 ;; 11914 esac 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11916$as_echo "$enable_shared" >&6; } 11917 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11919$as_echo_n "checking whether to build static libraries... " >&6; } 11920 # Make sure either enable_shared or enable_static is yes. 11921 test yes = "$enable_shared" || enable_static=yes 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11923$as_echo "$enable_static" >&6; } 11924 11925 11926 11927 11928fi 11929ac_ext=c 11930ac_cpp='$CPP $CPPFLAGS' 11931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11933ac_compiler_gnu=$ac_cv_c_compiler_gnu 11934 11935CC=$lt_save_CC 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 ac_config_commands="$ac_config_commands libtool" 11952 11953 11954 11955 11956# Only expand once: 11957 11958 11959 11960# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11973$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11974if ${ac_cv_prog_cc_c99+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 ac_cv_prog_cc_c99=no 11978ac_save_CC=$CC 11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981#include <stdarg.h> 11982#include <stdbool.h> 11983#include <stdlib.h> 11984#include <wchar.h> 11985#include <stdio.h> 11986 11987// Check varargs macros. These examples are taken from C99 6.10.3.5. 11988#define debug(...) fprintf (stderr, __VA_ARGS__) 11989#define showlist(...) puts (#__VA_ARGS__) 11990#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11991static void 11992test_varargs_macros (void) 11993{ 11994 int x = 1234; 11995 int y = 5678; 11996 debug ("Flag"); 11997 debug ("X = %d\n", x); 11998 showlist (The first, second, and third items.); 11999 report (x>y, "x is %d but y is %d", x, y); 12000} 12001 12002// Check long long types. 12003#define BIG64 18446744073709551615ull 12004#define BIG32 4294967295ul 12005#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12006#if !BIG_OK 12007 your preprocessor is broken; 12008#endif 12009#if BIG_OK 12010#else 12011 your preprocessor is broken; 12012#endif 12013static long long int bignum = -9223372036854775807LL; 12014static unsigned long long int ubignum = BIG64; 12015 12016struct incomplete_array 12017{ 12018 int datasize; 12019 double data[]; 12020}; 12021 12022struct named_init { 12023 int number; 12024 const wchar_t *name; 12025 double average; 12026}; 12027 12028typedef const char *ccp; 12029 12030static inline int 12031test_restrict (ccp restrict text) 12032{ 12033 // See if C++-style comments work. 12034 // Iterate through items via the restricted pointer. 12035 // Also check for declarations in for loops. 12036 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12037 continue; 12038 return 0; 12039} 12040 12041// Check varargs and va_copy. 12042static void 12043test_varargs (const char *format, ...) 12044{ 12045 va_list args; 12046 va_start (args, format); 12047 va_list args_copy; 12048 va_copy (args_copy, args); 12049 12050 const char *str; 12051 int number; 12052 float fnumber; 12053 12054 while (*format) 12055 { 12056 switch (*format++) 12057 { 12058 case 's': // string 12059 str = va_arg (args_copy, const char *); 12060 break; 12061 case 'd': // int 12062 number = va_arg (args_copy, int); 12063 break; 12064 case 'f': // float 12065 fnumber = va_arg (args_copy, double); 12066 break; 12067 default: 12068 break; 12069 } 12070 } 12071 va_end (args_copy); 12072 va_end (args); 12073} 12074 12075int 12076main () 12077{ 12078 12079 // Check bool. 12080 _Bool success = false; 12081 12082 // Check restrict. 12083 if (test_restrict ("String literal") == 0) 12084 success = true; 12085 char *restrict newvar = "Another string"; 12086 12087 // Check varargs. 12088 test_varargs ("s, d' f .", "string", 65, 34.234); 12089 test_varargs_macros (); 12090 12091 // Check flexible array members. 12092 struct incomplete_array *ia = 12093 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12094 ia->datasize = 10; 12095 for (int i = 0; i < ia->datasize; ++i) 12096 ia->data[i] = i * 1.234; 12097 12098 // Check named initializers. 12099 struct named_init ni = { 12100 .number = 34, 12101 .name = L"Test wide string", 12102 .average = 543.34343, 12103 }; 12104 12105 ni.number = 58; 12106 12107 int dynamic_array[ni.number]; 12108 dynamic_array[ni.number - 1] = 543; 12109 12110 // work around unused variable warnings 12111 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12112 || dynamic_array[ni.number - 1] != 543); 12113 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12119do 12120 CC="$ac_save_CC $ac_arg" 12121 if ac_fn_c_try_compile "$LINENO"; then : 12122 ac_cv_prog_cc_c99=$ac_arg 12123fi 12124rm -f core conftest.err conftest.$ac_objext 12125 test "x$ac_cv_prog_cc_c99" != "xno" && break 12126done 12127rm -f conftest.$ac_ext 12128CC=$ac_save_CC 12129 12130fi 12131# AC_CACHE_VAL 12132case "x$ac_cv_prog_cc_c99" in 12133 x) 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12135$as_echo "none needed" >&6; } ;; 12136 xno) 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12138$as_echo "unsupported" >&6; } ;; 12139 *) 12140 CC="$CC $ac_cv_prog_cc_c99" 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12142$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12143esac 12144if test "x$ac_cv_prog_cc_c99" != xno; then : 12145 12146fi 12147 12148 12149 12150 12151 12152 12153ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12154if test "x$ac_cv_have_decl___clang__" = xyes; then : 12155 CLANGCC="yes" 12156else 12157 CLANGCC="no" 12158fi 12159 12160ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12161if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12162 INTELCC="yes" 12163else 12164 INTELCC="no" 12165fi 12166 12167ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12168if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12169 SUNCC="yes" 12170else 12171 SUNCC="no" 12172fi 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12183 if test -n "$ac_tool_prefix"; then 12184 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12185set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12187$as_echo_n "checking for $ac_word... " >&6; } 12188if ${ac_cv_path_PKG_CONFIG+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 case $PKG_CONFIG in 12192 [\\/]* | ?:[\\/]*) 12193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12194 ;; 12195 *) 12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12197for as_dir in $PATH 12198do 12199 IFS=$as_save_IFS 12200 test -z "$as_dir" && as_dir=. 12201 for ac_exec_ext in '' $ac_executable_extensions; do 12202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12205 break 2 12206 fi 12207done 12208 done 12209IFS=$as_save_IFS 12210 12211 ;; 12212esac 12213fi 12214PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12215if test -n "$PKG_CONFIG"; then 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12217$as_echo "$PKG_CONFIG" >&6; } 12218else 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12220$as_echo "no" >&6; } 12221fi 12222 12223 12224fi 12225if test -z "$ac_cv_path_PKG_CONFIG"; then 12226 ac_pt_PKG_CONFIG=$PKG_CONFIG 12227 # Extract the first word of "pkg-config", so it can be a program name with args. 12228set dummy pkg-config; ac_word=$2 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12230$as_echo_n "checking for $ac_word... " >&6; } 12231if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233else 12234 case $ac_pt_PKG_CONFIG in 12235 [\\/]* | ?:[\\/]*) 12236 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12237 ;; 12238 *) 12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12240for as_dir in $PATH 12241do 12242 IFS=$as_save_IFS 12243 test -z "$as_dir" && as_dir=. 12244 for ac_exec_ext in '' $ac_executable_extensions; do 12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12246 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12248 break 2 12249 fi 12250done 12251 done 12252IFS=$as_save_IFS 12253 12254 ;; 12255esac 12256fi 12257ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12258if test -n "$ac_pt_PKG_CONFIG"; then 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12260$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12261else 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12263$as_echo "no" >&6; } 12264fi 12265 12266 if test "x$ac_pt_PKG_CONFIG" = x; then 12267 PKG_CONFIG="" 12268 else 12269 case $cross_compiling:$ac_tool_warned in 12270yes:) 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12273ac_tool_warned=yes ;; 12274esac 12275 PKG_CONFIG=$ac_pt_PKG_CONFIG 12276 fi 12277else 12278 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12279fi 12280 12281fi 12282if test -n "$PKG_CONFIG"; then 12283 _pkg_min_version=0.9.0 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12285$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12286 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12288$as_echo "yes" >&6; } 12289 else 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12291$as_echo "no" >&6; } 12292 PKG_CONFIG="" 12293 fi 12294fi 12295 12296 12297 12298 12299 12300# Check whether --enable-selective-werror was given. 12301if test "${enable_selective_werror+set}" = set; then : 12302 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12303else 12304 SELECTIVE_WERROR=yes 12305fi 12306 12307 12308 12309 12310 12311# -v is too short to test reliably with XORG_TESTSET_CFLAG 12312if test "x$SUNCC" = "xyes"; then 12313 BASE_CFLAGS="-v" 12314else 12315 BASE_CFLAGS="" 12316fi 12317 12318# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332xorg_testset_save_CFLAGS="$CFLAGS" 12333 12334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343int i; 12344_ACEOF 12345if ac_fn_c_try_compile "$LINENO"; then : 12346 xorg_cv_cc_flag_unknown_warning_option=yes 12347else 12348 xorg_cv_cc_flag_unknown_warning_option=no 12349fi 12350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12351fi 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12355 CFLAGS="$xorg_testset_save_CFLAGS" 12356fi 12357 12358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12361 fi 12362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12366 $as_echo_n "(cached) " >&6 12367else 12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12369/* end confdefs.h. */ 12370int i; 12371_ACEOF 12372if ac_fn_c_try_compile "$LINENO"; then : 12373 xorg_cv_cc_flag_unused_command_line_argument=yes 12374else 12375 xorg_cv_cc_flag_unused_command_line_argument=no 12376fi 12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12378fi 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12382 CFLAGS="$xorg_testset_save_CFLAGS" 12383fi 12384 12385found="no" 12386 12387 if test $found = "no" ; then 12388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12390 fi 12391 12392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12394 fi 12395 12396 CFLAGS="$CFLAGS -Wall" 12397 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12399$as_echo_n "checking if $CC supports -Wall... " >&6; } 12400 cacheid=xorg_cv_cc_flag__Wall 12401 if eval \${$cacheid+:} false; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12405/* end confdefs.h. */ 12406int i; 12407int 12408main () 12409{ 12410 12411 ; 12412 return 0; 12413} 12414_ACEOF 12415if ac_fn_c_try_link "$LINENO"; then : 12416 eval $cacheid=yes 12417else 12418 eval $cacheid=no 12419fi 12420rm -f core conftest.err conftest.$ac_objext \ 12421 conftest$ac_exeext conftest.$ac_ext 12422fi 12423 12424 12425 CFLAGS="$xorg_testset_save_CFLAGS" 12426 12427 eval supported=\$$cacheid 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12429$as_echo "$supported" >&6; } 12430 if test "$supported" = "yes" ; then 12431 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12432 found="yes" 12433 fi 12434 fi 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450xorg_testset_save_CFLAGS="$CFLAGS" 12451 12452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458else 12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12460/* end confdefs.h. */ 12461int i; 12462_ACEOF 12463if ac_fn_c_try_compile "$LINENO"; then : 12464 xorg_cv_cc_flag_unknown_warning_option=yes 12465else 12466 xorg_cv_cc_flag_unknown_warning_option=no 12467fi 12468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12469fi 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12473 CFLAGS="$xorg_testset_save_CFLAGS" 12474fi 12475 12476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12479 fi 12480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487/* end confdefs.h. */ 12488int i; 12489_ACEOF 12490if ac_fn_c_try_compile "$LINENO"; then : 12491 xorg_cv_cc_flag_unused_command_line_argument=yes 12492else 12493 xorg_cv_cc_flag_unused_command_line_argument=no 12494fi 12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12496fi 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12500 CFLAGS="$xorg_testset_save_CFLAGS" 12501fi 12502 12503found="no" 12504 12505 if test $found = "no" ; then 12506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12508 fi 12509 12510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12512 fi 12513 12514 CFLAGS="$CFLAGS -Wpointer-arith" 12515 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12517$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12518 cacheid=xorg_cv_cc_flag__Wpointer_arith 12519 if eval \${$cacheid+:} false; then : 12520 $as_echo_n "(cached) " >&6 12521else 12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12523/* end confdefs.h. */ 12524int i; 12525int 12526main () 12527{ 12528 12529 ; 12530 return 0; 12531} 12532_ACEOF 12533if ac_fn_c_try_link "$LINENO"; then : 12534 eval $cacheid=yes 12535else 12536 eval $cacheid=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext \ 12539 conftest$ac_exeext conftest.$ac_ext 12540fi 12541 12542 12543 CFLAGS="$xorg_testset_save_CFLAGS" 12544 12545 eval supported=\$$cacheid 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12547$as_echo "$supported" >&6; } 12548 if test "$supported" = "yes" ; then 12549 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12550 found="yes" 12551 fi 12552 fi 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568xorg_testset_save_CFLAGS="$CFLAGS" 12569 12570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579int i; 12580_ACEOF 12581if ac_fn_c_try_compile "$LINENO"; then : 12582 xorg_cv_cc_flag_unknown_warning_option=yes 12583else 12584 xorg_cv_cc_flag_unknown_warning_option=no 12585fi 12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12591 CFLAGS="$xorg_testset_save_CFLAGS" 12592fi 12593 12594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12597 fi 12598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603else 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606int i; 12607_ACEOF 12608if ac_fn_c_try_compile "$LINENO"; then : 12609 xorg_cv_cc_flag_unused_command_line_argument=yes 12610else 12611 xorg_cv_cc_flag_unused_command_line_argument=no 12612fi 12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12614fi 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12618 CFLAGS="$xorg_testset_save_CFLAGS" 12619fi 12620 12621found="no" 12622 12623 if test $found = "no" ; then 12624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12626 fi 12627 12628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12630 fi 12631 12632 CFLAGS="$CFLAGS -Wmissing-declarations" 12633 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12635$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12636 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12637 if eval \${$cacheid+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639else 12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12641/* end confdefs.h. */ 12642int i; 12643int 12644main () 12645{ 12646 12647 ; 12648 return 0; 12649} 12650_ACEOF 12651if ac_fn_c_try_link "$LINENO"; then : 12652 eval $cacheid=yes 12653else 12654 eval $cacheid=no 12655fi 12656rm -f core conftest.err conftest.$ac_objext \ 12657 conftest$ac_exeext conftest.$ac_ext 12658fi 12659 12660 12661 CFLAGS="$xorg_testset_save_CFLAGS" 12662 12663 eval supported=\$$cacheid 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12665$as_echo "$supported" >&6; } 12666 if test "$supported" = "yes" ; then 12667 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12668 found="yes" 12669 fi 12670 fi 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686xorg_testset_save_CFLAGS="$CFLAGS" 12687 12688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12693 $as_echo_n "(cached) " >&6 12694else 12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12696/* end confdefs.h. */ 12697int i; 12698_ACEOF 12699if ac_fn_c_try_compile "$LINENO"; then : 12700 xorg_cv_cc_flag_unknown_warning_option=yes 12701else 12702 xorg_cv_cc_flag_unknown_warning_option=no 12703fi 12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12705fi 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12709 CFLAGS="$xorg_testset_save_CFLAGS" 12710fi 12711 12712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12715 fi 12716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724int i; 12725_ACEOF 12726if ac_fn_c_try_compile "$LINENO"; then : 12727 xorg_cv_cc_flag_unused_command_line_argument=yes 12728else 12729 xorg_cv_cc_flag_unused_command_line_argument=no 12730fi 12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12732fi 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12736 CFLAGS="$xorg_testset_save_CFLAGS" 12737fi 12738 12739found="no" 12740 12741 if test $found = "no" ; then 12742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12744 fi 12745 12746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12748 fi 12749 12750 CFLAGS="$CFLAGS -Wformat=2" 12751 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12753$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12754 cacheid=xorg_cv_cc_flag__Wformat_2 12755 if eval \${$cacheid+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757else 12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12759/* end confdefs.h. */ 12760int i; 12761int 12762main () 12763{ 12764 12765 ; 12766 return 0; 12767} 12768_ACEOF 12769if ac_fn_c_try_link "$LINENO"; then : 12770 eval $cacheid=yes 12771else 12772 eval $cacheid=no 12773fi 12774rm -f core conftest.err conftest.$ac_objext \ 12775 conftest$ac_exeext conftest.$ac_ext 12776fi 12777 12778 12779 CFLAGS="$xorg_testset_save_CFLAGS" 12780 12781 eval supported=\$$cacheid 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12783$as_echo "$supported" >&6; } 12784 if test "$supported" = "yes" ; then 12785 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12786 found="yes" 12787 fi 12788 fi 12789 12790 if test $found = "no" ; then 12791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12793 fi 12794 12795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12797 fi 12798 12799 CFLAGS="$CFLAGS -Wformat" 12800 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12802$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12803 cacheid=xorg_cv_cc_flag__Wformat 12804 if eval \${$cacheid+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808/* end confdefs.h. */ 12809int i; 12810int 12811main () 12812{ 12813 12814 ; 12815 return 0; 12816} 12817_ACEOF 12818if ac_fn_c_try_link "$LINENO"; then : 12819 eval $cacheid=yes 12820else 12821 eval $cacheid=no 12822fi 12823rm -f core conftest.err conftest.$ac_objext \ 12824 conftest$ac_exeext conftest.$ac_ext 12825fi 12826 12827 12828 CFLAGS="$xorg_testset_save_CFLAGS" 12829 12830 eval supported=\$$cacheid 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12832$as_echo "$supported" >&6; } 12833 if test "$supported" = "yes" ; then 12834 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12835 found="yes" 12836 fi 12837 fi 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855xorg_testset_save_CFLAGS="$CFLAGS" 12856 12857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12862 $as_echo_n "(cached) " >&6 12863else 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865/* end confdefs.h. */ 12866int i; 12867_ACEOF 12868if ac_fn_c_try_compile "$LINENO"; then : 12869 xorg_cv_cc_flag_unknown_warning_option=yes 12870else 12871 xorg_cv_cc_flag_unknown_warning_option=no 12872fi 12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12878 CFLAGS="$xorg_testset_save_CFLAGS" 12879fi 12880 12881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12884 fi 12885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12892/* end confdefs.h. */ 12893int i; 12894_ACEOF 12895if ac_fn_c_try_compile "$LINENO"; then : 12896 xorg_cv_cc_flag_unused_command_line_argument=yes 12897else 12898 xorg_cv_cc_flag_unused_command_line_argument=no 12899fi 12900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12901fi 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12905 CFLAGS="$xorg_testset_save_CFLAGS" 12906fi 12907 12908found="no" 12909 12910 if test $found = "no" ; then 12911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12913 fi 12914 12915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12917 fi 12918 12919 CFLAGS="$CFLAGS -Wstrict-prototypes" 12920 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12922$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12923 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12924 if eval \${$cacheid+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12928/* end confdefs.h. */ 12929int i; 12930int 12931main () 12932{ 12933 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938if ac_fn_c_try_link "$LINENO"; then : 12939 eval $cacheid=yes 12940else 12941 eval $cacheid=no 12942fi 12943rm -f core conftest.err conftest.$ac_objext \ 12944 conftest$ac_exeext conftest.$ac_ext 12945fi 12946 12947 12948 CFLAGS="$xorg_testset_save_CFLAGS" 12949 12950 eval supported=\$$cacheid 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12952$as_echo "$supported" >&6; } 12953 if test "$supported" = "yes" ; then 12954 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12955 found="yes" 12956 fi 12957 fi 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973xorg_testset_save_CFLAGS="$CFLAGS" 12974 12975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984int i; 12985_ACEOF 12986if ac_fn_c_try_compile "$LINENO"; then : 12987 xorg_cv_cc_flag_unknown_warning_option=yes 12988else 12989 xorg_cv_cc_flag_unknown_warning_option=no 12990fi 12991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12992fi 12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12996 CFLAGS="$xorg_testset_save_CFLAGS" 12997fi 12998 12999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13002 fi 13003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13007 $as_echo_n "(cached) " >&6 13008else 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011int i; 13012_ACEOF 13013if ac_fn_c_try_compile "$LINENO"; then : 13014 xorg_cv_cc_flag_unused_command_line_argument=yes 13015else 13016 xorg_cv_cc_flag_unused_command_line_argument=no 13017fi 13018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13019fi 13020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13023 CFLAGS="$xorg_testset_save_CFLAGS" 13024fi 13025 13026found="no" 13027 13028 if test $found = "no" ; then 13029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13031 fi 13032 13033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13035 fi 13036 13037 CFLAGS="$CFLAGS -Wmissing-prototypes" 13038 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13040$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13041 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13042 if eval \${$cacheid+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13046/* end confdefs.h. */ 13047int i; 13048int 13049main () 13050{ 13051 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056if ac_fn_c_try_link "$LINENO"; then : 13057 eval $cacheid=yes 13058else 13059 eval $cacheid=no 13060fi 13061rm -f core conftest.err conftest.$ac_objext \ 13062 conftest$ac_exeext conftest.$ac_ext 13063fi 13064 13065 13066 CFLAGS="$xorg_testset_save_CFLAGS" 13067 13068 eval supported=\$$cacheid 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13070$as_echo "$supported" >&6; } 13071 if test "$supported" = "yes" ; then 13072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13073 found="yes" 13074 fi 13075 fi 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091xorg_testset_save_CFLAGS="$CFLAGS" 13092 13093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13098 $as_echo_n "(cached) " >&6 13099else 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102int i; 13103_ACEOF 13104if ac_fn_c_try_compile "$LINENO"; then : 13105 xorg_cv_cc_flag_unknown_warning_option=yes 13106else 13107 xorg_cv_cc_flag_unknown_warning_option=no 13108fi 13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13110fi 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13114 CFLAGS="$xorg_testset_save_CFLAGS" 13115fi 13116 13117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13120 fi 13121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129int i; 13130_ACEOF 13131if ac_fn_c_try_compile "$LINENO"; then : 13132 xorg_cv_cc_flag_unused_command_line_argument=yes 13133else 13134 xorg_cv_cc_flag_unused_command_line_argument=no 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13137fi 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13141 CFLAGS="$xorg_testset_save_CFLAGS" 13142fi 13143 13144found="no" 13145 13146 if test $found = "no" ; then 13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 fi 13150 13151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13153 fi 13154 13155 CFLAGS="$CFLAGS -Wnested-externs" 13156 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13158$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13159 cacheid=xorg_cv_cc_flag__Wnested_externs 13160 if eval \${$cacheid+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164/* end confdefs.h. */ 13165int i; 13166int 13167main () 13168{ 13169 13170 ; 13171 return 0; 13172} 13173_ACEOF 13174if ac_fn_c_try_link "$LINENO"; then : 13175 eval $cacheid=yes 13176else 13177 eval $cacheid=no 13178fi 13179rm -f core conftest.err conftest.$ac_objext \ 13180 conftest$ac_exeext conftest.$ac_ext 13181fi 13182 13183 13184 CFLAGS="$xorg_testset_save_CFLAGS" 13185 13186 eval supported=\$$cacheid 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13188$as_echo "$supported" >&6; } 13189 if test "$supported" = "yes" ; then 13190 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13191 found="yes" 13192 fi 13193 fi 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209xorg_testset_save_CFLAGS="$CFLAGS" 13210 13211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13216 $as_echo_n "(cached) " >&6 13217else 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13219/* end confdefs.h. */ 13220int i; 13221_ACEOF 13222if ac_fn_c_try_compile "$LINENO"; then : 13223 xorg_cv_cc_flag_unknown_warning_option=yes 13224else 13225 xorg_cv_cc_flag_unknown_warning_option=no 13226fi 13227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13228fi 13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13232 CFLAGS="$xorg_testset_save_CFLAGS" 13233fi 13234 13235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13238 fi 13239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13243 $as_echo_n "(cached) " >&6 13244else 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247int i; 13248_ACEOF 13249if ac_fn_c_try_compile "$LINENO"; then : 13250 xorg_cv_cc_flag_unused_command_line_argument=yes 13251else 13252 xorg_cv_cc_flag_unused_command_line_argument=no 13253fi 13254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13255fi 13256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13259 CFLAGS="$xorg_testset_save_CFLAGS" 13260fi 13261 13262found="no" 13263 13264 if test $found = "no" ; then 13265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13267 fi 13268 13269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13271 fi 13272 13273 CFLAGS="$CFLAGS -Wbad-function-cast" 13274 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13276$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13277 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13278 if eval \${$cacheid+:} false; then : 13279 $as_echo_n "(cached) " >&6 13280else 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283int i; 13284int 13285main () 13286{ 13287 13288 ; 13289 return 0; 13290} 13291_ACEOF 13292if ac_fn_c_try_link "$LINENO"; then : 13293 eval $cacheid=yes 13294else 13295 eval $cacheid=no 13296fi 13297rm -f core conftest.err conftest.$ac_objext \ 13298 conftest$ac_exeext conftest.$ac_ext 13299fi 13300 13301 13302 CFLAGS="$xorg_testset_save_CFLAGS" 13303 13304 eval supported=\$$cacheid 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13306$as_echo "$supported" >&6; } 13307 if test "$supported" = "yes" ; then 13308 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13309 found="yes" 13310 fi 13311 fi 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327xorg_testset_save_CFLAGS="$CFLAGS" 13328 13329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13337/* end confdefs.h. */ 13338int i; 13339_ACEOF 13340if ac_fn_c_try_compile "$LINENO"; then : 13341 xorg_cv_cc_flag_unknown_warning_option=yes 13342else 13343 xorg_cv_cc_flag_unknown_warning_option=no 13344fi 13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13346fi 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13350 CFLAGS="$xorg_testset_save_CFLAGS" 13351fi 13352 13353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13356 fi 13357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13361 $as_echo_n "(cached) " >&6 13362else 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365int i; 13366_ACEOF 13367if ac_fn_c_try_compile "$LINENO"; then : 13368 xorg_cv_cc_flag_unused_command_line_argument=yes 13369else 13370 xorg_cv_cc_flag_unused_command_line_argument=no 13371fi 13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13373fi 13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13377 CFLAGS="$xorg_testset_save_CFLAGS" 13378fi 13379 13380found="no" 13381 13382 if test $found = "no" ; then 13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 13387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13389 fi 13390 13391 CFLAGS="$CFLAGS -Wold-style-definition" 13392 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13394$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13395 cacheid=xorg_cv_cc_flag__Wold_style_definition 13396 if eval \${$cacheid+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398else 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401int i; 13402int 13403main () 13404{ 13405 13406 ; 13407 return 0; 13408} 13409_ACEOF 13410if ac_fn_c_try_link "$LINENO"; then : 13411 eval $cacheid=yes 13412else 13413 eval $cacheid=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext conftest.$ac_ext 13417fi 13418 13419 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421 13422 eval supported=\$$cacheid 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13424$as_echo "$supported" >&6; } 13425 if test "$supported" = "yes" ; then 13426 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13427 found="yes" 13428 fi 13429 fi 13430 13431 if test $found = "no" ; then 13432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13434 fi 13435 13436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13438 fi 13439 13440 CFLAGS="$CFLAGS -fd" 13441 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13443$as_echo_n "checking if $CC supports -fd... " >&6; } 13444 cacheid=xorg_cv_cc_flag__fd 13445 if eval \${$cacheid+:} false; then : 13446 $as_echo_n "(cached) " >&6 13447else 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450int i; 13451int 13452main () 13453{ 13454 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_c_try_link "$LINENO"; then : 13460 eval $cacheid=yes 13461else 13462 eval $cacheid=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext \ 13465 conftest$ac_exeext conftest.$ac_ext 13466fi 13467 13468 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470 13471 eval supported=\$$cacheid 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13473$as_echo "$supported" >&6; } 13474 if test "$supported" = "yes" ; then 13475 BASE_CFLAGS="$BASE_CFLAGS -fd" 13476 found="yes" 13477 fi 13478 fi 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494xorg_testset_save_CFLAGS="$CFLAGS" 13495 13496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505int i; 13506_ACEOF 13507if ac_fn_c_try_compile "$LINENO"; then : 13508 xorg_cv_cc_flag_unknown_warning_option=yes 13509else 13510 xorg_cv_cc_flag_unknown_warning_option=no 13511fi 13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13513fi 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13517 CFLAGS="$xorg_testset_save_CFLAGS" 13518fi 13519 13520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13523 fi 13524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13531/* end confdefs.h. */ 13532int i; 13533_ACEOF 13534if ac_fn_c_try_compile "$LINENO"; then : 13535 xorg_cv_cc_flag_unused_command_line_argument=yes 13536else 13537 xorg_cv_cc_flag_unused_command_line_argument=no 13538fi 13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13540fi 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13544 CFLAGS="$xorg_testset_save_CFLAGS" 13545fi 13546 13547found="no" 13548 13549 if test $found = "no" ; then 13550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13552 fi 13553 13554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13556 fi 13557 13558 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13559 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13561$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13562 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13563 if eval \${$cacheid+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13567/* end confdefs.h. */ 13568int i; 13569int 13570main () 13571{ 13572 13573 ; 13574 return 0; 13575} 13576_ACEOF 13577if ac_fn_c_try_link "$LINENO"; then : 13578 eval $cacheid=yes 13579else 13580 eval $cacheid=no 13581fi 13582rm -f core conftest.err conftest.$ac_objext \ 13583 conftest$ac_exeext conftest.$ac_ext 13584fi 13585 13586 13587 CFLAGS="$xorg_testset_save_CFLAGS" 13588 13589 eval supported=\$$cacheid 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13591$as_echo "$supported" >&6; } 13592 if test "$supported" = "yes" ; then 13593 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13594 found="yes" 13595 fi 13596 fi 13597 13598 13599 13600 13601 13602# This chunk adds additional warnings that could catch undesired effects. 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616xorg_testset_save_CFLAGS="$CFLAGS" 13617 13618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624else 13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13626/* end confdefs.h. */ 13627int i; 13628_ACEOF 13629if ac_fn_c_try_compile "$LINENO"; then : 13630 xorg_cv_cc_flag_unknown_warning_option=yes 13631else 13632 xorg_cv_cc_flag_unknown_warning_option=no 13633fi 13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13635fi 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13639 CFLAGS="$xorg_testset_save_CFLAGS" 13640fi 13641 13642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13645 fi 13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13653/* end confdefs.h. */ 13654int i; 13655_ACEOF 13656if ac_fn_c_try_compile "$LINENO"; then : 13657 xorg_cv_cc_flag_unused_command_line_argument=yes 13658else 13659 xorg_cv_cc_flag_unused_command_line_argument=no 13660fi 13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13662fi 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13666 CFLAGS="$xorg_testset_save_CFLAGS" 13667fi 13668 13669found="no" 13670 13671 if test $found = "no" ; then 13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 fi 13675 13676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13678 fi 13679 13680 CFLAGS="$CFLAGS -Wunused" 13681 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13683$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13684 cacheid=xorg_cv_cc_flag__Wunused 13685 if eval \${$cacheid+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690int i; 13691int 13692main () 13693{ 13694 13695 ; 13696 return 0; 13697} 13698_ACEOF 13699if ac_fn_c_try_link "$LINENO"; then : 13700 eval $cacheid=yes 13701else 13702 eval $cacheid=no 13703fi 13704rm -f core conftest.err conftest.$ac_objext \ 13705 conftest$ac_exeext conftest.$ac_ext 13706fi 13707 13708 13709 CFLAGS="$xorg_testset_save_CFLAGS" 13710 13711 eval supported=\$$cacheid 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13713$as_echo "$supported" >&6; } 13714 if test "$supported" = "yes" ; then 13715 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13716 found="yes" 13717 fi 13718 fi 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734xorg_testset_save_CFLAGS="$CFLAGS" 13735 13736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13741 $as_echo_n "(cached) " >&6 13742else 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745int i; 13746_ACEOF 13747if ac_fn_c_try_compile "$LINENO"; then : 13748 xorg_cv_cc_flag_unknown_warning_option=yes 13749else 13750 xorg_cv_cc_flag_unknown_warning_option=no 13751fi 13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13753fi 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13757 CFLAGS="$xorg_testset_save_CFLAGS" 13758fi 13759 13760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13763 fi 13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13768 $as_echo_n "(cached) " >&6 13769else 13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771/* end confdefs.h. */ 13772int i; 13773_ACEOF 13774if ac_fn_c_try_compile "$LINENO"; then : 13775 xorg_cv_cc_flag_unused_command_line_argument=yes 13776else 13777 xorg_cv_cc_flag_unused_command_line_argument=no 13778fi 13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13780fi 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13784 CFLAGS="$xorg_testset_save_CFLAGS" 13785fi 13786 13787found="no" 13788 13789 if test $found = "no" ; then 13790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13792 fi 13793 13794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13796 fi 13797 13798 CFLAGS="$CFLAGS -Wuninitialized" 13799 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13801$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13802 cacheid=xorg_cv_cc_flag__Wuninitialized 13803 if eval \${$cacheid+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808int i; 13809int 13810main () 13811{ 13812 13813 ; 13814 return 0; 13815} 13816_ACEOF 13817if ac_fn_c_try_link "$LINENO"; then : 13818 eval $cacheid=yes 13819else 13820 eval $cacheid=no 13821fi 13822rm -f core conftest.err conftest.$ac_objext \ 13823 conftest$ac_exeext conftest.$ac_ext 13824fi 13825 13826 13827 CFLAGS="$xorg_testset_save_CFLAGS" 13828 13829 eval supported=\$$cacheid 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13831$as_echo "$supported" >&6; } 13832 if test "$supported" = "yes" ; then 13833 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13834 found="yes" 13835 fi 13836 fi 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852xorg_testset_save_CFLAGS="$CFLAGS" 13853 13854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862/* end confdefs.h. */ 13863int i; 13864_ACEOF 13865if ac_fn_c_try_compile "$LINENO"; then : 13866 xorg_cv_cc_flag_unknown_warning_option=yes 13867else 13868 xorg_cv_cc_flag_unknown_warning_option=no 13869fi 13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13871fi 13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876fi 13877 13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887else 13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13889/* end confdefs.h. */ 13890int i; 13891_ACEOF 13892if ac_fn_c_try_compile "$LINENO"; then : 13893 xorg_cv_cc_flag_unused_command_line_argument=yes 13894else 13895 xorg_cv_cc_flag_unused_command_line_argument=no 13896fi 13897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13898fi 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13902 CFLAGS="$xorg_testset_save_CFLAGS" 13903fi 13904 13905found="no" 13906 13907 if test $found = "no" ; then 13908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13910 fi 13911 13912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13914 fi 13915 13916 CFLAGS="$CFLAGS -Wshadow" 13917 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13919$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13920 cacheid=xorg_cv_cc_flag__Wshadow 13921 if eval \${$cacheid+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926int i; 13927int 13928main () 13929{ 13930 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_c_try_link "$LINENO"; then : 13936 eval $cacheid=yes 13937else 13938 eval $cacheid=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext \ 13941 conftest$ac_exeext conftest.$ac_ext 13942fi 13943 13944 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946 13947 eval supported=\$$cacheid 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13949$as_echo "$supported" >&6; } 13950 if test "$supported" = "yes" ; then 13951 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13952 found="yes" 13953 fi 13954 fi 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970xorg_testset_save_CFLAGS="$CFLAGS" 13971 13972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13980/* end confdefs.h. */ 13981int i; 13982_ACEOF 13983if ac_fn_c_try_compile "$LINENO"; then : 13984 xorg_cv_cc_flag_unknown_warning_option=yes 13985else 13986 xorg_cv_cc_flag_unknown_warning_option=no 13987fi 13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13989fi 13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13993 CFLAGS="$xorg_testset_save_CFLAGS" 13994fi 13995 13996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13999 fi 14000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14004 $as_echo_n "(cached) " >&6 14005else 14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14007/* end confdefs.h. */ 14008int i; 14009_ACEOF 14010if ac_fn_c_try_compile "$LINENO"; then : 14011 xorg_cv_cc_flag_unused_command_line_argument=yes 14012else 14013 xorg_cv_cc_flag_unused_command_line_argument=no 14014fi 14015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14016fi 14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14020 CFLAGS="$xorg_testset_save_CFLAGS" 14021fi 14022 14023found="no" 14024 14025 if test $found = "no" ; then 14026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14028 fi 14029 14030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14032 fi 14033 14034 CFLAGS="$CFLAGS -Wmissing-noreturn" 14035 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14037$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14038 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14039 if eval \${$cacheid+:} false; then : 14040 $as_echo_n "(cached) " >&6 14041else 14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14043/* end confdefs.h. */ 14044int i; 14045int 14046main () 14047{ 14048 14049 ; 14050 return 0; 14051} 14052_ACEOF 14053if ac_fn_c_try_link "$LINENO"; then : 14054 eval $cacheid=yes 14055else 14056 eval $cacheid=no 14057fi 14058rm -f core conftest.err conftest.$ac_objext \ 14059 conftest$ac_exeext conftest.$ac_ext 14060fi 14061 14062 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064 14065 eval supported=\$$cacheid 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14067$as_echo "$supported" >&6; } 14068 if test "$supported" = "yes" ; then 14069 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14070 found="yes" 14071 fi 14072 fi 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088xorg_testset_save_CFLAGS="$CFLAGS" 14089 14090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099int i; 14100_ACEOF 14101if ac_fn_c_try_compile "$LINENO"; then : 14102 xorg_cv_cc_flag_unknown_warning_option=yes 14103else 14104 xorg_cv_cc_flag_unknown_warning_option=no 14105fi 14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14107fi 14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14111 CFLAGS="$xorg_testset_save_CFLAGS" 14112fi 14113 14114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14117 fi 14118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14122 $as_echo_n "(cached) " >&6 14123else 14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14125/* end confdefs.h. */ 14126int i; 14127_ACEOF 14128if ac_fn_c_try_compile "$LINENO"; then : 14129 xorg_cv_cc_flag_unused_command_line_argument=yes 14130else 14131 xorg_cv_cc_flag_unused_command_line_argument=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14134fi 14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139fi 14140 14141found="no" 14142 14143 if test $found = "no" ; then 14144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14146 fi 14147 14148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14150 fi 14151 14152 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14153 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14155$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14156 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14157 if eval \${$cacheid+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14161/* end confdefs.h. */ 14162int i; 14163int 14164main () 14165{ 14166 14167 ; 14168 return 0; 14169} 14170_ACEOF 14171if ac_fn_c_try_link "$LINENO"; then : 14172 eval $cacheid=yes 14173else 14174 eval $cacheid=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext \ 14177 conftest$ac_exeext conftest.$ac_ext 14178fi 14179 14180 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182 14183 eval supported=\$$cacheid 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14185$as_echo "$supported" >&6; } 14186 if test "$supported" = "yes" ; then 14187 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14188 found="yes" 14189 fi 14190 fi 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206xorg_testset_save_CFLAGS="$CFLAGS" 14207 14208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14213 $as_echo_n "(cached) " >&6 14214else 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217int i; 14218_ACEOF 14219if ac_fn_c_try_compile "$LINENO"; then : 14220 xorg_cv_cc_flag_unknown_warning_option=yes 14221else 14222 xorg_cv_cc_flag_unknown_warning_option=no 14223fi 14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14229 CFLAGS="$xorg_testset_save_CFLAGS" 14230fi 14231 14232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14235 fi 14236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14240 $as_echo_n "(cached) " >&6 14241else 14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244int i; 14245_ACEOF 14246if ac_fn_c_try_compile "$LINENO"; then : 14247 xorg_cv_cc_flag_unused_command_line_argument=yes 14248else 14249 xorg_cv_cc_flag_unused_command_line_argument=no 14250fi 14251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14256 CFLAGS="$xorg_testset_save_CFLAGS" 14257fi 14258 14259found="no" 14260 14261 if test $found = "no" ; then 14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 fi 14265 14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14268 fi 14269 14270 CFLAGS="$CFLAGS -Wredundant-decls" 14271 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14273$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14274 cacheid=xorg_cv_cc_flag__Wredundant_decls 14275 if eval \${$cacheid+:} false; then : 14276 $as_echo_n "(cached) " >&6 14277else 14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14279/* end confdefs.h. */ 14280int i; 14281int 14282main () 14283{ 14284 14285 ; 14286 return 0; 14287} 14288_ACEOF 14289if ac_fn_c_try_link "$LINENO"; then : 14290 eval $cacheid=yes 14291else 14292 eval $cacheid=no 14293fi 14294rm -f core conftest.err conftest.$ac_objext \ 14295 conftest$ac_exeext conftest.$ac_ext 14296fi 14297 14298 14299 CFLAGS="$xorg_testset_save_CFLAGS" 14300 14301 eval supported=\$$cacheid 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14303$as_echo "$supported" >&6; } 14304 if test "$supported" = "yes" ; then 14305 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14306 found="yes" 14307 fi 14308 fi 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324xorg_testset_save_CFLAGS="$CFLAGS" 14325 14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14331 $as_echo_n "(cached) " >&6 14332else 14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14334/* end confdefs.h. */ 14335int i; 14336_ACEOF 14337if ac_fn_c_try_compile "$LINENO"; then : 14338 xorg_cv_cc_flag_unknown_warning_option=yes 14339else 14340 xorg_cv_cc_flag_unknown_warning_option=no 14341fi 14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14343fi 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14347 CFLAGS="$xorg_testset_save_CFLAGS" 14348fi 14349 14350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 fi 14354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14358 $as_echo_n "(cached) " >&6 14359else 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362int i; 14363_ACEOF 14364if ac_fn_c_try_compile "$LINENO"; then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366else 14367 xorg_cv_cc_flag_unused_command_line_argument=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14370fi 14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375fi 14376 14377found="no" 14378 14379 if test $found = "no" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14386 fi 14387 14388 CFLAGS="$CFLAGS -Wlogical-op" 14389 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14391$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14392 cacheid=xorg_cv_cc_flag__Wlogical_op 14393 if eval \${$cacheid+:} false; then : 14394 $as_echo_n "(cached) " >&6 14395else 14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14397/* end confdefs.h. */ 14398int i; 14399int 14400main () 14401{ 14402 14403 ; 14404 return 0; 14405} 14406_ACEOF 14407if ac_fn_c_try_link "$LINENO"; then : 14408 eval $cacheid=yes 14409else 14410 eval $cacheid=no 14411fi 14412rm -f core conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext conftest.$ac_ext 14414fi 14415 14416 14417 CFLAGS="$xorg_testset_save_CFLAGS" 14418 14419 eval supported=\$$cacheid 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14421$as_echo "$supported" >&6; } 14422 if test "$supported" = "yes" ; then 14423 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14424 found="yes" 14425 fi 14426 fi 14427 14428 14429 14430# These are currently disabled because they are noisy. They will be enabled 14431# in the future once the codebase is sufficiently modernized to silence 14432# them. For now, I don't want them to drown out the other warnings. 14433# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14434# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14435# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14436 14437# Turn some warnings into errors, so we don't accidently get successful builds 14438# when there are problems that should be fixed. 14439 14440if test "x$SELECTIVE_WERROR" = "xyes" ; then 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454xorg_testset_save_CFLAGS="$CFLAGS" 14455 14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14461 $as_echo_n "(cached) " >&6 14462else 14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14464/* end confdefs.h. */ 14465int i; 14466_ACEOF 14467if ac_fn_c_try_compile "$LINENO"; then : 14468 xorg_cv_cc_flag_unknown_warning_option=yes 14469else 14470 xorg_cv_cc_flag_unknown_warning_option=no 14471fi 14472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14473fi 14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14477 CFLAGS="$xorg_testset_save_CFLAGS" 14478fi 14479 14480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14483 fi 14484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14488 $as_echo_n "(cached) " >&6 14489else 14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14491/* end confdefs.h. */ 14492int i; 14493_ACEOF 14494if ac_fn_c_try_compile "$LINENO"; then : 14495 xorg_cv_cc_flag_unused_command_line_argument=yes 14496else 14497 xorg_cv_cc_flag_unused_command_line_argument=no 14498fi 14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14500fi 14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14504 CFLAGS="$xorg_testset_save_CFLAGS" 14505fi 14506 14507found="no" 14508 14509 if test $found = "no" ; then 14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 fi 14513 14514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 fi 14517 14518 CFLAGS="$CFLAGS -Werror=implicit" 14519 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14521$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14522 cacheid=xorg_cv_cc_flag__Werror_implicit 14523 if eval \${$cacheid+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529int 14530main () 14531{ 14532 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537if ac_fn_c_try_link "$LINENO"; then : 14538 eval $cacheid=yes 14539else 14540 eval $cacheid=no 14541fi 14542rm -f core conftest.err conftest.$ac_objext \ 14543 conftest$ac_exeext conftest.$ac_ext 14544fi 14545 14546 14547 CFLAGS="$xorg_testset_save_CFLAGS" 14548 14549 eval supported=\$$cacheid 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14551$as_echo "$supported" >&6; } 14552 if test "$supported" = "yes" ; then 14553 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14554 found="yes" 14555 fi 14556 fi 14557 14558 if test $found = "no" ; then 14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14561 fi 14562 14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 fi 14566 14567 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14568 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14570$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14571 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14572 if eval \${$cacheid+:} false; then : 14573 $as_echo_n "(cached) " >&6 14574else 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14576/* end confdefs.h. */ 14577int i; 14578int 14579main () 14580{ 14581 14582 ; 14583 return 0; 14584} 14585_ACEOF 14586if ac_fn_c_try_link "$LINENO"; then : 14587 eval $cacheid=yes 14588else 14589 eval $cacheid=no 14590fi 14591rm -f core conftest.err conftest.$ac_objext \ 14592 conftest$ac_exeext conftest.$ac_ext 14593fi 14594 14595 14596 CFLAGS="$xorg_testset_save_CFLAGS" 14597 14598 eval supported=\$$cacheid 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14600$as_echo "$supported" >&6; } 14601 if test "$supported" = "yes" ; then 14602 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14603 found="yes" 14604 fi 14605 fi 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621xorg_testset_save_CFLAGS="$CFLAGS" 14622 14623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14628 $as_echo_n "(cached) " >&6 14629else 14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14631/* end confdefs.h. */ 14632int i; 14633_ACEOF 14634if ac_fn_c_try_compile "$LINENO"; then : 14635 xorg_cv_cc_flag_unknown_warning_option=yes 14636else 14637 xorg_cv_cc_flag_unknown_warning_option=no 14638fi 14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14640fi 14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645fi 14646 14647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14650 fi 14651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14655 $as_echo_n "(cached) " >&6 14656else 14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659int i; 14660_ACEOF 14661if ac_fn_c_try_compile "$LINENO"; then : 14662 xorg_cv_cc_flag_unused_command_line_argument=yes 14663else 14664 xorg_cv_cc_flag_unused_command_line_argument=no 14665fi 14666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14667fi 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14671 CFLAGS="$xorg_testset_save_CFLAGS" 14672fi 14673 14674found="no" 14675 14676 if test $found = "no" ; then 14677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14679 fi 14680 14681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14683 fi 14684 14685 CFLAGS="$CFLAGS -Werror=nonnull" 14686 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14688$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14689 cacheid=xorg_cv_cc_flag__Werror_nonnull 14690 if eval \${$cacheid+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692else 14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695int i; 14696int 14697main () 14698{ 14699 14700 ; 14701 return 0; 14702} 14703_ACEOF 14704if ac_fn_c_try_link "$LINENO"; then : 14705 eval $cacheid=yes 14706else 14707 eval $cacheid=no 14708fi 14709rm -f core conftest.err conftest.$ac_objext \ 14710 conftest$ac_exeext conftest.$ac_ext 14711fi 14712 14713 14714 CFLAGS="$xorg_testset_save_CFLAGS" 14715 14716 eval supported=\$$cacheid 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14718$as_echo "$supported" >&6; } 14719 if test "$supported" = "yes" ; then 14720 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14721 found="yes" 14722 fi 14723 fi 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739xorg_testset_save_CFLAGS="$CFLAGS" 14740 14741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14749/* end confdefs.h. */ 14750int i; 14751_ACEOF 14752if ac_fn_c_try_compile "$LINENO"; then : 14753 xorg_cv_cc_flag_unknown_warning_option=yes 14754else 14755 xorg_cv_cc_flag_unknown_warning_option=no 14756fi 14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14758fi 14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14762 CFLAGS="$xorg_testset_save_CFLAGS" 14763fi 14764 14765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14768 fi 14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14773 $as_echo_n "(cached) " >&6 14774else 14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14776/* end confdefs.h. */ 14777int i; 14778_ACEOF 14779if ac_fn_c_try_compile "$LINENO"; then : 14780 xorg_cv_cc_flag_unused_command_line_argument=yes 14781else 14782 xorg_cv_cc_flag_unused_command_line_argument=no 14783fi 14784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14785fi 14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14789 CFLAGS="$xorg_testset_save_CFLAGS" 14790fi 14791 14792found="no" 14793 14794 if test $found = "no" ; then 14795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14797 fi 14798 14799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14801 fi 14802 14803 CFLAGS="$CFLAGS -Werror=init-self" 14804 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14806$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14807 cacheid=xorg_cv_cc_flag__Werror_init_self 14808 if eval \${$cacheid+:} false; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812/* end confdefs.h. */ 14813int i; 14814int 14815main () 14816{ 14817 14818 ; 14819 return 0; 14820} 14821_ACEOF 14822if ac_fn_c_try_link "$LINENO"; then : 14823 eval $cacheid=yes 14824else 14825 eval $cacheid=no 14826fi 14827rm -f core conftest.err conftest.$ac_objext \ 14828 conftest$ac_exeext conftest.$ac_ext 14829fi 14830 14831 14832 CFLAGS="$xorg_testset_save_CFLAGS" 14833 14834 eval supported=\$$cacheid 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14836$as_echo "$supported" >&6; } 14837 if test "$supported" = "yes" ; then 14838 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14839 found="yes" 14840 fi 14841 fi 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857xorg_testset_save_CFLAGS="$CFLAGS" 14858 14859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14864 $as_echo_n "(cached) " >&6 14865else 14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14867/* end confdefs.h. */ 14868int i; 14869_ACEOF 14870if ac_fn_c_try_compile "$LINENO"; then : 14871 xorg_cv_cc_flag_unknown_warning_option=yes 14872else 14873 xorg_cv_cc_flag_unknown_warning_option=no 14874fi 14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14876fi 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14880 CFLAGS="$xorg_testset_save_CFLAGS" 14881fi 14882 14883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14886 fi 14887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14891 $as_echo_n "(cached) " >&6 14892else 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894/* end confdefs.h. */ 14895int i; 14896_ACEOF 14897if ac_fn_c_try_compile "$LINENO"; then : 14898 xorg_cv_cc_flag_unused_command_line_argument=yes 14899else 14900 xorg_cv_cc_flag_unused_command_line_argument=no 14901fi 14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14903fi 14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14907 CFLAGS="$xorg_testset_save_CFLAGS" 14908fi 14909 14910found="no" 14911 14912 if test $found = "no" ; then 14913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14915 fi 14916 14917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14919 fi 14920 14921 CFLAGS="$CFLAGS -Werror=main" 14922 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14924$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14925 cacheid=xorg_cv_cc_flag__Werror_main 14926 if eval \${$cacheid+:} false; then : 14927 $as_echo_n "(cached) " >&6 14928else 14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930/* end confdefs.h. */ 14931int i; 14932int 14933main () 14934{ 14935 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_link "$LINENO"; then : 14941 eval $cacheid=yes 14942else 14943 eval $cacheid=no 14944fi 14945rm -f core conftest.err conftest.$ac_objext \ 14946 conftest$ac_exeext conftest.$ac_ext 14947fi 14948 14949 14950 CFLAGS="$xorg_testset_save_CFLAGS" 14951 14952 eval supported=\$$cacheid 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14954$as_echo "$supported" >&6; } 14955 if test "$supported" = "yes" ; then 14956 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14957 found="yes" 14958 fi 14959 fi 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975xorg_testset_save_CFLAGS="$CFLAGS" 14976 14977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14982 $as_echo_n "(cached) " >&6 14983else 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987_ACEOF 14988if ac_fn_c_try_compile "$LINENO"; then : 14989 xorg_cv_cc_flag_unknown_warning_option=yes 14990else 14991 xorg_cv_cc_flag_unknown_warning_option=no 14992fi 14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14994fi 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14998 CFLAGS="$xorg_testset_save_CFLAGS" 14999fi 15000 15001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15004 fi 15005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15009 $as_echo_n "(cached) " >&6 15010else 15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012/* end confdefs.h. */ 15013int i; 15014_ACEOF 15015if ac_fn_c_try_compile "$LINENO"; then : 15016 xorg_cv_cc_flag_unused_command_line_argument=yes 15017else 15018 xorg_cv_cc_flag_unused_command_line_argument=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15021fi 15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15025 CFLAGS="$xorg_testset_save_CFLAGS" 15026fi 15027 15028found="no" 15029 15030 if test $found = "no" ; then 15031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15033 fi 15034 15035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15037 fi 15038 15039 CFLAGS="$CFLAGS -Werror=missing-braces" 15040 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15042$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15043 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15044 if eval \${$cacheid+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049int i; 15050int 15051main () 15052{ 15053 15054 ; 15055 return 0; 15056} 15057_ACEOF 15058if ac_fn_c_try_link "$LINENO"; then : 15059 eval $cacheid=yes 15060else 15061 eval $cacheid=no 15062fi 15063rm -f core conftest.err conftest.$ac_objext \ 15064 conftest$ac_exeext conftest.$ac_ext 15065fi 15066 15067 15068 CFLAGS="$xorg_testset_save_CFLAGS" 15069 15070 eval supported=\$$cacheid 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15072$as_echo "$supported" >&6; } 15073 if test "$supported" = "yes" ; then 15074 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15075 found="yes" 15076 fi 15077 fi 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093xorg_testset_save_CFLAGS="$CFLAGS" 15094 15095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15103/* end confdefs.h. */ 15104int i; 15105_ACEOF 15106if ac_fn_c_try_compile "$LINENO"; then : 15107 xorg_cv_cc_flag_unknown_warning_option=yes 15108else 15109 xorg_cv_cc_flag_unknown_warning_option=no 15110fi 15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15112fi 15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15116 CFLAGS="$xorg_testset_save_CFLAGS" 15117fi 15118 15119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15122 fi 15123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15127 $as_echo_n "(cached) " >&6 15128else 15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15130/* end confdefs.h. */ 15131int i; 15132_ACEOF 15133if ac_fn_c_try_compile "$LINENO"; then : 15134 xorg_cv_cc_flag_unused_command_line_argument=yes 15135else 15136 xorg_cv_cc_flag_unused_command_line_argument=no 15137fi 15138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15139fi 15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15143 CFLAGS="$xorg_testset_save_CFLAGS" 15144fi 15145 15146found="no" 15147 15148 if test $found = "no" ; then 15149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15151 fi 15152 15153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15155 fi 15156 15157 CFLAGS="$CFLAGS -Werror=sequence-point" 15158 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15160$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15161 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15162 if eval \${$cacheid+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164else 15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166/* end confdefs.h. */ 15167int i; 15168int 15169main () 15170{ 15171 15172 ; 15173 return 0; 15174} 15175_ACEOF 15176if ac_fn_c_try_link "$LINENO"; then : 15177 eval $cacheid=yes 15178else 15179 eval $cacheid=no 15180fi 15181rm -f core conftest.err conftest.$ac_objext \ 15182 conftest$ac_exeext conftest.$ac_ext 15183fi 15184 15185 15186 CFLAGS="$xorg_testset_save_CFLAGS" 15187 15188 eval supported=\$$cacheid 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15190$as_echo "$supported" >&6; } 15191 if test "$supported" = "yes" ; then 15192 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15193 found="yes" 15194 fi 15195 fi 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211xorg_testset_save_CFLAGS="$CFLAGS" 15212 15213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222int i; 15223_ACEOF 15224if ac_fn_c_try_compile "$LINENO"; then : 15225 xorg_cv_cc_flag_unknown_warning_option=yes 15226else 15227 xorg_cv_cc_flag_unknown_warning_option=no 15228fi 15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15230fi 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15234 CFLAGS="$xorg_testset_save_CFLAGS" 15235fi 15236 15237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15240 fi 15241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15245 $as_echo_n "(cached) " >&6 15246else 15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15248/* end confdefs.h. */ 15249int i; 15250_ACEOF 15251if ac_fn_c_try_compile "$LINENO"; then : 15252 xorg_cv_cc_flag_unused_command_line_argument=yes 15253else 15254 xorg_cv_cc_flag_unused_command_line_argument=no 15255fi 15256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15257fi 15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15261 CFLAGS="$xorg_testset_save_CFLAGS" 15262fi 15263 15264found="no" 15265 15266 if test $found = "no" ; then 15267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15269 fi 15270 15271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15273 fi 15274 15275 CFLAGS="$CFLAGS -Werror=return-type" 15276 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15278$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15279 cacheid=xorg_cv_cc_flag__Werror_return_type 15280 if eval \${$cacheid+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286int 15287main () 15288{ 15289 15290 ; 15291 return 0; 15292} 15293_ACEOF 15294if ac_fn_c_try_link "$LINENO"; then : 15295 eval $cacheid=yes 15296else 15297 eval $cacheid=no 15298fi 15299rm -f core conftest.err conftest.$ac_objext \ 15300 conftest$ac_exeext conftest.$ac_ext 15301fi 15302 15303 15304 CFLAGS="$xorg_testset_save_CFLAGS" 15305 15306 eval supported=\$$cacheid 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15308$as_echo "$supported" >&6; } 15309 if test "$supported" = "yes" ; then 15310 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15311 found="yes" 15312 fi 15313 fi 15314 15315 if test $found = "no" ; then 15316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15318 fi 15319 15320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15322 fi 15323 15324 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15327$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15328 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15329 if eval \${$cacheid+:} false; then : 15330 $as_echo_n "(cached) " >&6 15331else 15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333/* end confdefs.h. */ 15334int i; 15335int 15336main () 15337{ 15338 15339 ; 15340 return 0; 15341} 15342_ACEOF 15343if ac_fn_c_try_link "$LINENO"; then : 15344 eval $cacheid=yes 15345else 15346 eval $cacheid=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext \ 15349 conftest$ac_exeext conftest.$ac_ext 15350fi 15351 15352 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354 15355 eval supported=\$$cacheid 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15357$as_echo "$supported" >&6; } 15358 if test "$supported" = "yes" ; then 15359 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15360 found="yes" 15361 fi 15362 fi 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378xorg_testset_save_CFLAGS="$CFLAGS" 15379 15380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389int i; 15390_ACEOF 15391if ac_fn_c_try_compile "$LINENO"; then : 15392 xorg_cv_cc_flag_unknown_warning_option=yes 15393else 15394 xorg_cv_cc_flag_unknown_warning_option=no 15395fi 15396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15397fi 15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15401 CFLAGS="$xorg_testset_save_CFLAGS" 15402fi 15403 15404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15407 fi 15408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15412 $as_echo_n "(cached) " >&6 15413else 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416int i; 15417_ACEOF 15418if ac_fn_c_try_compile "$LINENO"; then : 15419 xorg_cv_cc_flag_unused_command_line_argument=yes 15420else 15421 xorg_cv_cc_flag_unused_command_line_argument=no 15422fi 15423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15424fi 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15428 CFLAGS="$xorg_testset_save_CFLAGS" 15429fi 15430 15431found="no" 15432 15433 if test $found = "no" ; then 15434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15436 fi 15437 15438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15440 fi 15441 15442 CFLAGS="$CFLAGS -Werror=trigraphs" 15443 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15445$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15446 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15447 if eval \${$cacheid+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452int i; 15453int 15454main () 15455{ 15456 15457 ; 15458 return 0; 15459} 15460_ACEOF 15461if ac_fn_c_try_link "$LINENO"; then : 15462 eval $cacheid=yes 15463else 15464 eval $cacheid=no 15465fi 15466rm -f core conftest.err conftest.$ac_objext \ 15467 conftest$ac_exeext conftest.$ac_ext 15468fi 15469 15470 15471 CFLAGS="$xorg_testset_save_CFLAGS" 15472 15473 eval supported=\$$cacheid 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15475$as_echo "$supported" >&6; } 15476 if test "$supported" = "yes" ; then 15477 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15478 found="yes" 15479 fi 15480 fi 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496xorg_testset_save_CFLAGS="$CFLAGS" 15497 15498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504else 15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15506/* end confdefs.h. */ 15507int i; 15508_ACEOF 15509if ac_fn_c_try_compile "$LINENO"; then : 15510 xorg_cv_cc_flag_unknown_warning_option=yes 15511else 15512 xorg_cv_cc_flag_unknown_warning_option=no 15513fi 15514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15515fi 15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15519 CFLAGS="$xorg_testset_save_CFLAGS" 15520fi 15521 15522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 fi 15526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15530 $as_echo_n "(cached) " >&6 15531else 15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15533/* end confdefs.h. */ 15534int i; 15535_ACEOF 15536if ac_fn_c_try_compile "$LINENO"; then : 15537 xorg_cv_cc_flag_unused_command_line_argument=yes 15538else 15539 xorg_cv_cc_flag_unused_command_line_argument=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15542fi 15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15546 CFLAGS="$xorg_testset_save_CFLAGS" 15547fi 15548 15549found="no" 15550 15551 if test $found = "no" ; then 15552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15554 fi 15555 15556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15558 fi 15559 15560 CFLAGS="$CFLAGS -Werror=array-bounds" 15561 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15563$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15564 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15565 if eval \${$cacheid+:} false; then : 15566 $as_echo_n "(cached) " >&6 15567else 15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15569/* end confdefs.h. */ 15570int i; 15571int 15572main () 15573{ 15574 15575 ; 15576 return 0; 15577} 15578_ACEOF 15579if ac_fn_c_try_link "$LINENO"; then : 15580 eval $cacheid=yes 15581else 15582 eval $cacheid=no 15583fi 15584rm -f core conftest.err conftest.$ac_objext \ 15585 conftest$ac_exeext conftest.$ac_ext 15586fi 15587 15588 15589 CFLAGS="$xorg_testset_save_CFLAGS" 15590 15591 eval supported=\$$cacheid 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15593$as_echo "$supported" >&6; } 15594 if test "$supported" = "yes" ; then 15595 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15596 found="yes" 15597 fi 15598 fi 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614xorg_testset_save_CFLAGS="$CFLAGS" 15615 15616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15621 $as_echo_n "(cached) " >&6 15622else 15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15624/* end confdefs.h. */ 15625int i; 15626_ACEOF 15627if ac_fn_c_try_compile "$LINENO"; then : 15628 xorg_cv_cc_flag_unknown_warning_option=yes 15629else 15630 xorg_cv_cc_flag_unknown_warning_option=no 15631fi 15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15633fi 15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15637 CFLAGS="$xorg_testset_save_CFLAGS" 15638fi 15639 15640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15643 fi 15644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15648 $as_echo_n "(cached) " >&6 15649else 15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15651/* end confdefs.h. */ 15652int i; 15653_ACEOF 15654if ac_fn_c_try_compile "$LINENO"; then : 15655 xorg_cv_cc_flag_unused_command_line_argument=yes 15656else 15657 xorg_cv_cc_flag_unused_command_line_argument=no 15658fi 15659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15660fi 15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15664 CFLAGS="$xorg_testset_save_CFLAGS" 15665fi 15666 15667found="no" 15668 15669 if test $found = "no" ; then 15670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15672 fi 15673 15674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15676 fi 15677 15678 CFLAGS="$CFLAGS -Werror=write-strings" 15679 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15681$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15682 cacheid=xorg_cv_cc_flag__Werror_write_strings 15683 if eval \${$cacheid+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688int i; 15689int 15690main () 15691{ 15692 15693 ; 15694 return 0; 15695} 15696_ACEOF 15697if ac_fn_c_try_link "$LINENO"; then : 15698 eval $cacheid=yes 15699else 15700 eval $cacheid=no 15701fi 15702rm -f core conftest.err conftest.$ac_objext \ 15703 conftest$ac_exeext conftest.$ac_ext 15704fi 15705 15706 15707 CFLAGS="$xorg_testset_save_CFLAGS" 15708 15709 eval supported=\$$cacheid 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15711$as_echo "$supported" >&6; } 15712 if test "$supported" = "yes" ; then 15713 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15714 found="yes" 15715 fi 15716 fi 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732xorg_testset_save_CFLAGS="$CFLAGS" 15733 15734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15739 $as_echo_n "(cached) " >&6 15740else 15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15742/* end confdefs.h. */ 15743int i; 15744_ACEOF 15745if ac_fn_c_try_compile "$LINENO"; then : 15746 xorg_cv_cc_flag_unknown_warning_option=yes 15747else 15748 xorg_cv_cc_flag_unknown_warning_option=no 15749fi 15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15751fi 15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15755 CFLAGS="$xorg_testset_save_CFLAGS" 15756fi 15757 15758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15761 fi 15762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15766 $as_echo_n "(cached) " >&6 15767else 15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15769/* end confdefs.h. */ 15770int i; 15771_ACEOF 15772if ac_fn_c_try_compile "$LINENO"; then : 15773 xorg_cv_cc_flag_unused_command_line_argument=yes 15774else 15775 xorg_cv_cc_flag_unused_command_line_argument=no 15776fi 15777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15778fi 15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15782 CFLAGS="$xorg_testset_save_CFLAGS" 15783fi 15784 15785found="no" 15786 15787 if test $found = "no" ; then 15788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15790 fi 15791 15792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15794 fi 15795 15796 CFLAGS="$CFLAGS -Werror=address" 15797 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15799$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15800 cacheid=xorg_cv_cc_flag__Werror_address 15801 if eval \${$cacheid+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15805/* end confdefs.h. */ 15806int i; 15807int 15808main () 15809{ 15810 15811 ; 15812 return 0; 15813} 15814_ACEOF 15815if ac_fn_c_try_link "$LINENO"; then : 15816 eval $cacheid=yes 15817else 15818 eval $cacheid=no 15819fi 15820rm -f core conftest.err conftest.$ac_objext \ 15821 conftest$ac_exeext conftest.$ac_ext 15822fi 15823 15824 15825 CFLAGS="$xorg_testset_save_CFLAGS" 15826 15827 eval supported=\$$cacheid 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15829$as_echo "$supported" >&6; } 15830 if test "$supported" = "yes" ; then 15831 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15832 found="yes" 15833 fi 15834 fi 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850xorg_testset_save_CFLAGS="$CFLAGS" 15851 15852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15857 $as_echo_n "(cached) " >&6 15858else 15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15860/* end confdefs.h. */ 15861int i; 15862_ACEOF 15863if ac_fn_c_try_compile "$LINENO"; then : 15864 xorg_cv_cc_flag_unknown_warning_option=yes 15865else 15866 xorg_cv_cc_flag_unknown_warning_option=no 15867fi 15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15869fi 15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15873 CFLAGS="$xorg_testset_save_CFLAGS" 15874fi 15875 15876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15879 fi 15880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15884 $as_echo_n "(cached) " >&6 15885else 15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887/* end confdefs.h. */ 15888int i; 15889_ACEOF 15890if ac_fn_c_try_compile "$LINENO"; then : 15891 xorg_cv_cc_flag_unused_command_line_argument=yes 15892else 15893 xorg_cv_cc_flag_unused_command_line_argument=no 15894fi 15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15896fi 15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901fi 15902 15903found="no" 15904 15905 if test $found = "no" ; then 15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15908 fi 15909 15910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15912 fi 15913 15914 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15915 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15917$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15918 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15919 if eval \${$cacheid+:} false; then : 15920 $as_echo_n "(cached) " >&6 15921else 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924int i; 15925int 15926main () 15927{ 15928 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_link "$LINENO"; then : 15934 eval $cacheid=yes 15935else 15936 eval $cacheid=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext \ 15939 conftest$ac_exeext conftest.$ac_ext 15940fi 15941 15942 15943 CFLAGS="$xorg_testset_save_CFLAGS" 15944 15945 eval supported=\$$cacheid 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15947$as_echo "$supported" >&6; } 15948 if test "$supported" = "yes" ; then 15949 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15950 found="yes" 15951 fi 15952 fi 15953 15954 if test $found = "no" ; then 15955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15957 fi 15958 15959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15961 fi 15962 15963 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15964 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15966$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15967 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15968 if eval \${$cacheid+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15972/* end confdefs.h. */ 15973int i; 15974int 15975main () 15976{ 15977 15978 ; 15979 return 0; 15980} 15981_ACEOF 15982if ac_fn_c_try_link "$LINENO"; then : 15983 eval $cacheid=yes 15984else 15985 eval $cacheid=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext \ 15988 conftest$ac_exeext conftest.$ac_ext 15989fi 15990 15991 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993 15994 eval supported=\$$cacheid 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15996$as_echo "$supported" >&6; } 15997 if test "$supported" = "yes" ; then 15998 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15999 found="yes" 16000 fi 16001 fi 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017xorg_testset_save_CFLAGS="$CFLAGS" 16018 16019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16024 $as_echo_n "(cached) " >&6 16025else 16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16027/* end confdefs.h. */ 16028int i; 16029_ACEOF 16030if ac_fn_c_try_compile "$LINENO"; then : 16031 xorg_cv_cc_flag_unknown_warning_option=yes 16032else 16033 xorg_cv_cc_flag_unknown_warning_option=no 16034fi 16035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16036fi 16037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16040 CFLAGS="$xorg_testset_save_CFLAGS" 16041fi 16042 16043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16046 fi 16047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16051 $as_echo_n "(cached) " >&6 16052else 16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16054/* end confdefs.h. */ 16055int i; 16056_ACEOF 16057if ac_fn_c_try_compile "$LINENO"; then : 16058 xorg_cv_cc_flag_unused_command_line_argument=yes 16059else 16060 xorg_cv_cc_flag_unused_command_line_argument=no 16061fi 16062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16063fi 16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16067 CFLAGS="$xorg_testset_save_CFLAGS" 16068fi 16069 16070found="no" 16071 16072 if test $found = "no" ; then 16073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16075 fi 16076 16077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16079 fi 16080 16081 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16082 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16084$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16085 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16086 if eval \${$cacheid+:} false; then : 16087 $as_echo_n "(cached) " >&6 16088else 16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16090/* end confdefs.h. */ 16091int i; 16092int 16093main () 16094{ 16095 16096 ; 16097 return 0; 16098} 16099_ACEOF 16100if ac_fn_c_try_link "$LINENO"; then : 16101 eval $cacheid=yes 16102else 16103 eval $cacheid=no 16104fi 16105rm -f core conftest.err conftest.$ac_objext \ 16106 conftest$ac_exeext conftest.$ac_ext 16107fi 16108 16109 16110 CFLAGS="$xorg_testset_save_CFLAGS" 16111 16112 eval supported=\$$cacheid 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16114$as_echo "$supported" >&6; } 16115 if test "$supported" = "yes" ; then 16116 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16117 found="yes" 16118 fi 16119 fi 16120 16121 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16122else 16123{ $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 16124$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;} 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138xorg_testset_save_CFLAGS="$CFLAGS" 16139 16140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16145 $as_echo_n "(cached) " >&6 16146else 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148/* end confdefs.h. */ 16149int i; 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO"; then : 16152 xorg_cv_cc_flag_unknown_warning_option=yes 16153else 16154 xorg_cv_cc_flag_unknown_warning_option=no 16155fi 16156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16157fi 16158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16161 CFLAGS="$xorg_testset_save_CFLAGS" 16162fi 16163 16164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16167 fi 16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16172 $as_echo_n "(cached) " >&6 16173else 16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16175/* end confdefs.h. */ 16176int i; 16177_ACEOF 16178if ac_fn_c_try_compile "$LINENO"; then : 16179 xorg_cv_cc_flag_unused_command_line_argument=yes 16180else 16181 xorg_cv_cc_flag_unused_command_line_argument=no 16182fi 16183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16184fi 16185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189fi 16190 16191found="no" 16192 16193 if test $found = "no" ; then 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 fi 16197 16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 fi 16201 16202 CFLAGS="$CFLAGS -Wimplicit" 16203 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16205$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16206 cacheid=xorg_cv_cc_flag__Wimplicit 16207 if eval \${$cacheid+:} false; then : 16208 $as_echo_n "(cached) " >&6 16209else 16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16211/* end confdefs.h. */ 16212int i; 16213int 16214main () 16215{ 16216 16217 ; 16218 return 0; 16219} 16220_ACEOF 16221if ac_fn_c_try_link "$LINENO"; then : 16222 eval $cacheid=yes 16223else 16224 eval $cacheid=no 16225fi 16226rm -f core conftest.err conftest.$ac_objext \ 16227 conftest$ac_exeext conftest.$ac_ext 16228fi 16229 16230 16231 CFLAGS="$xorg_testset_save_CFLAGS" 16232 16233 eval supported=\$$cacheid 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16235$as_echo "$supported" >&6; } 16236 if test "$supported" = "yes" ; then 16237 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16238 found="yes" 16239 fi 16240 fi 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256xorg_testset_save_CFLAGS="$CFLAGS" 16257 16258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16263 $as_echo_n "(cached) " >&6 16264else 16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267int i; 16268_ACEOF 16269if ac_fn_c_try_compile "$LINENO"; then : 16270 xorg_cv_cc_flag_unknown_warning_option=yes 16271else 16272 xorg_cv_cc_flag_unknown_warning_option=no 16273fi 16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16275fi 16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16279 CFLAGS="$xorg_testset_save_CFLAGS" 16280fi 16281 16282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16285 fi 16286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16290 $as_echo_n "(cached) " >&6 16291else 16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16293/* end confdefs.h. */ 16294int i; 16295_ACEOF 16296if ac_fn_c_try_compile "$LINENO"; then : 16297 xorg_cv_cc_flag_unused_command_line_argument=yes 16298else 16299 xorg_cv_cc_flag_unused_command_line_argument=no 16300fi 16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16302fi 16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16306 CFLAGS="$xorg_testset_save_CFLAGS" 16307fi 16308 16309found="no" 16310 16311 if test $found = "no" ; then 16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16314 fi 16315 16316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16318 fi 16319 16320 CFLAGS="$CFLAGS -Wnonnull" 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16323$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16324 cacheid=xorg_cv_cc_flag__Wnonnull 16325 if eval \${$cacheid+:} false; then : 16326 $as_echo_n "(cached) " >&6 16327else 16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16329/* end confdefs.h. */ 16330int i; 16331int 16332main () 16333{ 16334 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339if ac_fn_c_try_link "$LINENO"; then : 16340 eval $cacheid=yes 16341else 16342 eval $cacheid=no 16343fi 16344rm -f core conftest.err conftest.$ac_objext \ 16345 conftest$ac_exeext conftest.$ac_ext 16346fi 16347 16348 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350 16351 eval supported=\$$cacheid 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16353$as_echo "$supported" >&6; } 16354 if test "$supported" = "yes" ; then 16355 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16356 found="yes" 16357 fi 16358 fi 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374xorg_testset_save_CFLAGS="$CFLAGS" 16375 16376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16381 $as_echo_n "(cached) " >&6 16382else 16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384/* end confdefs.h. */ 16385int i; 16386_ACEOF 16387if ac_fn_c_try_compile "$LINENO"; then : 16388 xorg_cv_cc_flag_unknown_warning_option=yes 16389else 16390 xorg_cv_cc_flag_unknown_warning_option=no 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16393fi 16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398fi 16399 16400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16403 fi 16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16408 $as_echo_n "(cached) " >&6 16409else 16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411/* end confdefs.h. */ 16412int i; 16413_ACEOF 16414if ac_fn_c_try_compile "$LINENO"; then : 16415 xorg_cv_cc_flag_unused_command_line_argument=yes 16416else 16417 xorg_cv_cc_flag_unused_command_line_argument=no 16418fi 16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16420fi 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16424 CFLAGS="$xorg_testset_save_CFLAGS" 16425fi 16426 16427found="no" 16428 16429 if test $found = "no" ; then 16430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16432 fi 16433 16434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16436 fi 16437 16438 CFLAGS="$CFLAGS -Winit-self" 16439 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16441$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16442 cacheid=xorg_cv_cc_flag__Winit_self 16443 if eval \${$cacheid+:} false; then : 16444 $as_echo_n "(cached) " >&6 16445else 16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16447/* end confdefs.h. */ 16448int i; 16449int 16450main () 16451{ 16452 16453 ; 16454 return 0; 16455} 16456_ACEOF 16457if ac_fn_c_try_link "$LINENO"; then : 16458 eval $cacheid=yes 16459else 16460 eval $cacheid=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext \ 16463 conftest$ac_exeext conftest.$ac_ext 16464fi 16465 16466 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468 16469 eval supported=\$$cacheid 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16471$as_echo "$supported" >&6; } 16472 if test "$supported" = "yes" ; then 16473 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16474 found="yes" 16475 fi 16476 fi 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492xorg_testset_save_CFLAGS="$CFLAGS" 16493 16494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16499 $as_echo_n "(cached) " >&6 16500else 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503int i; 16504_ACEOF 16505if ac_fn_c_try_compile "$LINENO"; then : 16506 xorg_cv_cc_flag_unknown_warning_option=yes 16507else 16508 xorg_cv_cc_flag_unknown_warning_option=no 16509fi 16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16511fi 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16515 CFLAGS="$xorg_testset_save_CFLAGS" 16516fi 16517 16518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16521 fi 16522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16526 $as_echo_n "(cached) " >&6 16527else 16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16529/* end confdefs.h. */ 16530int i; 16531_ACEOF 16532if ac_fn_c_try_compile "$LINENO"; then : 16533 xorg_cv_cc_flag_unused_command_line_argument=yes 16534else 16535 xorg_cv_cc_flag_unused_command_line_argument=no 16536fi 16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16538fi 16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543fi 16544 16545found="no" 16546 16547 if test $found = "no" ; then 16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16550 fi 16551 16552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16554 fi 16555 16556 CFLAGS="$CFLAGS -Wmain" 16557 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16559$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16560 cacheid=xorg_cv_cc_flag__Wmain 16561 if eval \${$cacheid+:} false; then : 16562 $as_echo_n "(cached) " >&6 16563else 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565/* end confdefs.h. */ 16566int i; 16567int 16568main () 16569{ 16570 16571 ; 16572 return 0; 16573} 16574_ACEOF 16575if ac_fn_c_try_link "$LINENO"; then : 16576 eval $cacheid=yes 16577else 16578 eval $cacheid=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext \ 16581 conftest$ac_exeext conftest.$ac_ext 16582fi 16583 16584 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586 16587 eval supported=\$$cacheid 16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16589$as_echo "$supported" >&6; } 16590 if test "$supported" = "yes" ; then 16591 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16592 found="yes" 16593 fi 16594 fi 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610xorg_testset_save_CFLAGS="$CFLAGS" 16611 16612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622_ACEOF 16623if ac_fn_c_try_compile "$LINENO"; then : 16624 xorg_cv_cc_flag_unknown_warning_option=yes 16625else 16626 xorg_cv_cc_flag_unknown_warning_option=no 16627fi 16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16629fi 16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16633 CFLAGS="$xorg_testset_save_CFLAGS" 16634fi 16635 16636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16639 fi 16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16644 $as_echo_n "(cached) " >&6 16645else 16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16647/* end confdefs.h. */ 16648int i; 16649_ACEOF 16650if ac_fn_c_try_compile "$LINENO"; then : 16651 xorg_cv_cc_flag_unused_command_line_argument=yes 16652else 16653 xorg_cv_cc_flag_unused_command_line_argument=no 16654fi 16655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16656fi 16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16660 CFLAGS="$xorg_testset_save_CFLAGS" 16661fi 16662 16663found="no" 16664 16665 if test $found = "no" ; then 16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16668 fi 16669 16670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16672 fi 16673 16674 CFLAGS="$CFLAGS -Wmissing-braces" 16675 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16677$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16678 cacheid=xorg_cv_cc_flag__Wmissing_braces 16679 if eval \${$cacheid+:} false; then : 16680 $as_echo_n "(cached) " >&6 16681else 16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684int i; 16685int 16686main () 16687{ 16688 16689 ; 16690 return 0; 16691} 16692_ACEOF 16693if ac_fn_c_try_link "$LINENO"; then : 16694 eval $cacheid=yes 16695else 16696 eval $cacheid=no 16697fi 16698rm -f core conftest.err conftest.$ac_objext \ 16699 conftest$ac_exeext conftest.$ac_ext 16700fi 16701 16702 16703 CFLAGS="$xorg_testset_save_CFLAGS" 16704 16705 eval supported=\$$cacheid 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16707$as_echo "$supported" >&6; } 16708 if test "$supported" = "yes" ; then 16709 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16710 found="yes" 16711 fi 16712 fi 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728xorg_testset_save_CFLAGS="$CFLAGS" 16729 16730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16735 $as_echo_n "(cached) " >&6 16736else 16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16738/* end confdefs.h. */ 16739int i; 16740_ACEOF 16741if ac_fn_c_try_compile "$LINENO"; then : 16742 xorg_cv_cc_flag_unknown_warning_option=yes 16743else 16744 xorg_cv_cc_flag_unknown_warning_option=no 16745fi 16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16747fi 16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16751 CFLAGS="$xorg_testset_save_CFLAGS" 16752fi 16753 16754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16757 fi 16758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16762 $as_echo_n "(cached) " >&6 16763else 16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766int i; 16767_ACEOF 16768if ac_fn_c_try_compile "$LINENO"; then : 16769 xorg_cv_cc_flag_unused_command_line_argument=yes 16770else 16771 xorg_cv_cc_flag_unused_command_line_argument=no 16772fi 16773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16774fi 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16778 CFLAGS="$xorg_testset_save_CFLAGS" 16779fi 16780 16781found="no" 16782 16783 if test $found = "no" ; then 16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16786 fi 16787 16788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16790 fi 16791 16792 CFLAGS="$CFLAGS -Wsequence-point" 16793 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16795$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16796 cacheid=xorg_cv_cc_flag__Wsequence_point 16797 if eval \${$cacheid+:} false; then : 16798 $as_echo_n "(cached) " >&6 16799else 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802int i; 16803int 16804main () 16805{ 16806 16807 ; 16808 return 0; 16809} 16810_ACEOF 16811if ac_fn_c_try_link "$LINENO"; then : 16812 eval $cacheid=yes 16813else 16814 eval $cacheid=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext \ 16817 conftest$ac_exeext conftest.$ac_ext 16818fi 16819 16820 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822 16823 eval supported=\$$cacheid 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16825$as_echo "$supported" >&6; } 16826 if test "$supported" = "yes" ; then 16827 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16828 found="yes" 16829 fi 16830 fi 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846xorg_testset_save_CFLAGS="$CFLAGS" 16847 16848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16853 $as_echo_n "(cached) " >&6 16854else 16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857int i; 16858_ACEOF 16859if ac_fn_c_try_compile "$LINENO"; then : 16860 xorg_cv_cc_flag_unknown_warning_option=yes 16861else 16862 xorg_cv_cc_flag_unknown_warning_option=no 16863fi 16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16865fi 16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16869 CFLAGS="$xorg_testset_save_CFLAGS" 16870fi 16871 16872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16875 fi 16876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16880 $as_echo_n "(cached) " >&6 16881else 16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16883/* end confdefs.h. */ 16884int i; 16885_ACEOF 16886if ac_fn_c_try_compile "$LINENO"; then : 16887 xorg_cv_cc_flag_unused_command_line_argument=yes 16888else 16889 xorg_cv_cc_flag_unused_command_line_argument=no 16890fi 16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16892fi 16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16896 CFLAGS="$xorg_testset_save_CFLAGS" 16897fi 16898 16899found="no" 16900 16901 if test $found = "no" ; then 16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16904 fi 16905 16906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16908 fi 16909 16910 CFLAGS="$CFLAGS -Wreturn-type" 16911 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16913$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16914 cacheid=xorg_cv_cc_flag__Wreturn_type 16915 if eval \${$cacheid+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920int i; 16921int 16922main () 16923{ 16924 16925 ; 16926 return 0; 16927} 16928_ACEOF 16929if ac_fn_c_try_link "$LINENO"; then : 16930 eval $cacheid=yes 16931else 16932 eval $cacheid=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext \ 16935 conftest$ac_exeext conftest.$ac_ext 16936fi 16937 16938 16939 CFLAGS="$xorg_testset_save_CFLAGS" 16940 16941 eval supported=\$$cacheid 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16943$as_echo "$supported" >&6; } 16944 if test "$supported" = "yes" ; then 16945 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16946 found="yes" 16947 fi 16948 fi 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964xorg_testset_save_CFLAGS="$CFLAGS" 16965 16966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16971 $as_echo_n "(cached) " >&6 16972else 16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16974/* end confdefs.h. */ 16975int i; 16976_ACEOF 16977if ac_fn_c_try_compile "$LINENO"; then : 16978 xorg_cv_cc_flag_unknown_warning_option=yes 16979else 16980 xorg_cv_cc_flag_unknown_warning_option=no 16981fi 16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16983fi 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16987 CFLAGS="$xorg_testset_save_CFLAGS" 16988fi 16989 16990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16993 fi 16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16998 $as_echo_n "(cached) " >&6 16999else 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002int i; 17003_ACEOF 17004if ac_fn_c_try_compile "$LINENO"; then : 17005 xorg_cv_cc_flag_unused_command_line_argument=yes 17006else 17007 xorg_cv_cc_flag_unused_command_line_argument=no 17008fi 17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17010fi 17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17014 CFLAGS="$xorg_testset_save_CFLAGS" 17015fi 17016 17017found="no" 17018 17019 if test $found = "no" ; then 17020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17022 fi 17023 17024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17026 fi 17027 17028 CFLAGS="$CFLAGS -Wtrigraphs" 17029 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17031$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17032 cacheid=xorg_cv_cc_flag__Wtrigraphs 17033 if eval \${$cacheid+:} false; then : 17034 $as_echo_n "(cached) " >&6 17035else 17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037/* end confdefs.h. */ 17038int i; 17039int 17040main () 17041{ 17042 17043 ; 17044 return 0; 17045} 17046_ACEOF 17047if ac_fn_c_try_link "$LINENO"; then : 17048 eval $cacheid=yes 17049else 17050 eval $cacheid=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext \ 17053 conftest$ac_exeext conftest.$ac_ext 17054fi 17055 17056 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058 17059 eval supported=\$$cacheid 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17061$as_echo "$supported" >&6; } 17062 if test "$supported" = "yes" ; then 17063 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17064 found="yes" 17065 fi 17066 fi 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082xorg_testset_save_CFLAGS="$CFLAGS" 17083 17084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17089 $as_echo_n "(cached) " >&6 17090else 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093int i; 17094_ACEOF 17095if ac_fn_c_try_compile "$LINENO"; then : 17096 xorg_cv_cc_flag_unknown_warning_option=yes 17097else 17098 xorg_cv_cc_flag_unknown_warning_option=no 17099fi 17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17101fi 17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17105 CFLAGS="$xorg_testset_save_CFLAGS" 17106fi 17107 17108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 fi 17112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17116 $as_echo_n "(cached) " >&6 17117else 17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17119/* end confdefs.h. */ 17120int i; 17121_ACEOF 17122if ac_fn_c_try_compile "$LINENO"; then : 17123 xorg_cv_cc_flag_unused_command_line_argument=yes 17124else 17125 xorg_cv_cc_flag_unused_command_line_argument=no 17126fi 17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17128fi 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17132 CFLAGS="$xorg_testset_save_CFLAGS" 17133fi 17134 17135found="no" 17136 17137 if test $found = "no" ; then 17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17140 fi 17141 17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17144 fi 17145 17146 CFLAGS="$CFLAGS -Warray-bounds" 17147 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17149$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17150 cacheid=xorg_cv_cc_flag__Warray_bounds 17151 if eval \${$cacheid+:} false; then : 17152 $as_echo_n "(cached) " >&6 17153else 17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17155/* end confdefs.h. */ 17156int i; 17157int 17158main () 17159{ 17160 17161 ; 17162 return 0; 17163} 17164_ACEOF 17165if ac_fn_c_try_link "$LINENO"; then : 17166 eval $cacheid=yes 17167else 17168 eval $cacheid=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext \ 17171 conftest$ac_exeext conftest.$ac_ext 17172fi 17173 17174 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176 17177 eval supported=\$$cacheid 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17179$as_echo "$supported" >&6; } 17180 if test "$supported" = "yes" ; then 17181 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17182 found="yes" 17183 fi 17184 fi 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200xorg_testset_save_CFLAGS="$CFLAGS" 17201 17202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211int i; 17212_ACEOF 17213if ac_fn_c_try_compile "$LINENO"; then : 17214 xorg_cv_cc_flag_unknown_warning_option=yes 17215else 17216 xorg_cv_cc_flag_unknown_warning_option=no 17217fi 17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17219fi 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17223 CFLAGS="$xorg_testset_save_CFLAGS" 17224fi 17225 17226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17229 fi 17230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17234 $as_echo_n "(cached) " >&6 17235else 17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237/* end confdefs.h. */ 17238int i; 17239_ACEOF 17240if ac_fn_c_try_compile "$LINENO"; then : 17241 xorg_cv_cc_flag_unused_command_line_argument=yes 17242else 17243 xorg_cv_cc_flag_unused_command_line_argument=no 17244fi 17245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17246fi 17247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17250 CFLAGS="$xorg_testset_save_CFLAGS" 17251fi 17252 17253found="no" 17254 17255 if test $found = "no" ; then 17256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17258 fi 17259 17260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17262 fi 17263 17264 CFLAGS="$CFLAGS -Wwrite-strings" 17265 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17267$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17268 cacheid=xorg_cv_cc_flag__Wwrite_strings 17269 if eval \${$cacheid+:} false; then : 17270 $as_echo_n "(cached) " >&6 17271else 17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17273/* end confdefs.h. */ 17274int i; 17275int 17276main () 17277{ 17278 17279 ; 17280 return 0; 17281} 17282_ACEOF 17283if ac_fn_c_try_link "$LINENO"; then : 17284 eval $cacheid=yes 17285else 17286 eval $cacheid=no 17287fi 17288rm -f core conftest.err conftest.$ac_objext \ 17289 conftest$ac_exeext conftest.$ac_ext 17290fi 17291 17292 17293 CFLAGS="$xorg_testset_save_CFLAGS" 17294 17295 eval supported=\$$cacheid 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17297$as_echo "$supported" >&6; } 17298 if test "$supported" = "yes" ; then 17299 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17300 found="yes" 17301 fi 17302 fi 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318xorg_testset_save_CFLAGS="$CFLAGS" 17319 17320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17325 $as_echo_n "(cached) " >&6 17326else 17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17328/* end confdefs.h. */ 17329int i; 17330_ACEOF 17331if ac_fn_c_try_compile "$LINENO"; then : 17332 xorg_cv_cc_flag_unknown_warning_option=yes 17333else 17334 xorg_cv_cc_flag_unknown_warning_option=no 17335fi 17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17337fi 17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17341 CFLAGS="$xorg_testset_save_CFLAGS" 17342fi 17343 17344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17347 fi 17348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17352 $as_echo_n "(cached) " >&6 17353else 17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17355/* end confdefs.h. */ 17356int i; 17357_ACEOF 17358if ac_fn_c_try_compile "$LINENO"; then : 17359 xorg_cv_cc_flag_unused_command_line_argument=yes 17360else 17361 xorg_cv_cc_flag_unused_command_line_argument=no 17362fi 17363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17364fi 17365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17368 CFLAGS="$xorg_testset_save_CFLAGS" 17369fi 17370 17371found="no" 17372 17373 if test $found = "no" ; then 17374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17376 fi 17377 17378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17380 fi 17381 17382 CFLAGS="$CFLAGS -Waddress" 17383 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17385$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17386 cacheid=xorg_cv_cc_flag__Waddress 17387 if eval \${$cacheid+:} false; then : 17388 $as_echo_n "(cached) " >&6 17389else 17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17391/* end confdefs.h. */ 17392int i; 17393int 17394main () 17395{ 17396 17397 ; 17398 return 0; 17399} 17400_ACEOF 17401if ac_fn_c_try_link "$LINENO"; then : 17402 eval $cacheid=yes 17403else 17404 eval $cacheid=no 17405fi 17406rm -f core conftest.err conftest.$ac_objext \ 17407 conftest$ac_exeext conftest.$ac_ext 17408fi 17409 17410 17411 CFLAGS="$xorg_testset_save_CFLAGS" 17412 17413 eval supported=\$$cacheid 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17415$as_echo "$supported" >&6; } 17416 if test "$supported" = "yes" ; then 17417 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17418 found="yes" 17419 fi 17420 fi 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436xorg_testset_save_CFLAGS="$CFLAGS" 17437 17438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444else 17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17446/* end confdefs.h. */ 17447int i; 17448_ACEOF 17449if ac_fn_c_try_compile "$LINENO"; then : 17450 xorg_cv_cc_flag_unknown_warning_option=yes 17451else 17452 xorg_cv_cc_flag_unknown_warning_option=no 17453fi 17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17455fi 17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17459 CFLAGS="$xorg_testset_save_CFLAGS" 17460fi 17461 17462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17465 fi 17466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17470 $as_echo_n "(cached) " >&6 17471else 17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17473/* end confdefs.h. */ 17474int i; 17475_ACEOF 17476if ac_fn_c_try_compile "$LINENO"; then : 17477 xorg_cv_cc_flag_unused_command_line_argument=yes 17478else 17479 xorg_cv_cc_flag_unused_command_line_argument=no 17480fi 17481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17482fi 17483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17486 CFLAGS="$xorg_testset_save_CFLAGS" 17487fi 17488 17489found="no" 17490 17491 if test $found = "no" ; then 17492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17494 fi 17495 17496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17498 fi 17499 17500 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17501 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17503$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17504 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17505 if eval \${$cacheid+:} false; then : 17506 $as_echo_n "(cached) " >&6 17507else 17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17509/* end confdefs.h. */ 17510int i; 17511int 17512main () 17513{ 17514 17515 ; 17516 return 0; 17517} 17518_ACEOF 17519if ac_fn_c_try_link "$LINENO"; then : 17520 eval $cacheid=yes 17521else 17522 eval $cacheid=no 17523fi 17524rm -f core conftest.err conftest.$ac_objext \ 17525 conftest$ac_exeext conftest.$ac_ext 17526fi 17527 17528 17529 CFLAGS="$xorg_testset_save_CFLAGS" 17530 17531 eval supported=\$$cacheid 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17533$as_echo "$supported" >&6; } 17534 if test "$supported" = "yes" ; then 17535 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17536 found="yes" 17537 fi 17538 fi 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554xorg_testset_save_CFLAGS="$CFLAGS" 17555 17556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17561 $as_echo_n "(cached) " >&6 17562else 17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564/* end confdefs.h. */ 17565int i; 17566_ACEOF 17567if ac_fn_c_try_compile "$LINENO"; then : 17568 xorg_cv_cc_flag_unknown_warning_option=yes 17569else 17570 xorg_cv_cc_flag_unknown_warning_option=no 17571fi 17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17573fi 17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17577 CFLAGS="$xorg_testset_save_CFLAGS" 17578fi 17579 17580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17583 fi 17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17588 $as_echo_n "(cached) " >&6 17589else 17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17591/* end confdefs.h. */ 17592int i; 17593_ACEOF 17594if ac_fn_c_try_compile "$LINENO"; then : 17595 xorg_cv_cc_flag_unused_command_line_argument=yes 17596else 17597 xorg_cv_cc_flag_unused_command_line_argument=no 17598fi 17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17600fi 17601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17604 CFLAGS="$xorg_testset_save_CFLAGS" 17605fi 17606 17607found="no" 17608 17609 if test $found = "no" ; then 17610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17612 fi 17613 17614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17616 fi 17617 17618 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17619 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17621$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17622 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17623 if eval \${$cacheid+:} false; then : 17624 $as_echo_n "(cached) " >&6 17625else 17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17627/* end confdefs.h. */ 17628int i; 17629int 17630main () 17631{ 17632 17633 ; 17634 return 0; 17635} 17636_ACEOF 17637if ac_fn_c_try_link "$LINENO"; then : 17638 eval $cacheid=yes 17639else 17640 eval $cacheid=no 17641fi 17642rm -f core conftest.err conftest.$ac_objext \ 17643 conftest$ac_exeext conftest.$ac_ext 17644fi 17645 17646 17647 CFLAGS="$xorg_testset_save_CFLAGS" 17648 17649 eval supported=\$$cacheid 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17651$as_echo "$supported" >&6; } 17652 if test "$supported" = "yes" ; then 17653 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17654 found="yes" 17655 fi 17656 fi 17657 17658 17659fi 17660 17661 17662 17663 17664 17665 17666 17667 CWARNFLAGS="$BASE_CFLAGS" 17668 if test "x$GCC" = xyes ; then 17669 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17670 fi 17671 17672 17673 17674 17675 17676 17677 17678 17679# Check whether --enable-strict-compilation was given. 17680if test "${enable_strict_compilation+set}" = set; then : 17681 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17682else 17683 STRICT_COMPILE=no 17684fi 17685 17686 17687 17688 17689 17690 17691STRICT_CFLAGS="" 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705xorg_testset_save_CFLAGS="$CFLAGS" 17706 17707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17712 $as_echo_n "(cached) " >&6 17713else 17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17715/* end confdefs.h. */ 17716int i; 17717_ACEOF 17718if ac_fn_c_try_compile "$LINENO"; then : 17719 xorg_cv_cc_flag_unknown_warning_option=yes 17720else 17721 xorg_cv_cc_flag_unknown_warning_option=no 17722fi 17723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17724fi 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17728 CFLAGS="$xorg_testset_save_CFLAGS" 17729fi 17730 17731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17734 fi 17735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17739 $as_echo_n "(cached) " >&6 17740else 17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17742/* end confdefs.h. */ 17743int i; 17744_ACEOF 17745if ac_fn_c_try_compile "$LINENO"; then : 17746 xorg_cv_cc_flag_unused_command_line_argument=yes 17747else 17748 xorg_cv_cc_flag_unused_command_line_argument=no 17749fi 17750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17751fi 17752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17755 CFLAGS="$xorg_testset_save_CFLAGS" 17756fi 17757 17758found="no" 17759 17760 if test $found = "no" ; then 17761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17763 fi 17764 17765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17767 fi 17768 17769 CFLAGS="$CFLAGS -pedantic" 17770 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17772$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17773 cacheid=xorg_cv_cc_flag__pedantic 17774 if eval \${$cacheid+:} false; then : 17775 $as_echo_n "(cached) " >&6 17776else 17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17778/* end confdefs.h. */ 17779int i; 17780int 17781main () 17782{ 17783 17784 ; 17785 return 0; 17786} 17787_ACEOF 17788if ac_fn_c_try_link "$LINENO"; then : 17789 eval $cacheid=yes 17790else 17791 eval $cacheid=no 17792fi 17793rm -f core conftest.err conftest.$ac_objext \ 17794 conftest$ac_exeext conftest.$ac_ext 17795fi 17796 17797 17798 CFLAGS="$xorg_testset_save_CFLAGS" 17799 17800 eval supported=\$$cacheid 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17802$as_echo "$supported" >&6; } 17803 if test "$supported" = "yes" ; then 17804 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17805 found="yes" 17806 fi 17807 fi 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823xorg_testset_save_CFLAGS="$CFLAGS" 17824 17825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17830 $as_echo_n "(cached) " >&6 17831else 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834int i; 17835_ACEOF 17836if ac_fn_c_try_compile "$LINENO"; then : 17837 xorg_cv_cc_flag_unknown_warning_option=yes 17838else 17839 xorg_cv_cc_flag_unknown_warning_option=no 17840fi 17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17842fi 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17846 CFLAGS="$xorg_testset_save_CFLAGS" 17847fi 17848 17849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17852 fi 17853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17857 $as_echo_n "(cached) " >&6 17858else 17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17860/* end confdefs.h. */ 17861int i; 17862_ACEOF 17863if ac_fn_c_try_compile "$LINENO"; then : 17864 xorg_cv_cc_flag_unused_command_line_argument=yes 17865else 17866 xorg_cv_cc_flag_unused_command_line_argument=no 17867fi 17868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17869fi 17870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17873 CFLAGS="$xorg_testset_save_CFLAGS" 17874fi 17875 17876found="no" 17877 17878 if test $found = "no" ; then 17879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17881 fi 17882 17883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17885 fi 17886 17887 CFLAGS="$CFLAGS -Werror" 17888 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17890$as_echo_n "checking if $CC supports -Werror... " >&6; } 17891 cacheid=xorg_cv_cc_flag__Werror 17892 if eval \${$cacheid+:} false; then : 17893 $as_echo_n "(cached) " >&6 17894else 17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17896/* end confdefs.h. */ 17897int i; 17898int 17899main () 17900{ 17901 17902 ; 17903 return 0; 17904} 17905_ACEOF 17906if ac_fn_c_try_link "$LINENO"; then : 17907 eval $cacheid=yes 17908else 17909 eval $cacheid=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext \ 17912 conftest$ac_exeext conftest.$ac_ext 17913fi 17914 17915 17916 CFLAGS="$xorg_testset_save_CFLAGS" 17917 17918 eval supported=\$$cacheid 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17920$as_echo "$supported" >&6; } 17921 if test "$supported" = "yes" ; then 17922 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17923 found="yes" 17924 fi 17925 fi 17926 17927 if test $found = "no" ; then 17928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17930 fi 17931 17932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17934 fi 17935 17936 CFLAGS="$CFLAGS -errwarn" 17937 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17939$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17940 cacheid=xorg_cv_cc_flag__errwarn 17941 if eval \${$cacheid+:} false; then : 17942 $as_echo_n "(cached) " >&6 17943else 17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17945/* end confdefs.h. */ 17946int i; 17947int 17948main () 17949{ 17950 17951 ; 17952 return 0; 17953} 17954_ACEOF 17955if ac_fn_c_try_link "$LINENO"; then : 17956 eval $cacheid=yes 17957else 17958 eval $cacheid=no 17959fi 17960rm -f core conftest.err conftest.$ac_objext \ 17961 conftest$ac_exeext conftest.$ac_ext 17962fi 17963 17964 17965 CFLAGS="$xorg_testset_save_CFLAGS" 17966 17967 eval supported=\$$cacheid 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17969$as_echo "$supported" >&6; } 17970 if test "$supported" = "yes" ; then 17971 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17972 found="yes" 17973 fi 17974 fi 17975 17976 17977 17978# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17979# activate it with -Werror, so we add it here explicitly. 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993xorg_testset_save_CFLAGS="$CFLAGS" 17994 17995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18000 $as_echo_n "(cached) " >&6 18001else 18002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18003/* end confdefs.h. */ 18004int i; 18005_ACEOF 18006if ac_fn_c_try_compile "$LINENO"; then : 18007 xorg_cv_cc_flag_unknown_warning_option=yes 18008else 18009 xorg_cv_cc_flag_unknown_warning_option=no 18010fi 18011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18012fi 18013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18016 CFLAGS="$xorg_testset_save_CFLAGS" 18017fi 18018 18019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18022 fi 18023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18027 $as_echo_n "(cached) " >&6 18028else 18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18030/* end confdefs.h. */ 18031int i; 18032_ACEOF 18033if ac_fn_c_try_compile "$LINENO"; then : 18034 xorg_cv_cc_flag_unused_command_line_argument=yes 18035else 18036 xorg_cv_cc_flag_unused_command_line_argument=no 18037fi 18038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18039fi 18040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18043 CFLAGS="$xorg_testset_save_CFLAGS" 18044fi 18045 18046found="no" 18047 18048 if test $found = "no" ; then 18049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18051 fi 18052 18053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18055 fi 18056 18057 CFLAGS="$CFLAGS -Werror=attributes" 18058 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18060$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18061 cacheid=xorg_cv_cc_flag__Werror_attributes 18062 if eval \${$cacheid+:} false; then : 18063 $as_echo_n "(cached) " >&6 18064else 18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18066/* end confdefs.h. */ 18067int i; 18068int 18069main () 18070{ 18071 18072 ; 18073 return 0; 18074} 18075_ACEOF 18076if ac_fn_c_try_link "$LINENO"; then : 18077 eval $cacheid=yes 18078else 18079 eval $cacheid=no 18080fi 18081rm -f core conftest.err conftest.$ac_objext \ 18082 conftest$ac_exeext conftest.$ac_ext 18083fi 18084 18085 18086 CFLAGS="$xorg_testset_save_CFLAGS" 18087 18088 eval supported=\$$cacheid 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18090$as_echo "$supported" >&6; } 18091 if test "$supported" = "yes" ; then 18092 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18093 found="yes" 18094 fi 18095 fi 18096 18097 18098 18099if test "x$STRICT_COMPILE" = "xyes"; then 18100 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18101 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18102fi 18103 18104 18105 18106 18107 18108 18109cat >>confdefs.h <<_ACEOF 18110#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18111_ACEOF 18112 18113 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18114 if test "x$PVM" = "x"; then 18115 PVM="0" 18116 fi 18117 18118cat >>confdefs.h <<_ACEOF 18119#define PACKAGE_VERSION_MINOR $PVM 18120_ACEOF 18121 18122 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18123 if test "x$PVP" = "x"; then 18124 PVP="0" 18125 fi 18126 18127cat >>confdefs.h <<_ACEOF 18128#define PACKAGE_VERSION_PATCHLEVEL $PVP 18129_ACEOF 18130 18131 18132 18133CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18134mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18135|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18136echo 'git directory not found: installing possibly empty changelog.' >&2)" 18137 18138 18139 18140 18141macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18142INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18143mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18144|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18145echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18146 18147 18148 18149 18150 18151 18152if test x$APP_MAN_SUFFIX = x ; then 18153 APP_MAN_SUFFIX=1 18154fi 18155if test x$APP_MAN_DIR = x ; then 18156 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18157fi 18158 18159if test x$LIB_MAN_SUFFIX = x ; then 18160 LIB_MAN_SUFFIX=3 18161fi 18162if test x$LIB_MAN_DIR = x ; then 18163 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18164fi 18165 18166if test x$FILE_MAN_SUFFIX = x ; then 18167 case $host_os in 18168 solaris*) FILE_MAN_SUFFIX=4 ;; 18169 *) FILE_MAN_SUFFIX=5 ;; 18170 esac 18171fi 18172if test x$FILE_MAN_DIR = x ; then 18173 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18174fi 18175 18176if test x$MISC_MAN_SUFFIX = x ; then 18177 case $host_os in 18178 solaris*) MISC_MAN_SUFFIX=5 ;; 18179 *) MISC_MAN_SUFFIX=7 ;; 18180 esac 18181fi 18182if test x$MISC_MAN_DIR = x ; then 18183 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18184fi 18185 18186if test x$DRIVER_MAN_SUFFIX = x ; then 18187 case $host_os in 18188 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18189 *) DRIVER_MAN_SUFFIX=4 ;; 18190 esac 18191fi 18192if test x$DRIVER_MAN_DIR = x ; then 18193 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18194fi 18195 18196if test x$ADMIN_MAN_SUFFIX = x ; then 18197 case $host_os in 18198 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18199 *) ADMIN_MAN_SUFFIX=8 ;; 18200 esac 18201fi 18202if test x$ADMIN_MAN_DIR = x ; then 18203 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18204fi 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220XORG_MAN_PAGE="X Version 11" 18221 18222MAN_SUBSTS="\ 18223 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18224 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18225 -e 's|__xservername__|Xorg|g' \ 18226 -e 's|__xconfigfile__|xorg.conf|g' \ 18227 -e 's|__projectroot__|\$(prefix)|g' \ 18228 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18229 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18230 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18231 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18232 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18233 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18234 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18235 18236 18237 18238# Check whether --enable-silent-rules was given. 18239if test "${enable_silent_rules+set}" = set; then : 18240 enableval=$enable_silent_rules; 18241fi 18242 18243case $enable_silent_rules in # ((( 18244 yes) AM_DEFAULT_VERBOSITY=0;; 18245 no) AM_DEFAULT_VERBOSITY=1;; 18246 *) AM_DEFAULT_VERBOSITY=0;; 18247esac 18248am_make=${MAKE-make} 18249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18250$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18251if ${am_cv_make_support_nested_variables+:} false; then : 18252 $as_echo_n "(cached) " >&6 18253else 18254 if $as_echo 'TRUE=$(BAR$(V)) 18255BAR0=false 18256BAR1=true 18257V=1 18258am__doit: 18259 @$(TRUE) 18260.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18261 am_cv_make_support_nested_variables=yes 18262else 18263 am_cv_make_support_nested_variables=no 18264fi 18265fi 18266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18267$as_echo "$am_cv_make_support_nested_variables" >&6; } 18268if test $am_cv_make_support_nested_variables = yes; then 18269 AM_V='$(V)' 18270 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18271else 18272 AM_V=$AM_DEFAULT_VERBOSITY 18273 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18274fi 18275AM_BACKSLASH='\' 18276 18277 18278 18279# Check whether --enable-malloc0returnsnull was given. 18280if test "${enable_malloc0returnsnull+set}" = set; then : 18281 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18282else 18283 MALLOC_ZERO_RETURNS_NULL=auto 18284fi 18285 18286 18287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18288$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18289if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18290if ${xorg_cv_malloc0_returns_null+:} false; then : 18291 $as_echo_n "(cached) " >&6 18292else 18293 if test "$cross_compiling" = yes; then : 18294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18296as_fn_error $? "cannot run test program while cross compiling 18297See \`config.log' for more details" "$LINENO" 5; } 18298else 18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18300/* end confdefs.h. */ 18301 18302#include <stdlib.h> 18303 18304int 18305main () 18306{ 18307 18308 char *m0, *r0, *c0, *p; 18309 m0 = malloc(0); 18310 p = malloc(10); 18311 r0 = realloc(p,0); 18312 c0 = calloc(0,10); 18313 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18314 18315 ; 18316 return 0; 18317} 18318_ACEOF 18319if ac_fn_c_try_run "$LINENO"; then : 18320 xorg_cv_malloc0_returns_null=yes 18321else 18322 xorg_cv_malloc0_returns_null=no 18323fi 18324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18325 conftest.$ac_objext conftest.beam conftest.$ac_ext 18326fi 18327 18328fi 18329 18330MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18331fi 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18333$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18334 18335if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18336 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18337 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18338 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18339else 18340 MALLOC_ZERO_CFLAGS="" 18341 XMALLOC_ZERO_CFLAGS="" 18342 XTMALLOC_ZERO_CFLAGS="" 18343fi 18344 18345 18346 18347 18348 18349 18350# Obtain compiler/linker options for depedencies 18351 18352pkg_failed=no 18353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSCRNSAVER" >&5 18354$as_echo_n "checking for XSCRNSAVER... " >&6; } 18355 18356if test -n "$XSCRNSAVER_CFLAGS"; then 18357 pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS" 18358 elif test -n "$PKG_CONFIG"; then 18359 if test -n "$PKG_CONFIG" && \ 18360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5 18361 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 18362 ac_status=$? 18363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18364 test $ac_status = 0; }; then 18365 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 18366 test "x$?" != "x0" && pkg_failed=yes 18367else 18368 pkg_failed=yes 18369fi 18370 else 18371 pkg_failed=untried 18372fi 18373if test -n "$XSCRNSAVER_LIBS"; then 18374 pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS" 18375 elif test -n "$PKG_CONFIG"; then 18376 if test -n "$PKG_CONFIG" && \ 18377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5 18378 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 18379 ac_status=$? 18380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18381 test $ac_status = 0; }; then 18382 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 18383 test "x$?" != "x0" && pkg_failed=yes 18384else 18385 pkg_failed=yes 18386fi 18387 else 18388 pkg_failed=untried 18389fi 18390 18391 18392 18393if test $pkg_failed = yes; then 18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18395$as_echo "no" >&6; } 18396 18397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18398 _pkg_short_errors_supported=yes 18399else 18400 _pkg_short_errors_supported=no 18401fi 18402 if test $_pkg_short_errors_supported = yes; then 18403 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 18404 else 18405 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 18406 fi 18407 # Put the nasty error message in config.log where it belongs 18408 echo "$XSCRNSAVER_PKG_ERRORS" >&5 18409 18410 as_fn_error $? "Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met: 18411 18412$XSCRNSAVER_PKG_ERRORS 18413 18414Consider adjusting the PKG_CONFIG_PATH environment variable if you 18415installed software in a non-standard prefix. 18416 18417Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 18418and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 18419See the pkg-config man page for more details." "$LINENO" 5 18420elif test $pkg_failed = untried; then 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18422$as_echo "no" >&6; } 18423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18425as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18426is in your PATH or set the PKG_CONFIG environment variable to the full 18427path to pkg-config. 18428 18429Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 18430and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 18431See the pkg-config man page for more details. 18432 18433To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18434See \`config.log' for more details" "$LINENO" 5; } 18435else 18436 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS 18437 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18439$as_echo "yes" >&6; } 18440 18441fi 18442 18443# Allow checking code with lint, sparse, etc. 18444 18445 18446 18447 18448 18449# Check whether --with-lint was given. 18450if test "${with_lint+set}" = set; then : 18451 withval=$with_lint; use_lint=$withval 18452else 18453 use_lint=no 18454fi 18455 18456 18457# Obtain platform specific info like program name and options 18458# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18459case $host_os in 18460 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18461 lint_name=splint 18462 lint_options="-badflag" 18463 ;; 18464 *freebsd* | *netbsd*) 18465 lint_name=lint 18466 lint_options="-u -b" 18467 ;; 18468 *solaris*) 18469 lint_name=lint 18470 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18471 ;; 18472esac 18473 18474# Test for the presence of the program (either guessed by the code or spelled out by the user) 18475if test "x$use_lint" = x"yes" ; then 18476 # Extract the first word of "$lint_name", so it can be a program name with args. 18477set dummy $lint_name; ac_word=$2 18478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18479$as_echo_n "checking for $ac_word... " >&6; } 18480if ${ac_cv_path_LINT+:} false; then : 18481 $as_echo_n "(cached) " >&6 18482else 18483 case $LINT in 18484 [\\/]* | ?:[\\/]*) 18485 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18486 ;; 18487 *) 18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18489for as_dir in $PATH 18490do 18491 IFS=$as_save_IFS 18492 test -z "$as_dir" && as_dir=. 18493 for ac_exec_ext in '' $ac_executable_extensions; do 18494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18495 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18497 break 2 18498 fi 18499done 18500 done 18501IFS=$as_save_IFS 18502 18503 ;; 18504esac 18505fi 18506LINT=$ac_cv_path_LINT 18507if test -n "$LINT"; then 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18509$as_echo "$LINT" >&6; } 18510else 18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18512$as_echo "no" >&6; } 18513fi 18514 18515 18516 if test "x$LINT" = "x"; then 18517 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18518 fi 18519elif test "x$use_lint" = x"no" ; then 18520 if test "x$LINT" != "x"; then 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18522$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18523 fi 18524else 18525 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18526fi 18527 18528# User supplied flags override default flags 18529if test "x$LINT_FLAGS" != "x"; then 18530 lint_options=$LINT_FLAGS 18531fi 18532 18533LINT_FLAGS=$lint_options 18534 18535 if test "x$LINT" != x; then 18536 LINT_TRUE= 18537 LINT_FALSE='#' 18538else 18539 LINT_TRUE='#' 18540 LINT_FALSE= 18541fi 18542 18543 18544 18545 18546 18547# Check whether --enable-lint-library was given. 18548if test "${enable_lint_library+set}" = set; then : 18549 enableval=$enable_lint_library; make_lint_lib=$enableval 18550else 18551 make_lint_lib=no 18552fi 18553 18554 18555if test "x$make_lint_lib" = x"yes" ; then 18556 LINTLIB=llib-lXss.ln 18557 if test "x$LINT" = "x"; then 18558 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18559 fi 18560elif test "x$make_lint_lib" != x"no" ; then 18561 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18562fi 18563 18564 18565 if test x$make_lint_lib != xno; then 18566 MAKE_LINT_LIB_TRUE= 18567 MAKE_LINT_LIB_FALSE='#' 18568else 18569 MAKE_LINT_LIB_TRUE='#' 18570 MAKE_LINT_LIB_FALSE= 18571fi 18572 18573 18574 18575 18576ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc" 18577 18578cat >confcache <<\_ACEOF 18579# This file is a shell script that caches the results of configure 18580# tests run on this system so they can be shared between configure 18581# scripts and configure runs, see configure's option --config-cache. 18582# It is not useful on other systems. If it contains results you don't 18583# want to keep, you may remove or edit it. 18584# 18585# config.status only pays attention to the cache file if you give it 18586# the --recheck option to rerun configure. 18587# 18588# `ac_cv_env_foo' variables (set or unset) will be overridden when 18589# loading this file, other *unset* `ac_cv_foo' will be assigned the 18590# following values. 18591 18592_ACEOF 18593 18594# The following way of writing the cache mishandles newlines in values, 18595# but we know of no workaround that is simple, portable, and efficient. 18596# So, we kill variables containing newlines. 18597# Ultrix sh set writes to stderr and can't be redirected directly, 18598# and sets the high bit in the cache file unless we assign to the vars. 18599( 18600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18601 eval ac_val=\$$ac_var 18602 case $ac_val in #( 18603 *${as_nl}*) 18604 case $ac_var in #( 18605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18606$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18607 esac 18608 case $ac_var in #( 18609 _ | IFS | as_nl) ;; #( 18610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18611 *) { eval $ac_var=; unset $ac_var;} ;; 18612 esac ;; 18613 esac 18614 done 18615 18616 (set) 2>&1 | 18617 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18618 *${as_nl}ac_space=\ *) 18619 # `set' does not quote correctly, so add quotes: double-quote 18620 # substitution turns \\\\ into \\, and sed turns \\ into \. 18621 sed -n \ 18622 "s/'/'\\\\''/g; 18623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18624 ;; #( 18625 *) 18626 # `set' quotes correctly as required by POSIX, so do not add quotes. 18627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18628 ;; 18629 esac | 18630 sort 18631) | 18632 sed ' 18633 /^ac_cv_env_/b end 18634 t clear 18635 :clear 18636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18637 t end 18638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18639 :end' >>confcache 18640if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18641 if test -w "$cache_file"; then 18642 if test "x$cache_file" != "x/dev/null"; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18644$as_echo "$as_me: updating cache $cache_file" >&6;} 18645 if test ! -f "$cache_file" || test -h "$cache_file"; then 18646 cat confcache >"$cache_file" 18647 else 18648 case $cache_file in #( 18649 */* | ?:*) 18650 mv -f confcache "$cache_file"$$ && 18651 mv -f "$cache_file"$$ "$cache_file" ;; #( 18652 *) 18653 mv -f confcache "$cache_file" ;; 18654 esac 18655 fi 18656 fi 18657 else 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18659$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18660 fi 18661fi 18662rm -f confcache 18663 18664test "x$prefix" = xNONE && prefix=$ac_default_prefix 18665# Let make expand exec_prefix. 18666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18667 18668DEFS=-DHAVE_CONFIG_H 18669 18670ac_libobjs= 18671ac_ltlibobjs= 18672U= 18673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18674 # 1. Remove the extension, and $U if already installed. 18675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18678 # will be set to the directory where LIBOBJS objects are built. 18679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18681done 18682LIBOBJS=$ac_libobjs 18683 18684LTLIBOBJS=$ac_ltlibobjs 18685 18686 18687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18688$as_echo_n "checking that generated files are newer than configure... " >&6; } 18689 if test -n "$am_sleep_pid"; then 18690 # Hide warnings about reused PIDs. 18691 wait $am_sleep_pid 2>/dev/null 18692 fi 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18694$as_echo "done" >&6; } 18695 if test -n "$EXEEXT"; then 18696 am__EXEEXT_TRUE= 18697 am__EXEEXT_FALSE='#' 18698else 18699 am__EXEEXT_TRUE='#' 18700 am__EXEEXT_FALSE= 18701fi 18702 18703if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18704 as_fn_error $? "conditional \"AMDEP\" was never defined. 18705Usually this means the macro was only invoked conditionally." "$LINENO" 5 18706fi 18707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18709Usually this means the macro was only invoked conditionally." "$LINENO" 5 18710fi 18711if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18712 as_fn_error $? "conditional \"LINT\" was never defined. 18713Usually this means the macro was only invoked conditionally." "$LINENO" 5 18714fi 18715if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18716 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18717Usually this means the macro was only invoked conditionally." "$LINENO" 5 18718fi 18719 18720: "${CONFIG_STATUS=./config.status}" 18721ac_write_fail=0 18722ac_clean_files_save=$ac_clean_files 18723ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18724{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18726as_write_fail=0 18727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18728#! $SHELL 18729# Generated by $as_me. 18730# Run this file to recreate the current configuration. 18731# Compiler output produced by configure, useful for debugging 18732# configure, is in config.log if it exists. 18733 18734debug=false 18735ac_cs_recheck=false 18736ac_cs_silent=false 18737 18738SHELL=\${CONFIG_SHELL-$SHELL} 18739export SHELL 18740_ASEOF 18741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18742## -------------------- ## 18743## M4sh Initialization. ## 18744## -------------------- ## 18745 18746# Be more Bourne compatible 18747DUALCASE=1; export DUALCASE # for MKS sh 18748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18749 emulate sh 18750 NULLCMD=: 18751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18752 # is contrary to our usage. Disable this feature. 18753 alias -g '${1+"$@"}'='"$@"' 18754 setopt NO_GLOB_SUBST 18755else 18756 case `(set -o) 2>/dev/null` in #( 18757 *posix*) : 18758 set -o posix ;; #( 18759 *) : 18760 ;; 18761esac 18762fi 18763 18764 18765as_nl=' 18766' 18767export as_nl 18768# Printing a long string crashes Solaris 7 /usr/bin/printf. 18769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18772# Prefer a ksh shell builtin over an external printf program on Solaris, 18773# but without wasting forks for bash or zsh. 18774if test -z "$BASH_VERSION$ZSH_VERSION" \ 18775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18776 as_echo='print -r --' 18777 as_echo_n='print -rn --' 18778elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18779 as_echo='printf %s\n' 18780 as_echo_n='printf %s' 18781else 18782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18784 as_echo_n='/usr/ucb/echo -n' 18785 else 18786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18787 as_echo_n_body='eval 18788 arg=$1; 18789 case $arg in #( 18790 *"$as_nl"*) 18791 expr "X$arg" : "X\\(.*\\)$as_nl"; 18792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18793 esac; 18794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18795 ' 18796 export as_echo_n_body 18797 as_echo_n='sh -c $as_echo_n_body as_echo' 18798 fi 18799 export as_echo_body 18800 as_echo='sh -c $as_echo_body as_echo' 18801fi 18802 18803# The user is always right. 18804if test "${PATH_SEPARATOR+set}" != set; then 18805 PATH_SEPARATOR=: 18806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18808 PATH_SEPARATOR=';' 18809 } 18810fi 18811 18812 18813# IFS 18814# We need space, tab and new line, in precisely that order. Quoting is 18815# there to prevent editors from complaining about space-tab. 18816# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18817# splitting by setting IFS to empty value.) 18818IFS=" "" $as_nl" 18819 18820# Find who we are. Look in the path if we contain no directory separator. 18821as_myself= 18822case $0 in #(( 18823 *[\\/]* ) as_myself=$0 ;; 18824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18825for as_dir in $PATH 18826do 18827 IFS=$as_save_IFS 18828 test -z "$as_dir" && as_dir=. 18829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18830 done 18831IFS=$as_save_IFS 18832 18833 ;; 18834esac 18835# We did not find ourselves, most probably we were run as `sh COMMAND' 18836# in which case we are not to be found in the path. 18837if test "x$as_myself" = x; then 18838 as_myself=$0 18839fi 18840if test ! -f "$as_myself"; then 18841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18842 exit 1 18843fi 18844 18845# Unset variables that we do not need and which cause bugs (e.g. in 18846# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18847# suppresses any "Segmentation fault" message there. '((' could 18848# trigger a bug in pdksh 5.2.14. 18849for as_var in BASH_ENV ENV MAIL MAILPATH 18850do eval test x\${$as_var+set} = xset \ 18851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18852done 18853PS1='$ ' 18854PS2='> ' 18855PS4='+ ' 18856 18857# NLS nuisances. 18858LC_ALL=C 18859export LC_ALL 18860LANGUAGE=C 18861export LANGUAGE 18862 18863# CDPATH. 18864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18865 18866 18867# as_fn_error STATUS ERROR [LINENO LOG_FD] 18868# ---------------------------------------- 18869# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18870# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18871# script with STATUS, using 1 if that was 0. 18872as_fn_error () 18873{ 18874 as_status=$1; test $as_status -eq 0 && as_status=1 18875 if test "$4"; then 18876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18878 fi 18879 $as_echo "$as_me: error: $2" >&2 18880 as_fn_exit $as_status 18881} # as_fn_error 18882 18883 18884# as_fn_set_status STATUS 18885# ----------------------- 18886# Set $? to STATUS, without forking. 18887as_fn_set_status () 18888{ 18889 return $1 18890} # as_fn_set_status 18891 18892# as_fn_exit STATUS 18893# ----------------- 18894# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18895as_fn_exit () 18896{ 18897 set +e 18898 as_fn_set_status $1 18899 exit $1 18900} # as_fn_exit 18901 18902# as_fn_unset VAR 18903# --------------- 18904# Portably unset VAR. 18905as_fn_unset () 18906{ 18907 { eval $1=; unset $1;} 18908} 18909as_unset=as_fn_unset 18910# as_fn_append VAR VALUE 18911# ---------------------- 18912# Append the text in VALUE to the end of the definition contained in VAR. Take 18913# advantage of any shell optimizations that allow amortized linear growth over 18914# repeated appends, instead of the typical quadratic growth present in naive 18915# implementations. 18916if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18917 eval 'as_fn_append () 18918 { 18919 eval $1+=\$2 18920 }' 18921else 18922 as_fn_append () 18923 { 18924 eval $1=\$$1\$2 18925 } 18926fi # as_fn_append 18927 18928# as_fn_arith ARG... 18929# ------------------ 18930# Perform arithmetic evaluation on the ARGs, and store the result in the 18931# global $as_val. Take advantage of shells that can avoid forks. The arguments 18932# must be portable across $(()) and expr. 18933if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18934 eval 'as_fn_arith () 18935 { 18936 as_val=$(( $* )) 18937 }' 18938else 18939 as_fn_arith () 18940 { 18941 as_val=`expr "$@" || test $? -eq 1` 18942 } 18943fi # as_fn_arith 18944 18945 18946if expr a : '\(a\)' >/dev/null 2>&1 && 18947 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18948 as_expr=expr 18949else 18950 as_expr=false 18951fi 18952 18953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18954 as_basename=basename 18955else 18956 as_basename=false 18957fi 18958 18959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18960 as_dirname=dirname 18961else 18962 as_dirname=false 18963fi 18964 18965as_me=`$as_basename -- "$0" || 18966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18967 X"$0" : 'X\(//\)$' \| \ 18968 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18969$as_echo X/"$0" | 18970 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18971 s//\1/ 18972 q 18973 } 18974 /^X\/\(\/\/\)$/{ 18975 s//\1/ 18976 q 18977 } 18978 /^X\/\(\/\).*/{ 18979 s//\1/ 18980 q 18981 } 18982 s/.*/./; q'` 18983 18984# Avoid depending upon Character Ranges. 18985as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18987as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18988as_cr_digits='0123456789' 18989as_cr_alnum=$as_cr_Letters$as_cr_digits 18990 18991ECHO_C= ECHO_N= ECHO_T= 18992case `echo -n x` in #((((( 18993-n*) 18994 case `echo 'xy\c'` in 18995 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18996 xy) ECHO_C='\c';; 18997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18998 ECHO_T=' ';; 18999 esac;; 19000*) 19001 ECHO_N='-n';; 19002esac 19003 19004rm -f conf$$ conf$$.exe conf$$.file 19005if test -d conf$$.dir; then 19006 rm -f conf$$.dir/conf$$.file 19007else 19008 rm -f conf$$.dir 19009 mkdir conf$$.dir 2>/dev/null 19010fi 19011if (echo >conf$$.file) 2>/dev/null; then 19012 if ln -s conf$$.file conf$$ 2>/dev/null; then 19013 as_ln_s='ln -s' 19014 # ... but there are two gotchas: 19015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19017 # In both cases, we have to default to `cp -pR'. 19018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19019 as_ln_s='cp -pR' 19020 elif ln conf$$.file conf$$ 2>/dev/null; then 19021 as_ln_s=ln 19022 else 19023 as_ln_s='cp -pR' 19024 fi 19025else 19026 as_ln_s='cp -pR' 19027fi 19028rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19029rmdir conf$$.dir 2>/dev/null 19030 19031 19032# as_fn_mkdir_p 19033# ------------- 19034# Create "$as_dir" as a directory, including parents if necessary. 19035as_fn_mkdir_p () 19036{ 19037 19038 case $as_dir in #( 19039 -*) as_dir=./$as_dir;; 19040 esac 19041 test -d "$as_dir" || eval $as_mkdir_p || { 19042 as_dirs= 19043 while :; do 19044 case $as_dir in #( 19045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19046 *) as_qdir=$as_dir;; 19047 esac 19048 as_dirs="'$as_qdir' $as_dirs" 19049 as_dir=`$as_dirname -- "$as_dir" || 19050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19051 X"$as_dir" : 'X\(//\)[^/]' \| \ 19052 X"$as_dir" : 'X\(//\)$' \| \ 19053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19054$as_echo X"$as_dir" | 19055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19056 s//\1/ 19057 q 19058 } 19059 /^X\(\/\/\)[^/].*/{ 19060 s//\1/ 19061 q 19062 } 19063 /^X\(\/\/\)$/{ 19064 s//\1/ 19065 q 19066 } 19067 /^X\(\/\).*/{ 19068 s//\1/ 19069 q 19070 } 19071 s/.*/./; q'` 19072 test -d "$as_dir" && break 19073 done 19074 test -z "$as_dirs" || eval "mkdir $as_dirs" 19075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19076 19077 19078} # as_fn_mkdir_p 19079if mkdir -p . 2>/dev/null; then 19080 as_mkdir_p='mkdir -p "$as_dir"' 19081else 19082 test -d ./-p && rmdir ./-p 19083 as_mkdir_p=false 19084fi 19085 19086 19087# as_fn_executable_p FILE 19088# ----------------------- 19089# Test if FILE is an executable regular file. 19090as_fn_executable_p () 19091{ 19092 test -f "$1" && test -x "$1" 19093} # as_fn_executable_p 19094as_test_x='test -x' 19095as_executable_p=as_fn_executable_p 19096 19097# Sed expression to map a string onto a valid CPP name. 19098as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19099 19100# Sed expression to map a string onto a valid variable name. 19101as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19102 19103 19104exec 6>&1 19105## ----------------------------------- ## 19106## Main body of $CONFIG_STATUS script. ## 19107## ----------------------------------- ## 19108_ASEOF 19109test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19110 19111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19112# Save the log message, to keep $0 and so on meaningful, and to 19113# report actual input values of CONFIG_FILES etc. instead of their 19114# values after options handling. 19115ac_log=" 19116This file was extended by libXScrnSaver $as_me 1.2.3, which was 19117generated by GNU Autoconf 2.69. Invocation command line was 19118 19119 CONFIG_FILES = $CONFIG_FILES 19120 CONFIG_HEADERS = $CONFIG_HEADERS 19121 CONFIG_LINKS = $CONFIG_LINKS 19122 CONFIG_COMMANDS = $CONFIG_COMMANDS 19123 $ $0 $@ 19124 19125on `(hostname || uname -n) 2>/dev/null | sed 1q` 19126" 19127 19128_ACEOF 19129 19130case $ac_config_files in *" 19131"*) set x $ac_config_files; shift; ac_config_files=$*;; 19132esac 19133 19134case $ac_config_headers in *" 19135"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19136esac 19137 19138 19139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19140# Files that config.status was made for. 19141config_files="$ac_config_files" 19142config_headers="$ac_config_headers" 19143config_commands="$ac_config_commands" 19144 19145_ACEOF 19146 19147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19148ac_cs_usage="\ 19149\`$as_me' instantiates files and other configuration actions 19150from templates according to the current configuration. Unless the files 19151and actions are specified as TAGs, all are instantiated by default. 19152 19153Usage: $0 [OPTION]... [TAG]... 19154 19155 -h, --help print this help, then exit 19156 -V, --version print version number and configuration settings, then exit 19157 --config print configuration, then exit 19158 -q, --quiet, --silent 19159 do not print progress messages 19160 -d, --debug don't remove temporary files 19161 --recheck update $as_me by reconfiguring in the same conditions 19162 --file=FILE[:TEMPLATE] 19163 instantiate the configuration file FILE 19164 --header=FILE[:TEMPLATE] 19165 instantiate the configuration header FILE 19166 19167Configuration files: 19168$config_files 19169 19170Configuration headers: 19171$config_headers 19172 19173Configuration commands: 19174$config_commands 19175 19176Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19177 19178_ACEOF 19179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19180ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19181ac_cs_version="\\ 19182libXScrnSaver config.status 1.2.3 19183configured by $0, generated by GNU Autoconf 2.69, 19184 with options \\"\$ac_cs_config\\" 19185 19186Copyright (C) 2012 Free Software Foundation, Inc. 19187This config.status script is free software; the Free Software Foundation 19188gives unlimited permission to copy, distribute and modify it." 19189 19190ac_pwd='$ac_pwd' 19191srcdir='$srcdir' 19192INSTALL='$INSTALL' 19193MKDIR_P='$MKDIR_P' 19194AWK='$AWK' 19195test -n "\$AWK" || AWK=awk 19196_ACEOF 19197 19198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19199# The default lists apply if the user does not specify any file. 19200ac_need_defaults=: 19201while test $# != 0 19202do 19203 case $1 in 19204 --*=?*) 19205 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19207 ac_shift=: 19208 ;; 19209 --*=) 19210 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19211 ac_optarg= 19212 ac_shift=: 19213 ;; 19214 *) 19215 ac_option=$1 19216 ac_optarg=$2 19217 ac_shift=shift 19218 ;; 19219 esac 19220 19221 case $ac_option in 19222 # Handling of the options. 19223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19224 ac_cs_recheck=: ;; 19225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19226 $as_echo "$ac_cs_version"; exit ;; 19227 --config | --confi | --conf | --con | --co | --c ) 19228 $as_echo "$ac_cs_config"; exit ;; 19229 --debug | --debu | --deb | --de | --d | -d ) 19230 debug=: ;; 19231 --file | --fil | --fi | --f ) 19232 $ac_shift 19233 case $ac_optarg in 19234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19235 '') as_fn_error $? "missing file argument" ;; 19236 esac 19237 as_fn_append CONFIG_FILES " '$ac_optarg'" 19238 ac_need_defaults=false;; 19239 --header | --heade | --head | --hea ) 19240 $ac_shift 19241 case $ac_optarg in 19242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19243 esac 19244 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19245 ac_need_defaults=false;; 19246 --he | --h) 19247 # Conflict between --help and --header 19248 as_fn_error $? "ambiguous option: \`$1' 19249Try \`$0 --help' for more information.";; 19250 --help | --hel | -h ) 19251 $as_echo "$ac_cs_usage"; exit ;; 19252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19253 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19254 ac_cs_silent=: ;; 19255 19256 # This is an error. 19257 -*) as_fn_error $? "unrecognized option: \`$1' 19258Try \`$0 --help' for more information." ;; 19259 19260 *) as_fn_append ac_config_targets " $1" 19261 ac_need_defaults=false ;; 19262 19263 esac 19264 shift 19265done 19266 19267ac_configure_extra_args= 19268 19269if $ac_cs_silent; then 19270 exec 6>/dev/null 19271 ac_configure_extra_args="$ac_configure_extra_args --silent" 19272fi 19273 19274_ACEOF 19275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19276if \$ac_cs_recheck; then 19277 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19278 shift 19279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19280 CONFIG_SHELL='$SHELL' 19281 export CONFIG_SHELL 19282 exec "\$@" 19283fi 19284 19285_ACEOF 19286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19287exec 5>>config.log 19288{ 19289 echo 19290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19291## Running $as_me. ## 19292_ASBOX 19293 $as_echo "$ac_log" 19294} >&5 19295 19296_ACEOF 19297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19298# 19299# INIT-COMMANDS 19300# 19301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19302 19303 19304# The HP-UX ksh and POSIX shell print the target directory to stdout 19305# if CDPATH is set. 19306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19307 19308sed_quote_subst='$sed_quote_subst' 19309double_quote_subst='$double_quote_subst' 19310delay_variable_subst='$delay_variable_subst' 19311macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19312macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19313enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19314enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19315pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19316enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19317shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19318SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19319ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19320PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19321host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19322host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19323host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19324build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19325build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19326build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19327SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19328Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19329GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19330EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19331FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19332LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19333NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19334LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19335max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19336ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19337exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19338lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19339lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19340lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19341lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19342lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19343reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19344reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19345OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19346deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19347file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19348file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19349want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19350DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19351sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19352AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19353AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19354archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19355STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19356RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19357old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19358old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19359old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19360lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19361CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19362CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19363compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19364GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19365lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19366lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19367lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19368lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19369lt_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"`' 19370lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19371nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19372lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19373lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19374objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19375MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19376lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19377lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19378lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19379lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19380lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19381need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19382MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19383DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19384NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19385LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19386OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19387OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19388libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19389shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19390extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19391archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19392enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19393export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19394whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19395compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19396old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19397old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19398archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19399archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19400module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19401module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19402with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19403allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19404no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19405hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19406hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19407hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19408hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19409hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19410hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19411hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19412inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19413link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19414always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19415export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19416exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19417include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19418prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19419postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19420file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19421variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19422need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19423need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19424version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19425runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19426shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19427shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19428libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19429library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19430soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19431install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19432postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19433postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19434finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19435finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19436hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19437sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19438configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19439configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19440hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19441enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19442enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19443enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19444old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19445striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19446 19447LTCC='$LTCC' 19448LTCFLAGS='$LTCFLAGS' 19449compiler='$compiler_DEFAULT' 19450 19451# A function that is used when there is no print builtin or printf. 19452func_fallback_echo () 19453{ 19454 eval 'cat <<_LTECHO_EOF 19455\$1 19456_LTECHO_EOF' 19457} 19458 19459# Quote evaled strings. 19460for var in SHELL \ 19461ECHO \ 19462PATH_SEPARATOR \ 19463SED \ 19464GREP \ 19465EGREP \ 19466FGREP \ 19467LD \ 19468NM \ 19469LN_S \ 19470lt_SP2NL \ 19471lt_NL2SP \ 19472reload_flag \ 19473OBJDUMP \ 19474deplibs_check_method \ 19475file_magic_cmd \ 19476file_magic_glob \ 19477want_nocaseglob \ 19478DLLTOOL \ 19479sharedlib_from_linklib_cmd \ 19480AR \ 19481AR_FLAGS \ 19482archiver_list_spec \ 19483STRIP \ 19484RANLIB \ 19485CC \ 19486CFLAGS \ 19487compiler \ 19488lt_cv_sys_global_symbol_pipe \ 19489lt_cv_sys_global_symbol_to_cdecl \ 19490lt_cv_sys_global_symbol_to_import \ 19491lt_cv_sys_global_symbol_to_c_name_address \ 19492lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19493lt_cv_nm_interface \ 19494nm_file_list_spec \ 19495lt_cv_truncate_bin \ 19496lt_prog_compiler_no_builtin_flag \ 19497lt_prog_compiler_pic \ 19498lt_prog_compiler_wl \ 19499lt_prog_compiler_static \ 19500lt_cv_prog_compiler_c_o \ 19501need_locks \ 19502MANIFEST_TOOL \ 19503DSYMUTIL \ 19504NMEDIT \ 19505LIPO \ 19506OTOOL \ 19507OTOOL64 \ 19508shrext_cmds \ 19509export_dynamic_flag_spec \ 19510whole_archive_flag_spec \ 19511compiler_needs_object \ 19512with_gnu_ld \ 19513allow_undefined_flag \ 19514no_undefined_flag \ 19515hardcode_libdir_flag_spec \ 19516hardcode_libdir_separator \ 19517exclude_expsyms \ 19518include_expsyms \ 19519file_list_spec \ 19520variables_saved_for_relink \ 19521libname_spec \ 19522library_names_spec \ 19523soname_spec \ 19524install_override_mode \ 19525finish_eval \ 19526old_striplib \ 19527striplib; do 19528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19529 *[\\\\\\\`\\"\\\$]*) 19530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19531 ;; 19532 *) 19533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19534 ;; 19535 esac 19536done 19537 19538# Double-quote double-evaled strings. 19539for var in reload_cmds \ 19540old_postinstall_cmds \ 19541old_postuninstall_cmds \ 19542old_archive_cmds \ 19543extract_expsyms_cmds \ 19544old_archive_from_new_cmds \ 19545old_archive_from_expsyms_cmds \ 19546archive_cmds \ 19547archive_expsym_cmds \ 19548module_cmds \ 19549module_expsym_cmds \ 19550export_symbols_cmds \ 19551prelink_cmds \ 19552postlink_cmds \ 19553postinstall_cmds \ 19554postuninstall_cmds \ 19555finish_cmds \ 19556sys_lib_search_path_spec \ 19557configure_time_dlsearch_path \ 19558configure_time_lt_sys_library_path; do 19559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19560 *[\\\\\\\`\\"\\\$]*) 19561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19562 ;; 19563 *) 19564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19565 ;; 19566 esac 19567done 19568 19569ac_aux_dir='$ac_aux_dir' 19570 19571# See if we are running on zsh, and set the options that allow our 19572# commands through without removal of \ escapes INIT. 19573if test -n "\${ZSH_VERSION+set}"; then 19574 setopt NO_GLOB_SUBST 19575fi 19576 19577 19578 PACKAGE='$PACKAGE' 19579 VERSION='$VERSION' 19580 RM='$RM' 19581 ofile='$ofile' 19582 19583 19584 19585 19586_ACEOF 19587 19588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19589 19590# Handling of arguments. 19591for ac_config_target in $ac_config_targets 19592do 19593 case $ac_config_target in 19594 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19598 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19599 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19600 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;; 19601 19602 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19603 esac 19604done 19605 19606 19607# If the user did not use the arguments to specify the items to instantiate, 19608# then the envvar interface is used. Set only those that are not. 19609# We use the long form for the default assignment because of an extremely 19610# bizarre bug on SunOS 4.1.3. 19611if $ac_need_defaults; then 19612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19615fi 19616 19617# Have a temporary directory for convenience. Make it in the build tree 19618# simply because there is no reason against having it here, and in addition, 19619# creating and moving files from /tmp can sometimes cause problems. 19620# Hook for its removal unless debugging. 19621# Note that there is a small window in which the directory will not be cleaned: 19622# after its creation but before its name has been assigned to `$tmp'. 19623$debug || 19624{ 19625 tmp= ac_tmp= 19626 trap 'exit_status=$? 19627 : "${ac_tmp:=$tmp}" 19628 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19629' 0 19630 trap 'as_fn_exit 1' 1 2 13 15 19631} 19632# Create a (secure) tmp directory for tmp files. 19633 19634{ 19635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19636 test -d "$tmp" 19637} || 19638{ 19639 tmp=./conf$$-$RANDOM 19640 (umask 077 && mkdir "$tmp") 19641} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19642ac_tmp=$tmp 19643 19644# Set up the scripts for CONFIG_FILES section. 19645# No need to generate them if there are no CONFIG_FILES. 19646# This happens for instance with `./config.status config.h'. 19647if test -n "$CONFIG_FILES"; then 19648 19649 19650ac_cr=`echo X | tr X '\015'` 19651# On cygwin, bash can eat \r inside `` if the user requested igncr. 19652# But we know of no other shell where ac_cr would be empty at this 19653# point, so we can use a bashism as a fallback. 19654if test "x$ac_cr" = x; then 19655 eval ac_cr=\$\'\\r\' 19656fi 19657ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19658if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19659 ac_cs_awk_cr='\\r' 19660else 19661 ac_cs_awk_cr=$ac_cr 19662fi 19663 19664echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19665_ACEOF 19666 19667 19668{ 19669 echo "cat >conf$$subs.awk <<_ACEOF" && 19670 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19671 echo "_ACEOF" 19672} >conf$$subs.sh || 19673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19674ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19675ac_delim='%!_!# ' 19676for ac_last_try in false false false false false :; do 19677 . ./conf$$subs.sh || 19678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19679 19680 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19681 if test $ac_delim_n = $ac_delim_num; then 19682 break 19683 elif $ac_last_try; then 19684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19685 else 19686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19687 fi 19688done 19689rm -f conf$$subs.sh 19690 19691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19692cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19693_ACEOF 19694sed -n ' 19695h 19696s/^/S["/; s/!.*/"]=/ 19697p 19698g 19699s/^[^!]*!// 19700:repl 19701t repl 19702s/'"$ac_delim"'$// 19703t delim 19704:nl 19705h 19706s/\(.\{148\}\)..*/\1/ 19707t more1 19708s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19709p 19710n 19711b repl 19712:more1 19713s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19714p 19715g 19716s/.\{148\}// 19717t nl 19718:delim 19719h 19720s/\(.\{148\}\)..*/\1/ 19721t more2 19722s/["\\]/\\&/g; s/^/"/; s/$/"/ 19723p 19724b 19725:more2 19726s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19727p 19728g 19729s/.\{148\}// 19730t delim 19731' <conf$$subs.awk | sed ' 19732/^[^""]/{ 19733 N 19734 s/\n// 19735} 19736' >>$CONFIG_STATUS || ac_write_fail=1 19737rm -f conf$$subs.awk 19738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19739_ACAWK 19740cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19741 for (key in S) S_is_set[key] = 1 19742 FS = "" 19743 19744} 19745{ 19746 line = $ 0 19747 nfields = split(line, field, "@") 19748 substed = 0 19749 len = length(field[1]) 19750 for (i = 2; i < nfields; i++) { 19751 key = field[i] 19752 keylen = length(key) 19753 if (S_is_set[key]) { 19754 value = S[key] 19755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19756 len += length(value) + length(field[++i]) 19757 substed = 1 19758 } else 19759 len += 1 + keylen 19760 } 19761 19762 print line 19763} 19764 19765_ACAWK 19766_ACEOF 19767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19768if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19770else 19771 cat 19772fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19773 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19774_ACEOF 19775 19776# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19777# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19778# trailing colons and then remove the whole line if VPATH becomes empty 19779# (actually we leave an empty line to preserve line numbers). 19780if test "x$srcdir" = x.; then 19781 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19782h 19783s/// 19784s/^/:/ 19785s/[ ]*$/:/ 19786s/:\$(srcdir):/:/g 19787s/:\${srcdir}:/:/g 19788s/:@srcdir@:/:/g 19789s/^:*// 19790s/:*$// 19791x 19792s/\(=[ ]*\).*/\1/ 19793G 19794s/\n// 19795s/^[^=]*=[ ]*$// 19796}' 19797fi 19798 19799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19800fi # test -n "$CONFIG_FILES" 19801 19802# Set up the scripts for CONFIG_HEADERS section. 19803# No need to generate them if there are no CONFIG_HEADERS. 19804# This happens for instance with `./config.status Makefile'. 19805if test -n "$CONFIG_HEADERS"; then 19806cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19807BEGIN { 19808_ACEOF 19809 19810# Transform confdefs.h into an awk script `defines.awk', embedded as 19811# here-document in config.status, that substitutes the proper values into 19812# config.h.in to produce config.h. 19813 19814# Create a delimiter string that does not exist in confdefs.h, to ease 19815# handling of long lines. 19816ac_delim='%!_!# ' 19817for ac_last_try in false false :; do 19818 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19819 if test -z "$ac_tt"; then 19820 break 19821 elif $ac_last_try; then 19822 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19823 else 19824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19825 fi 19826done 19827 19828# For the awk script, D is an array of macro values keyed by name, 19829# likewise P contains macro parameters if any. Preserve backslash 19830# newline sequences. 19831 19832ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19833sed -n ' 19834s/.\{148\}/&'"$ac_delim"'/g 19835t rset 19836:rset 19837s/^[ ]*#[ ]*define[ ][ ]*/ / 19838t def 19839d 19840:def 19841s/\\$// 19842t bsnl 19843s/["\\]/\\&/g 19844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19845D["\1"]=" \3"/p 19846s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19847d 19848:bsnl 19849s/["\\]/\\&/g 19850s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19851D["\1"]=" \3\\\\\\n"\\/p 19852t cont 19853s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19854t cont 19855d 19856:cont 19857n 19858s/.\{148\}/&'"$ac_delim"'/g 19859t clear 19860:clear 19861s/\\$// 19862t bsnlc 19863s/["\\]/\\&/g; s/^/"/; s/$/"/p 19864d 19865:bsnlc 19866s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19867b cont 19868' <confdefs.h | sed ' 19869s/'"$ac_delim"'/"\\\ 19870"/g' >>$CONFIG_STATUS || ac_write_fail=1 19871 19872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19873 for (key in D) D_is_set[key] = 1 19874 FS = "" 19875} 19876/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19877 line = \$ 0 19878 split(line, arg, " ") 19879 if (arg[1] == "#") { 19880 defundef = arg[2] 19881 mac1 = arg[3] 19882 } else { 19883 defundef = substr(arg[1], 2) 19884 mac1 = arg[2] 19885 } 19886 split(mac1, mac2, "(") #) 19887 macro = mac2[1] 19888 prefix = substr(line, 1, index(line, defundef) - 1) 19889 if (D_is_set[macro]) { 19890 # Preserve the white space surrounding the "#". 19891 print prefix "define", macro P[macro] D[macro] 19892 next 19893 } else { 19894 # Replace #undef with comments. This is necessary, for example, 19895 # in the case of _POSIX_SOURCE, which is predefined and required 19896 # on some systems where configure will not decide to define it. 19897 if (defundef == "undef") { 19898 print "/*", prefix defundef, macro, "*/" 19899 next 19900 } 19901 } 19902} 19903{ print } 19904_ACAWK 19905_ACEOF 19906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19907 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19908fi # test -n "$CONFIG_HEADERS" 19909 19910 19911eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19912shift 19913for ac_tag 19914do 19915 case $ac_tag in 19916 :[FHLC]) ac_mode=$ac_tag; continue;; 19917 esac 19918 case $ac_mode$ac_tag in 19919 :[FHL]*:*);; 19920 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19921 :[FH]-) ac_tag=-:-;; 19922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19923 esac 19924 ac_save_IFS=$IFS 19925 IFS=: 19926 set x $ac_tag 19927 IFS=$ac_save_IFS 19928 shift 19929 ac_file=$1 19930 shift 19931 19932 case $ac_mode in 19933 :L) ac_source=$1;; 19934 :[FH]) 19935 ac_file_inputs= 19936 for ac_f 19937 do 19938 case $ac_f in 19939 -) ac_f="$ac_tmp/stdin";; 19940 *) # Look for the file first in the build tree, then in the source tree 19941 # (if the path is not absolute). The absolute path cannot be DOS-style, 19942 # because $ac_f cannot contain `:'. 19943 test -f "$ac_f" || 19944 case $ac_f in 19945 [\\/$]*) false;; 19946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19947 esac || 19948 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19949 esac 19950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19951 as_fn_append ac_file_inputs " '$ac_f'" 19952 done 19953 19954 # Let's still pretend it is `configure' which instantiates (i.e., don't 19955 # use $as_me), people would be surprised to read: 19956 # /* config.h. Generated by config.status. */ 19957 configure_input='Generated from '` 19958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19959 `' by configure.' 19960 if test x"$ac_file" != x-; then 19961 configure_input="$ac_file. $configure_input" 19962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19963$as_echo "$as_me: creating $ac_file" >&6;} 19964 fi 19965 # Neutralize special characters interpreted by sed in replacement strings. 19966 case $configure_input in #( 19967 *\&* | *\|* | *\\* ) 19968 ac_sed_conf_input=`$as_echo "$configure_input" | 19969 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19970 *) ac_sed_conf_input=$configure_input;; 19971 esac 19972 19973 case $ac_tag in 19974 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19976 esac 19977 ;; 19978 esac 19979 19980 ac_dir=`$as_dirname -- "$ac_file" || 19981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19982 X"$ac_file" : 'X\(//\)[^/]' \| \ 19983 X"$ac_file" : 'X\(//\)$' \| \ 19984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19985$as_echo X"$ac_file" | 19986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19987 s//\1/ 19988 q 19989 } 19990 /^X\(\/\/\)[^/].*/{ 19991 s//\1/ 19992 q 19993 } 19994 /^X\(\/\/\)$/{ 19995 s//\1/ 19996 q 19997 } 19998 /^X\(\/\).*/{ 19999 s//\1/ 20000 q 20001 } 20002 s/.*/./; q'` 20003 as_dir="$ac_dir"; as_fn_mkdir_p 20004 ac_builddir=. 20005 20006case "$ac_dir" in 20007.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20008*) 20009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20010 # A ".." for each directory in $ac_dir_suffix. 20011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20012 case $ac_top_builddir_sub in 20013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20015 esac ;; 20016esac 20017ac_abs_top_builddir=$ac_pwd 20018ac_abs_builddir=$ac_pwd$ac_dir_suffix 20019# for backward compatibility: 20020ac_top_builddir=$ac_top_build_prefix 20021 20022case $srcdir in 20023 .) # We are building in place. 20024 ac_srcdir=. 20025 ac_top_srcdir=$ac_top_builddir_sub 20026 ac_abs_top_srcdir=$ac_pwd ;; 20027 [\\/]* | ?:[\\/]* ) # Absolute name. 20028 ac_srcdir=$srcdir$ac_dir_suffix; 20029 ac_top_srcdir=$srcdir 20030 ac_abs_top_srcdir=$srcdir ;; 20031 *) # Relative name. 20032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20033 ac_top_srcdir=$ac_top_build_prefix$srcdir 20034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20035esac 20036ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20037 20038 20039 case $ac_mode in 20040 :F) 20041 # 20042 # CONFIG_FILE 20043 # 20044 20045 case $INSTALL in 20046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20048 esac 20049 ac_MKDIR_P=$MKDIR_P 20050 case $MKDIR_P in 20051 [\\/$]* | ?:[\\/]* ) ;; 20052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20053 esac 20054_ACEOF 20055 20056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20057# If the template does not know about datarootdir, expand it. 20058# FIXME: This hack should be removed a few years after 2.60. 20059ac_datarootdir_hack=; ac_datarootdir_seen= 20060ac_sed_dataroot=' 20061/datarootdir/ { 20062 p 20063 q 20064} 20065/@datadir@/p 20066/@docdir@/p 20067/@infodir@/p 20068/@localedir@/p 20069/@mandir@/p' 20070case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20071*datarootdir*) ac_datarootdir_seen=yes;; 20072*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20074$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20075_ACEOF 20076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20077 ac_datarootdir_hack=' 20078 s&@datadir@&$datadir&g 20079 s&@docdir@&$docdir&g 20080 s&@infodir@&$infodir&g 20081 s&@localedir@&$localedir&g 20082 s&@mandir@&$mandir&g 20083 s&\\\${datarootdir}&$datarootdir&g' ;; 20084esac 20085_ACEOF 20086 20087# Neutralize VPATH when `$srcdir' = `.'. 20088# Shell code in configure.ac might set extrasub. 20089# FIXME: do we really want to maintain this feature? 20090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20091ac_sed_extra="$ac_vpsub 20092$extrasub 20093_ACEOF 20094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20095:t 20096/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20097s|@configure_input@|$ac_sed_conf_input|;t t 20098s&@top_builddir@&$ac_top_builddir_sub&;t t 20099s&@top_build_prefix@&$ac_top_build_prefix&;t t 20100s&@srcdir@&$ac_srcdir&;t t 20101s&@abs_srcdir@&$ac_abs_srcdir&;t t 20102s&@top_srcdir@&$ac_top_srcdir&;t t 20103s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20104s&@builddir@&$ac_builddir&;t t 20105s&@abs_builddir@&$ac_abs_builddir&;t t 20106s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20107s&@INSTALL@&$ac_INSTALL&;t t 20108s&@MKDIR_P@&$ac_MKDIR_P&;t t 20109$ac_datarootdir_hack 20110" 20111eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20112 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20113 20114test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20117 "$ac_tmp/out"`; test -z "$ac_out"; } && 20118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20119which seems to be undefined. Please make sure it is defined" >&5 20120$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20121which seems to be undefined. Please make sure it is defined" >&2;} 20122 20123 rm -f "$ac_tmp/stdin" 20124 case $ac_file in 20125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20127 esac \ 20128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20129 ;; 20130 :H) 20131 # 20132 # CONFIG_HEADER 20133 # 20134 if test x"$ac_file" != x-; then 20135 { 20136 $as_echo "/* $configure_input */" \ 20137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20138 } >"$ac_tmp/config.h" \ 20139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20140 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20141 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20142$as_echo "$as_me: $ac_file is unchanged" >&6;} 20143 else 20144 rm -f "$ac_file" 20145 mv "$ac_tmp/config.h" "$ac_file" \ 20146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20147 fi 20148 else 20149 $as_echo "/* $configure_input */" \ 20150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20151 || as_fn_error $? "could not create -" "$LINENO" 5 20152 fi 20153# Compute "$ac_file"'s index in $config_headers. 20154_am_arg="$ac_file" 20155_am_stamp_count=1 20156for _am_header in $config_headers :; do 20157 case $_am_header in 20158 $_am_arg | $_am_arg:* ) 20159 break ;; 20160 * ) 20161 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20162 esac 20163done 20164echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20165$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20166 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20167 X"$_am_arg" : 'X\(//\)$' \| \ 20168 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20169$as_echo X"$_am_arg" | 20170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20171 s//\1/ 20172 q 20173 } 20174 /^X\(\/\/\)[^/].*/{ 20175 s//\1/ 20176 q 20177 } 20178 /^X\(\/\/\)$/{ 20179 s//\1/ 20180 q 20181 } 20182 /^X\(\/\).*/{ 20183 s//\1/ 20184 q 20185 } 20186 s/.*/./; q'`/stamp-h$_am_stamp_count 20187 ;; 20188 20189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20190$as_echo "$as_me: executing $ac_file commands" >&6;} 20191 ;; 20192 esac 20193 20194 20195 case $ac_file$ac_mode in 20196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20197 # Older Autoconf quotes --file arguments for eval, but not when files 20198 # are listed without --file. Let's play safe and only enable the eval 20199 # if we detect the quoting. 20200 case $CONFIG_FILES in 20201 *\'*) eval set x "$CONFIG_FILES" ;; 20202 *) set x $CONFIG_FILES ;; 20203 esac 20204 shift 20205 for mf 20206 do 20207 # Strip MF so we end up with the name of the file. 20208 mf=`echo "$mf" | sed -e 's/:.*$//'` 20209 # Check whether this is an Automake generated Makefile or not. 20210 # We used to match only the files named 'Makefile.in', but 20211 # some people rename them; so instead we look at the file content. 20212 # Grep'ing the first line is not enough: some people post-process 20213 # each Makefile.in and add a new line on top of each file to say so. 20214 # Grep'ing the whole file is not good either: AIX grep has a line 20215 # limit of 2048, but all sed's we know have understand at least 4000. 20216 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20217 dirpart=`$as_dirname -- "$mf" || 20218$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20219 X"$mf" : 'X\(//\)[^/]' \| \ 20220 X"$mf" : 'X\(//\)$' \| \ 20221 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20222$as_echo X"$mf" | 20223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20224 s//\1/ 20225 q 20226 } 20227 /^X\(\/\/\)[^/].*/{ 20228 s//\1/ 20229 q 20230 } 20231 /^X\(\/\/\)$/{ 20232 s//\1/ 20233 q 20234 } 20235 /^X\(\/\).*/{ 20236 s//\1/ 20237 q 20238 } 20239 s/.*/./; q'` 20240 else 20241 continue 20242 fi 20243 # Extract the definition of DEPDIR, am__include, and am__quote 20244 # from the Makefile without running 'make'. 20245 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20246 test -z "$DEPDIR" && continue 20247 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20248 test -z "$am__include" && continue 20249 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20250 # Find all dependency output files, they are included files with 20251 # $(DEPDIR) in their names. We invoke sed twice because it is the 20252 # simplest approach to changing $(DEPDIR) to its actual value in the 20253 # expansion. 20254 for file in `sed -n " 20255 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20256 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20257 # Make sure the directory exists. 20258 test -f "$dirpart/$file" && continue 20259 fdir=`$as_dirname -- "$file" || 20260$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20261 X"$file" : 'X\(//\)[^/]' \| \ 20262 X"$file" : 'X\(//\)$' \| \ 20263 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20264$as_echo X"$file" | 20265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20266 s//\1/ 20267 q 20268 } 20269 /^X\(\/\/\)[^/].*/{ 20270 s//\1/ 20271 q 20272 } 20273 /^X\(\/\/\)$/{ 20274 s//\1/ 20275 q 20276 } 20277 /^X\(\/\).*/{ 20278 s//\1/ 20279 q 20280 } 20281 s/.*/./; q'` 20282 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20283 # echo "creating $dirpart/$file" 20284 echo '# dummy' > "$dirpart/$file" 20285 done 20286 done 20287} 20288 ;; 20289 "libtool":C) 20290 20291 # See if we are running on zsh, and set the options that allow our 20292 # commands through without removal of \ escapes. 20293 if test -n "${ZSH_VERSION+set}"; then 20294 setopt NO_GLOB_SUBST 20295 fi 20296 20297 cfgfile=${ofile}T 20298 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20299 $RM "$cfgfile" 20300 20301 cat <<_LT_EOF >> "$cfgfile" 20302#! $SHELL 20303# Generated automatically by $as_me ($PACKAGE) $VERSION 20304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20305# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20306 20307# Provide generalized library-building support services. 20308# Written by Gordon Matzigkeit, 1996 20309 20310# Copyright (C) 2014 Free Software Foundation, Inc. 20311# This is free software; see the source for copying conditions. There is NO 20312# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20313 20314# GNU Libtool is free software; you can redistribute it and/or modify 20315# it under the terms of the GNU General Public License as published by 20316# the Free Software Foundation; either version 2 of of the License, or 20317# (at your option) any later version. 20318# 20319# As a special exception to the GNU General Public License, if you 20320# distribute this file as part of a program or library that is built 20321# using GNU Libtool, you may include this file under the same 20322# distribution terms that you use for the rest of that program. 20323# 20324# GNU Libtool is distributed in the hope that it will be useful, but 20325# WITHOUT ANY WARRANTY; without even the implied warranty of 20326# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20327# GNU General Public License for more details. 20328# 20329# You should have received a copy of the GNU General Public License 20330# along with this program. If not, see <http://www.gnu.org/licenses/>. 20331 20332 20333# The names of the tagged configurations supported by this script. 20334available_tags='' 20335 20336# Configured defaults for sys_lib_dlsearch_path munging. 20337: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20338 20339# ### BEGIN LIBTOOL CONFIG 20340 20341# Which release of libtool.m4 was used? 20342macro_version=$macro_version 20343macro_revision=$macro_revision 20344 20345# Whether or not to build shared libraries. 20346build_libtool_libs=$enable_shared 20347 20348# Whether or not to build static libraries. 20349build_old_libs=$enable_static 20350 20351# What type of objects to build. 20352pic_mode=$pic_mode 20353 20354# Whether or not to optimize for fast installation. 20355fast_install=$enable_fast_install 20356 20357# Shared archive member basename,for filename based shared library versioning on AIX. 20358shared_archive_member_spec=$shared_archive_member_spec 20359 20360# Shell to use when invoking shell scripts. 20361SHELL=$lt_SHELL 20362 20363# An echo program that protects backslashes. 20364ECHO=$lt_ECHO 20365 20366# The PATH separator for the build system. 20367PATH_SEPARATOR=$lt_PATH_SEPARATOR 20368 20369# The host system. 20370host_alias=$host_alias 20371host=$host 20372host_os=$host_os 20373 20374# The build system. 20375build_alias=$build_alias 20376build=$build 20377build_os=$build_os 20378 20379# A sed program that does not truncate output. 20380SED=$lt_SED 20381 20382# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20383Xsed="\$SED -e 1s/^X//" 20384 20385# A grep program that handles long lines. 20386GREP=$lt_GREP 20387 20388# An ERE matcher. 20389EGREP=$lt_EGREP 20390 20391# A literal string matcher. 20392FGREP=$lt_FGREP 20393 20394# A BSD- or MS-compatible name lister. 20395NM=$lt_NM 20396 20397# Whether we need soft or hard links. 20398LN_S=$lt_LN_S 20399 20400# What is the maximum length of a command? 20401max_cmd_len=$max_cmd_len 20402 20403# Object file suffix (normally "o"). 20404objext=$ac_objext 20405 20406# Executable file suffix (normally ""). 20407exeext=$exeext 20408 20409# whether the shell understands "unset". 20410lt_unset=$lt_unset 20411 20412# turn spaces into newlines. 20413SP2NL=$lt_lt_SP2NL 20414 20415# turn newlines into spaces. 20416NL2SP=$lt_lt_NL2SP 20417 20418# convert \$build file names to \$host format. 20419to_host_file_cmd=$lt_cv_to_host_file_cmd 20420 20421# convert \$build files to toolchain format. 20422to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20423 20424# An object symbol dumper. 20425OBJDUMP=$lt_OBJDUMP 20426 20427# Method to check whether dependent libraries are shared objects. 20428deplibs_check_method=$lt_deplibs_check_method 20429 20430# Command to use when deplibs_check_method = "file_magic". 20431file_magic_cmd=$lt_file_magic_cmd 20432 20433# How to find potential files when deplibs_check_method = "file_magic". 20434file_magic_glob=$lt_file_magic_glob 20435 20436# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20437want_nocaseglob=$lt_want_nocaseglob 20438 20439# DLL creation program. 20440DLLTOOL=$lt_DLLTOOL 20441 20442# Command to associate shared and link libraries. 20443sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20444 20445# The archiver. 20446AR=$lt_AR 20447 20448# Flags to create an archive. 20449AR_FLAGS=$lt_AR_FLAGS 20450 20451# How to feed a file listing to the archiver. 20452archiver_list_spec=$lt_archiver_list_spec 20453 20454# A symbol stripping program. 20455STRIP=$lt_STRIP 20456 20457# Commands used to install an old-style archive. 20458RANLIB=$lt_RANLIB 20459old_postinstall_cmds=$lt_old_postinstall_cmds 20460old_postuninstall_cmds=$lt_old_postuninstall_cmds 20461 20462# Whether to use a lock for old archive extraction. 20463lock_old_archive_extraction=$lock_old_archive_extraction 20464 20465# A C compiler. 20466LTCC=$lt_CC 20467 20468# LTCC compiler flags. 20469LTCFLAGS=$lt_CFLAGS 20470 20471# Take the output of nm and produce a listing of raw symbols and C names. 20472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20473 20474# Transform the output of nm in a proper C declaration. 20475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20476 20477# Transform the output of nm into a list of symbols to manually relocate. 20478global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20479 20480# Transform the output of nm in a C name address pair. 20481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20482 20483# Transform the output of nm in a C name address pair when lib prefix is needed. 20484global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20485 20486# The name lister interface. 20487nm_interface=$lt_lt_cv_nm_interface 20488 20489# Specify filename containing input files for \$NM. 20490nm_file_list_spec=$lt_nm_file_list_spec 20491 20492# The root where to search for dependent libraries,and where our libraries should be installed. 20493lt_sysroot=$lt_sysroot 20494 20495# Command to truncate a binary pipe. 20496lt_truncate_bin=$lt_lt_cv_truncate_bin 20497 20498# The name of the directory that contains temporary libtool files. 20499objdir=$objdir 20500 20501# Used to examine libraries when file_magic_cmd begins with "file". 20502MAGIC_CMD=$MAGIC_CMD 20503 20504# Must we lock files when doing compilation? 20505need_locks=$lt_need_locks 20506 20507# Manifest tool. 20508MANIFEST_TOOL=$lt_MANIFEST_TOOL 20509 20510# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20511DSYMUTIL=$lt_DSYMUTIL 20512 20513# Tool to change global to local symbols on Mac OS X. 20514NMEDIT=$lt_NMEDIT 20515 20516# Tool to manipulate fat objects and archives on Mac OS X. 20517LIPO=$lt_LIPO 20518 20519# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20520OTOOL=$lt_OTOOL 20521 20522# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20523OTOOL64=$lt_OTOOL64 20524 20525# Old archive suffix (normally "a"). 20526libext=$libext 20527 20528# Shared library suffix (normally ".so"). 20529shrext_cmds=$lt_shrext_cmds 20530 20531# The commands to extract the exported symbol list from a shared archive. 20532extract_expsyms_cmds=$lt_extract_expsyms_cmds 20533 20534# Variables whose values should be saved in libtool wrapper scripts and 20535# restored at link time. 20536variables_saved_for_relink=$lt_variables_saved_for_relink 20537 20538# Do we need the "lib" prefix for modules? 20539need_lib_prefix=$need_lib_prefix 20540 20541# Do we need a version for libraries? 20542need_version=$need_version 20543 20544# Library versioning type. 20545version_type=$version_type 20546 20547# Shared library runtime path variable. 20548runpath_var=$runpath_var 20549 20550# Shared library path variable. 20551shlibpath_var=$shlibpath_var 20552 20553# Is shlibpath searched before the hard-coded library search path? 20554shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20555 20556# Format of library name prefix. 20557libname_spec=$lt_libname_spec 20558 20559# List of archive names. First name is the real one, the rest are links. 20560# The last name is the one that the linker finds with -lNAME 20561library_names_spec=$lt_library_names_spec 20562 20563# The coded name of the library, if different from the real name. 20564soname_spec=$lt_soname_spec 20565 20566# Permission mode override for installation of shared libraries. 20567install_override_mode=$lt_install_override_mode 20568 20569# Command to use after installation of a shared archive. 20570postinstall_cmds=$lt_postinstall_cmds 20571 20572# Command to use after uninstallation of a shared archive. 20573postuninstall_cmds=$lt_postuninstall_cmds 20574 20575# Commands used to finish a libtool library installation in a directory. 20576finish_cmds=$lt_finish_cmds 20577 20578# As "finish_cmds", except a single script fragment to be evaled but 20579# not shown. 20580finish_eval=$lt_finish_eval 20581 20582# Whether we should hardcode library paths into libraries. 20583hardcode_into_libs=$hardcode_into_libs 20584 20585# Compile-time system search path for libraries. 20586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20587 20588# Detected run-time system search path for libraries. 20589sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20590 20591# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20592configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20593 20594# Whether dlopen is supported. 20595dlopen_support=$enable_dlopen 20596 20597# Whether dlopen of programs is supported. 20598dlopen_self=$enable_dlopen_self 20599 20600# Whether dlopen of statically linked programs is supported. 20601dlopen_self_static=$enable_dlopen_self_static 20602 20603# Commands to strip libraries. 20604old_striplib=$lt_old_striplib 20605striplib=$lt_striplib 20606 20607 20608# The linker used to build libraries. 20609LD=$lt_LD 20610 20611# How to create reloadable object files. 20612reload_flag=$lt_reload_flag 20613reload_cmds=$lt_reload_cmds 20614 20615# Commands used to build an old-style archive. 20616old_archive_cmds=$lt_old_archive_cmds 20617 20618# A language specific compiler. 20619CC=$lt_compiler 20620 20621# Is the compiler the GNU compiler? 20622with_gcc=$GCC 20623 20624# Compiler flag to turn off builtin functions. 20625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20626 20627# Additional compiler flags for building library objects. 20628pic_flag=$lt_lt_prog_compiler_pic 20629 20630# How to pass a linker flag through the compiler. 20631wl=$lt_lt_prog_compiler_wl 20632 20633# Compiler flag to prevent dynamic linking. 20634link_static_flag=$lt_lt_prog_compiler_static 20635 20636# Does compiler simultaneously support -c and -o options? 20637compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20638 20639# Whether or not to add -lc for building shared libraries. 20640build_libtool_need_lc=$archive_cmds_need_lc 20641 20642# Whether or not to disallow shared libs when runtime libs are static. 20643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20644 20645# Compiler flag to allow reflexive dlopens. 20646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20647 20648# Compiler flag to generate shared objects directly from archives. 20649whole_archive_flag_spec=$lt_whole_archive_flag_spec 20650 20651# Whether the compiler copes with passing no objects directly. 20652compiler_needs_object=$lt_compiler_needs_object 20653 20654# Create an old-style archive from a shared archive. 20655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20656 20657# Create a temporary old-style archive to link instead of a shared archive. 20658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20659 20660# Commands used to build a shared archive. 20661archive_cmds=$lt_archive_cmds 20662archive_expsym_cmds=$lt_archive_expsym_cmds 20663 20664# Commands used to build a loadable module if different from building 20665# a shared archive. 20666module_cmds=$lt_module_cmds 20667module_expsym_cmds=$lt_module_expsym_cmds 20668 20669# Whether we are building with GNU ld or not. 20670with_gnu_ld=$lt_with_gnu_ld 20671 20672# Flag that allows shared libraries with undefined symbols to be built. 20673allow_undefined_flag=$lt_allow_undefined_flag 20674 20675# Flag that enforces no undefined symbols. 20676no_undefined_flag=$lt_no_undefined_flag 20677 20678# Flag to hardcode \$libdir into a binary during linking. 20679# This must work even if \$libdir does not exist 20680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20681 20682# Whether we need a single "-rpath" flag with a separated argument. 20683hardcode_libdir_separator=$lt_hardcode_libdir_separator 20684 20685# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20686# DIR into the resulting binary. 20687hardcode_direct=$hardcode_direct 20688 20689# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20690# DIR into the resulting binary and the resulting library dependency is 20691# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20692# library is relocated. 20693hardcode_direct_absolute=$hardcode_direct_absolute 20694 20695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20696# into the resulting binary. 20697hardcode_minus_L=$hardcode_minus_L 20698 20699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20700# into the resulting binary. 20701hardcode_shlibpath_var=$hardcode_shlibpath_var 20702 20703# Set to "yes" if building a shared library automatically hardcodes DIR 20704# into the library and all subsequent libraries and executables linked 20705# against it. 20706hardcode_automatic=$hardcode_automatic 20707 20708# Set to yes if linker adds runtime paths of dependent libraries 20709# to runtime path list. 20710inherit_rpath=$inherit_rpath 20711 20712# Whether libtool must link a program against all its dependency libraries. 20713link_all_deplibs=$link_all_deplibs 20714 20715# Set to "yes" if exported symbols are required. 20716always_export_symbols=$always_export_symbols 20717 20718# The commands to list exported symbols. 20719export_symbols_cmds=$lt_export_symbols_cmds 20720 20721# Symbols that should not be listed in the preloaded symbols. 20722exclude_expsyms=$lt_exclude_expsyms 20723 20724# Symbols that must always be exported. 20725include_expsyms=$lt_include_expsyms 20726 20727# Commands necessary for linking programs (against libraries) with templates. 20728prelink_cmds=$lt_prelink_cmds 20729 20730# Commands necessary for finishing linking programs. 20731postlink_cmds=$lt_postlink_cmds 20732 20733# Specify filename containing input files. 20734file_list_spec=$lt_file_list_spec 20735 20736# How to hardcode a shared library path into an executable. 20737hardcode_action=$hardcode_action 20738 20739# ### END LIBTOOL CONFIG 20740 20741_LT_EOF 20742 20743 cat <<'_LT_EOF' >> "$cfgfile" 20744 20745# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20746 20747# func_munge_path_list VARIABLE PATH 20748# ----------------------------------- 20749# VARIABLE is name of variable containing _space_ separated list of 20750# directories to be munged by the contents of PATH, which is string 20751# having a format: 20752# "DIR[:DIR]:" 20753# string "DIR[ DIR]" will be prepended to VARIABLE 20754# ":DIR[:DIR]" 20755# string "DIR[ DIR]" will be appended to VARIABLE 20756# "DIRP[:DIRP]::[DIRA:]DIRA" 20757# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20758# "DIRA[ DIRA]" will be appended to VARIABLE 20759# "DIR[:DIR]" 20760# VARIABLE will be replaced by "DIR[ DIR]" 20761func_munge_path_list () 20762{ 20763 case x$2 in 20764 x) 20765 ;; 20766 *:) 20767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20768 ;; 20769 x:*) 20770 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20771 ;; 20772 *::*) 20773 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20774 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20775 ;; 20776 *) 20777 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20778 ;; 20779 esac 20780} 20781 20782 20783# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20784func_cc_basename () 20785{ 20786 for cc_temp in $*""; do 20787 case $cc_temp in 20788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20790 \-*) ;; 20791 *) break;; 20792 esac 20793 done 20794 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20795} 20796 20797 20798# ### END FUNCTIONS SHARED WITH CONFIGURE 20799 20800_LT_EOF 20801 20802 case $host_os in 20803 aix3*) 20804 cat <<\_LT_EOF >> "$cfgfile" 20805# AIX sometimes has problems with the GCC collect2 program. For some 20806# reason, if we set the COLLECT_NAMES environment variable, the problems 20807# vanish in a puff of smoke. 20808if test set != "${COLLECT_NAMES+set}"; then 20809 COLLECT_NAMES= 20810 export COLLECT_NAMES 20811fi 20812_LT_EOF 20813 ;; 20814 esac 20815 20816 20817ltmain=$ac_aux_dir/ltmain.sh 20818 20819 20820 # We use sed instead of cat because bash on DJGPP gets confused if 20821 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20822 # text mode, it properly converts lines to CR/LF. This bash problem 20823 # is reportedly fixed, but why not run on old versions too? 20824 sed '$q' "$ltmain" >> "$cfgfile" \ 20825 || (rm -f "$cfgfile"; exit 1) 20826 20827 mv -f "$cfgfile" "$ofile" || 20828 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20829 chmod +x "$ofile" 20830 20831 ;; 20832 20833 esac 20834done # for ac_tag 20835 20836 20837as_fn_exit 0 20838_ACEOF 20839ac_clean_files=$ac_clean_files_save 20840 20841test $ac_write_fail = 0 || 20842 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20843 20844 20845# configure is writing to config.log, and then calls config.status. 20846# config.status does its own redirection, appending to config.log. 20847# Unfortunately, on DOS this fails, as config.log is still kept open 20848# by configure, so config.status won't be able to write to it; its 20849# output is simply discarded. So we exec the FD to /dev/null, 20850# effectively closing config.log, so it can be properly (re)opened and 20851# appended to by config.status. When coming back to configure, we 20852# need to make the FD available again. 20853if test "$no_create" != yes; then 20854 ac_cs_success=: 20855 ac_config_status_args= 20856 test "$silent" = yes && 20857 ac_config_status_args="$ac_config_status_args --quiet" 20858 exec 5>/dev/null 20859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20860 exec 5>>config.log 20861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20862 # would make configure fail if this is the last instruction. 20863 $ac_cs_success || as_fn_exit 1 20864fi 20865if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20867$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20868fi 20869 20870