configure revision 298453a4
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libFS 1.0.7. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libFS' 593PACKAGE_TARNAME='libFS' 594PACKAGE_VERSION='1.0.7' 595PACKAGE_STRING='libFS 1.0.7' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640MAKE_LINT_LIB_FALSE 641MAKE_LINT_LIB_TRUE 642LINTLIB 643LINT_FALSE 644LINT_TRUE 645LINT_FLAGS 646LINT 647FS_LIBS 648FS_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 668CHANGELOG_CMD 669STRICT_CFLAGS 670CWARNFLAGS 671BASE_CFLAGS 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681DLLTOOL 682OBJDUMP 683LN_S 684NM 685ac_ct_DUMPBIN 686DUMPBIN 687LD 688FGREP 689SED 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698LIBTOOL 699EGREP 700GREP 701CPP 702am__fastdepCC_FALSE 703am__fastdepCC_TRUE 704CCDEPMODE 705am__nodep 706AMDEPBACKSLASH 707AMDEP_FALSE 708AMDEP_TRUE 709am__quote 710am__include 711DEPDIR 712OBJEXT 713EXEEXT 714ac_ct_CC 715CPPFLAGS 716LDFLAGS 717CFLAGS 718CC 719AM_BACKSLASH 720AM_DEFAULT_VERBOSITY 721AM_DEFAULT_V 722AM_V 723am__untar 724am__tar 725AMTAR 726am__leading_dot 727SET_MAKE 728AWK 729mkdir_p 730MKDIR_P 731INSTALL_STRIP_PROGRAM 732STRIP 733install_sh 734MAKEINFO 735AUTOHEADER 736AUTOMAKE 737AUTOCONF 738ACLOCAL 739VERSION 740PACKAGE 741CYGPATH_W 742am__isrc 743INSTALL_DATA 744INSTALL_SCRIPT 745INSTALL_PROGRAM 746target_alias 747host_alias 748build_alias 749LIBS 750ECHO_T 751ECHO_N 752ECHO_C 753DEFS 754mandir 755localedir 756libdir 757psdir 758pdfdir 759dvidir 760htmldir 761infodir 762docdir 763oldincludedir 764includedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_silent_rules 788enable_dependency_tracking 789enable_shared 790enable_static 791with_pic 792enable_fast_install 793with_gnu_ld 794with_sysroot 795enable_libtool_lock 796enable_selective_werror 797enable_strict_compilation 798enable_malloc0returnsnull 799enable_unix_transport 800enable_tcp_transport 801enable_ipv6 802enable_local_transport 803with_lint 804enable_lint_library 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814CPP 815PKG_CONFIG 816FS_CFLAGS 817FS_LIBS 818LINT 819LINT_FLAGS' 820 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825ac_unrecognized_opts= 826ac_unrecognized_sep= 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858includedir='${prefix}/include' 859oldincludedir='/usr/include' 860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861infodir='${datarootdir}/info' 862htmldir='${docdir}' 863dvidir='${docdir}' 864pdfdir='${docdir}' 865psdir='${docdir}' 866libdir='${exec_prefix}/lib' 867localedir='${datarootdir}/locale' 868mandir='${datarootdir}/man' 869 870ac_prev= 871ac_dashdash= 872for ac_option 873do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *=) ac_optarg= ;; 884 *) ac_optarg=yes ;; 885 esac 886 887 # Accept the important Cygnus configure options, so we can diagnose typos. 888 889 case $ac_dashdash$ac_option in 890 --) 891 ac_dashdash=yes ;; 892 893 -bindir | --bindir | --bindi | --bind | --bin | --bi) 894 ac_prev=bindir ;; 895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 896 bindir=$ac_optarg ;; 897 898 -build | --build | --buil | --bui | --bu) 899 ac_prev=build_alias ;; 900 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 901 build_alias=$ac_optarg ;; 902 903 -cache-file | --cache-file | --cache-fil | --cache-fi \ 904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 905 ac_prev=cache_file ;; 906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 908 cache_file=$ac_optarg ;; 909 910 --config-cache | -C) 911 cache_file=config.cache ;; 912 913 -datadir | --datadir | --datadi | --datad) 914 ac_prev=datadir ;; 915 -datadir=* | --datadir=* | --datadi=* | --datad=*) 916 datadir=$ac_optarg ;; 917 918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 919 | --dataroo | --dataro | --datar) 920 ac_prev=datarootdir ;; 921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 923 datarootdir=$ac_optarg ;; 924 925 -disable-* | --disable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: $ac_useropt" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960"enable_$ac_useropt" 961"*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=\$ac_optarg ;; 966 967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 969 | --exec | --exe | --ex) 970 ac_prev=exec_prefix ;; 971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 973 | --exec=* | --exe=* | --ex=*) 974 exec_prefix=$ac_optarg ;; 975 976 -gas | --gas | --ga | --g) 977 # Obsolete; use --with-gas. 978 with_gas=yes ;; 979 980 -help | --help | --hel | --he | -h) 981 ac_init_help=long ;; 982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 983 ac_init_help=recursive ;; 984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 985 ac_init_help=short ;; 986 987 -host | --host | --hos | --ho) 988 ac_prev=host_alias ;; 989 -host=* | --host=* | --hos=* | --ho=*) 990 host_alias=$ac_optarg ;; 991 992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 993 ac_prev=htmldir ;; 994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 995 | --ht=*) 996 htmldir=$ac_optarg ;; 997 998 -includedir | --includedir | --includedi | --included | --include \ 999 | --includ | --inclu | --incl | --inc) 1000 ac_prev=includedir ;; 1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1002 | --includ=* | --inclu=* | --incl=* | --inc=*) 1003 includedir=$ac_optarg ;; 1004 1005 -infodir | --infodir | --infodi | --infod | --info | --inf) 1006 ac_prev=infodir ;; 1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1008 infodir=$ac_optarg ;; 1009 1010 -libdir | --libdir | --libdi | --libd) 1011 ac_prev=libdir ;; 1012 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1013 libdir=$ac_optarg ;; 1014 1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1016 | --libexe | --libex | --libe) 1017 ac_prev=libexecdir ;; 1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1019 | --libexe=* | --libex=* | --libe=*) 1020 libexecdir=$ac_optarg ;; 1021 1022 -localedir | --localedir | --localedi | --localed | --locale) 1023 ac_prev=localedir ;; 1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1025 localedir=$ac_optarg ;; 1026 1027 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1028 | --localstate | --localstat | --localsta | --localst | --locals) 1029 ac_prev=localstatedir ;; 1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1032 localstatedir=$ac_optarg ;; 1033 1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1035 ac_prev=mandir ;; 1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1037 mandir=$ac_optarg ;; 1038 1039 -nfp | --nfp | --nf) 1040 # Obsolete; use --without-fp. 1041 with_fp=no ;; 1042 1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1044 | --no-cr | --no-c | -n) 1045 no_create=yes ;; 1046 1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1049 no_recursion=yes ;; 1050 1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1053 | --oldin | --oldi | --old | --ol | --o) 1054 ac_prev=oldincludedir ;; 1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1058 oldincludedir=$ac_optarg ;; 1059 1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1061 ac_prev=prefix ;; 1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1063 prefix=$ac_optarg ;; 1064 1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1066 | --program-pre | --program-pr | --program-p) 1067 ac_prev=program_prefix ;; 1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1070 program_prefix=$ac_optarg ;; 1071 1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1073 | --program-suf | --program-su | --program-s) 1074 ac_prev=program_suffix ;; 1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1077 program_suffix=$ac_optarg ;; 1078 1079 -program-transform-name | --program-transform-name \ 1080 | --program-transform-nam | --program-transform-na \ 1081 | --program-transform-n | --program-transform- \ 1082 | --program-transform | --program-transfor \ 1083 | --program-transfo | --program-transf \ 1084 | --program-trans | --program-tran \ 1085 | --progr-tra | --program-tr | --program-t) 1086 ac_prev=program_transform_name ;; 1087 -program-transform-name=* | --program-transform-name=* \ 1088 | --program-transform-nam=* | --program-transform-na=* \ 1089 | --program-transform-n=* | --program-transform-=* \ 1090 | --program-transform=* | --program-transfor=* \ 1091 | --program-transfo=* | --program-transf=* \ 1092 | --program-trans=* | --program-tran=* \ 1093 | --progr-tra=* | --program-tr=* | --program-t=*) 1094 program_transform_name=$ac_optarg ;; 1095 1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1097 ac_prev=pdfdir ;; 1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1099 pdfdir=$ac_optarg ;; 1100 1101 -psdir | --psdir | --psdi | --psd | --ps) 1102 ac_prev=psdir ;; 1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1104 psdir=$ac_optarg ;; 1105 1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1107 | -silent | --silent | --silen | --sile | --sil) 1108 silent=yes ;; 1109 1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1111 ac_prev=sbindir ;; 1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1113 | --sbi=* | --sb=*) 1114 sbindir=$ac_optarg ;; 1115 1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1118 | --sharedst | --shareds | --shared | --share | --shar \ 1119 | --sha | --sh) 1120 ac_prev=sharedstatedir ;; 1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1124 | --sha=* | --sh=*) 1125 sharedstatedir=$ac_optarg ;; 1126 1127 -site | --site | --sit) 1128 ac_prev=site ;; 1129 -site=* | --site=* | --sit=*) 1130 site=$ac_optarg ;; 1131 1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1133 ac_prev=srcdir ;; 1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1135 srcdir=$ac_optarg ;; 1136 1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1138 | --syscon | --sysco | --sysc | --sys | --sy) 1139 ac_prev=sysconfdir ;; 1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1142 sysconfdir=$ac_optarg ;; 1143 1144 -target | --target | --targe | --targ | --tar | --ta | --t) 1145 ac_prev=target_alias ;; 1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1147 target_alias=$ac_optarg ;; 1148 1149 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1150 verbose=yes ;; 1151 1152 -version | --version | --versio | --versi | --vers | -V) 1153 ac_init_version=: ;; 1154 1155 -with-* | --with-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=\$ac_optarg ;; 1170 1171 -without-* | --without-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=no ;; 1186 1187 --x) 1188 # Obsolete; use --with-x. 1189 with_x=yes ;; 1190 1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1192 | --x-incl | --x-inc | --x-in | --x-i) 1193 ac_prev=x_includes ;; 1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1196 x_includes=$ac_optarg ;; 1197 1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1200 ac_prev=x_libraries ;; 1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1203 x_libraries=$ac_optarg ;; 1204 1205 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1206Try \`$0 --help' for more information" 1207 ;; 1208 1209 *=*) 1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1211 # Reject names that are not valid shell variable names. 1212 case $ac_envvar in #( 1213 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1215 esac 1216 eval $ac_envvar=\$ac_optarg 1217 export $ac_envvar ;; 1218 1219 *) 1220 # FIXME: should be removed in autoconf 3.0. 1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1225 ;; 1226 1227 esac 1228done 1229 1230if test -n "$ac_prev"; then 1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1232 as_fn_error $? "missing argument to $ac_option" 1233fi 1234 1235if test -n "$ac_unrecognized_opts"; then 1236 case $enable_option_checking in 1237 no) ;; 1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1240 esac 1241fi 1242 1243# Check all directory arguments for consistency. 1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1245 datadir sysconfdir sharedstatedir localstatedir includedir \ 1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1247 libdir localedir mandir 1248do 1249 eval ac_val=\$$ac_var 1250 # Remove trailing slashes. 1251 case $ac_val in 1252 */ ) 1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1254 eval $ac_var=\$ac_val;; 1255 esac 1256 # Be sure to have absolute directory names. 1257 case $ac_val in 1258 [\\/$]* | ?:[\\/]* ) continue;; 1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1260 esac 1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1262done 1263 1264# There might be people who depend on the old broken behavior: `$host' 1265# used to hold the argument of --host etc. 1266# FIXME: To remove some day. 1267build=$build_alias 1268host=$host_alias 1269target=$target_alias 1270 1271# FIXME: To remove some day. 1272if test "x$host_alias" != x; then 1273 if test "x$build_alias" = x; then 1274 cross_compiling=maybe 1275 elif test "x$build_alias" != "x$host_alias"; then 1276 cross_compiling=yes 1277 fi 1278fi 1279 1280ac_tool_prefix= 1281test -n "$host_alias" && ac_tool_prefix=$host_alias- 1282 1283test "$silent" = yes && exec 6>/dev/null 1284 1285 1286ac_pwd=`pwd` && test -n "$ac_pwd" && 1287ac_ls_di=`ls -di .` && 1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1289 as_fn_error $? "working directory cannot be determined" 1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1291 as_fn_error $? "pwd does not report name of working directory" 1292 1293 1294# Find the source files, if location was not specified. 1295if test -z "$srcdir"; then 1296 ac_srcdir_defaulted=yes 1297 # Try the directory containing this script, then the parent directory. 1298 ac_confdir=`$as_dirname -- "$as_myself" || 1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1300 X"$as_myself" : 'X\(//\)[^/]' \| \ 1301 X"$as_myself" : 'X\(//\)$' \| \ 1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1303$as_echo X"$as_myself" | 1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)[^/].*/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\).*/{ 1317 s//\1/ 1318 q 1319 } 1320 s/.*/./; q'` 1321 srcdir=$ac_confdir 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 srcdir=.. 1324 fi 1325else 1326 ac_srcdir_defaulted=no 1327fi 1328if test ! -r "$srcdir/$ac_unique_file"; then 1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1331fi 1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1333ac_abs_confdir=`( 1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1335 pwd)` 1336# When building in place, set srcdir=. 1337if test "$ac_abs_confdir" = "$ac_pwd"; then 1338 srcdir=. 1339fi 1340# Remove unnecessary trailing slashes from srcdir. 1341# Double slashes in file names in object file debugging info 1342# mess up M-x gdb in Emacs. 1343case $srcdir in 1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1345esac 1346for ac_var in $ac_precious_vars; do 1347 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_env_${ac_var}_value=\$${ac_var} 1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1350 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1351done 1352 1353# 1354# Report the --help message. 1355# 1356if test "$ac_init_help" = "long"; then 1357 # Omit some internal or obsolete options to make the list less imposing. 1358 # This message is too long to be a string in the A/UX 3.1 sh. 1359 cat <<_ACEOF 1360\`configure' configures libFS 1.0.7 to adapt to many kinds of systems. 1361 1362Usage: $0 [OPTION]... [VAR=VALUE]... 1363 1364To assign environment variables (e.g., CC, CFLAGS...), specify them as 1365VAR=VALUE. See below for descriptions of some of the useful variables. 1366 1367Defaults for the options are specified in brackets. 1368 1369Configuration: 1370 -h, --help display this help and exit 1371 --help=short display options specific to this package 1372 --help=recursive display the short help of all the included packages 1373 -V, --version display version information and exit 1374 -q, --quiet, --silent do not print \`checking ...' messages 1375 --cache-file=FILE cache test results in FILE [disabled] 1376 -C, --config-cache alias for \`--cache-file=config.cache' 1377 -n, --no-create do not create output files 1378 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1379 1380Installation directories: 1381 --prefix=PREFIX install architecture-independent files in PREFIX 1382 [$ac_default_prefix] 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1384 [PREFIX] 1385 1386By default, \`make install' will install all the files in 1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1388an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1389for instance \`--prefix=\$HOME'. 1390 1391For better control, use the options below. 1392 1393Fine tuning of the installation directories: 1394 --bindir=DIR user executables [EPREFIX/bin] 1395 --sbindir=DIR system admin executables [EPREFIX/sbin] 1396 --libexecdir=DIR program executables [EPREFIX/libexec] 1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1400 --libdir=DIR object code libraries [EPREFIX/lib] 1401 --includedir=DIR C header files [PREFIX/include] 1402 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1405 --infodir=DIR info documentation [DATAROOTDIR/info] 1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1407 --mandir=DIR man documentation [DATAROOTDIR/man] 1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS] 1409 --htmldir=DIR html documentation [DOCDIR] 1410 --dvidir=DIR dvi documentation [DOCDIR] 1411 --pdfdir=DIR pdf documentation [DOCDIR] 1412 --psdir=DIR ps documentation [DOCDIR] 1413_ACEOF 1414 1415 cat <<\_ACEOF 1416 1417Program names: 1418 --program-prefix=PREFIX prepend PREFIX to installed program names 1419 --program-suffix=SUFFIX append SUFFIX to installed program names 1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1421 1422System types: 1423 --build=BUILD configure for building on BUILD [guessed] 1424 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1425_ACEOF 1426fi 1427 1428if test -n "$ac_init_help"; then 1429 case $ac_init_help in 1430 short | recursive ) echo "Configuration of libFS 1.0.7:";; 1431 esac 1432 cat <<\_ACEOF 1433 1434Optional Features: 1435 --disable-option-checking ignore unrecognized --enable/--with options 1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1438 --enable-silent-rules less verbose build output (undo: "make V=1") 1439 --disable-silent-rules verbose build output (undo: "make V=0") 1440 --enable-dependency-tracking 1441 do not reject slow dependency extractors 1442 --disable-dependency-tracking 1443 speeds up one-time build 1444 --enable-shared[=PKGS] build shared libraries [default=yes] 1445 --enable-static[=PKGS] build static libraries [default=yes] 1446 --enable-fast-install[=PKGS] 1447 optimize for fast installation [default=yes] 1448 --disable-libtool-lock avoid locking (might break parallel builds) 1449 --disable-selective-werror 1450 Turn off selective compiler errors. (default: 1451 enabled) 1452 --enable-strict-compilation 1453 Enable all warnings from compiler and make them 1454 errors (default: disabled) 1455 --enable-malloc0returnsnull 1456 malloc(0) returns NULL (default: auto) 1457 --enable-unix-transport Enable UNIX domain socket transport 1458 --enable-tcp-transport Enable TCP socket transport 1459 --enable-ipv6 Enable IPv6 support 1460 --enable-local-transport 1461 Enable os-specific local transport 1462 --enable-lint-library Create lint library (default: disabled) 1463 1464Optional Packages: 1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1468 both] 1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1470 --with-sysroot=DIR Search for dependent libraries within DIR 1471 (or the compiler's sysroot if not specified). 1472 --with-lint Use a lint-style source code checker (default: 1473 disabled) 1474 1475Some influential environment variables: 1476 CC C compiler command 1477 CFLAGS C compiler flags 1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1479 nonstandard directory <lib dir> 1480 LIBS libraries to pass to the linker, e.g. -l<library> 1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1482 you have headers in a nonstandard directory <include dir> 1483 CPP C preprocessor 1484 PKG_CONFIG path to pkg-config utility 1485 FS_CFLAGS C compiler flags for FS, overriding pkg-config 1486 FS_LIBS linker flags for FS, overriding pkg-config 1487 LINT Path to a lint-style command 1488 LINT_FLAGS Flags for the lint-style command 1489 1490Use these variables to override the choices made by `configure' or to help 1491it to find libraries and programs with nonstandard names/locations. 1492 1493Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1494_ACEOF 1495ac_status=$? 1496fi 1497 1498if test "$ac_init_help" = "recursive"; then 1499 # If there are subdirs, report their specific --help. 1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1501 test -d "$ac_dir" || 1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1503 continue 1504 ac_builddir=. 1505 1506case "$ac_dir" in 1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508*) 1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1510 # A ".." for each directory in $ac_dir_suffix. 1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1512 case $ac_top_builddir_sub in 1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1515 esac ;; 1516esac 1517ac_abs_top_builddir=$ac_pwd 1518ac_abs_builddir=$ac_pwd$ac_dir_suffix 1519# for backward compatibility: 1520ac_top_builddir=$ac_top_build_prefix 1521 1522case $srcdir in 1523 .) # We are building in place. 1524 ac_srcdir=. 1525 ac_top_srcdir=$ac_top_builddir_sub 1526 ac_abs_top_srcdir=$ac_pwd ;; 1527 [\\/]* | ?:[\\/]* ) # Absolute name. 1528 ac_srcdir=$srcdir$ac_dir_suffix; 1529 ac_top_srcdir=$srcdir 1530 ac_abs_top_srcdir=$srcdir ;; 1531 *) # Relative name. 1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1533 ac_top_srcdir=$ac_top_build_prefix$srcdir 1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1535esac 1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1537 1538 cd "$ac_dir" || { ac_status=$?; continue; } 1539 # Check for guested configure. 1540 if test -f "$ac_srcdir/configure.gnu"; then 1541 echo && 1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1543 elif test -f "$ac_srcdir/configure"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure" --help=recursive 1546 else 1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1548 fi || ac_status=$? 1549 cd "$ac_pwd" || { ac_status=$?; break; } 1550 done 1551fi 1552 1553test -n "$ac_init_help" && exit $ac_status 1554if $ac_init_version; then 1555 cat <<\_ACEOF 1556libFS configure 1.0.7 1557generated by GNU Autoconf 2.69 1558 1559Copyright (C) 2012 Free Software Foundation, Inc. 1560This configure script is free software; the Free Software Foundation 1561gives unlimited permission to copy, distribute and modify it. 1562_ACEOF 1563 exit 1564fi 1565 1566## ------------------------ ## 1567## Autoconf initialization. ## 1568## ------------------------ ## 1569 1570# ac_fn_c_try_compile LINENO 1571# -------------------------- 1572# Try to compile conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext 1577 if { { ac_try="$ac_compile" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_compile") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest.$ac_objext; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_compile 1607 1608# ac_fn_c_try_cpp LINENO 1609# ---------------------- 1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_cpp () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 if { { ac_try="$ac_cpp conftest.$ac_ext" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } > conftest.i && { 1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 }; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_cpp 1644 1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1648# the include files in INCLUDES and setting the cache variable VAR 1649# accordingly. 1650ac_fn_c_check_header_mongrel () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if eval \${$3+:} false; then : 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655$as_echo_n "checking for $2... " >&6; } 1656if eval \${$3+:} false; then : 1657 $as_echo_n "(cached) " >&6 1658fi 1659eval ac_res=\$$3 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661$as_echo "$ac_res" >&6; } 1662else 1663 # Is the header compilable? 1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1665$as_echo_n "checking $2 usability... " >&6; } 1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669#include <$2> 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO"; then : 1672 ac_header_compiler=yes 1673else 1674 ac_header_compiler=no 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1678$as_echo "$ac_header_compiler" >&6; } 1679 1680# Is the header present? 1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1682$as_echo_n "checking $2 presence... " >&6; } 1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_cpp "$LINENO"; then : 1688 ac_header_preproc=yes 1689else 1690 ac_header_preproc=no 1691fi 1692rm -f conftest.err conftest.i conftest.$ac_ext 1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1694$as_echo "$ac_header_preproc" >&6; } 1695 1696# So? What about this header? 1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1698 yes:no: ) 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1703 ;; 1704 no:yes:* ) 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1715( $as_echo "## ---------------------------------------------------------------------- ## 1716## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1717## ---------------------------------------------------------------------- ##" 1718 ) | sed "s/^/$as_me: WARNING: /" >&2 1719 ;; 1720esac 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval \${$3+:} false; then : 1724 $as_echo_n "(cached) " >&6 1725else 1726 eval "$3=\$ac_header_compiler" 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731fi 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734} # ac_fn_c_check_header_mongrel 1735 1736# ac_fn_c_try_run LINENO 1737# ---------------------- 1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1739# that executables *can* be run. 1740ac_fn_c_try_run () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if { { ac_try="$ac_link" 1744case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747esac 1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749$as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_link") 2>&5 1751 ac_status=$? 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1754 { { case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_try") 2>&5 1761 ac_status=$? 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; }; }; then : 1764 ac_retval=0 1765else 1766 $as_echo "$as_me: program exited with status $ac_status" >&5 1767 $as_echo "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=$ac_status 1771fi 1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 as_fn_set_status $ac_retval 1775 1776} # ac_fn_c_try_run 1777 1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1779# ------------------------------------------------------- 1780# Tests whether HEADER exists and can be compiled using the include files in 1781# INCLUDES, setting the cache variable VAR accordingly. 1782ac_fn_c_check_header_compile () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786$as_echo_n "checking for $2... " >&6; } 1787if eval \${$3+:} false; then : 1788 $as_echo_n "(cached) " >&6 1789else 1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1791/* end confdefs.h. */ 1792$4 1793#include <$2> 1794_ACEOF 1795if ac_fn_c_try_compile "$LINENO"; then : 1796 eval "$3=yes" 1797else 1798 eval "$3=no" 1799fi 1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801fi 1802eval ac_res=\$$3 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1804$as_echo "$ac_res" >&6; } 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 1807} # ac_fn_c_check_header_compile 1808 1809# ac_fn_c_try_link LINENO 1810# ----------------------- 1811# Try to link conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_c_try_link () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 rm -f conftest.$ac_objext conftest$ac_exeext 1816 if { { ac_try="$ac_link" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_link") 2>conftest.err 1824 ac_status=$? 1825 if test -s conftest.err; then 1826 grep -v '^ *+' conftest.err >conftest.er1 1827 cat conftest.er1 >&5 1828 mv -f conftest.er1 conftest.err 1829 fi 1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; } && { 1832 test -z "$ac_c_werror_flag" || 1833 test ! -s conftest.err 1834 } && test -s conftest$ac_exeext && { 1835 test "$cross_compiling" = yes || 1836 test -x conftest$ac_exeext 1837 }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=1 1844fi 1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1847 # interfere with the next link command; also delete a directory that is 1848 # left behind by Apple's compiler. We do this before executing the actions. 1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 as_fn_set_status $ac_retval 1852 1853} # ac_fn_c_try_link 1854 1855# ac_fn_c_check_func LINENO FUNC VAR 1856# ---------------------------------- 1857# Tests whether FUNC exists, setting the cache variable VAR accordingly 1858ac_fn_c_check_func () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862$as_echo_n "checking for $2... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1867/* end confdefs.h. */ 1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1870#define $2 innocuous_$2 1871 1872/* System header to define __stub macros and hopefully few prototypes, 1873 which can conflict with char $2 (); below. 1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1875 <limits.h> exists even on freestanding compilers. */ 1876 1877#ifdef __STDC__ 1878# include <limits.h> 1879#else 1880# include <assert.h> 1881#endif 1882 1883#undef $2 1884 1885/* Override any GCC internal prototype to avoid an error. 1886 Use char because int might match the return type of a GCC 1887 builtin and then its argument prototype would still apply. */ 1888#ifdef __cplusplus 1889extern "C" 1890#endif 1891char $2 (); 1892/* The GNU C library defines this for functions which it implements 1893 to always fail with ENOSYS. Some functions are actually named 1894 something starting with __ and the normal name is an alias. */ 1895#if defined __stub_$2 || defined __stub___$2 1896choke me 1897#endif 1898 1899int 1900main () 1901{ 1902return $2 (); 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_link "$LINENO"; then : 1908 eval "$3=yes" 1909else 1910 eval "$3=no" 1911fi 1912rm -f core conftest.err conftest.$ac_objext \ 1913 conftest$ac_exeext conftest.$ac_ext 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920} # ac_fn_c_check_func 1921 1922# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1923# --------------------------------------------- 1924# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1925# accordingly. 1926ac_fn_c_check_decl () 1927{ 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 as_decl_name=`echo $2|sed 's/ *(.*//'` 1930 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1932$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1933if eval \${$3+:} false; then : 1934 $as_echo_n "(cached) " >&6 1935else 1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937/* end confdefs.h. */ 1938$4 1939int 1940main () 1941{ 1942#ifndef $as_decl_name 1943#ifdef __cplusplus 1944 (void) $as_decl_use; 1945#else 1946 (void) $as_decl_name; 1947#endif 1948#endif 1949 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_compile "$LINENO"; then : 1955 eval "$3=yes" 1956else 1957 eval "$3=no" 1958fi 1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 1966} # ac_fn_c_check_decl 1967 1968# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1969# ---------------------------------------------------- 1970# Tries to find if the field MEMBER exists in type AGGR, after including 1971# INCLUDES, setting cache variable VAR accordingly. 1972ac_fn_c_check_member () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1976$as_echo_n "checking for $2.$3... " >&6; } 1977if eval \${$4+:} false; then : 1978 $as_echo_n "(cached) " >&6 1979else 1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1981/* end confdefs.h. */ 1982$5 1983int 1984main () 1985{ 1986static $2 ac_aggr; 1987if (ac_aggr.$3) 1988return 0; 1989 ; 1990 return 0; 1991} 1992_ACEOF 1993if ac_fn_c_try_compile "$LINENO"; then : 1994 eval "$4=yes" 1995else 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$5 1999int 2000main () 2001{ 2002static $2 ac_aggr; 2003if (sizeof ac_aggr.$3) 2004return 0; 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO"; then : 2010 eval "$4=yes" 2011else 2012 eval "$4=no" 2013fi 2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2015fi 2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2017fi 2018eval ac_res=\$$4 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2022 2023} # ac_fn_c_check_member 2024 2025# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2026# ------------------------------------------- 2027# Tests whether TYPE exists after having included INCLUDES, setting cache 2028# variable VAR accordingly. 2029ac_fn_c_check_type () 2030{ 2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2033$as_echo_n "checking for $2... " >&6; } 2034if eval \${$3+:} false; then : 2035 $as_echo_n "(cached) " >&6 2036else 2037 eval "$3=no" 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044if (sizeof ($2)) 2045 return 0; 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054int 2055main () 2056{ 2057if (sizeof (($2))) 2058 return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 2065else 2066 eval "$3=yes" 2067fi 2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2069fi 2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2071fi 2072eval ac_res=\$$3 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074$as_echo "$ac_res" >&6; } 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 2077} # ac_fn_c_check_type 2078cat >config.log <<_ACEOF 2079This file contains any messages produced by compilers while 2080running configure, to aid debugging if configure makes a mistake. 2081 2082It was created by libFS $as_me 1.0.7, which was 2083generated by GNU Autoconf 2.69. Invocation command line was 2084 2085 $ $0 $@ 2086 2087_ACEOF 2088exec 5>>config.log 2089{ 2090cat <<_ASUNAME 2091## --------- ## 2092## Platform. ## 2093## --------- ## 2094 2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2096uname -m = `(uname -m) 2>/dev/null || echo unknown` 2097uname -r = `(uname -r) 2>/dev/null || echo unknown` 2098uname -s = `(uname -s) 2>/dev/null || echo unknown` 2099uname -v = `(uname -v) 2>/dev/null || echo unknown` 2100 2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2103 2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2111 2112_ASUNAME 2113 2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115for as_dir in $PATH 2116do 2117 IFS=$as_save_IFS 2118 test -z "$as_dir" && as_dir=. 2119 $as_echo "PATH: $as_dir" 2120 done 2121IFS=$as_save_IFS 2122 2123} >&5 2124 2125cat >&5 <<_ACEOF 2126 2127 2128## ----------- ## 2129## Core tests. ## 2130## ----------- ## 2131 2132_ACEOF 2133 2134 2135# Keep a trace of the command line. 2136# Strip out --no-create and --no-recursion so they do not pile up. 2137# Strip out --silent because we don't want to record it for future runs. 2138# Also quote any args containing shell meta-characters. 2139# Make two passes to allow for proper duplicate-argument suppression. 2140ac_configure_args= 2141ac_configure_args0= 2142ac_configure_args1= 2143ac_must_keep_next=false 2144for ac_pass in 1 2 2145do 2146 for ac_arg 2147 do 2148 case $ac_arg in 2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2151 | -silent | --silent | --silen | --sile | --sil) 2152 continue ;; 2153 *\'*) 2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2155 esac 2156 case $ac_pass in 2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2158 2) 2159 as_fn_append ac_configure_args1 " '$ac_arg'" 2160 if test $ac_must_keep_next = true; then 2161 ac_must_keep_next=false # Got value, back to normal. 2162 else 2163 case $ac_arg in 2164 *=* | --config-cache | -C | -disable-* | --disable-* \ 2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2167 | -with-* | --with-* | -without-* | --without-* | --x) 2168 case "$ac_configure_args0 " in 2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2170 esac 2171 ;; 2172 -* ) ac_must_keep_next=true ;; 2173 esac 2174 fi 2175 as_fn_append ac_configure_args " '$ac_arg'" 2176 ;; 2177 esac 2178 done 2179done 2180{ ac_configure_args0=; unset ac_configure_args0;} 2181{ ac_configure_args1=; unset ac_configure_args1;} 2182 2183# When interrupted or exit'd, cleanup temporary files, and complete 2184# config.log. We remove comments because anyway the quotes in there 2185# would cause problems or look ugly. 2186# WARNING: Use '\'' to represent an apostrophe within the trap. 2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2188trap 'exit_status=$? 2189 # Save into config.log some information that might help in debugging. 2190 { 2191 echo 2192 2193 $as_echo "## ---------------- ## 2194## Cache variables. ## 2195## ---------------- ##" 2196 echo 2197 # The following way of writing the cache mishandles newlines in values, 2198( 2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in #( 2202 *${as_nl}*) 2203 case $ac_var in #( 2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2206 esac 2207 case $ac_var in #( 2208 _ | IFS | as_nl) ;; #( 2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2210 *) { eval $ac_var=; unset $ac_var;} ;; 2211 esac ;; 2212 esac 2213 done 2214 (set) 2>&1 | 2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2216 *${as_nl}ac_space=\ *) 2217 sed -n \ 2218 "s/'\''/'\''\\\\'\'''\''/g; 2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2220 ;; #( 2221 *) 2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2223 ;; 2224 esac | 2225 sort 2226) 2227 echo 2228 2229 $as_echo "## ----------------- ## 2230## Output variables. ## 2231## ----------------- ##" 2232 echo 2233 for ac_var in $ac_subst_vars 2234 do 2235 eval ac_val=\$$ac_var 2236 case $ac_val in 2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2238 esac 2239 $as_echo "$ac_var='\''$ac_val'\''" 2240 done | sort 2241 echo 2242 2243 if test -n "$ac_subst_files"; then 2244 $as_echo "## ------------------- ## 2245## File substitutions. ## 2246## ------------------- ##" 2247 echo 2248 for ac_var in $ac_subst_files 2249 do 2250 eval ac_val=\$$ac_var 2251 case $ac_val in 2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2253 esac 2254 $as_echo "$ac_var='\''$ac_val'\''" 2255 done | sort 2256 echo 2257 fi 2258 2259 if test -s confdefs.h; then 2260 $as_echo "## ----------- ## 2261## confdefs.h. ## 2262## ----------- ##" 2263 echo 2264 cat confdefs.h 2265 echo 2266 fi 2267 test "$ac_signal" != 0 && 2268 $as_echo "$as_me: caught signal $ac_signal" 2269 $as_echo "$as_me: exit $exit_status" 2270 } >&5 2271 rm -f core *.core core.conftest.* && 2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2273 exit $exit_status 2274' 0 2275for ac_signal in 1 2 13 15; do 2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2277done 2278ac_signal=0 2279 2280# confdefs.h avoids OS command line length limits that DEFS can exceed. 2281rm -f -r conftest* confdefs.h 2282 2283$as_echo "/* confdefs.h */" > confdefs.h 2284 2285# Predefined preprocessor variables. 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE_NAME "$PACKAGE_NAME" 2289_ACEOF 2290 2291cat >>confdefs.h <<_ACEOF 2292#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2293_ACEOF 2294 2295cat >>confdefs.h <<_ACEOF 2296#define PACKAGE_VERSION "$PACKAGE_VERSION" 2297_ACEOF 2298 2299cat >>confdefs.h <<_ACEOF 2300#define PACKAGE_STRING "$PACKAGE_STRING" 2301_ACEOF 2302 2303cat >>confdefs.h <<_ACEOF 2304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2305_ACEOF 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_URL "$PACKAGE_URL" 2309_ACEOF 2310 2311 2312# Let the site file select an alternate cache file if it wants to. 2313# Prefer an explicitly selected file to automatically selected ones. 2314ac_site_file1=NONE 2315ac_site_file2=NONE 2316if test -n "$CONFIG_SITE"; then 2317 # We do not want a PATH search for config.site. 2318 case $CONFIG_SITE in #(( 2319 -*) ac_site_file1=./$CONFIG_SITE;; 2320 */*) ac_site_file1=$CONFIG_SITE;; 2321 *) ac_site_file1=./$CONFIG_SITE;; 2322 esac 2323elif test "x$prefix" != xNONE; then 2324 ac_site_file1=$prefix/share/config.site 2325 ac_site_file2=$prefix/etc/config.site 2326else 2327 ac_site_file1=$ac_default_prefix/share/config.site 2328 ac_site_file2=$ac_default_prefix/etc/config.site 2329fi 2330for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2331do 2332 test "x$ac_site_file" = xNONE && continue 2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2335$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2336 sed 's/^/| /' "$ac_site_file" >&5 2337 . "$ac_site_file" \ 2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2340as_fn_error $? "failed to load site script $ac_site_file 2341See \`config.log' for more details" "$LINENO" 5; } 2342 fi 2343done 2344 2345if test -r "$cache_file"; then 2346 # Some versions of bash will fail to source /dev/null (special files 2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2350$as_echo "$as_me: loading cache $cache_file" >&6;} 2351 case $cache_file in 2352 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2353 *) . "./$cache_file";; 2354 esac 2355 fi 2356else 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2358$as_echo "$as_me: creating cache $cache_file" >&6;} 2359 >$cache_file 2360fi 2361 2362# Check that the precious variables saved in the cache have kept the same 2363# value. 2364ac_cache_corrupted=false 2365for ac_var in $ac_precious_vars; do 2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2367 eval ac_new_set=\$ac_env_${ac_var}_set 2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2369 eval ac_new_val=\$ac_env_${ac_var}_value 2370 case $ac_old_set,$ac_new_set in 2371 set,) 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2374 ac_cache_corrupted=: ;; 2375 ,set) 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2378 ac_cache_corrupted=: ;; 2379 ,);; 2380 *) 2381 if test "x$ac_old_val" != "x$ac_new_val"; then 2382 # differences in whitespace do not lead to failure. 2383 ac_old_val_w=`echo x $ac_old_val` 2384 ac_new_val_w=`echo x $ac_new_val` 2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2388 ac_cache_corrupted=: 2389 else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2392 eval $ac_var=\$ac_old_val 2393 fi 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2398 fi;; 2399 esac 2400 # Pass precious variables to config.status. 2401 if test "$ac_new_set" = set; then 2402 case $ac_new_val in 2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2404 *) ac_arg=$ac_var=$ac_new_val ;; 2405 esac 2406 case " $ac_configure_args " in 2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2409 esac 2410 fi 2411done 2412if $ac_cache_corrupted; then 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2418fi 2419## -------------------- ## 2420## Main body of script. ## 2421## -------------------- ## 2422 2423ac_ext=c 2424ac_cpp='$CPP $CPPFLAGS' 2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_c_compiler_gnu 2428 2429 2430 2431ac_config_headers="$ac_config_headers config.h" 2432 2433 2434# Initialize Automake 2435am__api_version='1.15' 2436 2437ac_aux_dir= 2438for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2439 if test -f "$ac_dir/install-sh"; then 2440 ac_aux_dir=$ac_dir 2441 ac_install_sh="$ac_aux_dir/install-sh -c" 2442 break 2443 elif test -f "$ac_dir/install.sh"; then 2444 ac_aux_dir=$ac_dir 2445 ac_install_sh="$ac_aux_dir/install.sh -c" 2446 break 2447 elif test -f "$ac_dir/shtool"; then 2448 ac_aux_dir=$ac_dir 2449 ac_install_sh="$ac_aux_dir/shtool install -c" 2450 break 2451 fi 2452done 2453if test -z "$ac_aux_dir"; then 2454 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2455fi 2456 2457# These three variables are undocumented and unsupported, 2458# and are intended to be withdrawn in a future Autoconf release. 2459# They can cause serious problems if a builder's source tree is in a directory 2460# whose full name contains unusual characters. 2461ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2462ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2463ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2464 2465 2466# Find a good install program. We prefer a C program (faster), 2467# so one script is as good as another. But avoid the broken or 2468# incompatible versions: 2469# SysV /etc/install, /usr/sbin/install 2470# SunOS /usr/etc/install 2471# IRIX /sbin/install 2472# AIX /bin/install 2473# AmigaOS /C/install, which installs bootblocks on floppy discs 2474# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2475# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2476# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2477# OS/2's system install, which has a completely different semantic 2478# ./install, which can be erroneously created by make from ./install.sh. 2479# Reject install programs that cannot install multiple files. 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2481$as_echo_n "checking for a BSD-compatible install... " >&6; } 2482if test -z "$INSTALL"; then 2483if ${ac_cv_path_install+:} false; then : 2484 $as_echo_n "(cached) " >&6 2485else 2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2487for as_dir in $PATH 2488do 2489 IFS=$as_save_IFS 2490 test -z "$as_dir" && as_dir=. 2491 # Account for people who put trailing slashes in PATH elements. 2492case $as_dir/ in #(( 2493 ./ | .// | /[cC]/* | \ 2494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2496 /usr/ucb/* ) ;; 2497 *) 2498 # OSF1 and SCO ODT 3.0 have their own names for install. 2499 # Don't use installbsd from OSF since it installs stuff as root 2500 # by default. 2501 for ac_prog in ginstall scoinst install; do 2502 for ac_exec_ext in '' $ac_executable_extensions; do 2503 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2504 if test $ac_prog = install && 2505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2506 # AIX install. It has an incompatible calling convention. 2507 : 2508 elif test $ac_prog = install && 2509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2510 # program-specific install script used by HP pwplus--don't use. 2511 : 2512 else 2513 rm -rf conftest.one conftest.two conftest.dir 2514 echo one > conftest.one 2515 echo two > conftest.two 2516 mkdir conftest.dir 2517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2518 test -s conftest.one && test -s conftest.two && 2519 test -s conftest.dir/conftest.one && 2520 test -s conftest.dir/conftest.two 2521 then 2522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2523 break 3 2524 fi 2525 fi 2526 fi 2527 done 2528 done 2529 ;; 2530esac 2531 2532 done 2533IFS=$as_save_IFS 2534 2535rm -rf conftest.one conftest.two conftest.dir 2536 2537fi 2538 if test "${ac_cv_path_install+set}" = set; then 2539 INSTALL=$ac_cv_path_install 2540 else 2541 # As a last resort, use the slow shell script. Don't cache a 2542 # value for INSTALL within a source directory, because that will 2543 # break other packages using the cache if that directory is 2544 # removed, or if the value is a relative name. 2545 INSTALL=$ac_install_sh 2546 fi 2547fi 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2549$as_echo "$INSTALL" >&6; } 2550 2551# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2552# It thinks the first close brace ends the variable substitution. 2553test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2554 2555test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2556 2557test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2558 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2560$as_echo_n "checking whether build environment is sane... " >&6; } 2561# Reject unsafe characters in $srcdir or the absolute working directory 2562# name. Accept space and tab only in the latter. 2563am_lf=' 2564' 2565case `pwd` in 2566 *[\\\"\#\$\&\'\`$am_lf]*) 2567 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2568esac 2569case $srcdir in 2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2571 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2572esac 2573 2574# Do 'set' in a subshell so we don't clobber the current shell's 2575# arguments. Must try -L first in case configure is actually a 2576# symlink; some systems play weird games with the mod time of symlinks 2577# (eg FreeBSD returns the mod time of the symlink's containing 2578# directory). 2579if ( 2580 am_has_slept=no 2581 for am_try in 1 2; do 2582 echo "timestamp, slept: $am_has_slept" > conftest.file 2583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2584 if test "$*" = "X"; then 2585 # -L didn't work. 2586 set X `ls -t "$srcdir/configure" conftest.file` 2587 fi 2588 if test "$*" != "X $srcdir/configure conftest.file" \ 2589 && test "$*" != "X conftest.file $srcdir/configure"; then 2590 2591 # If neither matched, then we have a broken ls. This can happen 2592 # if, for instance, CONFIG_SHELL is bash and it inherits a 2593 # broken ls alias from the environment. This has actually 2594 # happened. Such a system could not be considered "sane". 2595 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2596 alias in your environment" "$LINENO" 5 2597 fi 2598 if test "$2" = conftest.file || test $am_try -eq 2; then 2599 break 2600 fi 2601 # Just in case. 2602 sleep 1 2603 am_has_slept=yes 2604 done 2605 test "$2" = conftest.file 2606 ) 2607then 2608 # Ok. 2609 : 2610else 2611 as_fn_error $? "newly created file is older than distributed files! 2612Check your system clock" "$LINENO" 5 2613fi 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2615$as_echo "yes" >&6; } 2616# If we didn't sleep, we still need to ensure time stamps of config.status and 2617# generated files are strictly newer. 2618am_sleep_pid= 2619if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2620 ( sleep 1 ) & 2621 am_sleep_pid=$! 2622fi 2623 2624rm -f conftest.file 2625 2626test "$program_prefix" != NONE && 2627 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2628# Use a double $ so make ignores it. 2629test "$program_suffix" != NONE && 2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2631# Double any \ or $. 2632# By default was `s,x,x', remove it if useless. 2633ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2634program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2635 2636# Expand $ac_aux_dir to an absolute path. 2637am_aux_dir=`cd "$ac_aux_dir" && pwd` 2638 2639if test x"${MISSING+set}" != xset; then 2640 case $am_aux_dir in 2641 *\ * | *\ *) 2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2643 *) 2644 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2645 esac 2646fi 2647# Use eval to expand $SHELL 2648if eval "$MISSING --is-lightweight"; then 2649 am_missing_run="$MISSING " 2650else 2651 am_missing_run= 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2653$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2654fi 2655 2656if test x"${install_sh+set}" != xset; then 2657 case $am_aux_dir in 2658 *\ * | *\ *) 2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2660 *) 2661 install_sh="\${SHELL} $am_aux_dir/install-sh" 2662 esac 2663fi 2664 2665# Installed binaries are usually stripped using 'strip' when the user 2666# run "make install-strip". However 'strip' might not be the right 2667# tool to use in cross-compilation environments, therefore Automake 2668# will honor the 'STRIP' environment variable to overrule this program. 2669if test "$cross_compiling" != no; then 2670 if test -n "$ac_tool_prefix"; then 2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2672set dummy ${ac_tool_prefix}strip; ac_word=$2 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if ${ac_cv_prog_STRIP+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$STRIP"; then 2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693 done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698STRIP=$ac_cv_prog_STRIP 2699if test -n "$STRIP"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2701$as_echo "$STRIP" >&6; } 2702else 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704$as_echo "no" >&6; } 2705fi 2706 2707 2708fi 2709if test -z "$ac_cv_prog_STRIP"; then 2710 ac_ct_STRIP=$STRIP 2711 # Extract the first word of "strip", so it can be a program name with args. 2712set dummy strip; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$ac_ct_STRIP"; then 2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2720else 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_ac_ct_STRIP="strip" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2739if test -n "$ac_ct_STRIP"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2741$as_echo "$ac_ct_STRIP" >&6; } 2742else 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744$as_echo "no" >&6; } 2745fi 2746 2747 if test "x$ac_ct_STRIP" = x; then 2748 STRIP=":" 2749 else 2750 case $cross_compiling:$ac_tool_warned in 2751yes:) 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2754ac_tool_warned=yes ;; 2755esac 2756 STRIP=$ac_ct_STRIP 2757 fi 2758else 2759 STRIP="$ac_cv_prog_STRIP" 2760fi 2761 2762fi 2763INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2764 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2766$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2767if test -z "$MKDIR_P"; then 2768 if ${ac_cv_path_mkdir+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2773do 2774 IFS=$as_save_IFS 2775 test -z "$as_dir" && as_dir=. 2776 for ac_prog in mkdir gmkdir; do 2777 for ac_exec_ext in '' $ac_executable_extensions; do 2778 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2780 'mkdir (GNU coreutils) '* | \ 2781 'mkdir (coreutils) '* | \ 2782 'mkdir (fileutils) '4.1*) 2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2784 break 3;; 2785 esac 2786 done 2787 done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792 2793 test -d ./--version && rmdir ./--version 2794 if test "${ac_cv_path_mkdir+set}" = set; then 2795 MKDIR_P="$ac_cv_path_mkdir -p" 2796 else 2797 # As a last resort, use the slow shell script. Don't cache a 2798 # value for MKDIR_P within a source directory, because that will 2799 # break other packages using the cache if that directory is 2800 # removed, or if the value is a relative name. 2801 MKDIR_P="$ac_install_sh -d" 2802 fi 2803fi 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2805$as_echo "$MKDIR_P" >&6; } 2806 2807for ac_prog in gawk mawk nawk awk 2808do 2809 # Extract the first word of "$ac_prog", so it can be a program name with args. 2810set dummy $ac_prog; ac_word=$2 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812$as_echo_n "checking for $ac_word... " >&6; } 2813if ${ac_cv_prog_AWK+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test -n "$AWK"; then 2817 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2826 ac_cv_prog_AWK="$ac_prog" 2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831 done 2832IFS=$as_save_IFS 2833 2834fi 2835fi 2836AWK=$ac_cv_prog_AWK 2837if test -n "$AWK"; then 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2839$as_echo "$AWK" >&6; } 2840else 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2842$as_echo "no" >&6; } 2843fi 2844 2845 2846 test -n "$AWK" && break 2847done 2848 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2851set x ${MAKE-make} 2852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2853if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 cat >conftest.make <<\_ACEOF 2857SHELL = /bin/sh 2858all: 2859 @echo '@@@%%%=$(MAKE)=@@@%%%' 2860_ACEOF 2861# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2862case `${MAKE-make} -f conftest.make 2>/dev/null` in 2863 *@@@%%%=?*=@@@%%%*) 2864 eval ac_cv_prog_make_${ac_make}_set=yes;; 2865 *) 2866 eval ac_cv_prog_make_${ac_make}_set=no;; 2867esac 2868rm -f conftest.make 2869fi 2870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2872$as_echo "yes" >&6; } 2873 SET_MAKE= 2874else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876$as_echo "no" >&6; } 2877 SET_MAKE="MAKE=${MAKE-make}" 2878fi 2879 2880rm -rf .tst 2>/dev/null 2881mkdir .tst 2>/dev/null 2882if test -d .tst; then 2883 am__leading_dot=. 2884else 2885 am__leading_dot=_ 2886fi 2887rmdir .tst 2>/dev/null 2888 2889# Check whether --enable-silent-rules was given. 2890if test "${enable_silent_rules+set}" = set; then : 2891 enableval=$enable_silent_rules; 2892fi 2893 2894case $enable_silent_rules in # ((( 2895 yes) AM_DEFAULT_VERBOSITY=0;; 2896 no) AM_DEFAULT_VERBOSITY=1;; 2897 *) AM_DEFAULT_VERBOSITY=1;; 2898esac 2899am_make=${MAKE-make} 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2901$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2902if ${am_cv_make_support_nested_variables+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if $as_echo 'TRUE=$(BAR$(V)) 2906BAR0=false 2907BAR1=true 2908V=1 2909am__doit: 2910 @$(TRUE) 2911.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2912 am_cv_make_support_nested_variables=yes 2913else 2914 am_cv_make_support_nested_variables=no 2915fi 2916fi 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2918$as_echo "$am_cv_make_support_nested_variables" >&6; } 2919if test $am_cv_make_support_nested_variables = yes; then 2920 AM_V='$(V)' 2921 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2922else 2923 AM_V=$AM_DEFAULT_VERBOSITY 2924 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2925fi 2926AM_BACKSLASH='\' 2927 2928if test "`cd $srcdir && pwd`" != "`pwd`"; then 2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2930 # is not polluted with repeated "-I." 2931 am__isrc=' -I$(srcdir)' 2932 # test to see if srcdir already configured 2933 if test -f $srcdir/config.status; then 2934 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2935 fi 2936fi 2937 2938# test whether we have cygpath 2939if test -z "$CYGPATH_W"; then 2940 if (cygpath --version) >/dev/null 2>/dev/null; then 2941 CYGPATH_W='cygpath -w' 2942 else 2943 CYGPATH_W=echo 2944 fi 2945fi 2946 2947 2948# Define the identity of the package. 2949 PACKAGE='libFS' 2950 VERSION='1.0.7' 2951 2952 2953cat >>confdefs.h <<_ACEOF 2954#define PACKAGE "$PACKAGE" 2955_ACEOF 2956 2957 2958cat >>confdefs.h <<_ACEOF 2959#define VERSION "$VERSION" 2960_ACEOF 2961 2962# Some tools Automake needs. 2963 2964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2965 2966 2967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2968 2969 2970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2971 2972 2973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2974 2975 2976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2977 2978# For better backward compatibility. To be removed once Automake 1.9.x 2979# dies out for good. For more background, see: 2980# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2981# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2982mkdir_p='$(MKDIR_P)' 2983 2984# We need awk for the "check" target (and possibly the TAP driver). The 2985# system "awk" is bad on some platforms. 2986# Always define AMTAR for backward compatibility. Yes, it's still used 2987# in the wild :-( We should find a proper way to deprecate it ... 2988AMTAR='$${TAR-tar}' 2989 2990 2991# We'll loop over all known methods to create a tar archive until one works. 2992_am_tools='gnutar pax cpio none' 2993 2994am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2995 2996 2997 2998 2999 3000 3001# POSIX will say in a future version that running "rm -f" with no argument 3002# is OK; and we want to be able to make that assumption in our Makefile 3003# recipes. So use an aggressive probe to check that the usage we want is 3004# actually supported "in the wild" to an acceptable degree. 3005# See automake bug#10828. 3006# To make any issue more visible, cause the running configure to be aborted 3007# by default if the 'rm' program in use doesn't match our expectations; the 3008# user can still override this though. 3009if rm -f && rm -fr && rm -rf; then : OK; else 3010 cat >&2 <<'END' 3011Oops! 3012 3013Your 'rm' program seems unable to run without file operands specified 3014on the command line, even when the '-f' option is present. This is contrary 3015to the behaviour of most rm programs out there, and not conforming with 3016the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3017 3018Please tell bug-automake@gnu.org about your system, including the value 3019of your $PATH and any error possibly output before this message. This 3020can help us improve future automake versions. 3021 3022END 3023 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3024 echo 'Configuration will proceed anyway, since you have set the' >&2 3025 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3026 echo >&2 3027 else 3028 cat >&2 <<'END' 3029Aborting the configuration process, to ensure you take notice of the issue. 3030 3031You can download and install GNU coreutils to get an 'rm' implementation 3032that behaves properly: <http://www.gnu.org/software/coreutils/>. 3033 3034If you want to complete the configuration process using your problematic 3035'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3036to "yes", and re-run configure. 3037 3038END 3039 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3040 fi 3041fi 3042 3043 3044# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3045# Must be called before any macros that run the compiler (like 3046# AC_PROG_LIBTOOL) to avoid autoconf errors. 3047DEPDIR="${am__leading_dot}deps" 3048 3049ac_config_commands="$ac_config_commands depfiles" 3050 3051 3052am_make=${MAKE-make} 3053cat > confinc << 'END' 3054am__doit: 3055 @echo this is the am__doit target 3056.PHONY: am__doit 3057END 3058# If we don't find an include directive, just comment out the code. 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3060$as_echo_n "checking for style of include used by $am_make... " >&6; } 3061am__include="#" 3062am__quote= 3063_am_result=none 3064# First try GNU make style include. 3065echo "include confinc" > confmf 3066# Ignore all kinds of additional output from 'make'. 3067case `$am_make -s -f confmf 2> /dev/null` in #( 3068*the\ am__doit\ target*) 3069 am__include=include 3070 am__quote= 3071 _am_result=GNU 3072 ;; 3073esac 3074# Now try BSD make style include. 3075if test "$am__include" = "#"; then 3076 echo '.include "confinc"' > confmf 3077 case `$am_make -s -f confmf 2> /dev/null` in #( 3078 *the\ am__doit\ target*) 3079 am__include=.include 3080 am__quote="\"" 3081 _am_result=BSD 3082 ;; 3083 esac 3084fi 3085 3086 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3088$as_echo "$_am_result" >&6; } 3089rm -f confinc confmf 3090 3091# Check whether --enable-dependency-tracking was given. 3092if test "${enable_dependency_tracking+set}" = set; then : 3093 enableval=$enable_dependency_tracking; 3094fi 3095 3096if test "x$enable_dependency_tracking" != xno; then 3097 am_depcomp="$ac_aux_dir/depcomp" 3098 AMDEPBACKSLASH='\' 3099 am__nodep='_no' 3100fi 3101 if test "x$enable_dependency_tracking" != xno; then 3102 AMDEP_TRUE= 3103 AMDEP_FALSE='#' 3104else 3105 AMDEP_TRUE='#' 3106 AMDEP_FALSE= 3107fi 3108 3109 3110ac_ext=c 3111ac_cpp='$CPP $CPPFLAGS' 3112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3114ac_compiler_gnu=$ac_cv_c_compiler_gnu 3115if test -n "$ac_tool_prefix"; then 3116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3117set dummy ${ac_tool_prefix}gcc; ac_word=$2 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3119$as_echo_n "checking for $ac_word... " >&6; } 3120if ${ac_cv_prog_CC+:} false; then : 3121 $as_echo_n "(cached) " >&6 3122else 3123 if test -n "$CC"; then 3124 ac_cv_prog_CC="$CC" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153fi 3154if test -z "$ac_cv_prog_CC"; then 3155 ac_ct_CC=$CC 3156 # Extract the first word of "gcc", so it can be a program name with args. 3157set dummy gcc; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_ac_ct_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$ac_ct_CC"; then 3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 test -z "$as_dir" && as_dir=. 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3173 ac_cv_prog_ac_ct_CC="gcc" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181fi 3182fi 3183ac_ct_CC=$ac_cv_prog_ac_ct_CC 3184if test -n "$ac_ct_CC"; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3186$as_echo "$ac_ct_CC" >&6; } 3187else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190fi 3191 3192 if test "x$ac_ct_CC" = x; then 3193 CC="" 3194 else 3195 case $cross_compiling:$ac_tool_warned in 3196yes:) 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3199ac_tool_warned=yes ;; 3200esac 3201 CC=$ac_ct_CC 3202 fi 3203else 3204 CC="$ac_cv_prog_CC" 3205fi 3206 3207if test -z "$CC"; then 3208 if test -n "$ac_tool_prefix"; then 3209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3210set dummy ${ac_tool_prefix}cc; ac_word=$2 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3212$as_echo_n "checking for $ac_word... " >&6; } 3213if ${ac_cv_prog_CC+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 if test -n "$CC"; then 3217 ac_cv_prog_CC="$CC" # Let the user override the test. 3218else 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 test -z "$as_dir" && as_dir=. 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="${ac_tool_prefix}cc" 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239$as_echo "$CC" >&6; } 3240else 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243fi 3244 3245 3246 fi 3247fi 3248if test -z "$CC"; then 3249 # Extract the first word of "cc", so it can be a program name with args. 3250set dummy cc; ac_word=$2 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252$as_echo_n "checking for $ac_word... " >&6; } 3253if ${ac_cv_prog_CC+:} false; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 if test -n "$CC"; then 3257 ac_cv_prog_CC="$CC" # Let the user override the test. 3258else 3259 ac_prog_rejected=no 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 test -z "$as_dir" && as_dir=. 3265 for ac_exec_ext in '' $ac_executable_extensions; do 3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3268 ac_prog_rejected=yes 3269 continue 3270 fi 3271 ac_cv_prog_CC="cc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279if test $ac_prog_rejected = yes; then 3280 # We found a bogon in the path, so make sure we never use it. 3281 set dummy $ac_cv_prog_CC 3282 shift 3283 if test $# != 0; then 3284 # We chose a different compiler from the bogus one. 3285 # However, it has the same basename, so the bogon will be chosen 3286 # first if we set CC to just the basename; use the full file name. 3287 shift 3288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3289 fi 3290fi 3291fi 3292fi 3293CC=$ac_cv_prog_CC 3294if test -n "$CC"; then 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3296$as_echo "$CC" >&6; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300fi 3301 3302 3303fi 3304if test -z "$CC"; then 3305 if test -n "$ac_tool_prefix"; then 3306 for ac_prog in cl.exe 3307 do 3308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311$as_echo_n "checking for $ac_word... " >&6; } 3312if ${ac_cv_prog_CC+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 if test -n "$CC"; then 3316 ac_cv_prog_CC="$CC" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345 test -n "$CC" && break 3346 done 3347fi 3348if test -z "$CC"; then 3349 ac_ct_CC=$CC 3350 for ac_prog in cl.exe 3351do 3352 # Extract the first word of "$ac_prog", so it can be a program name with args. 3353set dummy $ac_prog; ac_word=$2 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355$as_echo_n "checking for $ac_word... " >&6; } 3356if ${ac_cv_prog_ac_ct_CC+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$ac_ct_CC"; then 3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 test -z "$as_dir" && as_dir=. 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3369 ac_cv_prog_ac_ct_CC="$ac_prog" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377fi 3378fi 3379ac_ct_CC=$ac_cv_prog_ac_ct_CC 3380if test -n "$ac_ct_CC"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3382$as_echo "$ac_ct_CC" >&6; } 3383else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3385$as_echo "no" >&6; } 3386fi 3387 3388 3389 test -n "$ac_ct_CC" && break 3390done 3391 3392 if test "x$ac_ct_CC" = x; then 3393 CC="" 3394 else 3395 case $cross_compiling:$ac_tool_warned in 3396yes:) 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3399ac_tool_warned=yes ;; 3400esac 3401 CC=$ac_ct_CC 3402 fi 3403fi 3404 3405fi 3406 3407 3408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410as_fn_error $? "no acceptable C compiler found in \$PATH 3411See \`config.log' for more details" "$LINENO" 5; } 3412 3413# Provide some information about the compiler. 3414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3415set X $ac_compile 3416ac_compiler=$2 3417for ac_option in --version -v -V -qversion; do 3418 { { ac_try="$ac_compiler $ac_option >&5" 3419case "(($ac_try" in 3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421 *) ac_try_echo=$ac_try;; 3422esac 3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3424$as_echo "$ac_try_echo"; } >&5 3425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3426 ac_status=$? 3427 if test -s conftest.err; then 3428 sed '10a\ 3429... rest of stderr output deleted ... 3430 10q' conftest.err >conftest.er1 3431 cat conftest.er1 >&5 3432 fi 3433 rm -f conftest.er1 conftest.err 3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; } 3436done 3437 3438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441int 3442main () 3443{ 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449ac_clean_files_save=$ac_clean_files 3450ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3451# Try to create an executable without -o first, disregard a.out. 3452# It will help us diagnose broken compilers, and finding out an intuition 3453# of exeext. 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3455$as_echo_n "checking whether the C compiler works... " >&6; } 3456ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3457 3458# The possible output files: 3459ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3460 3461ac_rmfiles= 3462for ac_file in $ac_files 3463do 3464 case $ac_file in 3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3466 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3467 esac 3468done 3469rm -f $ac_rmfiles 3470 3471if { { ac_try="$ac_link_default" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3477$as_echo "$ac_try_echo"; } >&5 3478 (eval "$ac_link_default") 2>&5 3479 ac_status=$? 3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3481 test $ac_status = 0; }; then : 3482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3483# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3484# in a Makefile. We should not override ac_cv_exeext if it was cached, 3485# so that the user can short-circuit this test for compilers unknown to 3486# Autoconf. 3487for ac_file in $ac_files '' 3488do 3489 test -f "$ac_file" || continue 3490 case $ac_file in 3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3492 ;; 3493 [ab].out ) 3494 # We found the default executable, but exeext='' is most 3495 # certainly right. 3496 break;; 3497 *.* ) 3498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3499 then :; else 3500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3501 fi 3502 # We set ac_cv_exeext here because the later test for it is not 3503 # safe: cross compilers may not add the suffix if given an `-o' 3504 # argument, so we may need to know it at that point already. 3505 # Even if this section looks crufty: it has the advantage of 3506 # actually working. 3507 break;; 3508 * ) 3509 break;; 3510 esac 3511done 3512test "$ac_cv_exeext" = no && ac_cv_exeext= 3513 3514else 3515 ac_file='' 3516fi 3517if test -z "$ac_file"; then : 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520$as_echo "$as_me: failed program was:" >&5 3521sed 's/^/| /' conftest.$ac_ext >&5 3522 3523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3525as_fn_error 77 "C compiler cannot create executables 3526See \`config.log' for more details" "$LINENO" 5; } 3527else 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3529$as_echo "yes" >&6; } 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3532$as_echo_n "checking for C compiler default output file name... " >&6; } 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3534$as_echo "$ac_file" >&6; } 3535ac_exeext=$ac_cv_exeext 3536 3537rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3538ac_clean_files=$ac_clean_files_save 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3540$as_echo_n "checking for suffix of executables... " >&6; } 3541if { { ac_try="$ac_link" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_link") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; then : 3552 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3553# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3554# work properly (i.e., refer to `conftest.exe'), while it won't with 3555# `rm'. 3556for ac_file in conftest.exe conftest conftest.*; do 3557 test -f "$ac_file" || continue 3558 case $ac_file in 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3561 break;; 3562 * ) break;; 3563 esac 3564done 3565else 3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3568as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3569See \`config.log' for more details" "$LINENO" 5; } 3570fi 3571rm -f conftest conftest$ac_cv_exeext 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3573$as_echo "$ac_cv_exeext" >&6; } 3574 3575rm -f conftest.$ac_ext 3576EXEEXT=$ac_cv_exeext 3577ac_exeext=$EXEEXT 3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580#include <stdio.h> 3581int 3582main () 3583{ 3584FILE *f = fopen ("conftest.out", "w"); 3585 return ferror (f) || fclose (f) != 0; 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591ac_clean_files="$ac_clean_files conftest.out" 3592# Check that the compiler produces executables we can run. If not, either 3593# the compiler is broken, or we cross compile. 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3595$as_echo_n "checking whether we are cross compiling... " >&6; } 3596if test "$cross_compiling" != yes; then 3597 { { ac_try="$ac_link" 3598case "(($ac_try" in 3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3600 *) ac_try_echo=$ac_try;; 3601esac 3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3603$as_echo "$ac_try_echo"; } >&5 3604 (eval "$ac_link") 2>&5 3605 ac_status=$? 3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3607 test $ac_status = 0; } 3608 if { ac_try='./conftest$ac_cv_exeext' 3609 { { case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_try") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; }; then 3619 cross_compiling=no 3620 else 3621 if test "$cross_compiling" = maybe; then 3622 cross_compiling=yes 3623 else 3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error $? "cannot run C compiled programs. 3627If you meant to cross compile, use \`--host'. 3628See \`config.log' for more details" "$LINENO" 5; } 3629 fi 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3633$as_echo "$cross_compiling" >&6; } 3634 3635rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3636ac_clean_files=$ac_clean_files_save 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3638$as_echo_n "checking for suffix of object files... " >&6; } 3639if ${ac_cv_objext+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main () 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653rm -f conftest.o conftest.obj 3654if { { ac_try="$ac_compile" 3655case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660$as_echo "$ac_try_echo"; } >&5 3661 (eval "$ac_compile") 2>&5 3662 ac_status=$? 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; }; then : 3665 for ac_file in conftest.o conftest.obj conftest.*; do 3666 test -f "$ac_file" || continue; 3667 case $ac_file in 3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3670 break;; 3671 esac 3672done 3673else 3674 $as_echo "$as_me: failed program was:" >&5 3675sed 's/^/| /' conftest.$ac_ext >&5 3676 3677{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3679as_fn_error $? "cannot compute suffix of object files: cannot compile 3680See \`config.log' for more details" "$LINENO" 5; } 3681fi 3682rm -f conftest.$ac_cv_objext conftest.$ac_ext 3683fi 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3685$as_echo "$ac_cv_objext" >&6; } 3686OBJEXT=$ac_cv_objext 3687ac_objext=$OBJEXT 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3689$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3690if ${ac_cv_c_compiler_gnu+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699#ifndef __GNUC__ 3700 choke me 3701#endif 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 ac_compiler_gnu=yes 3709else 3710 ac_compiler_gnu=no 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713ac_cv_c_compiler_gnu=$ac_compiler_gnu 3714 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3717$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3718if test $ac_compiler_gnu = yes; then 3719 GCC=yes 3720else 3721 GCC= 3722fi 3723ac_test_CFLAGS=${CFLAGS+set} 3724ac_save_CFLAGS=$CFLAGS 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3726$as_echo_n "checking whether $CC accepts -g... " >&6; } 3727if ${ac_cv_prog_cc_g+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 ac_save_c_werror_flag=$ac_c_werror_flag 3731 ac_c_werror_flag=yes 3732 ac_cv_prog_cc_g=no 3733 CFLAGS="-g" 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737int 3738main () 3739{ 3740 3741 ; 3742 return 0; 3743} 3744_ACEOF 3745if ac_fn_c_try_compile "$LINENO"; then : 3746 ac_cv_prog_cc_g=yes 3747else 3748 CFLAGS="" 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3750/* end confdefs.h. */ 3751 3752int 3753main () 3754{ 3755 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760if ac_fn_c_try_compile "$LINENO"; then : 3761 3762else 3763 ac_c_werror_flag=$ac_save_c_werror_flag 3764 CFLAGS="-g" 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768int 3769main () 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776if ac_fn_c_try_compile "$LINENO"; then : 3777 ac_cv_prog_cc_g=yes 3778fi 3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3780fi 3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3782fi 3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3784 ac_c_werror_flag=$ac_save_c_werror_flag 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3787$as_echo "$ac_cv_prog_cc_g" >&6; } 3788if test "$ac_test_CFLAGS" = set; then 3789 CFLAGS=$ac_save_CFLAGS 3790elif test $ac_cv_prog_cc_g = yes; then 3791 if test "$GCC" = yes; then 3792 CFLAGS="-g -O2" 3793 else 3794 CFLAGS="-g" 3795 fi 3796else 3797 if test "$GCC" = yes; then 3798 CFLAGS="-O2" 3799 else 3800 CFLAGS= 3801 fi 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3804$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3805if ${ac_cv_prog_cc_c89+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 ac_cv_prog_cc_c89=no 3809ac_save_CC=$CC 3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811/* end confdefs.h. */ 3812#include <stdarg.h> 3813#include <stdio.h> 3814struct stat; 3815/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3816struct buf { int x; }; 3817FILE * (*rcsopen) (struct buf *, struct stat *, int); 3818static char *e (p, i) 3819 char **p; 3820 int i; 3821{ 3822 return p[i]; 3823} 3824static char *f (char * (*g) (char **, int), char **p, ...) 3825{ 3826 char *s; 3827 va_list v; 3828 va_start (v,p); 3829 s = g (p, va_arg (v,int)); 3830 va_end (v); 3831 return s; 3832} 3833 3834/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3835 function prototypes and stuff, but not '\xHH' hex character constants. 3836 These don't provoke an error unfortunately, instead are silently treated 3837 as 'x'. The following induces an error, until -std is added to get 3838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3839 array size at least. It's necessary to write '\x00'==0 to get something 3840 that's true only with -std. */ 3841int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3842 3843/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3844 inside strings and character constants. */ 3845#define FOO(x) 'x' 3846int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3847 3848int test (int i, double x); 3849struct s1 {int (*f) (int a);}; 3850struct s2 {int (*f) (double a);}; 3851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3852int argc; 3853char **argv; 3854int 3855main () 3856{ 3857return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3864do 3865 CC="$ac_save_CC $ac_arg" 3866 if ac_fn_c_try_compile "$LINENO"; then : 3867 ac_cv_prog_cc_c89=$ac_arg 3868fi 3869rm -f core conftest.err conftest.$ac_objext 3870 test "x$ac_cv_prog_cc_c89" != "xno" && break 3871done 3872rm -f conftest.$ac_ext 3873CC=$ac_save_CC 3874 3875fi 3876# AC_CACHE_VAL 3877case "x$ac_cv_prog_cc_c89" in 3878 x) 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3880$as_echo "none needed" >&6; } ;; 3881 xno) 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3883$as_echo "unsupported" >&6; } ;; 3884 *) 3885 CC="$CC $ac_cv_prog_cc_c89" 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3887$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3888esac 3889if test "x$ac_cv_prog_cc_c89" != xno; then : 3890 3891fi 3892 3893ac_ext=c 3894ac_cpp='$CPP $CPPFLAGS' 3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3897ac_compiler_gnu=$ac_cv_c_compiler_gnu 3898 3899ac_ext=c 3900ac_cpp='$CPP $CPPFLAGS' 3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3903ac_compiler_gnu=$ac_cv_c_compiler_gnu 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3905$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3906if ${am_cv_prog_cc_c_o+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911 3912int 3913main () 3914{ 3915 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920 # Make sure it works both with $CC and with simple cc. 3921 # Following AC_PROG_CC_C_O, we do the test twice because some 3922 # compilers refuse to overwrite an existing .o file with -o, 3923 # though they will create one. 3924 am_cv_prog_cc_c_o=yes 3925 for am_i in 1 2; do 3926 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3927 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); } \ 3931 && test -f conftest2.$ac_objext; then 3932 : OK 3933 else 3934 am_cv_prog_cc_c_o=no 3935 break 3936 fi 3937 done 3938 rm -f core conftest* 3939 unset am_i 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3942$as_echo "$am_cv_prog_cc_c_o" >&6; } 3943if test "$am_cv_prog_cc_c_o" != yes; then 3944 # Losing compiler, so override with the script. 3945 # FIXME: It is wrong to rewrite CC. 3946 # But if we don't then we get into trouble of one sort or another. 3947 # A longer-term fix would be to have automake use am__CC in this case, 3948 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3949 CC="$am_aux_dir/compile $CC" 3950fi 3951ac_ext=c 3952ac_cpp='$CPP $CPPFLAGS' 3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956 3957 3958depcc="$CC" am_compiler_list= 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3961$as_echo_n "checking dependency style of $depcc... " >&6; } 3962if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3966 # We make a subdir and do the tests there. Otherwise we can end up 3967 # making bogus files that we don't know about and never remove. For 3968 # instance it was reported that on HP-UX the gcc test will end up 3969 # making a dummy file named 'D' -- because '-MD' means "put the output 3970 # in D". 3971 rm -rf conftest.dir 3972 mkdir conftest.dir 3973 # Copy depcomp to subdir because otherwise we won't find it if we're 3974 # using a relative directory. 3975 cp "$am_depcomp" conftest.dir 3976 cd conftest.dir 3977 # We will build objects and dependencies in a subdirectory because 3978 # it helps to detect inapplicable dependency modes. For instance 3979 # both Tru64's cc and ICC support -MD to output dependencies as a 3980 # side effect of compilation, but ICC will put the dependencies in 3981 # the current directory while Tru64 will put them in the object 3982 # directory. 3983 mkdir sub 3984 3985 am_cv_CC_dependencies_compiler_type=none 3986 if test "$am_compiler_list" = ""; then 3987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3988 fi 3989 am__universal=false 3990 case " $depcc " in #( 3991 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3992 esac 3993 3994 for depmode in $am_compiler_list; do 3995 # Setup a source with many dependencies, because some compilers 3996 # like to wrap large dependency lists on column 80 (with \), and 3997 # we should not choose a depcomp mode which is confused by this. 3998 # 3999 # We need to recreate these files for each test, as the compiler may 4000 # overwrite some of them when testing with obscure command lines. 4001 # This happens at least with the AIX C compiler. 4002 : > sub/conftest.c 4003 for i in 1 2 3 4 5 6; do 4004 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4006 # Solaris 10 /bin/sh. 4007 echo '/* dummy */' > sub/conftst$i.h 4008 done 4009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4010 4011 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4012 # mode. It turns out that the SunPro C++ compiler does not properly 4013 # handle '-M -o', and we need to detect this. Also, some Intel 4014 # versions had trouble with output in subdirs. 4015 am__obj=sub/conftest.${OBJEXT-o} 4016 am__minus_obj="-o $am__obj" 4017 case $depmode in 4018 gcc) 4019 # This depmode causes a compiler race in universal mode. 4020 test "$am__universal" = false || continue 4021 ;; 4022 nosideeffect) 4023 # After this tag, mechanisms are not by side-effect, so they'll 4024 # only be used when explicitly requested. 4025 if test "x$enable_dependency_tracking" = xyes; then 4026 continue 4027 else 4028 break 4029 fi 4030 ;; 4031 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4032 # This compiler won't grok '-c -o', but also, the minuso test has 4033 # not run yet. These depmodes are late enough in the game, and 4034 # so weak that their functioning should not be impacted. 4035 am__obj=conftest.${OBJEXT-o} 4036 am__minus_obj= 4037 ;; 4038 none) break ;; 4039 esac 4040 if depmode=$depmode \ 4041 source=sub/conftest.c object=$am__obj \ 4042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4044 >/dev/null 2>conftest.err && 4045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4049 # icc doesn't choke on unknown options, it will just issue warnings 4050 # or remarks (even with -Werror). So we grep stderr for any message 4051 # that says an option was ignored or not supported. 4052 # When given -MP, icc 7.0 and 7.1 complain thusly: 4053 # icc: Command line warning: ignoring option '-M'; no argument required 4054 # The diagnosis changed in icc 8.0: 4055 # icc: Command line remark: option '-MP' not supported 4056 if (grep 'ignoring option' conftest.err || 4057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4058 am_cv_CC_dependencies_compiler_type=$depmode 4059 break 4060 fi 4061 fi 4062 done 4063 4064 cd .. 4065 rm -rf conftest.dir 4066else 4067 am_cv_CC_dependencies_compiler_type=none 4068fi 4069 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4072$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4073CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4074 4075 if 4076 test "x$enable_dependency_tracking" != xno \ 4077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4078 am__fastdepCC_TRUE= 4079 am__fastdepCC_FALSE='#' 4080else 4081 am__fastdepCC_TRUE='#' 4082 am__fastdepCC_FALSE= 4083fi 4084 4085 4086 4087ac_ext=c 4088ac_cpp='$CPP $CPPFLAGS' 4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4091ac_compiler_gnu=$ac_cv_c_compiler_gnu 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4093$as_echo_n "checking how to run the C preprocessor... " >&6; } 4094# On Suns, sometimes $CPP names a directory. 4095if test -n "$CPP" && test -d "$CPP"; then 4096 CPP= 4097fi 4098if test -z "$CPP"; then 4099 if ${ac_cv_prog_CPP+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 # Double quotes because CPP needs to be expanded 4103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4104 do 4105 ac_preproc_ok=false 4106for ac_c_preproc_warn_flag in '' yes 4107do 4108 # Use a header file that comes with gcc, so configuring glibc 4109 # with a fresh cross-compiler works. 4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4111 # <limits.h> exists even on freestanding compilers. 4112 # On the NeXT, cc -E runs the code through the compiler's parser, 4113 # not just through cpp. "Syntax error" is here to catch this case. 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116#ifdef __STDC__ 4117# include <limits.h> 4118#else 4119# include <assert.h> 4120#endif 4121 Syntax error 4122_ACEOF 4123if ac_fn_c_try_cpp "$LINENO"; then : 4124 4125else 4126 # Broken: fails on valid input. 4127continue 4128fi 4129rm -f conftest.err conftest.i conftest.$ac_ext 4130 4131 # OK, works on sane cases. Now check whether nonexistent headers 4132 # can be detected and how. 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135#include <ac_nonexistent.h> 4136_ACEOF 4137if ac_fn_c_try_cpp "$LINENO"; then : 4138 # Broken: success on invalid input. 4139continue 4140else 4141 # Passes both tests. 4142ac_preproc_ok=: 4143break 4144fi 4145rm -f conftest.err conftest.i conftest.$ac_ext 4146 4147done 4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4149rm -f conftest.i conftest.err conftest.$ac_ext 4150if $ac_preproc_ok; then : 4151 break 4152fi 4153 4154 done 4155 ac_cv_prog_CPP=$CPP 4156 4157fi 4158 CPP=$ac_cv_prog_CPP 4159else 4160 ac_cv_prog_CPP=$CPP 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4163$as_echo "$CPP" >&6; } 4164ac_preproc_ok=false 4165for ac_c_preproc_warn_flag in '' yes 4166do 4167 # Use a header file that comes with gcc, so configuring glibc 4168 # with a fresh cross-compiler works. 4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4170 # <limits.h> exists even on freestanding compilers. 4171 # On the NeXT, cc -E runs the code through the compiler's parser, 4172 # not just through cpp. "Syntax error" is here to catch this case. 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175#ifdef __STDC__ 4176# include <limits.h> 4177#else 4178# include <assert.h> 4179#endif 4180 Syntax error 4181_ACEOF 4182if ac_fn_c_try_cpp "$LINENO"; then : 4183 4184else 4185 # Broken: fails on valid input. 4186continue 4187fi 4188rm -f conftest.err conftest.i conftest.$ac_ext 4189 4190 # OK, works on sane cases. Now check whether nonexistent headers 4191 # can be detected and how. 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194#include <ac_nonexistent.h> 4195_ACEOF 4196if ac_fn_c_try_cpp "$LINENO"; then : 4197 # Broken: success on invalid input. 4198continue 4199else 4200 # Passes both tests. 4201ac_preproc_ok=: 4202break 4203fi 4204rm -f conftest.err conftest.i conftest.$ac_ext 4205 4206done 4207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4208rm -f conftest.i conftest.err conftest.$ac_ext 4209if $ac_preproc_ok; then : 4210 4211else 4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4215See \`config.log' for more details" "$LINENO" 5; } 4216fi 4217 4218ac_ext=c 4219ac_cpp='$CPP $CPPFLAGS' 4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4222ac_compiler_gnu=$ac_cv_c_compiler_gnu 4223 4224 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4226$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4227if ${ac_cv_path_GREP+:} false; then : 4228 $as_echo_n "(cached) " >&6 4229else 4230 if test -z "$GREP"; then 4231 ac_path_GREP_found=false 4232 # Loop through the user's path and test for each of PROGNAME-LIST 4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4234for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4235do 4236 IFS=$as_save_IFS 4237 test -z "$as_dir" && as_dir=. 4238 for ac_prog in grep ggrep; do 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4241 as_fn_executable_p "$ac_path_GREP" || continue 4242# Check for GNU ac_path_GREP and select it if it is found. 4243 # Check for GNU $ac_path_GREP 4244case `"$ac_path_GREP" --version 2>&1` in 4245*GNU*) 4246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4247*) 4248 ac_count=0 4249 $as_echo_n 0123456789 >"conftest.in" 4250 while : 4251 do 4252 cat "conftest.in" "conftest.in" >"conftest.tmp" 4253 mv "conftest.tmp" "conftest.in" 4254 cp "conftest.in" "conftest.nl" 4255 $as_echo 'GREP' >> "conftest.nl" 4256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4258 as_fn_arith $ac_count + 1 && ac_count=$as_val 4259 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4260 # Best one so far, save it but keep looking for a better one 4261 ac_cv_path_GREP="$ac_path_GREP" 4262 ac_path_GREP_max=$ac_count 4263 fi 4264 # 10*(2^10) chars as input seems more than enough 4265 test $ac_count -gt 10 && break 4266 done 4267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4268esac 4269 4270 $ac_path_GREP_found && break 3 4271 done 4272 done 4273 done 4274IFS=$as_save_IFS 4275 if test -z "$ac_cv_path_GREP"; then 4276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4277 fi 4278else 4279 ac_cv_path_GREP=$GREP 4280fi 4281 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4284$as_echo "$ac_cv_path_GREP" >&6; } 4285 GREP="$ac_cv_path_GREP" 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4289$as_echo_n "checking for egrep... " >&6; } 4290if ${ac_cv_path_EGREP+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4294 then ac_cv_path_EGREP="$GREP -E" 4295 else 4296 if test -z "$EGREP"; then 4297 ac_path_EGREP_found=false 4298 # Loop through the user's path and test for each of PROGNAME-LIST 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4301do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_prog in egrep; do 4305 for ac_exec_ext in '' $ac_executable_extensions; do 4306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4307 as_fn_executable_p "$ac_path_EGREP" || continue 4308# Check for GNU ac_path_EGREP and select it if it is found. 4309 # Check for GNU $ac_path_EGREP 4310case `"$ac_path_EGREP" --version 2>&1` in 4311*GNU*) 4312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4313*) 4314 ac_count=0 4315 $as_echo_n 0123456789 >"conftest.in" 4316 while : 4317 do 4318 cat "conftest.in" "conftest.in" >"conftest.tmp" 4319 mv "conftest.tmp" "conftest.in" 4320 cp "conftest.in" "conftest.nl" 4321 $as_echo 'EGREP' >> "conftest.nl" 4322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4324 as_fn_arith $ac_count + 1 && ac_count=$as_val 4325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4326 # Best one so far, save it but keep looking for a better one 4327 ac_cv_path_EGREP="$ac_path_EGREP" 4328 ac_path_EGREP_max=$ac_count 4329 fi 4330 # 10*(2^10) chars as input seems more than enough 4331 test $ac_count -gt 10 && break 4332 done 4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4334esac 4335 4336 $ac_path_EGREP_found && break 3 4337 done 4338 done 4339 done 4340IFS=$as_save_IFS 4341 if test -z "$ac_cv_path_EGREP"; then 4342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4343 fi 4344else 4345 ac_cv_path_EGREP=$EGREP 4346fi 4347 4348 fi 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4351$as_echo "$ac_cv_path_EGREP" >&6; } 4352 EGREP="$ac_cv_path_EGREP" 4353 4354 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4356$as_echo_n "checking for ANSI C header files... " >&6; } 4357if ${ac_cv_header_stdc+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <stdlib.h> 4363#include <stdarg.h> 4364#include <string.h> 4365#include <float.h> 4366 4367int 4368main () 4369{ 4370 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375if ac_fn_c_try_compile "$LINENO"; then : 4376 ac_cv_header_stdc=yes 4377else 4378 ac_cv_header_stdc=no 4379fi 4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4381 4382if test $ac_cv_header_stdc = yes; then 4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386#include <string.h> 4387 4388_ACEOF 4389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4390 $EGREP "memchr" >/dev/null 2>&1; then : 4391 4392else 4393 ac_cv_header_stdc=no 4394fi 4395rm -f conftest* 4396 4397fi 4398 4399if test $ac_cv_header_stdc = yes; then 4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403#include <stdlib.h> 4404 4405_ACEOF 4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4407 $EGREP "free" >/dev/null 2>&1; then : 4408 4409else 4410 ac_cv_header_stdc=no 4411fi 4412rm -f conftest* 4413 4414fi 4415 4416if test $ac_cv_header_stdc = yes; then 4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4418 if test "$cross_compiling" = yes; then : 4419 : 4420else 4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422/* end confdefs.h. */ 4423#include <ctype.h> 4424#include <stdlib.h> 4425#if ((' ' & 0x0FF) == 0x020) 4426# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4427# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4428#else 4429# define ISLOWER(c) \ 4430 (('a' <= (c) && (c) <= 'i') \ 4431 || ('j' <= (c) && (c) <= 'r') \ 4432 || ('s' <= (c) && (c) <= 'z')) 4433# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4434#endif 4435 4436#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4437int 4438main () 4439{ 4440 int i; 4441 for (i = 0; i < 256; i++) 4442 if (XOR (islower (i), ISLOWER (i)) 4443 || toupper (i) != TOUPPER (i)) 4444 return 2; 4445 return 0; 4446} 4447_ACEOF 4448if ac_fn_c_try_run "$LINENO"; then : 4449 4450else 4451 ac_cv_header_stdc=no 4452fi 4453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4454 conftest.$ac_objext conftest.beam conftest.$ac_ext 4455fi 4456 4457fi 4458fi 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4460$as_echo "$ac_cv_header_stdc" >&6; } 4461if test $ac_cv_header_stdc = yes; then 4462 4463$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4464 4465fi 4466 4467# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4468for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4469 inttypes.h stdint.h unistd.h 4470do : 4471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4472ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4473" 4474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4475 cat >>confdefs.h <<_ACEOF 4476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4477_ACEOF 4478 4479fi 4480 4481done 4482 4483 4484 4485 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4486if test "x$ac_cv_header_minix_config_h" = xyes; then : 4487 MINIX=yes 4488else 4489 MINIX= 4490fi 4491 4492 4493 if test "$MINIX" = yes; then 4494 4495$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4496 4497 4498$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4499 4500 4501$as_echo "#define _MINIX 1" >>confdefs.h 4502 4503 fi 4504 4505 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4507$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4508if ${ac_cv_safe_to_define___extensions__+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4512/* end confdefs.h. */ 4513 4514# define __EXTENSIONS__ 1 4515 $ac_includes_default 4516int 4517main () 4518{ 4519 4520 ; 4521 return 0; 4522} 4523_ACEOF 4524if ac_fn_c_try_compile "$LINENO"; then : 4525 ac_cv_safe_to_define___extensions__=yes 4526else 4527 ac_cv_safe_to_define___extensions__=no 4528fi 4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4530fi 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4532$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4533 test $ac_cv_safe_to_define___extensions__ = yes && 4534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4535 4536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4537 4538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4539 4540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4541 4542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4543 4544 4545 4546# Initialize libtool 4547case `pwd` in 4548 *\ * | *\ *) 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4550$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4551esac 4552 4553 4554 4555macro_version='2.4.2' 4556macro_revision='1.3337' 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570ltmain="$ac_aux_dir/ltmain.sh" 4571 4572# Make sure we can run config.sub. 4573$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4575 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4577$as_echo_n "checking build system type... " >&6; } 4578if ${ac_cv_build+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 ac_build_alias=$build_alias 4582test "x$ac_build_alias" = x && 4583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4584test "x$ac_build_alias" = x && 4585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4586ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4588 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4591$as_echo "$ac_cv_build" >&6; } 4592case $ac_cv_build in 4593*-*-*) ;; 4594*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4595esac 4596build=$ac_cv_build 4597ac_save_IFS=$IFS; IFS='-' 4598set x $ac_cv_build 4599shift 4600build_cpu=$1 4601build_vendor=$2 4602shift; shift 4603# Remember, the first character of IFS is used to create $*, 4604# except with old shells: 4605build_os=$* 4606IFS=$ac_save_IFS 4607case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4608 4609 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4611$as_echo_n "checking host system type... " >&6; } 4612if ${ac_cv_host+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 if test "x$host_alias" = x; then 4616 ac_cv_host=$ac_cv_build 4617else 4618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4620fi 4621 4622fi 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4624$as_echo "$ac_cv_host" >&6; } 4625case $ac_cv_host in 4626*-*-*) ;; 4627*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4628esac 4629host=$ac_cv_host 4630ac_save_IFS=$IFS; IFS='-' 4631set x $ac_cv_host 4632shift 4633host_cpu=$1 4634host_vendor=$2 4635shift; shift 4636# Remember, the first character of IFS is used to create $*, 4637# except with old shells: 4638host_os=$* 4639IFS=$ac_save_IFS 4640case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4641 4642 4643# Backslashify metacharacters that are still active within 4644# double-quoted strings. 4645sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4646 4647# Same as above, but do not quote variable references. 4648double_quote_subst='s/\(["`\\]\)/\\\1/g' 4649 4650# Sed substitution to delay expansion of an escaped shell variable in a 4651# double_quote_subst'ed string. 4652delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4653 4654# Sed substitution to delay expansion of an escaped single quote. 4655delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4656 4657# Sed substitution to avoid accidental globbing in evaled expressions 4658no_glob_subst='s/\*/\\\*/g' 4659 4660ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4661ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4662ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4663 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4665$as_echo_n "checking how to print strings... " >&6; } 4666# Test print first, because it will be a builtin if present. 4667if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4669 ECHO='print -r --' 4670elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4671 ECHO='printf %s\n' 4672else 4673 # Use this function as a fallback that always works. 4674 func_fallback_echo () 4675 { 4676 eval 'cat <<_LTECHO_EOF 4677$1 4678_LTECHO_EOF' 4679 } 4680 ECHO='func_fallback_echo' 4681fi 4682 4683# func_echo_all arg... 4684# Invoke $ECHO with all args, space-separated. 4685func_echo_all () 4686{ 4687 $ECHO "" 4688} 4689 4690case "$ECHO" in 4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4692$as_echo "printf" >&6; } ;; 4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4694$as_echo "print -r" >&6; } ;; 4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4696$as_echo "cat" >&6; } ;; 4697esac 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4713$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4714if ${ac_cv_path_SED+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4718 for ac_i in 1 2 3 4 5 6 7; do 4719 ac_script="$ac_script$as_nl$ac_script" 4720 done 4721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4722 { ac_script=; unset ac_script;} 4723 if test -z "$SED"; then 4724 ac_path_SED_found=false 4725 # Loop through the user's path and test for each of PROGNAME-LIST 4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4727for as_dir in $PATH 4728do 4729 IFS=$as_save_IFS 4730 test -z "$as_dir" && as_dir=. 4731 for ac_prog in sed gsed; do 4732 for ac_exec_ext in '' $ac_executable_extensions; do 4733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4734 as_fn_executable_p "$ac_path_SED" || continue 4735# Check for GNU ac_path_SED and select it if it is found. 4736 # Check for GNU $ac_path_SED 4737case `"$ac_path_SED" --version 2>&1` in 4738*GNU*) 4739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4740*) 4741 ac_count=0 4742 $as_echo_n 0123456789 >"conftest.in" 4743 while : 4744 do 4745 cat "conftest.in" "conftest.in" >"conftest.tmp" 4746 mv "conftest.tmp" "conftest.in" 4747 cp "conftest.in" "conftest.nl" 4748 $as_echo '' >> "conftest.nl" 4749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4751 as_fn_arith $ac_count + 1 && ac_count=$as_val 4752 if test $ac_count -gt ${ac_path_SED_max-0}; then 4753 # Best one so far, save it but keep looking for a better one 4754 ac_cv_path_SED="$ac_path_SED" 4755 ac_path_SED_max=$ac_count 4756 fi 4757 # 10*(2^10) chars as input seems more than enough 4758 test $ac_count -gt 10 && break 4759 done 4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4761esac 4762 4763 $ac_path_SED_found && break 3 4764 done 4765 done 4766 done 4767IFS=$as_save_IFS 4768 if test -z "$ac_cv_path_SED"; then 4769 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4770 fi 4771else 4772 ac_cv_path_SED=$SED 4773fi 4774 4775fi 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4777$as_echo "$ac_cv_path_SED" >&6; } 4778 SED="$ac_cv_path_SED" 4779 rm -f conftest.sed 4780 4781test -z "$SED" && SED=sed 4782Xsed="$SED -e 1s/^X//" 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4795$as_echo_n "checking for fgrep... " >&6; } 4796if ${ac_cv_path_FGREP+:} false; then : 4797 $as_echo_n "(cached) " >&6 4798else 4799 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4800 then ac_cv_path_FGREP="$GREP -F" 4801 else 4802 if test -z "$FGREP"; then 4803 ac_path_FGREP_found=false 4804 # Loop through the user's path and test for each of PROGNAME-LIST 4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4807do 4808 IFS=$as_save_IFS 4809 test -z "$as_dir" && as_dir=. 4810 for ac_prog in fgrep; do 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4813 as_fn_executable_p "$ac_path_FGREP" || continue 4814# Check for GNU ac_path_FGREP and select it if it is found. 4815 # Check for GNU $ac_path_FGREP 4816case `"$ac_path_FGREP" --version 2>&1` in 4817*GNU*) 4818 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4819*) 4820 ac_count=0 4821 $as_echo_n 0123456789 >"conftest.in" 4822 while : 4823 do 4824 cat "conftest.in" "conftest.in" >"conftest.tmp" 4825 mv "conftest.tmp" "conftest.in" 4826 cp "conftest.in" "conftest.nl" 4827 $as_echo 'FGREP' >> "conftest.nl" 4828 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4830 as_fn_arith $ac_count + 1 && ac_count=$as_val 4831 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4832 # Best one so far, save it but keep looking for a better one 4833 ac_cv_path_FGREP="$ac_path_FGREP" 4834 ac_path_FGREP_max=$ac_count 4835 fi 4836 # 10*(2^10) chars as input seems more than enough 4837 test $ac_count -gt 10 && break 4838 done 4839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4840esac 4841 4842 $ac_path_FGREP_found && break 3 4843 done 4844 done 4845 done 4846IFS=$as_save_IFS 4847 if test -z "$ac_cv_path_FGREP"; then 4848 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4849 fi 4850else 4851 ac_cv_path_FGREP=$FGREP 4852fi 4853 4854 fi 4855fi 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4857$as_echo "$ac_cv_path_FGREP" >&6; } 4858 FGREP="$ac_cv_path_FGREP" 4859 4860 4861test -z "$GREP" && GREP=grep 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881# Check whether --with-gnu-ld was given. 4882if test "${with_gnu_ld+set}" = set; then : 4883 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4884else 4885 with_gnu_ld=no 4886fi 4887 4888ac_prog=ld 4889if test "$GCC" = yes; then 4890 # Check if gcc -print-prog-name=ld gives a path. 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4892$as_echo_n "checking for ld used by $CC... " >&6; } 4893 case $host in 4894 *-*-mingw*) 4895 # gcc leaves a trailing carriage return which upsets mingw 4896 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4897 *) 4898 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4899 esac 4900 case $ac_prog in 4901 # Accept absolute paths. 4902 [\\/]* | ?:[\\/]*) 4903 re_direlt='/[^/][^/]*/\.\./' 4904 # Canonicalize the pathname of ld 4905 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4906 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4907 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4908 done 4909 test -z "$LD" && LD="$ac_prog" 4910 ;; 4911 "") 4912 # If it fails, then pretend we aren't using GCC. 4913 ac_prog=ld 4914 ;; 4915 *) 4916 # If it is relative, then search for the first ld in PATH. 4917 with_gnu_ld=unknown 4918 ;; 4919 esac 4920elif test "$with_gnu_ld" = yes; then 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4922$as_echo_n "checking for GNU ld... " >&6; } 4923else 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4925$as_echo_n "checking for non-GNU ld... " >&6; } 4926fi 4927if ${lt_cv_path_LD+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 if test -z "$LD"; then 4931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4932 for ac_dir in $PATH; do 4933 IFS="$lt_save_ifs" 4934 test -z "$ac_dir" && ac_dir=. 4935 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4936 lt_cv_path_LD="$ac_dir/$ac_prog" 4937 # Check to see if the program is GNU ld. I'd rather use --version, 4938 # but apparently some variants of GNU ld only accept -v. 4939 # Break only if it was the GNU/non-GNU ld that we prefer. 4940 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4941 *GNU* | *'with BFD'*) 4942 test "$with_gnu_ld" != no && break 4943 ;; 4944 *) 4945 test "$with_gnu_ld" != yes && break 4946 ;; 4947 esac 4948 fi 4949 done 4950 IFS="$lt_save_ifs" 4951else 4952 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4953fi 4954fi 4955 4956LD="$lt_cv_path_LD" 4957if test -n "$LD"; then 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4959$as_echo "$LD" >&6; } 4960else 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4962$as_echo "no" >&6; } 4963fi 4964test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4966$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4967if ${lt_cv_prog_gnu_ld+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969else 4970 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4971case `$LD -v 2>&1 </dev/null` in 4972*GNU* | *'with BFD'*) 4973 lt_cv_prog_gnu_ld=yes 4974 ;; 4975*) 4976 lt_cv_prog_gnu_ld=no 4977 ;; 4978esac 4979fi 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4981$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4982with_gnu_ld=$lt_cv_prog_gnu_ld 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4993$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4994if ${lt_cv_path_NM+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -n "$NM"; then 4998 # Let the user override the test. 4999 lt_cv_path_NM="$NM" 5000else 5001 lt_nm_to_check="${ac_tool_prefix}nm" 5002 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5003 lt_nm_to_check="$lt_nm_to_check nm" 5004 fi 5005 for lt_tmp_nm in $lt_nm_to_check; do 5006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5007 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5008 IFS="$lt_save_ifs" 5009 test -z "$ac_dir" && ac_dir=. 5010 tmp_nm="$ac_dir/$lt_tmp_nm" 5011 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5012 # Check to see if the nm accepts a BSD-compat flag. 5013 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5014 # nm: unknown option "B" ignored 5015 # Tru64's nm complains that /dev/null is an invalid object file 5016 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5017 */dev/null* | *'Invalid file or object type'*) 5018 lt_cv_path_NM="$tmp_nm -B" 5019 break 5020 ;; 5021 *) 5022 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5023 */dev/null*) 5024 lt_cv_path_NM="$tmp_nm -p" 5025 break 5026 ;; 5027 *) 5028 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5029 continue # so that we can try to find one that supports BSD flags 5030 ;; 5031 esac 5032 ;; 5033 esac 5034 fi 5035 done 5036 IFS="$lt_save_ifs" 5037 done 5038 : ${lt_cv_path_NM=no} 5039fi 5040fi 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5042$as_echo "$lt_cv_path_NM" >&6; } 5043if test "$lt_cv_path_NM" != "no"; then 5044 NM="$lt_cv_path_NM" 5045else 5046 # Didn't find any BSD compatible name lister, look for dumpbin. 5047 if test -n "$DUMPBIN"; then : 5048 # Let the user override the test. 5049 else 5050 if test -n "$ac_tool_prefix"; then 5051 for ac_prog in dumpbin "link -dump" 5052 do 5053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5056$as_echo_n "checking for $ac_word... " >&6; } 5057if ${ac_cv_prog_DUMPBIN+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 if test -n "$DUMPBIN"; then 5061 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5062else 5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064for as_dir in $PATH 5065do 5066 IFS=$as_save_IFS 5067 test -z "$as_dir" && as_dir=. 5068 for ac_exec_ext in '' $ac_executable_extensions; do 5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5070 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5072 break 2 5073 fi 5074done 5075 done 5076IFS=$as_save_IFS 5077 5078fi 5079fi 5080DUMPBIN=$ac_cv_prog_DUMPBIN 5081if test -n "$DUMPBIN"; then 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5083$as_echo "$DUMPBIN" >&6; } 5084else 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5086$as_echo "no" >&6; } 5087fi 5088 5089 5090 test -n "$DUMPBIN" && break 5091 done 5092fi 5093if test -z "$DUMPBIN"; then 5094 ac_ct_DUMPBIN=$DUMPBIN 5095 for ac_prog in dumpbin "link -dump" 5096do 5097 # Extract the first word of "$ac_prog", so it can be a program name with args. 5098set dummy $ac_prog; ac_word=$2 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5100$as_echo_n "checking for $ac_word... " >&6; } 5101if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103else 5104 if test -n "$ac_ct_DUMPBIN"; then 5105 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5106else 5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5108for as_dir in $PATH 5109do 5110 IFS=$as_save_IFS 5111 test -z "$as_dir" && as_dir=. 5112 for ac_exec_ext in '' $ac_executable_extensions; do 5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5114 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5116 break 2 5117 fi 5118done 5119 done 5120IFS=$as_save_IFS 5121 5122fi 5123fi 5124ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5125if test -n "$ac_ct_DUMPBIN"; then 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5127$as_echo "$ac_ct_DUMPBIN" >&6; } 5128else 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130$as_echo "no" >&6; } 5131fi 5132 5133 5134 test -n "$ac_ct_DUMPBIN" && break 5135done 5136 5137 if test "x$ac_ct_DUMPBIN" = x; then 5138 DUMPBIN=":" 5139 else 5140 case $cross_compiling:$ac_tool_warned in 5141yes:) 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5144ac_tool_warned=yes ;; 5145esac 5146 DUMPBIN=$ac_ct_DUMPBIN 5147 fi 5148fi 5149 5150 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5151 *COFF*) 5152 DUMPBIN="$DUMPBIN -symbols" 5153 ;; 5154 *) 5155 DUMPBIN=: 5156 ;; 5157 esac 5158 fi 5159 5160 if test "$DUMPBIN" != ":"; then 5161 NM="$DUMPBIN" 5162 fi 5163fi 5164test -z "$NM" && NM=nm 5165 5166 5167 5168 5169 5170 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5172$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5173if ${lt_cv_nm_interface+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 lt_cv_nm_interface="BSD nm" 5177 echo "int some_variable = 0;" > conftest.$ac_ext 5178 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5179 (eval "$ac_compile" 2>conftest.err) 5180 cat conftest.err >&5 5181 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5182 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5183 cat conftest.err >&5 5184 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5185 cat conftest.out >&5 5186 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5187 lt_cv_nm_interface="MS dumpbin" 5188 fi 5189 rm -f conftest* 5190fi 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5192$as_echo "$lt_cv_nm_interface" >&6; } 5193 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5195$as_echo_n "checking whether ln -s works... " >&6; } 5196LN_S=$as_ln_s 5197if test "$LN_S" = "ln -s"; then 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5199$as_echo "yes" >&6; } 5200else 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5202$as_echo "no, using $LN_S" >&6; } 5203fi 5204 5205# find the maximum length of command line arguments 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5207$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5208if ${lt_cv_sys_max_cmd_len+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 i=0 5212 teststring="ABCD" 5213 5214 case $build_os in 5215 msdosdjgpp*) 5216 # On DJGPP, this test can blow up pretty badly due to problems in libc 5217 # (any single argument exceeding 2000 bytes causes a buffer overrun 5218 # during glob expansion). Even if it were fixed, the result of this 5219 # check would be larger than it should be. 5220 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5221 ;; 5222 5223 gnu*) 5224 # Under GNU Hurd, this test is not required because there is 5225 # no limit to the length of command line arguments. 5226 # Libtool will interpret -1 as no limit whatsoever 5227 lt_cv_sys_max_cmd_len=-1; 5228 ;; 5229 5230 cygwin* | mingw* | cegcc*) 5231 # On Win9x/ME, this test blows up -- it succeeds, but takes 5232 # about 5 minutes as the teststring grows exponentially. 5233 # Worse, since 9x/ME are not pre-emptively multitasking, 5234 # you end up with a "frozen" computer, even though with patience 5235 # the test eventually succeeds (with a max line length of 256k). 5236 # Instead, let's just punt: use the minimum linelength reported by 5237 # all of the supported platforms: 8192 (on NT/2K/XP). 5238 lt_cv_sys_max_cmd_len=8192; 5239 ;; 5240 5241 mint*) 5242 # On MiNT this can take a long time and run out of memory. 5243 lt_cv_sys_max_cmd_len=8192; 5244 ;; 5245 5246 amigaos*) 5247 # On AmigaOS with pdksh, this test takes hours, literally. 5248 # So we just punt and use a minimum line length of 8192. 5249 lt_cv_sys_max_cmd_len=8192; 5250 ;; 5251 5252 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5253 # This has been around since 386BSD, at least. Likely further. 5254 if test -x /sbin/sysctl; then 5255 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5256 elif test -x /usr/sbin/sysctl; then 5257 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5258 else 5259 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5260 fi 5261 # And add a safety zone 5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5264 ;; 5265 5266 interix*) 5267 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5268 lt_cv_sys_max_cmd_len=196608 5269 ;; 5270 5271 os2*) 5272 # The test takes a long time on OS/2. 5273 lt_cv_sys_max_cmd_len=8192 5274 ;; 5275 5276 osf*) 5277 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5278 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5279 # nice to cause kernel panics so lets avoid the loop below. 5280 # First set a reasonable default. 5281 lt_cv_sys_max_cmd_len=16384 5282 # 5283 if test -x /sbin/sysconfig; then 5284 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5285 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5286 esac 5287 fi 5288 ;; 5289 sco3.2v5*) 5290 lt_cv_sys_max_cmd_len=102400 5291 ;; 5292 sysv5* | sco5v6* | sysv4.2uw2*) 5293 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5294 if test -n "$kargmax"; then 5295 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5296 else 5297 lt_cv_sys_max_cmd_len=32768 5298 fi 5299 ;; 5300 *) 5301 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5302 if test -n "$lt_cv_sys_max_cmd_len"; then 5303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5305 else 5306 # Make teststring a little bigger before we do anything with it. 5307 # a 1K string should be a reasonable start. 5308 for i in 1 2 3 4 5 6 7 8 ; do 5309 teststring=$teststring$teststring 5310 done 5311 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5312 # If test is not a shell built-in, we'll probably end up computing a 5313 # maximum length that is only half of the actual maximum length, but 5314 # we can't tell. 5315 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5316 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5317 test $i != 17 # 1/2 MB should be enough 5318 do 5319 i=`expr $i + 1` 5320 teststring=$teststring$teststring 5321 done 5322 # Only check the string length outside the loop. 5323 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5324 teststring= 5325 # Add a significant safety factor because C++ compilers can tack on 5326 # massive amounts of additional arguments before passing them to the 5327 # linker. It appears as though 1/2 is a usable value. 5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5329 fi 5330 ;; 5331 esac 5332 5333fi 5334 5335if test -n $lt_cv_sys_max_cmd_len ; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5337$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5338else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5340$as_echo "none" >&6; } 5341fi 5342max_cmd_len=$lt_cv_sys_max_cmd_len 5343 5344 5345 5346 5347 5348 5349: ${CP="cp -f"} 5350: ${MV="mv -f"} 5351: ${RM="rm -f"} 5352 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5354$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5355# Try some XSI features 5356xsi_shell=no 5357( _lt_dummy="a/b/c" 5358 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5359 = c,a/b,b/c, \ 5360 && eval 'test $(( 1 + 1 )) -eq 2 \ 5361 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5362 && xsi_shell=yes 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5364$as_echo "$xsi_shell" >&6; } 5365 5366 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5368$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5369lt_shell_append=no 5370( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5371 >/dev/null 2>&1 \ 5372 && lt_shell_append=yes 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5374$as_echo "$lt_shell_append" >&6; } 5375 5376 5377if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5378 lt_unset=unset 5379else 5380 lt_unset=false 5381fi 5382 5383 5384 5385 5386 5387# test EBCDIC or ASCII 5388case `echo X|tr X '\101'` in 5389 A) # ASCII based system 5390 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5391 lt_SP2NL='tr \040 \012' 5392 lt_NL2SP='tr \015\012 \040\040' 5393 ;; 5394 *) # EBCDIC based system 5395 lt_SP2NL='tr \100 \n' 5396 lt_NL2SP='tr \r\n \100\100' 5397 ;; 5398esac 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5409$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5410if ${lt_cv_to_host_file_cmd+:} false; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 case $host in 5414 *-*-mingw* ) 5415 case $build in 5416 *-*-mingw* ) # actually msys 5417 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5418 ;; 5419 *-*-cygwin* ) 5420 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5421 ;; 5422 * ) # otherwise, assume *nix 5423 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5424 ;; 5425 esac 5426 ;; 5427 *-*-cygwin* ) 5428 case $build in 5429 *-*-mingw* ) # actually msys 5430 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5431 ;; 5432 *-*-cygwin* ) 5433 lt_cv_to_host_file_cmd=func_convert_file_noop 5434 ;; 5435 * ) # otherwise, assume *nix 5436 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5437 ;; 5438 esac 5439 ;; 5440 * ) # unhandled hosts (and "normal" native builds) 5441 lt_cv_to_host_file_cmd=func_convert_file_noop 5442 ;; 5443esac 5444 5445fi 5446 5447to_host_file_cmd=$lt_cv_to_host_file_cmd 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5449$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5450 5451 5452 5453 5454 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5456$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5457if ${lt_cv_to_tool_file_cmd+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 #assume ordinary cross tools, or native build. 5461lt_cv_to_tool_file_cmd=func_convert_file_noop 5462case $host in 5463 *-*-mingw* ) 5464 case $build in 5465 *-*-mingw* ) # actually msys 5466 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5467 ;; 5468 esac 5469 ;; 5470esac 5471 5472fi 5473 5474to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5476$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5477 5478 5479 5480 5481 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5483$as_echo_n "checking for $LD option to reload object files... " >&6; } 5484if ${lt_cv_ld_reload_flag+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 lt_cv_ld_reload_flag='-r' 5488fi 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5490$as_echo "$lt_cv_ld_reload_flag" >&6; } 5491reload_flag=$lt_cv_ld_reload_flag 5492case $reload_flag in 5493"" | " "*) ;; 5494*) reload_flag=" $reload_flag" ;; 5495esac 5496reload_cmds='$LD$reload_flag -o $output$reload_objs' 5497case $host_os in 5498 cygwin* | mingw* | pw32* | cegcc*) 5499 if test "$GCC" != yes; then 5500 reload_cmds=false 5501 fi 5502 ;; 5503 darwin*) 5504 if test "$GCC" = yes; then 5505 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5506 else 5507 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5508 fi 5509 ;; 5510esac 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520if test -n "$ac_tool_prefix"; then 5521 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5522set dummy ${ac_tool_prefix}objdump; ac_word=$2 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5524$as_echo_n "checking for $ac_word... " >&6; } 5525if ${ac_cv_prog_OBJDUMP+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527else 5528 if test -n "$OBJDUMP"; then 5529 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5530else 5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532for as_dir in $PATH 5533do 5534 IFS=$as_save_IFS 5535 test -z "$as_dir" && as_dir=. 5536 for ac_exec_ext in '' $ac_executable_extensions; do 5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5538 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5540 break 2 5541 fi 5542done 5543 done 5544IFS=$as_save_IFS 5545 5546fi 5547fi 5548OBJDUMP=$ac_cv_prog_OBJDUMP 5549if test -n "$OBJDUMP"; then 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5551$as_echo "$OBJDUMP" >&6; } 5552else 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5554$as_echo "no" >&6; } 5555fi 5556 5557 5558fi 5559if test -z "$ac_cv_prog_OBJDUMP"; then 5560 ac_ct_OBJDUMP=$OBJDUMP 5561 # Extract the first word of "objdump", so it can be a program name with args. 5562set dummy objdump; ac_word=$2 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5564$as_echo_n "checking for $ac_word... " >&6; } 5565if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 if test -n "$ac_ct_OBJDUMP"; then 5569 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5570else 5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5572for as_dir in $PATH 5573do 5574 IFS=$as_save_IFS 5575 test -z "$as_dir" && as_dir=. 5576 for ac_exec_ext in '' $ac_executable_extensions; do 5577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5578 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5580 break 2 5581 fi 5582done 5583 done 5584IFS=$as_save_IFS 5585 5586fi 5587fi 5588ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5589if test -n "$ac_ct_OBJDUMP"; then 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5591$as_echo "$ac_ct_OBJDUMP" >&6; } 5592else 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5594$as_echo "no" >&6; } 5595fi 5596 5597 if test "x$ac_ct_OBJDUMP" = x; then 5598 OBJDUMP="false" 5599 else 5600 case $cross_compiling:$ac_tool_warned in 5601yes:) 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5604ac_tool_warned=yes ;; 5605esac 5606 OBJDUMP=$ac_ct_OBJDUMP 5607 fi 5608else 5609 OBJDUMP="$ac_cv_prog_OBJDUMP" 5610fi 5611 5612test -z "$OBJDUMP" && OBJDUMP=objdump 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5623$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5624if ${lt_cv_deplibs_check_method+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 lt_cv_file_magic_cmd='$MAGIC_CMD' 5628lt_cv_file_magic_test_file= 5629lt_cv_deplibs_check_method='unknown' 5630# Need to set the preceding variable on all platforms that support 5631# interlibrary dependencies. 5632# 'none' -- dependencies not supported. 5633# `unknown' -- same as none, but documents that we really don't know. 5634# 'pass_all' -- all dependencies passed with no checks. 5635# 'test_compile' -- check by making test program. 5636# 'file_magic [[regex]]' -- check by looking for files in library path 5637# which responds to the $file_magic_cmd with a given extended regex. 5638# If you have `file' or equivalent on your system and you're not sure 5639# whether `pass_all' will *always* work, you probably want this one. 5640 5641case $host_os in 5642aix[4-9]*) 5643 lt_cv_deplibs_check_method=pass_all 5644 ;; 5645 5646beos*) 5647 lt_cv_deplibs_check_method=pass_all 5648 ;; 5649 5650bsdi[45]*) 5651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5652 lt_cv_file_magic_cmd='/usr/bin/file -L' 5653 lt_cv_file_magic_test_file=/shlib/libc.so 5654 ;; 5655 5656cygwin*) 5657 # func_win32_libid is a shell function defined in ltmain.sh 5658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5659 lt_cv_file_magic_cmd='func_win32_libid' 5660 ;; 5661 5662mingw* | pw32*) 5663 # Base MSYS/MinGW do not provide the 'file' command needed by 5664 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5665 # unless we find 'file', for example because we are cross-compiling. 5666 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5667 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5668 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5669 lt_cv_file_magic_cmd='func_win32_libid' 5670 else 5671 # Keep this pattern in sync with the one in func_win32_libid. 5672 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5673 lt_cv_file_magic_cmd='$OBJDUMP -f' 5674 fi 5675 ;; 5676 5677cegcc*) 5678 # use the weaker test based on 'objdump'. See mingw*. 5679 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5680 lt_cv_file_magic_cmd='$OBJDUMP -f' 5681 ;; 5682 5683darwin* | rhapsody*) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686 5687freebsd* | dragonfly*) 5688 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5689 case $host_cpu in 5690 i*86 ) 5691 # Not sure whether the presence of OpenBSD here was a mistake. 5692 # Let's accept both of them until this is cleared up. 5693 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5694 lt_cv_file_magic_cmd=/usr/bin/file 5695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5696 ;; 5697 esac 5698 else 5699 lt_cv_deplibs_check_method=pass_all 5700 fi 5701 ;; 5702 5703gnu*) 5704 lt_cv_deplibs_check_method=pass_all 5705 ;; 5706 5707haiku*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711hpux10.20* | hpux11*) 5712 lt_cv_file_magic_cmd=/usr/bin/file 5713 case $host_cpu in 5714 ia64*) 5715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5717 ;; 5718 hppa*64*) 5719 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]' 5720 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5721 ;; 5722 *) 5723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5724 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5725 ;; 5726 esac 5727 ;; 5728 5729interix[3-9]*) 5730 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5732 ;; 5733 5734irix5* | irix6* | nonstopux*) 5735 case $LD in 5736 *-32|*"-32 ") libmagic=32-bit;; 5737 *-n32|*"-n32 ") libmagic=N32;; 5738 *-64|*"-64 ") libmagic=64-bit;; 5739 *) libmagic=never-match;; 5740 esac 5741 lt_cv_deplibs_check_method=pass_all 5742 ;; 5743 5744# This must be glibc/ELF. 5745linux* | k*bsd*-gnu | kopensolaris*-gnu) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748 5749netbsd*) 5750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5752 else 5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5754 fi 5755 ;; 5756 5757newos6*) 5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5759 lt_cv_file_magic_cmd=/usr/bin/file 5760 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5761 ;; 5762 5763*nto* | *qnx*) 5764 lt_cv_deplibs_check_method=pass_all 5765 ;; 5766 5767openbsd*) 5768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5770 else 5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5772 fi 5773 ;; 5774 5775osf3* | osf4* | osf5*) 5776 lt_cv_deplibs_check_method=pass_all 5777 ;; 5778 5779rdos*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783solaris*) 5784 lt_cv_deplibs_check_method=pass_all 5785 ;; 5786 5787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5788 lt_cv_deplibs_check_method=pass_all 5789 ;; 5790 5791sysv4 | sysv4.3*) 5792 case $host_vendor in 5793 motorola) 5794 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]' 5795 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5796 ;; 5797 ncr) 5798 lt_cv_deplibs_check_method=pass_all 5799 ;; 5800 sequent) 5801 lt_cv_file_magic_cmd='/bin/file' 5802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5803 ;; 5804 sni) 5805 lt_cv_file_magic_cmd='/bin/file' 5806 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5807 lt_cv_file_magic_test_file=/lib/libc.so 5808 ;; 5809 siemens) 5810 lt_cv_deplibs_check_method=pass_all 5811 ;; 5812 pc) 5813 lt_cv_deplibs_check_method=pass_all 5814 ;; 5815 esac 5816 ;; 5817 5818tpf*) 5819 lt_cv_deplibs_check_method=pass_all 5820 ;; 5821esac 5822 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5825$as_echo "$lt_cv_deplibs_check_method" >&6; } 5826 5827file_magic_glob= 5828want_nocaseglob=no 5829if test "$build" = "$host"; then 5830 case $host_os in 5831 mingw* | pw32*) 5832 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5833 want_nocaseglob=yes 5834 else 5835 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5836 fi 5837 ;; 5838 esac 5839fi 5840 5841file_magic_cmd=$lt_cv_file_magic_cmd 5842deplibs_check_method=$lt_cv_deplibs_check_method 5843test -z "$deplibs_check_method" && deplibs_check_method=unknown 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866if test -n "$ac_tool_prefix"; then 5867 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5868set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5870$as_echo_n "checking for $ac_word... " >&6; } 5871if ${ac_cv_prog_DLLTOOL+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 if test -n "$DLLTOOL"; then 5875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5876else 5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5878for as_dir in $PATH 5879do 5880 IFS=$as_save_IFS 5881 test -z "$as_dir" && as_dir=. 5882 for ac_exec_ext in '' $ac_executable_extensions; do 5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5884 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5886 break 2 5887 fi 5888done 5889 done 5890IFS=$as_save_IFS 5891 5892fi 5893fi 5894DLLTOOL=$ac_cv_prog_DLLTOOL 5895if test -n "$DLLTOOL"; then 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5897$as_echo "$DLLTOOL" >&6; } 5898else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5900$as_echo "no" >&6; } 5901fi 5902 5903 5904fi 5905if test -z "$ac_cv_prog_DLLTOOL"; then 5906 ac_ct_DLLTOOL=$DLLTOOL 5907 # Extract the first word of "dlltool", so it can be a program name with args. 5908set dummy dlltool; ac_word=$2 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5910$as_echo_n "checking for $ac_word... " >&6; } 5911if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 if test -n "$ac_ct_DLLTOOL"; then 5915 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5916else 5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918for as_dir in $PATH 5919do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5924 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928done 5929 done 5930IFS=$as_save_IFS 5931 5932fi 5933fi 5934ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5935if test -n "$ac_ct_DLLTOOL"; then 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5937$as_echo "$ac_ct_DLLTOOL" >&6; } 5938else 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940$as_echo "no" >&6; } 5941fi 5942 5943 if test "x$ac_ct_DLLTOOL" = x; then 5944 DLLTOOL="false" 5945 else 5946 case $cross_compiling:$ac_tool_warned in 5947yes:) 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5950ac_tool_warned=yes ;; 5951esac 5952 DLLTOOL=$ac_ct_DLLTOOL 5953 fi 5954else 5955 DLLTOOL="$ac_cv_prog_DLLTOOL" 5956fi 5957 5958test -z "$DLLTOOL" && DLLTOOL=dlltool 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5970$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5971if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 lt_cv_sharedlib_from_linklib_cmd='unknown' 5975 5976case $host_os in 5977cygwin* | mingw* | pw32* | cegcc*) 5978 # two different shell functions defined in ltmain.sh 5979 # decide which to use based on capabilities of $DLLTOOL 5980 case `$DLLTOOL --help 2>&1` in 5981 *--identify-strict*) 5982 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5983 ;; 5984 *) 5985 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5986 ;; 5987 esac 5988 ;; 5989*) 5990 # fallback: assume linklib IS sharedlib 5991 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5992 ;; 5993esac 5994 5995fi 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5997$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5998sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5999test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6000 6001 6002 6003 6004 6005 6006 6007if test -n "$ac_tool_prefix"; then 6008 for ac_prog in ar 6009 do 6010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6011set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013$as_echo_n "checking for $ac_word... " >&6; } 6014if ${ac_cv_prog_AR+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 if test -n "$AR"; then 6018 ac_cv_prog_AR="$AR" # Let the user override the test. 6019else 6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6021for as_dir in $PATH 6022do 6023 IFS=$as_save_IFS 6024 test -z "$as_dir" && as_dir=. 6025 for ac_exec_ext in '' $ac_executable_extensions; do 6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6027 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6029 break 2 6030 fi 6031done 6032 done 6033IFS=$as_save_IFS 6034 6035fi 6036fi 6037AR=$ac_cv_prog_AR 6038if test -n "$AR"; then 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6040$as_echo "$AR" >&6; } 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044fi 6045 6046 6047 test -n "$AR" && break 6048 done 6049fi 6050if test -z "$AR"; then 6051 ac_ct_AR=$AR 6052 for ac_prog in ar 6053do 6054 # Extract the first word of "$ac_prog", so it can be a program name with args. 6055set dummy $ac_prog; ac_word=$2 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if ${ac_cv_prog_ac_ct_AR+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$ac_ct_AR"; then 6062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_ac_ct_AR="$ac_prog" 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076 done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081ac_ct_AR=$ac_cv_prog_ac_ct_AR 6082if test -n "$ac_ct_AR"; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6084$as_echo "$ac_ct_AR" >&6; } 6085else 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091 test -n "$ac_ct_AR" && break 6092done 6093 6094 if test "x$ac_ct_AR" = x; then 6095 AR="false" 6096 else 6097 case $cross_compiling:$ac_tool_warned in 6098yes:) 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6101ac_tool_warned=yes ;; 6102esac 6103 AR=$ac_ct_AR 6104 fi 6105fi 6106 6107: ${AR=ar} 6108: ${AR_FLAGS=cru} 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6121$as_echo_n "checking for archiver @FILE support... " >&6; } 6122if ${lt_cv_ar_at_file+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 lt_cv_ar_at_file=no 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128 6129int 6130main () 6131{ 6132 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137if ac_fn_c_try_compile "$LINENO"; then : 6138 echo conftest.$ac_objext > conftest.lst 6139 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6141 (eval $lt_ar_try) 2>&5 6142 ac_status=$? 6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6144 test $ac_status = 0; } 6145 if test "$ac_status" -eq 0; then 6146 # Ensure the archiver fails upon bogus file names. 6147 rm -f conftest.$ac_objext libconftest.a 6148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6149 (eval $lt_ar_try) 2>&5 6150 ac_status=$? 6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6152 test $ac_status = 0; } 6153 if test "$ac_status" -ne 0; then 6154 lt_cv_ar_at_file=@ 6155 fi 6156 fi 6157 rm -f conftest.* libconftest.a 6158 6159fi 6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6161 6162fi 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6164$as_echo "$lt_cv_ar_at_file" >&6; } 6165 6166if test "x$lt_cv_ar_at_file" = xno; then 6167 archiver_list_spec= 6168else 6169 archiver_list_spec=$lt_cv_ar_at_file 6170fi 6171 6172 6173 6174 6175 6176 6177 6178if test -n "$ac_tool_prefix"; then 6179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6180set dummy ${ac_tool_prefix}strip; ac_word=$2 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6182$as_echo_n "checking for $ac_word... " >&6; } 6183if ${ac_cv_prog_STRIP+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 if test -n "$STRIP"; then 6187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6188else 6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6190for as_dir in $PATH 6191do 6192 IFS=$as_save_IFS 6193 test -z "$as_dir" && as_dir=. 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6196 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200done 6201 done 6202IFS=$as_save_IFS 6203 6204fi 6205fi 6206STRIP=$ac_cv_prog_STRIP 6207if test -n "$STRIP"; then 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6209$as_echo "$STRIP" >&6; } 6210else 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6212$as_echo "no" >&6; } 6213fi 6214 6215 6216fi 6217if test -z "$ac_cv_prog_STRIP"; then 6218 ac_ct_STRIP=$STRIP 6219 # Extract the first word of "strip", so it can be a program name with args. 6220set dummy strip; ac_word=$2 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222$as_echo_n "checking for $ac_word... " >&6; } 6223if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 if test -n "$ac_ct_STRIP"; then 6227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6228else 6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_ac_ct_STRIP="strip" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241 done 6242IFS=$as_save_IFS 6243 6244fi 6245fi 6246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6247if test -n "$ac_ct_STRIP"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6249$as_echo "$ac_ct_STRIP" >&6; } 6250else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252$as_echo "no" >&6; } 6253fi 6254 6255 if test "x$ac_ct_STRIP" = x; then 6256 STRIP=":" 6257 else 6258 case $cross_compiling:$ac_tool_warned in 6259yes:) 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6262ac_tool_warned=yes ;; 6263esac 6264 STRIP=$ac_ct_STRIP 6265 fi 6266else 6267 STRIP="$ac_cv_prog_STRIP" 6268fi 6269 6270test -z "$STRIP" && STRIP=: 6271 6272 6273 6274 6275 6276 6277if test -n "$ac_tool_prefix"; then 6278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6279set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if ${ac_cv_prog_RANLIB+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$RANLIB"; then 6286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300 done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305RANLIB=$ac_cv_prog_RANLIB 6306if test -n "$RANLIB"; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6308$as_echo "$RANLIB" >&6; } 6309else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 6315fi 6316if test -z "$ac_cv_prog_RANLIB"; then 6317 ac_ct_RANLIB=$RANLIB 6318 # Extract the first word of "ranlib", so it can be a program name with args. 6319set dummy ranlib; ac_word=$2 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6321$as_echo_n "checking for $ac_word... " >&6; } 6322if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 if test -n "$ac_ct_RANLIB"; then 6326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6327else 6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329for as_dir in $PATH 6330do 6331 IFS=$as_save_IFS 6332 test -z "$as_dir" && as_dir=. 6333 for ac_exec_ext in '' $ac_executable_extensions; do 6334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6335 ac_cv_prog_ac_ct_RANLIB="ranlib" 6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6337 break 2 6338 fi 6339done 6340 done 6341IFS=$as_save_IFS 6342 6343fi 6344fi 6345ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6346if test -n "$ac_ct_RANLIB"; then 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6348$as_echo "$ac_ct_RANLIB" >&6; } 6349else 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6351$as_echo "no" >&6; } 6352fi 6353 6354 if test "x$ac_ct_RANLIB" = x; then 6355 RANLIB=":" 6356 else 6357 case $cross_compiling:$ac_tool_warned in 6358yes:) 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6361ac_tool_warned=yes ;; 6362esac 6363 RANLIB=$ac_ct_RANLIB 6364 fi 6365else 6366 RANLIB="$ac_cv_prog_RANLIB" 6367fi 6368 6369test -z "$RANLIB" && RANLIB=: 6370 6371 6372 6373 6374 6375 6376# Determine commands to create old-style static archives. 6377old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6378old_postinstall_cmds='chmod 644 $oldlib' 6379old_postuninstall_cmds= 6380 6381if test -n "$RANLIB"; then 6382 case $host_os in 6383 openbsd*) 6384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6385 ;; 6386 *) 6387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6388 ;; 6389 esac 6390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6391fi 6392 6393case $host_os in 6394 darwin*) 6395 lock_old_archive_extraction=yes ;; 6396 *) 6397 lock_old_archive_extraction=no ;; 6398esac 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438# If no C compiler was specified, use CC. 6439LTCC=${LTCC-"$CC"} 6440 6441# If no C compiler flags were specified, use CFLAGS. 6442LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6443 6444# Allow CC to be a program name with arguments. 6445compiler=$CC 6446 6447 6448# Check for command to grab the raw symbol name followed by C symbol from nm. 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6450$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6451if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 6455# These are sane defaults that work on at least a few old systems. 6456# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6457 6458# Character class describing NM global symbol codes. 6459symcode='[BCDEGRST]' 6460 6461# Regexp to match symbols that can be accessed directly from C. 6462sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6463 6464# Define system-specific variables. 6465case $host_os in 6466aix*) 6467 symcode='[BCDT]' 6468 ;; 6469cygwin* | mingw* | pw32* | cegcc*) 6470 symcode='[ABCDGISTW]' 6471 ;; 6472hpux*) 6473 if test "$host_cpu" = ia64; then 6474 symcode='[ABCDEGRST]' 6475 fi 6476 ;; 6477irix* | nonstopux*) 6478 symcode='[BCDEGRST]' 6479 ;; 6480osf*) 6481 symcode='[BCDEGQRST]' 6482 ;; 6483solaris*) 6484 symcode='[BDRT]' 6485 ;; 6486sco3.2v5*) 6487 symcode='[DT]' 6488 ;; 6489sysv4.2uw2*) 6490 symcode='[DT]' 6491 ;; 6492sysv5* | sco5v6* | unixware* | OpenUNIX*) 6493 symcode='[ABDT]' 6494 ;; 6495sysv4) 6496 symcode='[DFNSTU]' 6497 ;; 6498esac 6499 6500# If we're using GNU nm, then use its standard symbol codes. 6501case `$NM -V 2>&1` in 6502*GNU* | *'with BFD'*) 6503 symcode='[ABCDGIRSTW]' ;; 6504esac 6505 6506# Transform an extracted symbol line into a proper C declaration. 6507# Some systems (esp. on ia64) link data and code symbols differently, 6508# so use this general approach. 6509lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6510 6511# Transform an extracted symbol line into symbol name and symbol address 6512lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6513lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6514 6515# Handle CRLF in mingw tool chain 6516opt_cr= 6517case $build_os in 6518mingw*) 6519 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6520 ;; 6521esac 6522 6523# Try without a prefix underscore, then with it. 6524for ac_symprfx in "" "_"; do 6525 6526 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6527 symxfrm="\\1 $ac_symprfx\\2 \\2" 6528 6529 # Write the raw and C identifiers. 6530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6531 # Fake it for dumpbin and say T for any non-static function 6532 # and D for any global variable. 6533 # Also find C++ and __fastcall symbols from MSVC++, 6534 # which start with @ or ?. 6535 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6536" {last_section=section; section=\$ 3};"\ 6537" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6538" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6539" \$ 0!~/External *\|/{next};"\ 6540" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6541" {if(hide[section]) next};"\ 6542" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6543" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6544" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6545" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6546" ' prfx=^$ac_symprfx" 6547 else 6548 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6549 fi 6550 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6551 6552 # Check to see that the pipe works correctly. 6553 pipe_works=no 6554 6555 rm -f conftest* 6556 cat > conftest.$ac_ext <<_LT_EOF 6557#ifdef __cplusplus 6558extern "C" { 6559#endif 6560char nm_test_var; 6561void nm_test_func(void); 6562void nm_test_func(void){} 6563#ifdef __cplusplus 6564} 6565#endif 6566int main(){nm_test_var='a';nm_test_func();return(0);} 6567_LT_EOF 6568 6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6570 (eval $ac_compile) 2>&5 6571 ac_status=$? 6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6573 test $ac_status = 0; }; then 6574 # Now try to grab the symbols. 6575 nlist=conftest.nm 6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6577 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6578 ac_status=$? 6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6580 test $ac_status = 0; } && test -s "$nlist"; then 6581 # Try sorting and uniquifying the output. 6582 if sort "$nlist" | uniq > "$nlist"T; then 6583 mv -f "$nlist"T "$nlist" 6584 else 6585 rm -f "$nlist"T 6586 fi 6587 6588 # Make sure that we snagged all the symbols we need. 6589 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6590 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6591 cat <<_LT_EOF > conftest.$ac_ext 6592/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6593#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6594/* DATA imports from DLLs on WIN32 con't be const, because runtime 6595 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6596# define LT_DLSYM_CONST 6597#elif defined(__osf__) 6598/* This system does not cope well with relocations in const data. */ 6599# define LT_DLSYM_CONST 6600#else 6601# define LT_DLSYM_CONST const 6602#endif 6603 6604#ifdef __cplusplus 6605extern "C" { 6606#endif 6607 6608_LT_EOF 6609 # Now generate the symbol file. 6610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6611 6612 cat <<_LT_EOF >> conftest.$ac_ext 6613 6614/* The mapping between symbol names and symbols. */ 6615LT_DLSYM_CONST struct { 6616 const char *name; 6617 void *address; 6618} 6619lt__PROGRAM__LTX_preloaded_symbols[] = 6620{ 6621 { "@PROGRAM@", (void *) 0 }, 6622_LT_EOF 6623 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6624 cat <<\_LT_EOF >> conftest.$ac_ext 6625 {0, (void *) 0} 6626}; 6627 6628/* This works around a problem in FreeBSD linker */ 6629#ifdef FREEBSD_WORKAROUND 6630static const void *lt_preloaded_setup() { 6631 return lt__PROGRAM__LTX_preloaded_symbols; 6632} 6633#endif 6634 6635#ifdef __cplusplus 6636} 6637#endif 6638_LT_EOF 6639 # Now try linking the two files. 6640 mv conftest.$ac_objext conftstm.$ac_objext 6641 lt_globsym_save_LIBS=$LIBS 6642 lt_globsym_save_CFLAGS=$CFLAGS 6643 LIBS="conftstm.$ac_objext" 6644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6646 (eval $ac_link) 2>&5 6647 ac_status=$? 6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6649 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6650 pipe_works=yes 6651 fi 6652 LIBS=$lt_globsym_save_LIBS 6653 CFLAGS=$lt_globsym_save_CFLAGS 6654 else 6655 echo "cannot find nm_test_func in $nlist" >&5 6656 fi 6657 else 6658 echo "cannot find nm_test_var in $nlist" >&5 6659 fi 6660 else 6661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6662 fi 6663 else 6664 echo "$progname: failed program was:" >&5 6665 cat conftest.$ac_ext >&5 6666 fi 6667 rm -rf conftest* conftst* 6668 6669 # Do not use the global_symbol_pipe unless it works. 6670 if test "$pipe_works" = yes; then 6671 break 6672 else 6673 lt_cv_sys_global_symbol_pipe= 6674 fi 6675done 6676 6677fi 6678 6679if test -z "$lt_cv_sys_global_symbol_pipe"; then 6680 lt_cv_sys_global_symbol_to_cdecl= 6681fi 6682if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6684$as_echo "failed" >&6; } 6685else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6687$as_echo "ok" >&6; } 6688fi 6689 6690# Response file support. 6691if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6692 nm_file_list_spec='@' 6693elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6694 nm_file_list_spec='@' 6695fi 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6724$as_echo_n "checking for sysroot... " >&6; } 6725 6726# Check whether --with-sysroot was given. 6727if test "${with_sysroot+set}" = set; then : 6728 withval=$with_sysroot; 6729else 6730 with_sysroot=no 6731fi 6732 6733 6734lt_sysroot= 6735case ${with_sysroot} in #( 6736 yes) 6737 if test "$GCC" = yes; then 6738 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6739 fi 6740 ;; #( 6741 /*) 6742 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6743 ;; #( 6744 no|'') 6745 ;; #( 6746 *) 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6748$as_echo "${with_sysroot}" >&6; } 6749 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6750 ;; 6751esac 6752 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6754$as_echo "${lt_sysroot:-no}" >&6; } 6755 6756 6757 6758 6759 6760# Check whether --enable-libtool-lock was given. 6761if test "${enable_libtool_lock+set}" = set; then : 6762 enableval=$enable_libtool_lock; 6763fi 6764 6765test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6766 6767# Some flags need to be propagated to the compiler or linker for good 6768# libtool support. 6769case $host in 6770ia64-*-hpux*) 6771 # Find out which ABI we are using. 6772 echo 'int i;' > conftest.$ac_ext 6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6774 (eval $ac_compile) 2>&5 6775 ac_status=$? 6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6777 test $ac_status = 0; }; then 6778 case `/usr/bin/file conftest.$ac_objext` in 6779 *ELF-32*) 6780 HPUX_IA64_MODE="32" 6781 ;; 6782 *ELF-64*) 6783 HPUX_IA64_MODE="64" 6784 ;; 6785 esac 6786 fi 6787 rm -rf conftest* 6788 ;; 6789*-*-irix6*) 6790 # Find out which ABI we are using. 6791 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6793 (eval $ac_compile) 2>&5 6794 ac_status=$? 6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6796 test $ac_status = 0; }; then 6797 if test "$lt_cv_prog_gnu_ld" = yes; then 6798 case `/usr/bin/file conftest.$ac_objext` in 6799 *32-bit*) 6800 LD="${LD-ld} -melf32bsmip" 6801 ;; 6802 *N32*) 6803 LD="${LD-ld} -melf32bmipn32" 6804 ;; 6805 *64-bit*) 6806 LD="${LD-ld} -melf64bmip" 6807 ;; 6808 esac 6809 else 6810 case `/usr/bin/file conftest.$ac_objext` in 6811 *32-bit*) 6812 LD="${LD-ld} -32" 6813 ;; 6814 *N32*) 6815 LD="${LD-ld} -n32" 6816 ;; 6817 *64-bit*) 6818 LD="${LD-ld} -64" 6819 ;; 6820 esac 6821 fi 6822 fi 6823 rm -rf conftest* 6824 ;; 6825 6826x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6827s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6828 # Find out which ABI we are using. 6829 echo 'int i;' > conftest.$ac_ext 6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6831 (eval $ac_compile) 2>&5 6832 ac_status=$? 6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6834 test $ac_status = 0; }; then 6835 case `/usr/bin/file conftest.o` in 6836 *32-bit*) 6837 case $host in 6838 x86_64-*kfreebsd*-gnu) 6839 LD="${LD-ld} -m elf_i386_fbsd" 6840 ;; 6841 x86_64-*linux*) 6842 LD="${LD-ld} -m elf_i386" 6843 ;; 6844 ppc64-*linux*|powerpc64-*linux*) 6845 LD="${LD-ld} -m elf32ppclinux" 6846 ;; 6847 s390x-*linux*) 6848 LD="${LD-ld} -m elf_s390" 6849 ;; 6850 sparc64-*linux*) 6851 LD="${LD-ld} -m elf32_sparc" 6852 ;; 6853 esac 6854 ;; 6855 *64-bit*) 6856 case $host in 6857 x86_64-*kfreebsd*-gnu) 6858 LD="${LD-ld} -m elf_x86_64_fbsd" 6859 ;; 6860 x86_64-*linux*) 6861 LD="${LD-ld} -m elf_x86_64" 6862 ;; 6863 ppc*-*linux*|powerpc*-*linux*) 6864 LD="${LD-ld} -m elf64ppc" 6865 ;; 6866 s390*-*linux*|s390*-*tpf*) 6867 LD="${LD-ld} -m elf64_s390" 6868 ;; 6869 sparc*-*linux*) 6870 LD="${LD-ld} -m elf64_sparc" 6871 ;; 6872 esac 6873 ;; 6874 esac 6875 fi 6876 rm -rf conftest* 6877 ;; 6878 6879*-*-sco3.2v5*) 6880 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6881 SAVE_CFLAGS="$CFLAGS" 6882 CFLAGS="$CFLAGS -belf" 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6884$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6885if ${lt_cv_cc_needs_belf+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 ac_ext=c 6889ac_cpp='$CPP $CPPFLAGS' 6890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6892ac_compiler_gnu=$ac_cv_c_compiler_gnu 6893 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896 6897int 6898main () 6899{ 6900 6901 ; 6902 return 0; 6903} 6904_ACEOF 6905if ac_fn_c_try_link "$LINENO"; then : 6906 lt_cv_cc_needs_belf=yes 6907else 6908 lt_cv_cc_needs_belf=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext \ 6911 conftest$ac_exeext conftest.$ac_ext 6912 ac_ext=c 6913ac_cpp='$CPP $CPPFLAGS' 6914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6916ac_compiler_gnu=$ac_cv_c_compiler_gnu 6917 6918fi 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6920$as_echo "$lt_cv_cc_needs_belf" >&6; } 6921 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6922 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6923 CFLAGS="$SAVE_CFLAGS" 6924 fi 6925 ;; 6926*-*solaris*) 6927 # Find out which ABI we are using. 6928 echo 'int i;' > conftest.$ac_ext 6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6930 (eval $ac_compile) 2>&5 6931 ac_status=$? 6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6933 test $ac_status = 0; }; then 6934 case `/usr/bin/file conftest.o` in 6935 *64-bit*) 6936 case $lt_cv_prog_gnu_ld in 6937 yes*) 6938 case $host in 6939 i?86-*-solaris*) 6940 LD="${LD-ld} -m elf_x86_64" 6941 ;; 6942 sparc*-*-solaris*) 6943 LD="${LD-ld} -m elf64_sparc" 6944 ;; 6945 esac 6946 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6947 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6948 LD="${LD-ld}_sol2" 6949 fi 6950 ;; 6951 *) 6952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6953 LD="${LD-ld} -64" 6954 fi 6955 ;; 6956 esac 6957 ;; 6958 esac 6959 fi 6960 rm -rf conftest* 6961 ;; 6962esac 6963 6964need_locks="$enable_libtool_lock" 6965 6966if test -n "$ac_tool_prefix"; then 6967 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6968set dummy ${ac_tool_prefix}mt; ac_word=$2 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6970$as_echo_n "checking for $ac_word... " >&6; } 6971if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 if test -n "$MANIFEST_TOOL"; then 6975 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6976else 6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6978for as_dir in $PATH 6979do 6980 IFS=$as_save_IFS 6981 test -z "$as_dir" && as_dir=. 6982 for ac_exec_ext in '' $ac_executable_extensions; do 6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6984 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6986 break 2 6987 fi 6988done 6989 done 6990IFS=$as_save_IFS 6991 6992fi 6993fi 6994MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6995if test -n "$MANIFEST_TOOL"; then 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6997$as_echo "$MANIFEST_TOOL" >&6; } 6998else 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7000$as_echo "no" >&6; } 7001fi 7002 7003 7004fi 7005if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7006 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7007 # Extract the first word of "mt", so it can be a program name with args. 7008set dummy mt; ac_word=$2 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7010$as_echo_n "checking for $ac_word... " >&6; } 7011if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 if test -n "$ac_ct_MANIFEST_TOOL"; then 7015 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7016else 7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018for as_dir in $PATH 7019do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7024 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028done 7029 done 7030IFS=$as_save_IFS 7031 7032fi 7033fi 7034ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7035if test -n "$ac_ct_MANIFEST_TOOL"; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7037$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7038else 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7040$as_echo "no" >&6; } 7041fi 7042 7043 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7044 MANIFEST_TOOL=":" 7045 else 7046 case $cross_compiling:$ac_tool_warned in 7047yes:) 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7050ac_tool_warned=yes ;; 7051esac 7052 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7053 fi 7054else 7055 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7056fi 7057 7058test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7060$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7061if ${lt_cv_path_mainfest_tool+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 lt_cv_path_mainfest_tool=no 7065 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7066 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7067 cat conftest.err >&5 7068 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7069 lt_cv_path_mainfest_tool=yes 7070 fi 7071 rm -f conftest* 7072fi 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7074$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7075if test "x$lt_cv_path_mainfest_tool" != xyes; then 7076 MANIFEST_TOOL=: 7077fi 7078 7079 7080 7081 7082 7083 7084 case $host_os in 7085 rhapsody* | darwin*) 7086 if test -n "$ac_tool_prefix"; then 7087 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7088set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7090$as_echo_n "checking for $ac_word... " >&6; } 7091if ${ac_cv_prog_DSYMUTIL+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093else 7094 if test -n "$DSYMUTIL"; then 7095 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7096else 7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098for as_dir in $PATH 7099do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108done 7109 done 7110IFS=$as_save_IFS 7111 7112fi 7113fi 7114DSYMUTIL=$ac_cv_prog_DSYMUTIL 7115if test -n "$DSYMUTIL"; then 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7117$as_echo "$DSYMUTIL" >&6; } 7118else 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7120$as_echo "no" >&6; } 7121fi 7122 7123 7124fi 7125if test -z "$ac_cv_prog_DSYMUTIL"; then 7126 ac_ct_DSYMUTIL=$DSYMUTIL 7127 # Extract the first word of "dsymutil", so it can be a program name with args. 7128set dummy dsymutil; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$ac_ct_DSYMUTIL"; then 7135 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7155if test -n "$ac_ct_DSYMUTIL"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7157$as_echo "$ac_ct_DSYMUTIL" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 if test "x$ac_ct_DSYMUTIL" = x; then 7164 DSYMUTIL=":" 7165 else 7166 case $cross_compiling:$ac_tool_warned in 7167yes:) 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7170ac_tool_warned=yes ;; 7171esac 7172 DSYMUTIL=$ac_ct_DSYMUTIL 7173 fi 7174else 7175 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7176fi 7177 7178 if test -n "$ac_tool_prefix"; then 7179 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7180set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182$as_echo_n "checking for $ac_word... " >&6; } 7183if ${ac_cv_prog_NMEDIT+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 if test -n "$NMEDIT"; then 7187 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7188else 7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190for as_dir in $PATH 7191do 7192 IFS=$as_save_IFS 7193 test -z "$as_dir" && as_dir=. 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7196 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7198 break 2 7199 fi 7200done 7201 done 7202IFS=$as_save_IFS 7203 7204fi 7205fi 7206NMEDIT=$ac_cv_prog_NMEDIT 7207if test -n "$NMEDIT"; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7209$as_echo "$NMEDIT" >&6; } 7210else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212$as_echo "no" >&6; } 7213fi 7214 7215 7216fi 7217if test -z "$ac_cv_prog_NMEDIT"; then 7218 ac_ct_NMEDIT=$NMEDIT 7219 # Extract the first word of "nmedit", so it can be a program name with args. 7220set dummy nmedit; ac_word=$2 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7222$as_echo_n "checking for $ac_word... " >&6; } 7223if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 if test -n "$ac_ct_NMEDIT"; then 7227 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7228else 7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230for as_dir in $PATH 7231do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7236 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240done 7241 done 7242IFS=$as_save_IFS 7243 7244fi 7245fi 7246ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7247if test -n "$ac_ct_NMEDIT"; then 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7249$as_echo "$ac_ct_NMEDIT" >&6; } 7250else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252$as_echo "no" >&6; } 7253fi 7254 7255 if test "x$ac_ct_NMEDIT" = x; then 7256 NMEDIT=":" 7257 else 7258 case $cross_compiling:$ac_tool_warned in 7259yes:) 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7262ac_tool_warned=yes ;; 7263esac 7264 NMEDIT=$ac_ct_NMEDIT 7265 fi 7266else 7267 NMEDIT="$ac_cv_prog_NMEDIT" 7268fi 7269 7270 if test -n "$ac_tool_prefix"; then 7271 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7272set dummy ${ac_tool_prefix}lipo; ac_word=$2 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7274$as_echo_n "checking for $ac_word... " >&6; } 7275if ${ac_cv_prog_LIPO+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 if test -n "$LIPO"; then 7279 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7280else 7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282for as_dir in $PATH 7283do 7284 IFS=$as_save_IFS 7285 test -z "$as_dir" && as_dir=. 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7288 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7290 break 2 7291 fi 7292done 7293 done 7294IFS=$as_save_IFS 7295 7296fi 7297fi 7298LIPO=$ac_cv_prog_LIPO 7299if test -n "$LIPO"; then 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7301$as_echo "$LIPO" >&6; } 7302else 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7304$as_echo "no" >&6; } 7305fi 7306 7307 7308fi 7309if test -z "$ac_cv_prog_LIPO"; then 7310 ac_ct_LIPO=$LIPO 7311 # Extract the first word of "lipo", so it can be a program name with args. 7312set dummy lipo; ac_word=$2 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7314$as_echo_n "checking for $ac_word... " >&6; } 7315if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 if test -n "$ac_ct_LIPO"; then 7319 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7320else 7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7322for as_dir in $PATH 7323do 7324 IFS=$as_save_IFS 7325 test -z "$as_dir" && as_dir=. 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7328 ac_cv_prog_ac_ct_LIPO="lipo" 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332done 7333 done 7334IFS=$as_save_IFS 7335 7336fi 7337fi 7338ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7339if test -n "$ac_ct_LIPO"; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7341$as_echo "$ac_ct_LIPO" >&6; } 7342else 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344$as_echo "no" >&6; } 7345fi 7346 7347 if test "x$ac_ct_LIPO" = x; then 7348 LIPO=":" 7349 else 7350 case $cross_compiling:$ac_tool_warned in 7351yes:) 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7354ac_tool_warned=yes ;; 7355esac 7356 LIPO=$ac_ct_LIPO 7357 fi 7358else 7359 LIPO="$ac_cv_prog_LIPO" 7360fi 7361 7362 if test -n "$ac_tool_prefix"; then 7363 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7364set dummy ${ac_tool_prefix}otool; ac_word=$2 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7366$as_echo_n "checking for $ac_word... " >&6; } 7367if ${ac_cv_prog_OTOOL+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 if test -n "$OTOOL"; then 7371 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7372else 7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374for as_dir in $PATH 7375do 7376 IFS=$as_save_IFS 7377 test -z "$as_dir" && as_dir=. 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7380 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384done 7385 done 7386IFS=$as_save_IFS 7387 7388fi 7389fi 7390OTOOL=$ac_cv_prog_OTOOL 7391if test -n "$OTOOL"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7393$as_echo "$OTOOL" >&6; } 7394else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396$as_echo "no" >&6; } 7397fi 7398 7399 7400fi 7401if test -z "$ac_cv_prog_OTOOL"; then 7402 ac_ct_OTOOL=$OTOOL 7403 # Extract the first word of "otool", so it can be a program name with args. 7404set dummy otool; ac_word=$2 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406$as_echo_n "checking for $ac_word... " >&6; } 7407if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 if test -n "$ac_ct_OTOOL"; then 7411 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7412else 7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7414for as_dir in $PATH 7415do 7416 IFS=$as_save_IFS 7417 test -z "$as_dir" && as_dir=. 7418 for ac_exec_ext in '' $ac_executable_extensions; do 7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7420 ac_cv_prog_ac_ct_OTOOL="otool" 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7422 break 2 7423 fi 7424done 7425 done 7426IFS=$as_save_IFS 7427 7428fi 7429fi 7430ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7431if test -n "$ac_ct_OTOOL"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7433$as_echo "$ac_ct_OTOOL" >&6; } 7434else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436$as_echo "no" >&6; } 7437fi 7438 7439 if test "x$ac_ct_OTOOL" = x; then 7440 OTOOL=":" 7441 else 7442 case $cross_compiling:$ac_tool_warned in 7443yes:) 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7446ac_tool_warned=yes ;; 7447esac 7448 OTOOL=$ac_ct_OTOOL 7449 fi 7450else 7451 OTOOL="$ac_cv_prog_OTOOL" 7452fi 7453 7454 if test -n "$ac_tool_prefix"; then 7455 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7456set dummy ${ac_tool_prefix}otool64; ac_word=$2 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7458$as_echo_n "checking for $ac_word... " >&6; } 7459if ${ac_cv_prog_OTOOL64+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 if test -n "$OTOOL64"; then 7463 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7464else 7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466for as_dir in $PATH 7467do 7468 IFS=$as_save_IFS 7469 test -z "$as_dir" && as_dir=. 7470 for ac_exec_ext in '' $ac_executable_extensions; do 7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7472 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7474 break 2 7475 fi 7476done 7477 done 7478IFS=$as_save_IFS 7479 7480fi 7481fi 7482OTOOL64=$ac_cv_prog_OTOOL64 7483if test -n "$OTOOL64"; then 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7485$as_echo "$OTOOL64" >&6; } 7486else 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7488$as_echo "no" >&6; } 7489fi 7490 7491 7492fi 7493if test -z "$ac_cv_prog_OTOOL64"; then 7494 ac_ct_OTOOL64=$OTOOL64 7495 # Extract the first word of "otool64", so it can be a program name with args. 7496set dummy otool64; ac_word=$2 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7498$as_echo_n "checking for $ac_word... " >&6; } 7499if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7500 $as_echo_n "(cached) " >&6 7501else 7502 if test -n "$ac_ct_OTOOL64"; then 7503 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7504else 7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506for as_dir in $PATH 7507do 7508 IFS=$as_save_IFS 7509 test -z "$as_dir" && as_dir=. 7510 for ac_exec_ext in '' $ac_executable_extensions; do 7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7512 ac_cv_prog_ac_ct_OTOOL64="otool64" 7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7514 break 2 7515 fi 7516done 7517 done 7518IFS=$as_save_IFS 7519 7520fi 7521fi 7522ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7523if test -n "$ac_ct_OTOOL64"; then 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7525$as_echo "$ac_ct_OTOOL64" >&6; } 7526else 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7528$as_echo "no" >&6; } 7529fi 7530 7531 if test "x$ac_ct_OTOOL64" = x; then 7532 OTOOL64=":" 7533 else 7534 case $cross_compiling:$ac_tool_warned in 7535yes:) 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7538ac_tool_warned=yes ;; 7539esac 7540 OTOOL64=$ac_ct_OTOOL64 7541 fi 7542else 7543 OTOOL64="$ac_cv_prog_OTOOL64" 7544fi 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7573$as_echo_n "checking for -single_module linker flag... " >&6; } 7574if ${lt_cv_apple_cc_single_mod+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 lt_cv_apple_cc_single_mod=no 7578 if test -z "${LT_MULTI_MODULE}"; then 7579 # By default we will add the -single_module flag. You can override 7580 # by either setting the environment variable LT_MULTI_MODULE 7581 # non-empty at configure time, or by adding -multi_module to the 7582 # link flags. 7583 rm -rf libconftest.dylib* 7584 echo "int foo(void){return 1;}" > conftest.c 7585 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7586-dynamiclib -Wl,-single_module conftest.c" >&5 7587 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7588 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7589 _lt_result=$? 7590 # If there is a non-empty error log, and "single_module" 7591 # appears in it, assume the flag caused a linker warning 7592 if test -s conftest.err && $GREP single_module conftest.err; then 7593 cat conftest.err >&5 7594 # Otherwise, if the output was created with a 0 exit code from 7595 # the compiler, it worked. 7596 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7597 lt_cv_apple_cc_single_mod=yes 7598 else 7599 cat conftest.err >&5 7600 fi 7601 rm -rf libconftest.dylib* 7602 rm -f conftest.* 7603 fi 7604fi 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7606$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7607 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7609$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7610if ${lt_cv_ld_exported_symbols_list+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 lt_cv_ld_exported_symbols_list=no 7614 save_LDFLAGS=$LDFLAGS 7615 echo "_main" > conftest.sym 7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619 7620int 7621main () 7622{ 7623 7624 ; 7625 return 0; 7626} 7627_ACEOF 7628if ac_fn_c_try_link "$LINENO"; then : 7629 lt_cv_ld_exported_symbols_list=yes 7630else 7631 lt_cv_ld_exported_symbols_list=no 7632fi 7633rm -f core conftest.err conftest.$ac_objext \ 7634 conftest$ac_exeext conftest.$ac_ext 7635 LDFLAGS="$save_LDFLAGS" 7636 7637fi 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7639$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7640 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7642$as_echo_n "checking for -force_load linker flag... " >&6; } 7643if ${lt_cv_ld_force_load+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 lt_cv_ld_force_load=no 7647 cat > conftest.c << _LT_EOF 7648int forced_loaded() { return 2;} 7649_LT_EOF 7650 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7651 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7652 echo "$AR cru libconftest.a conftest.o" >&5 7653 $AR cru libconftest.a conftest.o 2>&5 7654 echo "$RANLIB libconftest.a" >&5 7655 $RANLIB libconftest.a 2>&5 7656 cat > conftest.c << _LT_EOF 7657int main() { return 0;} 7658_LT_EOF 7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7660 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7661 _lt_result=$? 7662 if test -s conftest.err && $GREP force_load conftest.err; then 7663 cat conftest.err >&5 7664 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7665 lt_cv_ld_force_load=yes 7666 else 7667 cat conftest.err >&5 7668 fi 7669 rm -f conftest.err libconftest.a conftest conftest.c 7670 rm -rf conftest.dSYM 7671 7672fi 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7674$as_echo "$lt_cv_ld_force_load" >&6; } 7675 case $host_os in 7676 rhapsody* | darwin1.[012]) 7677 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7678 darwin1.*) 7679 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7680 darwin*) # darwin 5.x on 7681 # if running on 10.5 or later, the deployment target defaults 7682 # to the OS version, if on x86, and 10.4, the deployment 7683 # target defaults to 10.4. Don't you love it? 7684 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7685 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7686 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7687 10.[012]*) 7688 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7689 10.*) 7690 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7691 esac 7692 ;; 7693 esac 7694 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7695 _lt_dar_single_mod='$single_module' 7696 fi 7697 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7698 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7699 else 7700 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7701 fi 7702 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7703 _lt_dsymutil='~$DSYMUTIL $lib || :' 7704 else 7705 _lt_dsymutil= 7706 fi 7707 ;; 7708 esac 7709 7710for ac_header in dlfcn.h 7711do : 7712 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7713" 7714if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7715 cat >>confdefs.h <<_ACEOF 7716#define HAVE_DLFCN_H 1 7717_ACEOF 7718 7719fi 7720 7721done 7722 7723 7724 7725 7726 7727# Set options 7728 7729 7730 7731 enable_dlopen=no 7732 7733 7734 enable_win32_dll=no 7735 7736 7737 # Check whether --enable-shared was given. 7738if test "${enable_shared+set}" = set; then : 7739 enableval=$enable_shared; p=${PACKAGE-default} 7740 case $enableval in 7741 yes) enable_shared=yes ;; 7742 no) enable_shared=no ;; 7743 *) 7744 enable_shared=no 7745 # Look at the argument we got. We use all the common list separators. 7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7747 for pkg in $enableval; do 7748 IFS="$lt_save_ifs" 7749 if test "X$pkg" = "X$p"; then 7750 enable_shared=yes 7751 fi 7752 done 7753 IFS="$lt_save_ifs" 7754 ;; 7755 esac 7756else 7757 enable_shared=yes 7758fi 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 # Check whether --enable-static was given. 7769if test "${enable_static+set}" = set; then : 7770 enableval=$enable_static; p=${PACKAGE-default} 7771 case $enableval in 7772 yes) enable_static=yes ;; 7773 no) enable_static=no ;; 7774 *) 7775 enable_static=no 7776 # Look at the argument we got. We use all the common list separators. 7777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7778 for pkg in $enableval; do 7779 IFS="$lt_save_ifs" 7780 if test "X$pkg" = "X$p"; then 7781 enable_static=yes 7782 fi 7783 done 7784 IFS="$lt_save_ifs" 7785 ;; 7786 esac 7787else 7788 enable_static=yes 7789fi 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800# Check whether --with-pic was given. 7801if test "${with_pic+set}" = set; then : 7802 withval=$with_pic; lt_p=${PACKAGE-default} 7803 case $withval in 7804 yes|no) pic_mode=$withval ;; 7805 *) 7806 pic_mode=default 7807 # Look at the argument we got. We use all the common list separators. 7808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7809 for lt_pkg in $withval; do 7810 IFS="$lt_save_ifs" 7811 if test "X$lt_pkg" = "X$lt_p"; then 7812 pic_mode=yes 7813 fi 7814 done 7815 IFS="$lt_save_ifs" 7816 ;; 7817 esac 7818else 7819 pic_mode=default 7820fi 7821 7822 7823test -z "$pic_mode" && pic_mode=default 7824 7825 7826 7827 7828 7829 7830 7831 # Check whether --enable-fast-install was given. 7832if test "${enable_fast_install+set}" = set; then : 7833 enableval=$enable_fast_install; p=${PACKAGE-default} 7834 case $enableval in 7835 yes) enable_fast_install=yes ;; 7836 no) enable_fast_install=no ;; 7837 *) 7838 enable_fast_install=no 7839 # Look at the argument we got. We use all the common list separators. 7840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7841 for pkg in $enableval; do 7842 IFS="$lt_save_ifs" 7843 if test "X$pkg" = "X$p"; then 7844 enable_fast_install=yes 7845 fi 7846 done 7847 IFS="$lt_save_ifs" 7848 ;; 7849 esac 7850else 7851 enable_fast_install=yes 7852fi 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864# This can be used to rebuild libtool when needed 7865LIBTOOL_DEPS="$ltmain" 7866 7867# Always use our own libtool. 7868LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899test -z "$LN_S" && LN_S="ln -s" 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914if test -n "${ZSH_VERSION+set}" ; then 7915 setopt NO_GLOB_SUBST 7916fi 7917 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7919$as_echo_n "checking for objdir... " >&6; } 7920if ${lt_cv_objdir+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 rm -f .libs 2>/dev/null 7924mkdir .libs 2>/dev/null 7925if test -d .libs; then 7926 lt_cv_objdir=.libs 7927else 7928 # MS-DOS does not allow filenames that begin with a dot. 7929 lt_cv_objdir=_libs 7930fi 7931rmdir .libs 2>/dev/null 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7934$as_echo "$lt_cv_objdir" >&6; } 7935objdir=$lt_cv_objdir 7936 7937 7938 7939 7940 7941cat >>confdefs.h <<_ACEOF 7942#define LT_OBJDIR "$lt_cv_objdir/" 7943_ACEOF 7944 7945 7946 7947 7948case $host_os in 7949aix3*) 7950 # AIX sometimes has problems with the GCC collect2 program. For some 7951 # reason, if we set the COLLECT_NAMES environment variable, the problems 7952 # vanish in a puff of smoke. 7953 if test "X${COLLECT_NAMES+set}" != Xset; then 7954 COLLECT_NAMES= 7955 export COLLECT_NAMES 7956 fi 7957 ;; 7958esac 7959 7960# Global variables: 7961ofile=libtool 7962can_build_shared=yes 7963 7964# All known linkers require a `.a' archive for static linking (except MSVC, 7965# which needs '.lib'). 7966libext=a 7967 7968with_gnu_ld="$lt_cv_prog_gnu_ld" 7969 7970old_CC="$CC" 7971old_CFLAGS="$CFLAGS" 7972 7973# Set sane defaults for various variables 7974test -z "$CC" && CC=cc 7975test -z "$LTCC" && LTCC=$CC 7976test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7977test -z "$LD" && LD=ld 7978test -z "$ac_objext" && ac_objext=o 7979 7980for cc_temp in $compiler""; do 7981 case $cc_temp in 7982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7984 \-*) ;; 7985 *) break;; 7986 esac 7987done 7988cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7989 7990 7991# Only perform the check for file, if the check method requires it 7992test -z "$MAGIC_CMD" && MAGIC_CMD=file 7993case $deplibs_check_method in 7994file_magic*) 7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7997$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7998if ${lt_cv_path_MAGIC_CMD+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000else 8001 case $MAGIC_CMD in 8002[\\/*] | ?:[\\/]*) 8003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8004 ;; 8005*) 8006 lt_save_MAGIC_CMD="$MAGIC_CMD" 8007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8009 for ac_dir in $ac_dummy; do 8010 IFS="$lt_save_ifs" 8011 test -z "$ac_dir" && ac_dir=. 8012 if test -f $ac_dir/${ac_tool_prefix}file; then 8013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8014 if test -n "$file_magic_test_file"; then 8015 case $deplibs_check_method in 8016 "file_magic "*) 8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8020 $EGREP "$file_magic_regex" > /dev/null; then 8021 : 8022 else 8023 cat <<_LT_EOF 1>&2 8024 8025*** Warning: the command libtool uses to detect shared libraries, 8026*** $file_magic_cmd, produces output that libtool cannot recognize. 8027*** The result is that libtool may fail to recognize shared libraries 8028*** as such. This will affect the creation of libtool libraries that 8029*** depend on shared libraries, but programs linked with such libtool 8030*** libraries will work regardless of this problem. Nevertheless, you 8031*** may want to report the problem to your system manager and/or to 8032*** bug-libtool@gnu.org 8033 8034_LT_EOF 8035 fi ;; 8036 esac 8037 fi 8038 break 8039 fi 8040 done 8041 IFS="$lt_save_ifs" 8042 MAGIC_CMD="$lt_save_MAGIC_CMD" 8043 ;; 8044esac 8045fi 8046 8047MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8048if test -n "$MAGIC_CMD"; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8050$as_echo "$MAGIC_CMD" >&6; } 8051else 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8053$as_echo "no" >&6; } 8054fi 8055 8056 8057 8058 8059 8060if test -z "$lt_cv_path_MAGIC_CMD"; then 8061 if test -n "$ac_tool_prefix"; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8063$as_echo_n "checking for file... " >&6; } 8064if ${lt_cv_path_MAGIC_CMD+:} false; then : 8065 $as_echo_n "(cached) " >&6 8066else 8067 case $MAGIC_CMD in 8068[\\/*] | ?:[\\/]*) 8069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8070 ;; 8071*) 8072 lt_save_MAGIC_CMD="$MAGIC_CMD" 8073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8075 for ac_dir in $ac_dummy; do 8076 IFS="$lt_save_ifs" 8077 test -z "$ac_dir" && ac_dir=. 8078 if test -f $ac_dir/file; then 8079 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8080 if test -n "$file_magic_test_file"; then 8081 case $deplibs_check_method in 8082 "file_magic "*) 8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8086 $EGREP "$file_magic_regex" > /dev/null; then 8087 : 8088 else 8089 cat <<_LT_EOF 1>&2 8090 8091*** Warning: the command libtool uses to detect shared libraries, 8092*** $file_magic_cmd, produces output that libtool cannot recognize. 8093*** The result is that libtool may fail to recognize shared libraries 8094*** as such. This will affect the creation of libtool libraries that 8095*** depend on shared libraries, but programs linked with such libtool 8096*** libraries will work regardless of this problem. Nevertheless, you 8097*** may want to report the problem to your system manager and/or to 8098*** bug-libtool@gnu.org 8099 8100_LT_EOF 8101 fi ;; 8102 esac 8103 fi 8104 break 8105 fi 8106 done 8107 IFS="$lt_save_ifs" 8108 MAGIC_CMD="$lt_save_MAGIC_CMD" 8109 ;; 8110esac 8111fi 8112 8113MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8114if test -n "$MAGIC_CMD"; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8116$as_echo "$MAGIC_CMD" >&6; } 8117else 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8119$as_echo "no" >&6; } 8120fi 8121 8122 8123 else 8124 MAGIC_CMD=: 8125 fi 8126fi 8127 8128 fi 8129 ;; 8130esac 8131 8132# Use C for the default configuration in the libtool script 8133 8134lt_save_CC="$CC" 8135ac_ext=c 8136ac_cpp='$CPP $CPPFLAGS' 8137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8139ac_compiler_gnu=$ac_cv_c_compiler_gnu 8140 8141 8142# Source file extension for C test sources. 8143ac_ext=c 8144 8145# Object file extension for compiled C test sources. 8146objext=o 8147objext=$objext 8148 8149# Code to be used in simple compile tests 8150lt_simple_compile_test_code="int some_variable = 0;" 8151 8152# Code to be used in simple link tests 8153lt_simple_link_test_code='int main(){return(0);}' 8154 8155 8156 8157 8158 8159 8160 8161# If no C compiler was specified, use CC. 8162LTCC=${LTCC-"$CC"} 8163 8164# If no C compiler flags were specified, use CFLAGS. 8165LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8166 8167# Allow CC to be a program name with arguments. 8168compiler=$CC 8169 8170# Save the default compiler, since it gets overwritten when the other 8171# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8172compiler_DEFAULT=$CC 8173 8174# save warnings/boilerplate of simple test code 8175ac_outfile=conftest.$ac_objext 8176echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8178_lt_compiler_boilerplate=`cat conftest.err` 8179$RM conftest* 8180 8181ac_outfile=conftest.$ac_objext 8182echo "$lt_simple_link_test_code" >conftest.$ac_ext 8183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8184_lt_linker_boilerplate=`cat conftest.err` 8185$RM -r conftest* 8186 8187 8188if test -n "$compiler"; then 8189 8190lt_prog_compiler_no_builtin_flag= 8191 8192if test "$GCC" = yes; then 8193 case $cc_basename in 8194 nvcc*) 8195 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8196 *) 8197 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8198 esac 8199 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8201$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8202if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8203 $as_echo_n "(cached) " >&6 8204else 8205 lt_cv_prog_compiler_rtti_exceptions=no 8206 ac_outfile=conftest.$ac_objext 8207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8208 lt_compiler_flag="-fno-rtti -fno-exceptions" 8209 # Insert the option either (1) after the last *FLAGS variable, or 8210 # (2) before a word containing "conftest.", or (3) at the end. 8211 # Note that $ac_compile itself does not contain backslashes and begins 8212 # with a dollar sign (not a hyphen), so the echo should work correctly. 8213 # The option is referenced via a variable to avoid confusing sed. 8214 lt_compile=`echo "$ac_compile" | $SED \ 8215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8217 -e 's:$: $lt_compiler_flag:'` 8218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8219 (eval "$lt_compile" 2>conftest.err) 8220 ac_status=$? 8221 cat conftest.err >&5 8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8223 if (exit $ac_status) && test -s "$ac_outfile"; then 8224 # The compiler can only warn and ignore the option if not recognized 8225 # So say no if there are warnings other than the usual output. 8226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8229 lt_cv_prog_compiler_rtti_exceptions=yes 8230 fi 8231 fi 8232 $RM conftest* 8233 8234fi 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8236$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8237 8238if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8239 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8240else 8241 : 8242fi 8243 8244fi 8245 8246 8247 8248 8249 8250 8251 lt_prog_compiler_wl= 8252lt_prog_compiler_pic= 8253lt_prog_compiler_static= 8254 8255 8256 if test "$GCC" = yes; then 8257 lt_prog_compiler_wl='-Wl,' 8258 lt_prog_compiler_static='-static' 8259 8260 case $host_os in 8261 aix*) 8262 # All AIX code is PIC. 8263 if test "$host_cpu" = ia64; then 8264 # AIX 5 now supports IA64 processor 8265 lt_prog_compiler_static='-Bstatic' 8266 fi 8267 ;; 8268 8269 amigaos*) 8270 case $host_cpu in 8271 powerpc) 8272 # see comment about AmigaOS4 .so support 8273 lt_prog_compiler_pic='-fPIC' 8274 ;; 8275 m68k) 8276 # FIXME: we need at least 68020 code to build shared libraries, but 8277 # adding the `-m68020' flag to GCC prevents building anything better, 8278 # like `-m68040'. 8279 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8280 ;; 8281 esac 8282 ;; 8283 8284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8285 # PIC is the default for these OSes. 8286 ;; 8287 8288 mingw* | cygwin* | pw32* | os2* | cegcc*) 8289 # This hack is so that the source file can tell whether it is being 8290 # built for inclusion in a dll (and should export symbols for example). 8291 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8292 # (--disable-auto-import) libraries 8293 lt_prog_compiler_pic='-DDLL_EXPORT' 8294 ;; 8295 8296 darwin* | rhapsody*) 8297 # PIC is the default on this platform 8298 # Common symbols not allowed in MH_DYLIB files 8299 lt_prog_compiler_pic='-fno-common' 8300 ;; 8301 8302 haiku*) 8303 # PIC is the default for Haiku. 8304 # The "-static" flag exists, but is broken. 8305 lt_prog_compiler_static= 8306 ;; 8307 8308 hpux*) 8309 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8310 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8311 # sets the default TLS model and affects inlining. 8312 case $host_cpu in 8313 hppa*64*) 8314 # +Z the default 8315 ;; 8316 *) 8317 lt_prog_compiler_pic='-fPIC' 8318 ;; 8319 esac 8320 ;; 8321 8322 interix[3-9]*) 8323 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8324 # Instead, we relocate shared libraries at runtime. 8325 ;; 8326 8327 msdosdjgpp*) 8328 # Just because we use GCC doesn't mean we suddenly get shared libraries 8329 # on systems that don't support them. 8330 lt_prog_compiler_can_build_shared=no 8331 enable_shared=no 8332 ;; 8333 8334 *nto* | *qnx*) 8335 # QNX uses GNU C++, but need to define -shared option too, otherwise 8336 # it will coredump. 8337 lt_prog_compiler_pic='-fPIC -shared' 8338 ;; 8339 8340 sysv4*MP*) 8341 if test -d /usr/nec; then 8342 lt_prog_compiler_pic=-Kconform_pic 8343 fi 8344 ;; 8345 8346 *) 8347 lt_prog_compiler_pic='-fPIC' 8348 ;; 8349 esac 8350 8351 case $cc_basename in 8352 nvcc*) # Cuda Compiler Driver 2.2 8353 lt_prog_compiler_wl='-Xlinker ' 8354 if test -n "$lt_prog_compiler_pic"; then 8355 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8356 fi 8357 ;; 8358 esac 8359 else 8360 # PORTME Check for flag to pass linker flags through the system compiler. 8361 case $host_os in 8362 aix*) 8363 lt_prog_compiler_wl='-Wl,' 8364 if test "$host_cpu" = ia64; then 8365 # AIX 5 now supports IA64 processor 8366 lt_prog_compiler_static='-Bstatic' 8367 else 8368 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8369 fi 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 ;; 8377 8378 hpux9* | hpux10* | hpux11*) 8379 lt_prog_compiler_wl='-Wl,' 8380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8381 # not for PA HP-UX. 8382 case $host_cpu in 8383 hppa*64*|ia64*) 8384 # +Z the default 8385 ;; 8386 *) 8387 lt_prog_compiler_pic='+Z' 8388 ;; 8389 esac 8390 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8391 lt_prog_compiler_static='${wl}-a ${wl}archive' 8392 ;; 8393 8394 irix5* | irix6* | nonstopux*) 8395 lt_prog_compiler_wl='-Wl,' 8396 # PIC (with -KPIC) is the default. 8397 lt_prog_compiler_static='-non_shared' 8398 ;; 8399 8400 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8401 case $cc_basename in 8402 # old Intel for x86_64 which still supported -KPIC. 8403 ecc*) 8404 lt_prog_compiler_wl='-Wl,' 8405 lt_prog_compiler_pic='-KPIC' 8406 lt_prog_compiler_static='-static' 8407 ;; 8408 # icc used to be incompatible with GCC. 8409 # ICC 10 doesn't accept -KPIC any more. 8410 icc* | ifort*) 8411 lt_prog_compiler_wl='-Wl,' 8412 lt_prog_compiler_pic='-fPIC' 8413 lt_prog_compiler_static='-static' 8414 ;; 8415 # Lahey Fortran 8.1. 8416 lf95*) 8417 lt_prog_compiler_wl='-Wl,' 8418 lt_prog_compiler_pic='--shared' 8419 lt_prog_compiler_static='--static' 8420 ;; 8421 nagfor*) 8422 # NAG Fortran compiler 8423 lt_prog_compiler_wl='-Wl,-Wl,,' 8424 lt_prog_compiler_pic='-PIC' 8425 lt_prog_compiler_static='-Bstatic' 8426 ;; 8427 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8428 # Portland Group compilers (*not* the Pentium gcc compiler, 8429 # which looks to be a dead project) 8430 lt_prog_compiler_wl='-Wl,' 8431 lt_prog_compiler_pic='-fpic' 8432 lt_prog_compiler_static='-Bstatic' 8433 ;; 8434 ccc*) 8435 lt_prog_compiler_wl='-Wl,' 8436 # All Alpha code is PIC. 8437 lt_prog_compiler_static='-non_shared' 8438 ;; 8439 xl* | bgxl* | bgf* | mpixl*) 8440 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_pic='-qpic' 8443 lt_prog_compiler_static='-qstaticlink' 8444 ;; 8445 *) 8446 case `$CC -V 2>&1 | sed 5q` in 8447 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8448 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8449 lt_prog_compiler_pic='-KPIC' 8450 lt_prog_compiler_static='-Bstatic' 8451 lt_prog_compiler_wl='' 8452 ;; 8453 *Sun\ F* | *Sun*Fortran*) 8454 lt_prog_compiler_pic='-KPIC' 8455 lt_prog_compiler_static='-Bstatic' 8456 lt_prog_compiler_wl='-Qoption ld ' 8457 ;; 8458 *Sun\ C*) 8459 # Sun C 5.9 8460 lt_prog_compiler_pic='-KPIC' 8461 lt_prog_compiler_static='-Bstatic' 8462 lt_prog_compiler_wl='-Wl,' 8463 ;; 8464 *Intel*\ [CF]*Compiler*) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-fPIC' 8467 lt_prog_compiler_static='-static' 8468 ;; 8469 *Portland\ Group*) 8470 lt_prog_compiler_wl='-Wl,' 8471 lt_prog_compiler_pic='-fpic' 8472 lt_prog_compiler_static='-Bstatic' 8473 ;; 8474 esac 8475 ;; 8476 esac 8477 ;; 8478 8479 newsos6) 8480 lt_prog_compiler_pic='-KPIC' 8481 lt_prog_compiler_static='-Bstatic' 8482 ;; 8483 8484 *nto* | *qnx*) 8485 # QNX uses GNU C++, but need to define -shared option too, otherwise 8486 # it will coredump. 8487 lt_prog_compiler_pic='-fPIC -shared' 8488 ;; 8489 8490 osf3* | osf4* | osf5*) 8491 lt_prog_compiler_wl='-Wl,' 8492 # All OSF/1 code is PIC. 8493 lt_prog_compiler_static='-non_shared' 8494 ;; 8495 8496 rdos*) 8497 lt_prog_compiler_static='-non_shared' 8498 ;; 8499 8500 solaris*) 8501 lt_prog_compiler_pic='-KPIC' 8502 lt_prog_compiler_static='-Bstatic' 8503 case $cc_basename in 8504 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8505 lt_prog_compiler_wl='-Qoption ld ';; 8506 *) 8507 lt_prog_compiler_wl='-Wl,';; 8508 esac 8509 ;; 8510 8511 sunos4*) 8512 lt_prog_compiler_wl='-Qoption ld ' 8513 lt_prog_compiler_pic='-PIC' 8514 lt_prog_compiler_static='-Bstatic' 8515 ;; 8516 8517 sysv4 | sysv4.2uw2* | sysv4.3*) 8518 lt_prog_compiler_wl='-Wl,' 8519 lt_prog_compiler_pic='-KPIC' 8520 lt_prog_compiler_static='-Bstatic' 8521 ;; 8522 8523 sysv4*MP*) 8524 if test -d /usr/nec ;then 8525 lt_prog_compiler_pic='-Kconform_pic' 8526 lt_prog_compiler_static='-Bstatic' 8527 fi 8528 ;; 8529 8530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8531 lt_prog_compiler_wl='-Wl,' 8532 lt_prog_compiler_pic='-KPIC' 8533 lt_prog_compiler_static='-Bstatic' 8534 ;; 8535 8536 unicos*) 8537 lt_prog_compiler_wl='-Wl,' 8538 lt_prog_compiler_can_build_shared=no 8539 ;; 8540 8541 uts4*) 8542 lt_prog_compiler_pic='-pic' 8543 lt_prog_compiler_static='-Bstatic' 8544 ;; 8545 8546 *) 8547 lt_prog_compiler_can_build_shared=no 8548 ;; 8549 esac 8550 fi 8551 8552case $host_os in 8553 # For platforms which do not support PIC, -DPIC is meaningless: 8554 *djgpp*) 8555 lt_prog_compiler_pic= 8556 ;; 8557 *) 8558 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8559 ;; 8560esac 8561 8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8563$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8564if ${lt_cv_prog_compiler_pic+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8568fi 8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8570$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8571lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8572 8573# 8574# Check to make sure the PIC flag actually works. 8575# 8576if test -n "$lt_prog_compiler_pic"; then 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8578$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8579if ${lt_cv_prog_compiler_pic_works+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 lt_cv_prog_compiler_pic_works=no 8583 ac_outfile=conftest.$ac_objext 8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8586 # Insert the option either (1) after the last *FLAGS variable, or 8587 # (2) before a word containing "conftest.", or (3) at the end. 8588 # Note that $ac_compile itself does not contain backslashes and begins 8589 # with a dollar sign (not a hyphen), so the echo should work correctly. 8590 # The option is referenced via a variable to avoid confusing sed. 8591 lt_compile=`echo "$ac_compile" | $SED \ 8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8594 -e 's:$: $lt_compiler_flag:'` 8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8596 (eval "$lt_compile" 2>conftest.err) 8597 ac_status=$? 8598 cat conftest.err >&5 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 if (exit $ac_status) && test -s "$ac_outfile"; then 8601 # The compiler can only warn and ignore the option if not recognized 8602 # So say no if there are warnings other than the usual output. 8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8606 lt_cv_prog_compiler_pic_works=yes 8607 fi 8608 fi 8609 $RM conftest* 8610 8611fi 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8613$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8614 8615if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8616 case $lt_prog_compiler_pic in 8617 "" | " "*) ;; 8618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8619 esac 8620else 8621 lt_prog_compiler_pic= 8622 lt_prog_compiler_can_build_shared=no 8623fi 8624 8625fi 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637# 8638# Check to make sure the static flag actually works. 8639# 8640wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8642$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8643if ${lt_cv_prog_compiler_static_works+:} false; then : 8644 $as_echo_n "(cached) " >&6 8645else 8646 lt_cv_prog_compiler_static_works=no 8647 save_LDFLAGS="$LDFLAGS" 8648 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8649 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8651 # The linker can only warn and ignore the option if not recognized 8652 # So say no if there are warnings 8653 if test -s conftest.err; then 8654 # Append any errors to the config.log. 8655 cat conftest.err 1>&5 8656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8658 if diff conftest.exp conftest.er2 >/dev/null; then 8659 lt_cv_prog_compiler_static_works=yes 8660 fi 8661 else 8662 lt_cv_prog_compiler_static_works=yes 8663 fi 8664 fi 8665 $RM -r conftest* 8666 LDFLAGS="$save_LDFLAGS" 8667 8668fi 8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8670$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8671 8672if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8673 : 8674else 8675 lt_prog_compiler_static= 8676fi 8677 8678 8679 8680 8681 8682 8683 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8685$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8686if ${lt_cv_prog_compiler_c_o+:} false; then : 8687 $as_echo_n "(cached) " >&6 8688else 8689 lt_cv_prog_compiler_c_o=no 8690 $RM -r conftest 2>/dev/null 8691 mkdir conftest 8692 cd conftest 8693 mkdir out 8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8695 8696 lt_compiler_flag="-o out/conftest2.$ac_objext" 8697 # Insert the option either (1) after the last *FLAGS variable, or 8698 # (2) before a word containing "conftest.", or (3) at the end. 8699 # Note that $ac_compile itself does not contain backslashes and begins 8700 # with a dollar sign (not a hyphen), so the echo should work correctly. 8701 lt_compile=`echo "$ac_compile" | $SED \ 8702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8704 -e 's:$: $lt_compiler_flag:'` 8705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8706 (eval "$lt_compile" 2>out/conftest.err) 8707 ac_status=$? 8708 cat out/conftest.err >&5 8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8710 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8711 then 8712 # The compiler can only warn and ignore the option if not recognized 8713 # So say no if there are warnings 8714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8715 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8716 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8717 lt_cv_prog_compiler_c_o=yes 8718 fi 8719 fi 8720 chmod u+w . 2>&5 8721 $RM conftest* 8722 # SGI C++ compiler will create directory out/ii_files/ for 8723 # template instantiation 8724 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8725 $RM out/* && rmdir out 8726 cd .. 8727 $RM -r conftest 8728 $RM conftest* 8729 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8732$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8733 8734 8735 8736 8737 8738 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8740$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8741if ${lt_cv_prog_compiler_c_o+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 lt_cv_prog_compiler_c_o=no 8745 $RM -r conftest 2>/dev/null 8746 mkdir conftest 8747 cd conftest 8748 mkdir out 8749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8750 8751 lt_compiler_flag="-o out/conftest2.$ac_objext" 8752 # Insert the option either (1) after the last *FLAGS variable, or 8753 # (2) before a word containing "conftest.", or (3) at the end. 8754 # Note that $ac_compile itself does not contain backslashes and begins 8755 # with a dollar sign (not a hyphen), so the echo should work correctly. 8756 lt_compile=`echo "$ac_compile" | $SED \ 8757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8759 -e 's:$: $lt_compiler_flag:'` 8760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8761 (eval "$lt_compile" 2>out/conftest.err) 8762 ac_status=$? 8763 cat out/conftest.err >&5 8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8766 then 8767 # The compiler can only warn and ignore the option if not recognized 8768 # So say no if there are warnings 8769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8772 lt_cv_prog_compiler_c_o=yes 8773 fi 8774 fi 8775 chmod u+w . 2>&5 8776 $RM conftest* 8777 # SGI C++ compiler will create directory out/ii_files/ for 8778 # template instantiation 8779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8780 $RM out/* && rmdir out 8781 cd .. 8782 $RM -r conftest 8783 $RM conftest* 8784 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8787$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8788 8789 8790 8791 8792hard_links="nottested" 8793if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8794 # do not overwrite the value of need_locks provided by the user 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8796$as_echo_n "checking if we can lock with hard links... " >&6; } 8797 hard_links=yes 8798 $RM conftest* 8799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8800 touch conftest.a 8801 ln conftest.a conftest.b 2>&5 || hard_links=no 8802 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8804$as_echo "$hard_links" >&6; } 8805 if test "$hard_links" = no; then 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8807$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8808 need_locks=warn 8809 fi 8810else 8811 need_locks=no 8812fi 8813 8814 8815 8816 8817 8818 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8820$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8821 8822 runpath_var= 8823 allow_undefined_flag= 8824 always_export_symbols=no 8825 archive_cmds= 8826 archive_expsym_cmds= 8827 compiler_needs_object=no 8828 enable_shared_with_static_runtimes=no 8829 export_dynamic_flag_spec= 8830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8831 hardcode_automatic=no 8832 hardcode_direct=no 8833 hardcode_direct_absolute=no 8834 hardcode_libdir_flag_spec= 8835 hardcode_libdir_separator= 8836 hardcode_minus_L=no 8837 hardcode_shlibpath_var=unsupported 8838 inherit_rpath=no 8839 link_all_deplibs=unknown 8840 module_cmds= 8841 module_expsym_cmds= 8842 old_archive_from_new_cmds= 8843 old_archive_from_expsyms_cmds= 8844 thread_safe_flag_spec= 8845 whole_archive_flag_spec= 8846 # include_expsyms should be a list of space-separated symbols to be *always* 8847 # included in the symbol list 8848 include_expsyms= 8849 # exclude_expsyms can be an extended regexp of symbols to exclude 8850 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8851 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8852 # as well as any symbol that contains `d'. 8853 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8854 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8855 # platforms (ab)use it in PIC code, but their linkers get confused if 8856 # the symbol is explicitly referenced. Since portable code cannot 8857 # rely on this symbol name, it's probably fine to never include it in 8858 # preloaded symbol tables. 8859 # Exclude shared library initialization/finalization symbols. 8860 extract_expsyms_cmds= 8861 8862 case $host_os in 8863 cygwin* | mingw* | pw32* | cegcc*) 8864 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8865 # When not using gcc, we currently assume that we are using 8866 # Microsoft Visual C++. 8867 if test "$GCC" != yes; then 8868 with_gnu_ld=no 8869 fi 8870 ;; 8871 interix*) 8872 # we just hope/assume this is gcc and not c89 (= MSVC++) 8873 with_gnu_ld=yes 8874 ;; 8875 openbsd*) 8876 with_gnu_ld=no 8877 ;; 8878 esac 8879 8880 ld_shlibs=yes 8881 8882 # On some targets, GNU ld is compatible enough with the native linker 8883 # that we're better off using the native interface for both. 8884 lt_use_gnu_ld_interface=no 8885 if test "$with_gnu_ld" = yes; then 8886 case $host_os in 8887 aix*) 8888 # The AIX port of GNU ld has always aspired to compatibility 8889 # with the native linker. However, as the warning in the GNU ld 8890 # block says, versions before 2.19.5* couldn't really create working 8891 # shared libraries, regardless of the interface used. 8892 case `$LD -v 2>&1` in 8893 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8894 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8895 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8896 *) 8897 lt_use_gnu_ld_interface=yes 8898 ;; 8899 esac 8900 ;; 8901 *) 8902 lt_use_gnu_ld_interface=yes 8903 ;; 8904 esac 8905 fi 8906 8907 if test "$lt_use_gnu_ld_interface" = yes; then 8908 # If archive_cmds runs LD, not CC, wlarc should be empty 8909 wlarc='${wl}' 8910 8911 # Set some defaults for GNU ld with shared library support. These 8912 # are reset later if shared libraries are not supported. Putting them 8913 # here allows them to be overridden if necessary. 8914 runpath_var=LD_RUN_PATH 8915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8916 export_dynamic_flag_spec='${wl}--export-dynamic' 8917 # ancient GNU ld didn't support --whole-archive et. al. 8918 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8919 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8920 else 8921 whole_archive_flag_spec= 8922 fi 8923 supports_anon_versioning=no 8924 case `$LD -v 2>&1` in 8925 *GNU\ gold*) supports_anon_versioning=yes ;; 8926 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8927 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8928 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8929 *\ 2.11.*) ;; # other 2.11 versions 8930 *) supports_anon_versioning=yes ;; 8931 esac 8932 8933 # See if GNU ld supports shared libraries. 8934 case $host_os in 8935 aix[3-9]*) 8936 # On AIX/PPC, the GNU linker is very broken 8937 if test "$host_cpu" != ia64; then 8938 ld_shlibs=no 8939 cat <<_LT_EOF 1>&2 8940 8941*** Warning: the GNU linker, at least up to release 2.19, is reported 8942*** to be unable to reliably create shared libraries on AIX. 8943*** Therefore, libtool is disabling shared libraries support. If you 8944*** really care for shared libraries, you may want to install binutils 8945*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8946*** You will then need to restart the configuration process. 8947 8948_LT_EOF 8949 fi 8950 ;; 8951 8952 amigaos*) 8953 case $host_cpu in 8954 powerpc) 8955 # see comment about AmigaOS4 .so support 8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8957 archive_expsym_cmds='' 8958 ;; 8959 m68k) 8960 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)' 8961 hardcode_libdir_flag_spec='-L$libdir' 8962 hardcode_minus_L=yes 8963 ;; 8964 esac 8965 ;; 8966 8967 beos*) 8968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8969 allow_undefined_flag=unsupported 8970 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8971 # support --undefined. This deserves some investigation. FIXME 8972 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8973 else 8974 ld_shlibs=no 8975 fi 8976 ;; 8977 8978 cygwin* | mingw* | pw32* | cegcc*) 8979 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8980 # as there is no search path for DLLs. 8981 hardcode_libdir_flag_spec='-L$libdir' 8982 export_dynamic_flag_spec='${wl}--export-all-symbols' 8983 allow_undefined_flag=unsupported 8984 always_export_symbols=no 8985 enable_shared_with_static_runtimes=yes 8986 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' 8987 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8988 8989 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8991 # If the export-symbols file already is a .def file (1st line 8992 # is EXPORTS), use it as is; otherwise, prepend... 8993 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8994 cp $export_symbols $output_objdir/$soname.def; 8995 else 8996 echo EXPORTS > $output_objdir/$soname.def; 8997 cat $export_symbols >> $output_objdir/$soname.def; 8998 fi~ 8999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9000 else 9001 ld_shlibs=no 9002 fi 9003 ;; 9004 9005 haiku*) 9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9007 link_all_deplibs=yes 9008 ;; 9009 9010 interix[3-9]*) 9011 hardcode_direct=no 9012 hardcode_shlibpath_var=no 9013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9014 export_dynamic_flag_spec='${wl}-E' 9015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9016 # Instead, shared libraries are loaded at an image base (0x10000000 by 9017 # default) and relocated if they conflict, which is a slow very memory 9018 # consuming and fragmenting process. To avoid this, we pick a random, 9019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9020 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9022 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' 9023 ;; 9024 9025 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9026 tmp_diet=no 9027 if test "$host_os" = linux-dietlibc; then 9028 case $cc_basename in 9029 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9030 esac 9031 fi 9032 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9033 && test "$tmp_diet" = no 9034 then 9035 tmp_addflag=' $pic_flag' 9036 tmp_sharedflag='-shared' 9037 case $cc_basename,$host_cpu in 9038 pgcc*) # Portland Group C compiler 9039 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' 9040 tmp_addflag=' $pic_flag' 9041 ;; 9042 pgf77* | pgf90* | pgf95* | pgfortran*) 9043 # Portland Group f77 and f90 compilers 9044 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' 9045 tmp_addflag=' $pic_flag -Mnomain' ;; 9046 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9047 tmp_addflag=' -i_dynamic' ;; 9048 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9049 tmp_addflag=' -i_dynamic -nofor_main' ;; 9050 ifc* | ifort*) # Intel Fortran compiler 9051 tmp_addflag=' -nofor_main' ;; 9052 lf95*) # Lahey Fortran 8.1 9053 whole_archive_flag_spec= 9054 tmp_sharedflag='--shared' ;; 9055 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9056 tmp_sharedflag='-qmkshrobj' 9057 tmp_addflag= ;; 9058 nvcc*) # Cuda Compiler Driver 2.2 9059 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' 9060 compiler_needs_object=yes 9061 ;; 9062 esac 9063 case `$CC -V 2>&1 | sed 5q` in 9064 *Sun\ C*) # Sun C 5.9 9065 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' 9066 compiler_needs_object=yes 9067 tmp_sharedflag='-G' ;; 9068 *Sun\ F*) # Sun Fortran 8.3 9069 tmp_sharedflag='-G' ;; 9070 esac 9071 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9072 9073 if test "x$supports_anon_versioning" = xyes; then 9074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9076 echo "local: *; };" >> $output_objdir/$libname.ver~ 9077 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9078 fi 9079 9080 case $cc_basename in 9081 xlf* | bgf* | bgxlf* | mpixlf*) 9082 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9083 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9085 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9086 if test "x$supports_anon_versioning" = xyes; then 9087 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9089 echo "local: *; };" >> $output_objdir/$libname.ver~ 9090 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9091 fi 9092 ;; 9093 esac 9094 else 9095 ld_shlibs=no 9096 fi 9097 ;; 9098 9099 netbsd*) 9100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9101 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9102 wlarc= 9103 else 9104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9106 fi 9107 ;; 9108 9109 solaris*) 9110 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9111 ld_shlibs=no 9112 cat <<_LT_EOF 1>&2 9113 9114*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9115*** create shared libraries on Solaris systems. Therefore, libtool 9116*** is disabling shared libraries support. We urge you to upgrade GNU 9117*** binutils to release 2.9.1 or newer. Another option is to modify 9118*** your PATH or compiler configuration so that the native linker is 9119*** used, and then restart. 9120 9121_LT_EOF 9122 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9125 else 9126 ld_shlibs=no 9127 fi 9128 ;; 9129 9130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9131 case `$LD -v 2>&1` in 9132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9133 ld_shlibs=no 9134 cat <<_LT_EOF 1>&2 9135 9136*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9137*** reliably create shared libraries on SCO systems. Therefore, libtool 9138*** is disabling shared libraries support. We urge you to upgrade GNU 9139*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9140*** your PATH or compiler configuration so that the native linker is 9141*** used, and then restart. 9142 9143_LT_EOF 9144 ;; 9145 *) 9146 # For security reasons, it is highly recommended that you always 9147 # use absolute paths for naming shared libraries, and exclude the 9148 # DT_RUNPATH tag from executables and libraries. But doing so 9149 # requires that you compile everything twice, which is a pain. 9150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9154 else 9155 ld_shlibs=no 9156 fi 9157 ;; 9158 esac 9159 ;; 9160 9161 sunos4*) 9162 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9163 wlarc= 9164 hardcode_direct=yes 9165 hardcode_shlibpath_var=no 9166 ;; 9167 9168 *) 9169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9172 else 9173 ld_shlibs=no 9174 fi 9175 ;; 9176 esac 9177 9178 if test "$ld_shlibs" = no; then 9179 runpath_var= 9180 hardcode_libdir_flag_spec= 9181 export_dynamic_flag_spec= 9182 whole_archive_flag_spec= 9183 fi 9184 else 9185 # PORTME fill in a description of your system's linker (not GNU ld) 9186 case $host_os in 9187 aix3*) 9188 allow_undefined_flag=unsupported 9189 always_export_symbols=yes 9190 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' 9191 # Note: this linker hardcodes the directories in LIBPATH if there 9192 # are no directories specified by -L. 9193 hardcode_minus_L=yes 9194 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9195 # Neither direct hardcoding nor static linking is supported with a 9196 # broken collect2. 9197 hardcode_direct=unsupported 9198 fi 9199 ;; 9200 9201 aix[4-9]*) 9202 if test "$host_cpu" = ia64; then 9203 # On IA64, the linker does run time linking by default, so we don't 9204 # have to do anything special. 9205 aix_use_runtimelinking=no 9206 exp_sym_flag='-Bexport' 9207 no_entry_flag="" 9208 else 9209 # If we're using GNU nm, then we don't want the "-C" option. 9210 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9211 # Also, AIX nm treats weak defined symbols like other global 9212 # defined symbols, whereas GNU nm marks them as "W". 9213 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9214 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9215 else 9216 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9217 fi 9218 aix_use_runtimelinking=no 9219 9220 # Test if we are trying to use run time linking or normal 9221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9222 # need to do runtime linking. 9223 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9224 for ld_flag in $LDFLAGS; do 9225 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9226 aix_use_runtimelinking=yes 9227 break 9228 fi 9229 done 9230 ;; 9231 esac 9232 9233 exp_sym_flag='-bexport' 9234 no_entry_flag='-bnoentry' 9235 fi 9236 9237 # When large executables or shared objects are built, AIX ld can 9238 # have problems creating the table of contents. If linking a library 9239 # or program results in "error TOC overflow" add -mminimal-toc to 9240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9242 9243 archive_cmds='' 9244 hardcode_direct=yes 9245 hardcode_direct_absolute=yes 9246 hardcode_libdir_separator=':' 9247 link_all_deplibs=yes 9248 file_list_spec='${wl}-f,' 9249 9250 if test "$GCC" = yes; then 9251 case $host_os in aix4.[012]|aix4.[012].*) 9252 # We only want to do this on AIX 4.2 and lower, the check 9253 # below for broken collect2 doesn't work under 4.3+ 9254 collect2name=`${CC} -print-prog-name=collect2` 9255 if test -f "$collect2name" && 9256 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9257 then 9258 # We have reworked collect2 9259 : 9260 else 9261 # We have old collect2 9262 hardcode_direct=unsupported 9263 # It fails to find uninstalled libraries when the uninstalled 9264 # path is not listed in the libpath. Setting hardcode_minus_L 9265 # to unsupported forces relinking 9266 hardcode_minus_L=yes 9267 hardcode_libdir_flag_spec='-L$libdir' 9268 hardcode_libdir_separator= 9269 fi 9270 ;; 9271 esac 9272 shared_flag='-shared' 9273 if test "$aix_use_runtimelinking" = yes; then 9274 shared_flag="$shared_flag "'${wl}-G' 9275 fi 9276 else 9277 # not using gcc 9278 if test "$host_cpu" = ia64; then 9279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9280 # chokes on -Wl,-G. The following line is correct: 9281 shared_flag='-G' 9282 else 9283 if test "$aix_use_runtimelinking" = yes; then 9284 shared_flag='${wl}-G' 9285 else 9286 shared_flag='${wl}-bM:SRE' 9287 fi 9288 fi 9289 fi 9290 9291 export_dynamic_flag_spec='${wl}-bexpall' 9292 # It seems that -bexpall does not export symbols beginning with 9293 # underscore (_), so it is better to generate a list of symbols to export. 9294 always_export_symbols=yes 9295 if test "$aix_use_runtimelinking" = yes; then 9296 # Warning - without using the other runtime loading flags (-brtl), 9297 # -berok will link without error, but may produce a broken library. 9298 allow_undefined_flag='-berok' 9299 # Determine the default libpath from the value encoded in an 9300 # empty executable. 9301 if test "${lt_cv_aix_libpath+set}" = set; then 9302 aix_libpath=$lt_cv_aix_libpath 9303else 9304 if ${lt_cv_aix_libpath_+:} false; then : 9305 $as_echo_n "(cached) " >&6 9306else 9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9308/* end confdefs.h. */ 9309 9310int 9311main () 9312{ 9313 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318if ac_fn_c_try_link "$LINENO"; then : 9319 9320 lt_aix_libpath_sed=' 9321 /Import File Strings/,/^$/ { 9322 /^0/ { 9323 s/^0 *\([^ ]*\) *$/\1/ 9324 p 9325 } 9326 }' 9327 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9328 # Check for a 64-bit object if we didn't find anything. 9329 if test -z "$lt_cv_aix_libpath_"; then 9330 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9331 fi 9332fi 9333rm -f core conftest.err conftest.$ac_objext \ 9334 conftest$ac_exeext conftest.$ac_ext 9335 if test -z "$lt_cv_aix_libpath_"; then 9336 lt_cv_aix_libpath_="/usr/lib:/lib" 9337 fi 9338 9339fi 9340 9341 aix_libpath=$lt_cv_aix_libpath_ 9342fi 9343 9344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9346 else 9347 if test "$host_cpu" = ia64; then 9348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9349 allow_undefined_flag="-z nodefs" 9350 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" 9351 else 9352 # Determine the default libpath from the value encoded in an 9353 # empty executable. 9354 if test "${lt_cv_aix_libpath+set}" = set; then 9355 aix_libpath=$lt_cv_aix_libpath 9356else 9357 if ${lt_cv_aix_libpath_+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362 9363int 9364main () 9365{ 9366 9367 ; 9368 return 0; 9369} 9370_ACEOF 9371if ac_fn_c_try_link "$LINENO"; then : 9372 9373 lt_aix_libpath_sed=' 9374 /Import File Strings/,/^$/ { 9375 /^0/ { 9376 s/^0 *\([^ ]*\) *$/\1/ 9377 p 9378 } 9379 }' 9380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9381 # Check for a 64-bit object if we didn't find anything. 9382 if test -z "$lt_cv_aix_libpath_"; then 9383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9384 fi 9385fi 9386rm -f core conftest.err conftest.$ac_objext \ 9387 conftest$ac_exeext conftest.$ac_ext 9388 if test -z "$lt_cv_aix_libpath_"; then 9389 lt_cv_aix_libpath_="/usr/lib:/lib" 9390 fi 9391 9392fi 9393 9394 aix_libpath=$lt_cv_aix_libpath_ 9395fi 9396 9397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9398 # Warning - without using the other run time loading flags, 9399 # -berok will link without error, but may produce a broken library. 9400 no_undefined_flag=' ${wl}-bernotok' 9401 allow_undefined_flag=' ${wl}-berok' 9402 if test "$with_gnu_ld" = yes; then 9403 # We only use this code for GNU lds that support --whole-archive. 9404 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9405 else 9406 # Exported symbols can be pulled into shared objects from archives 9407 whole_archive_flag_spec='$convenience' 9408 fi 9409 archive_cmds_need_lc=yes 9410 # This is similar to how AIX traditionally builds its shared libraries. 9411 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9412 fi 9413 fi 9414 ;; 9415 9416 amigaos*) 9417 case $host_cpu in 9418 powerpc) 9419 # see comment about AmigaOS4 .so support 9420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9421 archive_expsym_cmds='' 9422 ;; 9423 m68k) 9424 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)' 9425 hardcode_libdir_flag_spec='-L$libdir' 9426 hardcode_minus_L=yes 9427 ;; 9428 esac 9429 ;; 9430 9431 bsdi[45]*) 9432 export_dynamic_flag_spec=-rdynamic 9433 ;; 9434 9435 cygwin* | mingw* | pw32* | cegcc*) 9436 # When not using gcc, we currently assume that we are using 9437 # Microsoft Visual C++. 9438 # hardcode_libdir_flag_spec is actually meaningless, as there is 9439 # no search path for DLLs. 9440 case $cc_basename in 9441 cl*) 9442 # Native MSVC 9443 hardcode_libdir_flag_spec=' ' 9444 allow_undefined_flag=unsupported 9445 always_export_symbols=yes 9446 file_list_spec='@' 9447 # Tell ltmain to make .lib files, not .a files. 9448 libext=lib 9449 # Tell ltmain to make .dll files, not .so files. 9450 shrext_cmds=".dll" 9451 # FIXME: Setting linknames here is a bad hack. 9452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9453 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9454 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9455 else 9456 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9457 fi~ 9458 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9459 linknames=' 9460 # The linker will not automatically build a static lib if we build a DLL. 9461 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9462 enable_shared_with_static_runtimes=yes 9463 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9465 # Don't use ranlib 9466 old_postinstall_cmds='chmod 644 $oldlib' 9467 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9468 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9469 case $lt_outputfile in 9470 *.exe|*.EXE) ;; 9471 *) 9472 lt_outputfile="$lt_outputfile.exe" 9473 lt_tool_outputfile="$lt_tool_outputfile.exe" 9474 ;; 9475 esac~ 9476 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9477 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9478 $RM "$lt_outputfile.manifest"; 9479 fi' 9480 ;; 9481 *) 9482 # Assume MSVC wrapper 9483 hardcode_libdir_flag_spec=' ' 9484 allow_undefined_flag=unsupported 9485 # Tell ltmain to make .lib files, not .a files. 9486 libext=lib 9487 # Tell ltmain to make .dll files, not .so files. 9488 shrext_cmds=".dll" 9489 # FIXME: Setting linknames here is a bad hack. 9490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9491 # The linker will automatically build a .lib file if we build a DLL. 9492 old_archive_from_new_cmds='true' 9493 # FIXME: Should let the user specify the lib program. 9494 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9495 enable_shared_with_static_runtimes=yes 9496 ;; 9497 esac 9498 ;; 9499 9500 darwin* | rhapsody*) 9501 9502 9503 archive_cmds_need_lc=no 9504 hardcode_direct=no 9505 hardcode_automatic=yes 9506 hardcode_shlibpath_var=unsupported 9507 if test "$lt_cv_ld_force_load" = "yes"; then 9508 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\"`' 9509 9510 else 9511 whole_archive_flag_spec='' 9512 fi 9513 link_all_deplibs=yes 9514 allow_undefined_flag="$_lt_dar_allow_undefined" 9515 case $cc_basename in 9516 ifort*) _lt_dar_can_shared=yes ;; 9517 *) _lt_dar_can_shared=$GCC ;; 9518 esac 9519 if test "$_lt_dar_can_shared" = "yes"; then 9520 output_verbose_link_cmd=func_echo_all 9521 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9522 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9523 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}" 9524 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}" 9525 9526 else 9527 ld_shlibs=no 9528 fi 9529 9530 ;; 9531 9532 dgux*) 9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9534 hardcode_libdir_flag_spec='-L$libdir' 9535 hardcode_shlibpath_var=no 9536 ;; 9537 9538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9539 # support. Future versions do this automatically, but an explicit c++rt0.o 9540 # does not break anything, and helps significantly (at the cost of a little 9541 # extra space). 9542 freebsd2.2*) 9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9544 hardcode_libdir_flag_spec='-R$libdir' 9545 hardcode_direct=yes 9546 hardcode_shlibpath_var=no 9547 ;; 9548 9549 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9550 freebsd2.*) 9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9552 hardcode_direct=yes 9553 hardcode_minus_L=yes 9554 hardcode_shlibpath_var=no 9555 ;; 9556 9557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9558 freebsd* | dragonfly*) 9559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9560 hardcode_libdir_flag_spec='-R$libdir' 9561 hardcode_direct=yes 9562 hardcode_shlibpath_var=no 9563 ;; 9564 9565 hpux9*) 9566 if test "$GCC" = yes; then 9567 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9568 else 9569 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9570 fi 9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9572 hardcode_libdir_separator=: 9573 hardcode_direct=yes 9574 9575 # hardcode_minus_L: Not really in the search PATH, 9576 # but as the default location of the library. 9577 hardcode_minus_L=yes 9578 export_dynamic_flag_spec='${wl}-E' 9579 ;; 9580 9581 hpux10*) 9582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9583 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9584 else 9585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9586 fi 9587 if test "$with_gnu_ld" = no; then 9588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9589 hardcode_libdir_separator=: 9590 hardcode_direct=yes 9591 hardcode_direct_absolute=yes 9592 export_dynamic_flag_spec='${wl}-E' 9593 # hardcode_minus_L: Not really in the search PATH, 9594 # but as the default location of the library. 9595 hardcode_minus_L=yes 9596 fi 9597 ;; 9598 9599 hpux11*) 9600 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9601 case $host_cpu in 9602 hppa*64*) 9603 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9604 ;; 9605 ia64*) 9606 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9607 ;; 9608 *) 9609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9610 ;; 9611 esac 9612 else 9613 case $host_cpu in 9614 hppa*64*) 9615 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9616 ;; 9617 ia64*) 9618 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9619 ;; 9620 *) 9621 9622 # Older versions of the 11.00 compiler do not understand -b yet 9623 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9625$as_echo_n "checking if $CC understands -b... " >&6; } 9626if ${lt_cv_prog_compiler__b+:} false; then : 9627 $as_echo_n "(cached) " >&6 9628else 9629 lt_cv_prog_compiler__b=no 9630 save_LDFLAGS="$LDFLAGS" 9631 LDFLAGS="$LDFLAGS -b" 9632 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9634 # The linker can only warn and ignore the option if not recognized 9635 # So say no if there are warnings 9636 if test -s conftest.err; then 9637 # Append any errors to the config.log. 9638 cat conftest.err 1>&5 9639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9641 if diff conftest.exp conftest.er2 >/dev/null; then 9642 lt_cv_prog_compiler__b=yes 9643 fi 9644 else 9645 lt_cv_prog_compiler__b=yes 9646 fi 9647 fi 9648 $RM -r conftest* 9649 LDFLAGS="$save_LDFLAGS" 9650 9651fi 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9653$as_echo "$lt_cv_prog_compiler__b" >&6; } 9654 9655if test x"$lt_cv_prog_compiler__b" = xyes; then 9656 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9657else 9658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9659fi 9660 9661 ;; 9662 esac 9663 fi 9664 if test "$with_gnu_ld" = no; then 9665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9666 hardcode_libdir_separator=: 9667 9668 case $host_cpu in 9669 hppa*64*|ia64*) 9670 hardcode_direct=no 9671 hardcode_shlibpath_var=no 9672 ;; 9673 *) 9674 hardcode_direct=yes 9675 hardcode_direct_absolute=yes 9676 export_dynamic_flag_spec='${wl}-E' 9677 9678 # hardcode_minus_L: Not really in the search PATH, 9679 # but as the default location of the library. 9680 hardcode_minus_L=yes 9681 ;; 9682 esac 9683 fi 9684 ;; 9685 9686 irix5* | irix6* | nonstopux*) 9687 if test "$GCC" = yes; then 9688 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' 9689 # Try to use the -exported_symbol ld option, if it does not 9690 # work, assume that -exports_file does not work either and 9691 # implicitly export all symbols. 9692 # This should be the same for all languages, so no per-tag cache variable. 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9694$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9695if ${lt_cv_irix_exported_symbol+:} false; then : 9696 $as_echo_n "(cached) " >&6 9697else 9698 save_LDFLAGS="$LDFLAGS" 9699 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701/* end confdefs.h. */ 9702int foo (void) { return 0; } 9703_ACEOF 9704if ac_fn_c_try_link "$LINENO"; then : 9705 lt_cv_irix_exported_symbol=yes 9706else 9707 lt_cv_irix_exported_symbol=no 9708fi 9709rm -f core conftest.err conftest.$ac_objext \ 9710 conftest$ac_exeext conftest.$ac_ext 9711 LDFLAGS="$save_LDFLAGS" 9712fi 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9714$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9715 if test "$lt_cv_irix_exported_symbol" = yes; then 9716 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' 9717 fi 9718 else 9719 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' 9720 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' 9721 fi 9722 archive_cmds_need_lc='no' 9723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9724 hardcode_libdir_separator=: 9725 inherit_rpath=yes 9726 link_all_deplibs=yes 9727 ;; 9728 9729 netbsd*) 9730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9732 else 9733 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9734 fi 9735 hardcode_libdir_flag_spec='-R$libdir' 9736 hardcode_direct=yes 9737 hardcode_shlibpath_var=no 9738 ;; 9739 9740 newsos6) 9741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9742 hardcode_direct=yes 9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9744 hardcode_libdir_separator=: 9745 hardcode_shlibpath_var=no 9746 ;; 9747 9748 *nto* | *qnx*) 9749 ;; 9750 9751 openbsd*) 9752 if test -f /usr/libexec/ld.so; then 9753 hardcode_direct=yes 9754 hardcode_shlibpath_var=no 9755 hardcode_direct_absolute=yes 9756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9758 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9760 export_dynamic_flag_spec='${wl}-E' 9761 else 9762 case $host_os in 9763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9765 hardcode_libdir_flag_spec='-R$libdir' 9766 ;; 9767 *) 9768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9770 ;; 9771 esac 9772 fi 9773 else 9774 ld_shlibs=no 9775 fi 9776 ;; 9777 9778 os2*) 9779 hardcode_libdir_flag_spec='-L$libdir' 9780 hardcode_minus_L=yes 9781 allow_undefined_flag=unsupported 9782 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9783 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9784 ;; 9785 9786 osf3*) 9787 if test "$GCC" = yes; then 9788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9789 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' 9790 else 9791 allow_undefined_flag=' -expect_unresolved \*' 9792 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' 9793 fi 9794 archive_cmds_need_lc='no' 9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9796 hardcode_libdir_separator=: 9797 ;; 9798 9799 osf4* | osf5*) # as osf3* with the addition of -msym flag 9800 if test "$GCC" = yes; then 9801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9802 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' 9803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9804 else 9805 allow_undefined_flag=' -expect_unresolved \*' 9806 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' 9807 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~ 9808 $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' 9809 9810 # Both c and cxx compiler support -rpath directly 9811 hardcode_libdir_flag_spec='-rpath $libdir' 9812 fi 9813 archive_cmds_need_lc='no' 9814 hardcode_libdir_separator=: 9815 ;; 9816 9817 solaris*) 9818 no_undefined_flag=' -z defs' 9819 if test "$GCC" = yes; then 9820 wlarc='${wl}' 9821 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9823 $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' 9824 else 9825 case `$CC -V 2>&1` in 9826 *"Compilers 5.0"*) 9827 wlarc='' 9828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9831 ;; 9832 *) 9833 wlarc='${wl}' 9834 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9836 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9837 ;; 9838 esac 9839 fi 9840 hardcode_libdir_flag_spec='-R$libdir' 9841 hardcode_shlibpath_var=no 9842 case $host_os in 9843 solaris2.[0-5] | solaris2.[0-5].*) ;; 9844 *) 9845 # The compiler driver will combine and reorder linker options, 9846 # but understands `-z linker_flag'. GCC discards it without `$wl', 9847 # but is careful enough not to reorder. 9848 # Supported since Solaris 2.6 (maybe 2.5.1?) 9849 if test "$GCC" = yes; then 9850 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9851 else 9852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9853 fi 9854 ;; 9855 esac 9856 link_all_deplibs=yes 9857 ;; 9858 9859 sunos4*) 9860 if test "x$host_vendor" = xsequent; then 9861 # Use $CC to link under sequent, because it throws in some extra .o 9862 # files that make .init and .fini sections work. 9863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9864 else 9865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9866 fi 9867 hardcode_libdir_flag_spec='-L$libdir' 9868 hardcode_direct=yes 9869 hardcode_minus_L=yes 9870 hardcode_shlibpath_var=no 9871 ;; 9872 9873 sysv4) 9874 case $host_vendor in 9875 sni) 9876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9877 hardcode_direct=yes # is this really true??? 9878 ;; 9879 siemens) 9880 ## LD is ld it makes a PLAMLIB 9881 ## CC just makes a GrossModule. 9882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9883 reload_cmds='$CC -r -o $output$reload_objs' 9884 hardcode_direct=no 9885 ;; 9886 motorola) 9887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9889 ;; 9890 esac 9891 runpath_var='LD_RUN_PATH' 9892 hardcode_shlibpath_var=no 9893 ;; 9894 9895 sysv4.3*) 9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9897 hardcode_shlibpath_var=no 9898 export_dynamic_flag_spec='-Bexport' 9899 ;; 9900 9901 sysv4*MP*) 9902 if test -d /usr/nec; then 9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9904 hardcode_shlibpath_var=no 9905 runpath_var=LD_RUN_PATH 9906 hardcode_runpath_var=yes 9907 ld_shlibs=yes 9908 fi 9909 ;; 9910 9911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9912 no_undefined_flag='${wl}-z,text' 9913 archive_cmds_need_lc=no 9914 hardcode_shlibpath_var=no 9915 runpath_var='LD_RUN_PATH' 9916 9917 if test "$GCC" = yes; then 9918 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9919 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9920 else 9921 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9922 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9923 fi 9924 ;; 9925 9926 sysv5* | sco3.2v5* | sco5v6*) 9927 # Note: We can NOT use -z defs as we might desire, because we do not 9928 # link with -lc, and that would cause any symbols used from libc to 9929 # always be unresolved, which means just about no library would 9930 # ever link correctly. If we're not using GNU ld we use -z text 9931 # though, which does catch some bad symbols but isn't as heavy-handed 9932 # as -z defs. 9933 no_undefined_flag='${wl}-z,text' 9934 allow_undefined_flag='${wl}-z,nodefs' 9935 archive_cmds_need_lc=no 9936 hardcode_shlibpath_var=no 9937 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9938 hardcode_libdir_separator=':' 9939 link_all_deplibs=yes 9940 export_dynamic_flag_spec='${wl}-Bexport' 9941 runpath_var='LD_RUN_PATH' 9942 9943 if test "$GCC" = yes; then 9944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9946 else 9947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9949 fi 9950 ;; 9951 9952 uts4*) 9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9954 hardcode_libdir_flag_spec='-L$libdir' 9955 hardcode_shlibpath_var=no 9956 ;; 9957 9958 *) 9959 ld_shlibs=no 9960 ;; 9961 esac 9962 9963 if test x$host_vendor = xsni; then 9964 case $host in 9965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9966 export_dynamic_flag_spec='${wl}-Blargedynsym' 9967 ;; 9968 esac 9969 fi 9970 fi 9971 9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9973$as_echo "$ld_shlibs" >&6; } 9974test "$ld_shlibs" = no && can_build_shared=no 9975 9976with_gnu_ld=$with_gnu_ld 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992# 9993# Do we need to explicitly link libc? 9994# 9995case "x$archive_cmds_need_lc" in 9996x|xyes) 9997 # Assume -lc should be added 9998 archive_cmds_need_lc=yes 9999 10000 if test "$enable_shared" = yes && test "$GCC" = yes; then 10001 case $archive_cmds in 10002 *'~'*) 10003 # FIXME: we may have to deal with multi-command sequences. 10004 ;; 10005 '$CC '*) 10006 # Test whether the compiler implicitly links with -lc since on some 10007 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10008 # to ld, don't add -lc before -lgcc. 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10010$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10011if ${lt_cv_archive_cmds_need_lc+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 $RM conftest* 10015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10016 10017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10018 (eval $ac_compile) 2>&5 10019 ac_status=$? 10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10021 test $ac_status = 0; } 2>conftest.err; then 10022 soname=conftest 10023 lib=conftest 10024 libobjs=conftest.$ac_objext 10025 deplibs= 10026 wl=$lt_prog_compiler_wl 10027 pic_flag=$lt_prog_compiler_pic 10028 compiler_flags=-v 10029 linker_flags=-v 10030 verstring= 10031 output_objdir=. 10032 libname=conftest 10033 lt_save_allow_undefined_flag=$allow_undefined_flag 10034 allow_undefined_flag= 10035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10036 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10037 ac_status=$? 10038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10039 test $ac_status = 0; } 10040 then 10041 lt_cv_archive_cmds_need_lc=no 10042 else 10043 lt_cv_archive_cmds_need_lc=yes 10044 fi 10045 allow_undefined_flag=$lt_save_allow_undefined_flag 10046 else 10047 cat conftest.err 1>&5 10048 fi 10049 $RM conftest* 10050 10051fi 10052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10053$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10054 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10055 ;; 10056 esac 10057 fi 10058 ;; 10059esac 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10213$as_echo_n "checking dynamic linker characteristics... " >&6; } 10214 10215if test "$GCC" = yes; then 10216 case $host_os in 10217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10218 *) lt_awk_arg="/^libraries:/" ;; 10219 esac 10220 case $host_os in 10221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10222 *) lt_sed_strip_eq="s,=/,/,g" ;; 10223 esac 10224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10225 case $lt_search_path_spec in 10226 *\;*) 10227 # if the path contains ";" then we assume it to be the separator 10228 # otherwise default to the standard path separator (i.e. ":") - it is 10229 # assumed that no part of a normal pathname contains ";" but that should 10230 # okay in the real world where ";" in dirpaths is itself problematic. 10231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10232 ;; 10233 *) 10234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10235 ;; 10236 esac 10237 # Ok, now we have the path, separated by spaces, we can step through it 10238 # and add multilib dir if necessary. 10239 lt_tmp_lt_search_path_spec= 10240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10241 for lt_sys_path in $lt_search_path_spec; do 10242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10244 else 10245 test -d "$lt_sys_path" && \ 10246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10247 fi 10248 done 10249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10250BEGIN {RS=" "; FS="/|\n";} { 10251 lt_foo=""; 10252 lt_count=0; 10253 for (lt_i = NF; lt_i > 0; lt_i--) { 10254 if ($lt_i != "" && $lt_i != ".") { 10255 if ($lt_i == "..") { 10256 lt_count++; 10257 } else { 10258 if (lt_count == 0) { 10259 lt_foo="/" $lt_i lt_foo; 10260 } else { 10261 lt_count--; 10262 } 10263 } 10264 } 10265 } 10266 if (lt_foo != "") { lt_freq[lt_foo]++; } 10267 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10268}'` 10269 # AWK program above erroneously prepends '/' to C:/dos/paths 10270 # for these hosts. 10271 case $host_os in 10272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10273 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10274 esac 10275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10276else 10277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10278fi 10279library_names_spec= 10280libname_spec='lib$name' 10281soname_spec= 10282shrext_cmds=".so" 10283postinstall_cmds= 10284postuninstall_cmds= 10285finish_cmds= 10286finish_eval= 10287shlibpath_var= 10288shlibpath_overrides_runpath=unknown 10289version_type=none 10290dynamic_linker="$host_os ld.so" 10291sys_lib_dlsearch_path_spec="/lib /usr/lib" 10292need_lib_prefix=unknown 10293hardcode_into_libs=no 10294 10295# when you set need_version to no, make sure it does not cause -set_version 10296# flags to be left without arguments 10297need_version=unknown 10298 10299case $host_os in 10300aix3*) 10301 version_type=linux # correct to gnu/linux during the next big refactor 10302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10303 shlibpath_var=LIBPATH 10304 10305 # AIX 3 has no versioning support, so we append a major version to the name. 10306 soname_spec='${libname}${release}${shared_ext}$major' 10307 ;; 10308 10309aix[4-9]*) 10310 version_type=linux # correct to gnu/linux during the next big refactor 10311 need_lib_prefix=no 10312 need_version=no 10313 hardcode_into_libs=yes 10314 if test "$host_cpu" = ia64; then 10315 # AIX 5 supports IA64 10316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10317 shlibpath_var=LD_LIBRARY_PATH 10318 else 10319 # With GCC up to 2.95.x, collect2 would create an import file 10320 # for dependence libraries. The import file would start with 10321 # the line `#! .'. This would cause the generated library to 10322 # depend on `.', always an invalid library. This was fixed in 10323 # development snapshots of GCC prior to 3.0. 10324 case $host_os in 10325 aix4 | aix4.[01] | aix4.[01].*) 10326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10327 echo ' yes ' 10328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10329 : 10330 else 10331 can_build_shared=no 10332 fi 10333 ;; 10334 esac 10335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10336 # soname into executable. Probably we can add versioning support to 10337 # collect2, so additional links can be useful in future. 10338 if test "$aix_use_runtimelinking" = yes; then 10339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10340 # instead of lib<name>.a to let people know that these are not 10341 # typical AIX shared libraries. 10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10343 else 10344 # We preserve .a as extension for shared libraries through AIX4.2 10345 # and later when we are not doing run time linking. 10346 library_names_spec='${libname}${release}.a $libname.a' 10347 soname_spec='${libname}${release}${shared_ext}$major' 10348 fi 10349 shlibpath_var=LIBPATH 10350 fi 10351 ;; 10352 10353amigaos*) 10354 case $host_cpu in 10355 powerpc) 10356 # Since July 2007 AmigaOS4 officially supports .so libraries. 10357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10359 ;; 10360 m68k) 10361 library_names_spec='$libname.ixlibrary $libname.a' 10362 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10364 ;; 10365 esac 10366 ;; 10367 10368beos*) 10369 library_names_spec='${libname}${shared_ext}' 10370 dynamic_linker="$host_os ld.so" 10371 shlibpath_var=LIBRARY_PATH 10372 ;; 10373 10374bsdi[45]*) 10375 version_type=linux # correct to gnu/linux during the next big refactor 10376 need_version=no 10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10378 soname_spec='${libname}${release}${shared_ext}$major' 10379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10380 shlibpath_var=LD_LIBRARY_PATH 10381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10383 # the default ld.so.conf also contains /usr/contrib/lib and 10384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10385 # libtool to hard-code these into programs 10386 ;; 10387 10388cygwin* | mingw* | pw32* | cegcc*) 10389 version_type=windows 10390 shrext_cmds=".dll" 10391 need_version=no 10392 need_lib_prefix=no 10393 10394 case $GCC,$cc_basename in 10395 yes,*) 10396 # gcc 10397 library_names_spec='$libname.dll.a' 10398 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10399 postinstall_cmds='base_file=`basename \${file}`~ 10400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10401 dldir=$destdir/`dirname \$dlpath`~ 10402 test -d \$dldir || mkdir -p \$dldir~ 10403 $install_prog $dir/$dlname \$dldir/$dlname~ 10404 chmod a+x \$dldir/$dlname~ 10405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10407 fi' 10408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10409 dlpath=$dir/\$dldll~ 10410 $RM \$dlpath' 10411 shlibpath_overrides_runpath=yes 10412 10413 case $host_os in 10414 cygwin*) 10415 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10417 10418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10419 ;; 10420 mingw* | cegcc*) 10421 # MinGW DLLs use traditional 'lib' prefix 10422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10423 ;; 10424 pw32*) 10425 # pw32 DLLs use 'pw' prefix rather than 'lib' 10426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10427 ;; 10428 esac 10429 dynamic_linker='Win32 ld.exe' 10430 ;; 10431 10432 *,cl*) 10433 # Native MSVC 10434 libname_spec='$name' 10435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10436 library_names_spec='${libname}.dll.lib' 10437 10438 case $build_os in 10439 mingw*) 10440 sys_lib_search_path_spec= 10441 lt_save_ifs=$IFS 10442 IFS=';' 10443 for lt_path in $LIB 10444 do 10445 IFS=$lt_save_ifs 10446 # Let DOS variable expansion print the short 8.3 style file name. 10447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10449 done 10450 IFS=$lt_save_ifs 10451 # Convert to MSYS style. 10452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10453 ;; 10454 cygwin*) 10455 # Convert to unix form, then to dos form, then back to unix form 10456 # but this time dos style (no spaces!) so that the unix form looks 10457 # like /cygdrive/c/PROGRA~1:/cygdr... 10458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10461 ;; 10462 *) 10463 sys_lib_search_path_spec="$LIB" 10464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10465 # It is most probably a Windows format PATH. 10466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10467 else 10468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10469 fi 10470 # FIXME: find the short name or the path components, as spaces are 10471 # common. (e.g. "Program Files" -> "PROGRA~1") 10472 ;; 10473 esac 10474 10475 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10476 postinstall_cmds='base_file=`basename \${file}`~ 10477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10478 dldir=$destdir/`dirname \$dlpath`~ 10479 test -d \$dldir || mkdir -p \$dldir~ 10480 $install_prog $dir/$dlname \$dldir/$dlname' 10481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10482 dlpath=$dir/\$dldll~ 10483 $RM \$dlpath' 10484 shlibpath_overrides_runpath=yes 10485 dynamic_linker='Win32 link.exe' 10486 ;; 10487 10488 *) 10489 # Assume MSVC wrapper 10490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10491 dynamic_linker='Win32 ld.exe' 10492 ;; 10493 esac 10494 # FIXME: first we should search . and the directory the executable is in 10495 shlibpath_var=PATH 10496 ;; 10497 10498darwin* | rhapsody*) 10499 dynamic_linker="$host_os dyld" 10500 version_type=darwin 10501 need_lib_prefix=no 10502 need_version=no 10503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10504 soname_spec='${libname}${release}${major}$shared_ext' 10505 shlibpath_overrides_runpath=yes 10506 shlibpath_var=DYLD_LIBRARY_PATH 10507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10508 10509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10511 ;; 10512 10513dgux*) 10514 version_type=linux # correct to gnu/linux during the next big refactor 10515 need_lib_prefix=no 10516 need_version=no 10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10518 soname_spec='${libname}${release}${shared_ext}$major' 10519 shlibpath_var=LD_LIBRARY_PATH 10520 ;; 10521 10522freebsd* | dragonfly*) 10523 # DragonFly does not have aout. When/if they implement a new 10524 # versioning mechanism, adjust this. 10525 if test -x /usr/bin/objformat; then 10526 objformat=`/usr/bin/objformat` 10527 else 10528 case $host_os in 10529 freebsd[23].*) objformat=aout ;; 10530 *) objformat=elf ;; 10531 esac 10532 fi 10533 version_type=freebsd-$objformat 10534 case $version_type in 10535 freebsd-elf*) 10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10537 need_version=no 10538 need_lib_prefix=no 10539 ;; 10540 freebsd-*) 10541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10542 need_version=yes 10543 ;; 10544 esac 10545 shlibpath_var=LD_LIBRARY_PATH 10546 case $host_os in 10547 freebsd2.*) 10548 shlibpath_overrides_runpath=yes 10549 ;; 10550 freebsd3.[01]* | freebsdelf3.[01]*) 10551 shlibpath_overrides_runpath=yes 10552 hardcode_into_libs=yes 10553 ;; 10554 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10555 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10556 shlibpath_overrides_runpath=no 10557 hardcode_into_libs=yes 10558 ;; 10559 *) # from 4.6 on, and DragonFly 10560 shlibpath_overrides_runpath=yes 10561 hardcode_into_libs=yes 10562 ;; 10563 esac 10564 ;; 10565 10566gnu*) 10567 version_type=linux # correct to gnu/linux during the next big refactor 10568 need_lib_prefix=no 10569 need_version=no 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10571 soname_spec='${libname}${release}${shared_ext}$major' 10572 shlibpath_var=LD_LIBRARY_PATH 10573 shlibpath_overrides_runpath=no 10574 hardcode_into_libs=yes 10575 ;; 10576 10577haiku*) 10578 version_type=linux # correct to gnu/linux during the next big refactor 10579 need_lib_prefix=no 10580 need_version=no 10581 dynamic_linker="$host_os runtime_loader" 10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10583 soname_spec='${libname}${release}${shared_ext}$major' 10584 shlibpath_var=LIBRARY_PATH 10585 shlibpath_overrides_runpath=yes 10586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10587 hardcode_into_libs=yes 10588 ;; 10589 10590hpux9* | hpux10* | hpux11*) 10591 # Give a soname corresponding to the major version so that dld.sl refuses to 10592 # link against other versions. 10593 version_type=sunos 10594 need_lib_prefix=no 10595 need_version=no 10596 case $host_cpu in 10597 ia64*) 10598 shrext_cmds='.so' 10599 hardcode_into_libs=yes 10600 dynamic_linker="$host_os dld.so" 10601 shlibpath_var=LD_LIBRARY_PATH 10602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10604 soname_spec='${libname}${release}${shared_ext}$major' 10605 if test "X$HPUX_IA64_MODE" = X32; then 10606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10607 else 10608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10609 fi 10610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10611 ;; 10612 hppa*64*) 10613 shrext_cmds='.sl' 10614 hardcode_into_libs=yes 10615 dynamic_linker="$host_os dld.sl" 10616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10622 ;; 10623 *) 10624 shrext_cmds='.sl' 10625 dynamic_linker="$host_os dld.sl" 10626 shlibpath_var=SHLIB_PATH 10627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 ;; 10631 esac 10632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10633 postinstall_cmds='chmod 555 $lib' 10634 # or fails outright, so override atomically: 10635 install_override_mode=555 10636 ;; 10637 10638interix[3-9]*) 10639 version_type=linux # correct to gnu/linux during the next big refactor 10640 need_lib_prefix=no 10641 need_version=no 10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10643 soname_spec='${libname}${release}${shared_ext}$major' 10644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10645 shlibpath_var=LD_LIBRARY_PATH 10646 shlibpath_overrides_runpath=no 10647 hardcode_into_libs=yes 10648 ;; 10649 10650irix5* | irix6* | nonstopux*) 10651 case $host_os in 10652 nonstopux*) version_type=nonstopux ;; 10653 *) 10654 if test "$lt_cv_prog_gnu_ld" = yes; then 10655 version_type=linux # correct to gnu/linux during the next big refactor 10656 else 10657 version_type=irix 10658 fi ;; 10659 esac 10660 need_lib_prefix=no 10661 need_version=no 10662 soname_spec='${libname}${release}${shared_ext}$major' 10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10664 case $host_os in 10665 irix5* | nonstopux*) 10666 libsuff= shlibsuff= 10667 ;; 10668 *) 10669 case $LD in # libtool.m4 will add one of these switches to LD 10670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10671 libsuff= shlibsuff= libmagic=32-bit;; 10672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10673 libsuff=32 shlibsuff=N32 libmagic=N32;; 10674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10675 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10676 *) libsuff= shlibsuff= libmagic=never-match;; 10677 esac 10678 ;; 10679 esac 10680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10681 shlibpath_overrides_runpath=no 10682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10684 hardcode_into_libs=yes 10685 ;; 10686 10687# No shared lib support for Linux oldld, aout, or coff. 10688linux*oldld* | linux*aout* | linux*coff*) 10689 dynamic_linker=no 10690 ;; 10691 10692# This must be glibc/ELF. 10693linux* | k*bsd*-gnu | kopensolaris*-gnu) 10694 version_type=linux # correct to gnu/linux during the next big refactor 10695 need_lib_prefix=no 10696 need_version=no 10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10698 soname_spec='${libname}${release}${shared_ext}$major' 10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 shlibpath_overrides_runpath=no 10702 10703 # Some binutils ld are patched to set DT_RUNPATH 10704 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10705 $as_echo_n "(cached) " >&6 10706else 10707 lt_cv_shlibpath_overrides_runpath=no 10708 save_LDFLAGS=$LDFLAGS 10709 save_libdir=$libdir 10710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10713/* end confdefs.h. */ 10714 10715int 10716main () 10717{ 10718 10719 ; 10720 return 0; 10721} 10722_ACEOF 10723if ac_fn_c_try_link "$LINENO"; then : 10724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10725 lt_cv_shlibpath_overrides_runpath=yes 10726fi 10727fi 10728rm -f core conftest.err conftest.$ac_objext \ 10729 conftest$ac_exeext conftest.$ac_ext 10730 LDFLAGS=$save_LDFLAGS 10731 libdir=$save_libdir 10732 10733fi 10734 10735 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10736 10737 # This implies no fast_install, which is unacceptable. 10738 # Some rework will be needed to allow for fast_install 10739 # before this can be enabled. 10740 hardcode_into_libs=yes 10741 10742 # Append ld.so.conf contents to the search path 10743 if test -f /etc/ld.so.conf; then 10744 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' ' '` 10745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10746 fi 10747 10748 # We used to test for /lib/ld.so.1 and disable shared libraries on 10749 # powerpc, because MkLinux only supported shared libraries with the 10750 # GNU dynamic linker. Since this was broken with cross compilers, 10751 # most powerpc-linux boxes support dynamic linking these days and 10752 # people can always --disable-shared, the test was removed, and we 10753 # assume the GNU/Linux dynamic linker is in use. 10754 dynamic_linker='GNU/Linux ld.so' 10755 ;; 10756 10757netbsd*) 10758 version_type=sunos 10759 need_lib_prefix=no 10760 need_version=no 10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10764 dynamic_linker='NetBSD (a.out) ld.so' 10765 else 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10767 soname_spec='${libname}${release}${shared_ext}$major' 10768 dynamic_linker='NetBSD ld.elf_so' 10769 fi 10770 shlibpath_var=LD_LIBRARY_PATH 10771 shlibpath_overrides_runpath=yes 10772 hardcode_into_libs=yes 10773 ;; 10774 10775newsos6) 10776 version_type=linux # correct to gnu/linux during the next big refactor 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10778 shlibpath_var=LD_LIBRARY_PATH 10779 shlibpath_overrides_runpath=yes 10780 ;; 10781 10782*nto* | *qnx*) 10783 version_type=qnx 10784 need_lib_prefix=no 10785 need_version=no 10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10787 soname_spec='${libname}${release}${shared_ext}$major' 10788 shlibpath_var=LD_LIBRARY_PATH 10789 shlibpath_overrides_runpath=no 10790 hardcode_into_libs=yes 10791 dynamic_linker='ldqnx.so' 10792 ;; 10793 10794openbsd*) 10795 version_type=sunos 10796 sys_lib_dlsearch_path_spec="/usr/lib" 10797 need_lib_prefix=no 10798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10799 case $host_os in 10800 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10801 *) need_version=no ;; 10802 esac 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10805 shlibpath_var=LD_LIBRARY_PATH 10806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10807 case $host_os in 10808 openbsd2.[89] | openbsd2.[89].*) 10809 shlibpath_overrides_runpath=no 10810 ;; 10811 *) 10812 shlibpath_overrides_runpath=yes 10813 ;; 10814 esac 10815 else 10816 shlibpath_overrides_runpath=yes 10817 fi 10818 ;; 10819 10820os2*) 10821 libname_spec='$name' 10822 shrext_cmds=".dll" 10823 need_lib_prefix=no 10824 library_names_spec='$libname${shared_ext} $libname.a' 10825 dynamic_linker='OS/2 ld.exe' 10826 shlibpath_var=LIBPATH 10827 ;; 10828 10829osf3* | osf4* | osf5*) 10830 version_type=osf 10831 need_lib_prefix=no 10832 need_version=no 10833 soname_spec='${libname}${release}${shared_ext}$major' 10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10835 shlibpath_var=LD_LIBRARY_PATH 10836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10838 ;; 10839 10840rdos*) 10841 dynamic_linker=no 10842 ;; 10843 10844solaris*) 10845 version_type=linux # correct to gnu/linux during the next big refactor 10846 need_lib_prefix=no 10847 need_version=no 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10849 soname_spec='${libname}${release}${shared_ext}$major' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 shlibpath_overrides_runpath=yes 10852 hardcode_into_libs=yes 10853 # ldd complains unless libraries are executable 10854 postinstall_cmds='chmod +x $lib' 10855 ;; 10856 10857sunos4*) 10858 version_type=sunos 10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10861 shlibpath_var=LD_LIBRARY_PATH 10862 shlibpath_overrides_runpath=yes 10863 if test "$with_gnu_ld" = yes; then 10864 need_lib_prefix=no 10865 fi 10866 need_version=yes 10867 ;; 10868 10869sysv4 | sysv4.3*) 10870 version_type=linux # correct to gnu/linux during the next big refactor 10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10872 soname_spec='${libname}${release}${shared_ext}$major' 10873 shlibpath_var=LD_LIBRARY_PATH 10874 case $host_vendor in 10875 sni) 10876 shlibpath_overrides_runpath=no 10877 need_lib_prefix=no 10878 runpath_var=LD_RUN_PATH 10879 ;; 10880 siemens) 10881 need_lib_prefix=no 10882 ;; 10883 motorola) 10884 need_lib_prefix=no 10885 need_version=no 10886 shlibpath_overrides_runpath=no 10887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10888 ;; 10889 esac 10890 ;; 10891 10892sysv4*MP*) 10893 if test -d /usr/nec ;then 10894 version_type=linux # correct to gnu/linux during the next big refactor 10895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10896 soname_spec='$libname${shared_ext}.$major' 10897 shlibpath_var=LD_LIBRARY_PATH 10898 fi 10899 ;; 10900 10901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10902 version_type=freebsd-elf 10903 need_lib_prefix=no 10904 need_version=no 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10906 soname_spec='${libname}${release}${shared_ext}$major' 10907 shlibpath_var=LD_LIBRARY_PATH 10908 shlibpath_overrides_runpath=yes 10909 hardcode_into_libs=yes 10910 if test "$with_gnu_ld" = yes; then 10911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10912 else 10913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10914 case $host_os in 10915 sco3.2v5*) 10916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10917 ;; 10918 esac 10919 fi 10920 sys_lib_dlsearch_path_spec='/usr/lib' 10921 ;; 10922 10923tpf*) 10924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10925 version_type=linux # correct to gnu/linux during the next big refactor 10926 need_lib_prefix=no 10927 need_version=no 10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10929 shlibpath_var=LD_LIBRARY_PATH 10930 shlibpath_overrides_runpath=no 10931 hardcode_into_libs=yes 10932 ;; 10933 10934uts4*) 10935 version_type=linux # correct to gnu/linux during the next big refactor 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10937 soname_spec='${libname}${release}${shared_ext}$major' 10938 shlibpath_var=LD_LIBRARY_PATH 10939 ;; 10940 10941*) 10942 dynamic_linker=no 10943 ;; 10944esac 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10946$as_echo "$dynamic_linker" >&6; } 10947test "$dynamic_linker" = no && can_build_shared=no 10948 10949variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10950if test "$GCC" = yes; then 10951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10952fi 10953 10954if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10956fi 10957if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10959fi 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11053$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11054hardcode_action= 11055if test -n "$hardcode_libdir_flag_spec" || 11056 test -n "$runpath_var" || 11057 test "X$hardcode_automatic" = "Xyes" ; then 11058 11059 # We can hardcode non-existent directories. 11060 if test "$hardcode_direct" != no && 11061 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11062 # have to relink, otherwise we might link with an installed library 11063 # when we should be linking with a yet-to-be-installed one 11064 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11065 test "$hardcode_minus_L" != no; then 11066 # Linking always hardcodes the temporary library directory. 11067 hardcode_action=relink 11068 else 11069 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11070 hardcode_action=immediate 11071 fi 11072else 11073 # We cannot hardcode anything, or else we can only hardcode existing 11074 # directories. 11075 hardcode_action=unsupported 11076fi 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11078$as_echo "$hardcode_action" >&6; } 11079 11080if test "$hardcode_action" = relink || 11081 test "$inherit_rpath" = yes; then 11082 # Fast installation is not supported 11083 enable_fast_install=no 11084elif test "$shlibpath_overrides_runpath" = yes || 11085 test "$enable_shared" = no; then 11086 # Fast installation is not necessary 11087 enable_fast_install=needless 11088fi 11089 11090 11091 11092 11093 11094 11095 if test "x$enable_dlopen" != xyes; then 11096 enable_dlopen=unknown 11097 enable_dlopen_self=unknown 11098 enable_dlopen_self_static=unknown 11099else 11100 lt_cv_dlopen=no 11101 lt_cv_dlopen_libs= 11102 11103 case $host_os in 11104 beos*) 11105 lt_cv_dlopen="load_add_on" 11106 lt_cv_dlopen_libs= 11107 lt_cv_dlopen_self=yes 11108 ;; 11109 11110 mingw* | pw32* | cegcc*) 11111 lt_cv_dlopen="LoadLibrary" 11112 lt_cv_dlopen_libs= 11113 ;; 11114 11115 cygwin*) 11116 lt_cv_dlopen="dlopen" 11117 lt_cv_dlopen_libs= 11118 ;; 11119 11120 darwin*) 11121 # if libdl is installed we need to link against it 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11123$as_echo_n "checking for dlopen in -ldl... " >&6; } 11124if ${ac_cv_lib_dl_dlopen+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 ac_check_lib_save_LIBS=$LIBS 11128LIBS="-ldl $LIBS" 11129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130/* end confdefs.h. */ 11131 11132/* Override any GCC internal prototype to avoid an error. 11133 Use char because int might match the return type of a GCC 11134 builtin and then its argument prototype would still apply. */ 11135#ifdef __cplusplus 11136extern "C" 11137#endif 11138char dlopen (); 11139int 11140main () 11141{ 11142return dlopen (); 11143 ; 11144 return 0; 11145} 11146_ACEOF 11147if ac_fn_c_try_link "$LINENO"; then : 11148 ac_cv_lib_dl_dlopen=yes 11149else 11150 ac_cv_lib_dl_dlopen=no 11151fi 11152rm -f core conftest.err conftest.$ac_objext \ 11153 conftest$ac_exeext conftest.$ac_ext 11154LIBS=$ac_check_lib_save_LIBS 11155fi 11156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11157$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11158if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11160else 11161 11162 lt_cv_dlopen="dyld" 11163 lt_cv_dlopen_libs= 11164 lt_cv_dlopen_self=yes 11165 11166fi 11167 11168 ;; 11169 11170 *) 11171 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11172if test "x$ac_cv_func_shl_load" = xyes; then : 11173 lt_cv_dlopen="shl_load" 11174else 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11176$as_echo_n "checking for shl_load in -ldld... " >&6; } 11177if ${ac_cv_lib_dld_shl_load+:} false; then : 11178 $as_echo_n "(cached) " >&6 11179else 11180 ac_check_lib_save_LIBS=$LIBS 11181LIBS="-ldld $LIBS" 11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11183/* end confdefs.h. */ 11184 11185/* Override any GCC internal prototype to avoid an error. 11186 Use char because int might match the return type of a GCC 11187 builtin and then its argument prototype would still apply. */ 11188#ifdef __cplusplus 11189extern "C" 11190#endif 11191char shl_load (); 11192int 11193main () 11194{ 11195return shl_load (); 11196 ; 11197 return 0; 11198} 11199_ACEOF 11200if ac_fn_c_try_link "$LINENO"; then : 11201 ac_cv_lib_dld_shl_load=yes 11202else 11203 ac_cv_lib_dld_shl_load=no 11204fi 11205rm -f core conftest.err conftest.$ac_objext \ 11206 conftest$ac_exeext conftest.$ac_ext 11207LIBS=$ac_check_lib_save_LIBS 11208fi 11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11210$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11211if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11213else 11214 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11215if test "x$ac_cv_func_dlopen" = xyes; then : 11216 lt_cv_dlopen="dlopen" 11217else 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11219$as_echo_n "checking for dlopen in -ldl... " >&6; } 11220if ${ac_cv_lib_dl_dlopen+:} false; then : 11221 $as_echo_n "(cached) " >&6 11222else 11223 ac_check_lib_save_LIBS=$LIBS 11224LIBS="-ldl $LIBS" 11225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11226/* end confdefs.h. */ 11227 11228/* Override any GCC internal prototype to avoid an error. 11229 Use char because int might match the return type of a GCC 11230 builtin and then its argument prototype would still apply. */ 11231#ifdef __cplusplus 11232extern "C" 11233#endif 11234char dlopen (); 11235int 11236main () 11237{ 11238return dlopen (); 11239 ; 11240 return 0; 11241} 11242_ACEOF 11243if ac_fn_c_try_link "$LINENO"; then : 11244 ac_cv_lib_dl_dlopen=yes 11245else 11246 ac_cv_lib_dl_dlopen=no 11247fi 11248rm -f core conftest.err conftest.$ac_objext \ 11249 conftest$ac_exeext conftest.$ac_ext 11250LIBS=$ac_check_lib_save_LIBS 11251fi 11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11253$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11254if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11256else 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11258$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11259if ${ac_cv_lib_svld_dlopen+:} false; then : 11260 $as_echo_n "(cached) " >&6 11261else 11262 ac_check_lib_save_LIBS=$LIBS 11263LIBS="-lsvld $LIBS" 11264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11265/* end confdefs.h. */ 11266 11267/* Override any GCC internal prototype to avoid an error. 11268 Use char because int might match the return type of a GCC 11269 builtin and then its argument prototype would still apply. */ 11270#ifdef __cplusplus 11271extern "C" 11272#endif 11273char dlopen (); 11274int 11275main () 11276{ 11277return dlopen (); 11278 ; 11279 return 0; 11280} 11281_ACEOF 11282if ac_fn_c_try_link "$LINENO"; then : 11283 ac_cv_lib_svld_dlopen=yes 11284else 11285 ac_cv_lib_svld_dlopen=no 11286fi 11287rm -f core conftest.err conftest.$ac_objext \ 11288 conftest$ac_exeext conftest.$ac_ext 11289LIBS=$ac_check_lib_save_LIBS 11290fi 11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11292$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11293if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11295else 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11297$as_echo_n "checking for dld_link in -ldld... " >&6; } 11298if ${ac_cv_lib_dld_dld_link+:} false; then : 11299 $as_echo_n "(cached) " >&6 11300else 11301 ac_check_lib_save_LIBS=$LIBS 11302LIBS="-ldld $LIBS" 11303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11304/* end confdefs.h. */ 11305 11306/* Override any GCC internal prototype to avoid an error. 11307 Use char because int might match the return type of a GCC 11308 builtin and then its argument prototype would still apply. */ 11309#ifdef __cplusplus 11310extern "C" 11311#endif 11312char dld_link (); 11313int 11314main () 11315{ 11316return dld_link (); 11317 ; 11318 return 0; 11319} 11320_ACEOF 11321if ac_fn_c_try_link "$LINENO"; then : 11322 ac_cv_lib_dld_dld_link=yes 11323else 11324 ac_cv_lib_dld_dld_link=no 11325fi 11326rm -f core conftest.err conftest.$ac_objext \ 11327 conftest$ac_exeext conftest.$ac_ext 11328LIBS=$ac_check_lib_save_LIBS 11329fi 11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11331$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11332if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11334fi 11335 11336 11337fi 11338 11339 11340fi 11341 11342 11343fi 11344 11345 11346fi 11347 11348 11349fi 11350 11351 ;; 11352 esac 11353 11354 if test "x$lt_cv_dlopen" != xno; then 11355 enable_dlopen=yes 11356 else 11357 enable_dlopen=no 11358 fi 11359 11360 case $lt_cv_dlopen in 11361 dlopen) 11362 save_CPPFLAGS="$CPPFLAGS" 11363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11364 11365 save_LDFLAGS="$LDFLAGS" 11366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11367 11368 save_LIBS="$LIBS" 11369 LIBS="$lt_cv_dlopen_libs $LIBS" 11370 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11372$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11373if ${lt_cv_dlopen_self+:} false; then : 11374 $as_echo_n "(cached) " >&6 11375else 11376 if test "$cross_compiling" = yes; then : 11377 lt_cv_dlopen_self=cross 11378else 11379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11380 lt_status=$lt_dlunknown 11381 cat > conftest.$ac_ext <<_LT_EOF 11382#line $LINENO "configure" 11383#include "confdefs.h" 11384 11385#if HAVE_DLFCN_H 11386#include <dlfcn.h> 11387#endif 11388 11389#include <stdio.h> 11390 11391#ifdef RTLD_GLOBAL 11392# define LT_DLGLOBAL RTLD_GLOBAL 11393#else 11394# ifdef DL_GLOBAL 11395# define LT_DLGLOBAL DL_GLOBAL 11396# else 11397# define LT_DLGLOBAL 0 11398# endif 11399#endif 11400 11401/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11402 find out it does not work in some platform. */ 11403#ifndef LT_DLLAZY_OR_NOW 11404# ifdef RTLD_LAZY 11405# define LT_DLLAZY_OR_NOW RTLD_LAZY 11406# else 11407# ifdef DL_LAZY 11408# define LT_DLLAZY_OR_NOW DL_LAZY 11409# else 11410# ifdef RTLD_NOW 11411# define LT_DLLAZY_OR_NOW RTLD_NOW 11412# else 11413# ifdef DL_NOW 11414# define LT_DLLAZY_OR_NOW DL_NOW 11415# else 11416# define LT_DLLAZY_OR_NOW 0 11417# endif 11418# endif 11419# endif 11420# endif 11421#endif 11422 11423/* When -fvisbility=hidden is used, assume the code has been annotated 11424 correspondingly for the symbols needed. */ 11425#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11426int fnord () __attribute__((visibility("default"))); 11427#endif 11428 11429int fnord () { return 42; } 11430int main () 11431{ 11432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11433 int status = $lt_dlunknown; 11434 11435 if (self) 11436 { 11437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11438 else 11439 { 11440 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11441 else puts (dlerror ()); 11442 } 11443 /* dlclose (self); */ 11444 } 11445 else 11446 puts (dlerror ()); 11447 11448 return status; 11449} 11450_LT_EOF 11451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11452 (eval $ac_link) 2>&5 11453 ac_status=$? 11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11456 (./conftest; exit; ) >&5 2>/dev/null 11457 lt_status=$? 11458 case x$lt_status in 11459 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11460 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11461 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11462 esac 11463 else : 11464 # compilation failed 11465 lt_cv_dlopen_self=no 11466 fi 11467fi 11468rm -fr conftest* 11469 11470 11471fi 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11473$as_echo "$lt_cv_dlopen_self" >&6; } 11474 11475 if test "x$lt_cv_dlopen_self" = xyes; then 11476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11478$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11479if ${lt_cv_dlopen_self_static+:} false; then : 11480 $as_echo_n "(cached) " >&6 11481else 11482 if test "$cross_compiling" = yes; then : 11483 lt_cv_dlopen_self_static=cross 11484else 11485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11486 lt_status=$lt_dlunknown 11487 cat > conftest.$ac_ext <<_LT_EOF 11488#line $LINENO "configure" 11489#include "confdefs.h" 11490 11491#if HAVE_DLFCN_H 11492#include <dlfcn.h> 11493#endif 11494 11495#include <stdio.h> 11496 11497#ifdef RTLD_GLOBAL 11498# define LT_DLGLOBAL RTLD_GLOBAL 11499#else 11500# ifdef DL_GLOBAL 11501# define LT_DLGLOBAL DL_GLOBAL 11502# else 11503# define LT_DLGLOBAL 0 11504# endif 11505#endif 11506 11507/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11508 find out it does not work in some platform. */ 11509#ifndef LT_DLLAZY_OR_NOW 11510# ifdef RTLD_LAZY 11511# define LT_DLLAZY_OR_NOW RTLD_LAZY 11512# else 11513# ifdef DL_LAZY 11514# define LT_DLLAZY_OR_NOW DL_LAZY 11515# else 11516# ifdef RTLD_NOW 11517# define LT_DLLAZY_OR_NOW RTLD_NOW 11518# else 11519# ifdef DL_NOW 11520# define LT_DLLAZY_OR_NOW DL_NOW 11521# else 11522# define LT_DLLAZY_OR_NOW 0 11523# endif 11524# endif 11525# endif 11526# endif 11527#endif 11528 11529/* When -fvisbility=hidden is used, assume the code has been annotated 11530 correspondingly for the symbols needed. */ 11531#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11532int fnord () __attribute__((visibility("default"))); 11533#endif 11534 11535int fnord () { return 42; } 11536int main () 11537{ 11538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11539 int status = $lt_dlunknown; 11540 11541 if (self) 11542 { 11543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11544 else 11545 { 11546 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11547 else puts (dlerror ()); 11548 } 11549 /* dlclose (self); */ 11550 } 11551 else 11552 puts (dlerror ()); 11553 11554 return status; 11555} 11556_LT_EOF 11557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11558 (eval $ac_link) 2>&5 11559 ac_status=$? 11560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11561 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11562 (./conftest; exit; ) >&5 2>/dev/null 11563 lt_status=$? 11564 case x$lt_status in 11565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11567 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11568 esac 11569 else : 11570 # compilation failed 11571 lt_cv_dlopen_self_static=no 11572 fi 11573fi 11574rm -fr conftest* 11575 11576 11577fi 11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11579$as_echo "$lt_cv_dlopen_self_static" >&6; } 11580 fi 11581 11582 CPPFLAGS="$save_CPPFLAGS" 11583 LDFLAGS="$save_LDFLAGS" 11584 LIBS="$save_LIBS" 11585 ;; 11586 esac 11587 11588 case $lt_cv_dlopen_self in 11589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11590 *) enable_dlopen_self=unknown ;; 11591 esac 11592 11593 case $lt_cv_dlopen_self_static in 11594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11595 *) enable_dlopen_self_static=unknown ;; 11596 esac 11597fi 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615striplib= 11616old_striplib= 11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11618$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11619if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11621 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11623$as_echo "yes" >&6; } 11624else 11625# FIXME - insert some real tests, host_os isn't really good enough 11626 case $host_os in 11627 darwin*) 11628 if test -n "$STRIP" ; then 11629 striplib="$STRIP -x" 11630 old_striplib="$STRIP -S" 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11632$as_echo "yes" >&6; } 11633 else 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11635$as_echo "no" >&6; } 11636 fi 11637 ;; 11638 *) 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11640$as_echo "no" >&6; } 11641 ;; 11642 esac 11643fi 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 # Report which library types will actually be built 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11658$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11660$as_echo "$can_build_shared" >&6; } 11661 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11663$as_echo_n "checking whether to build shared libraries... " >&6; } 11664 test "$can_build_shared" = "no" && enable_shared=no 11665 11666 # On AIX, shared libraries and static libraries use the same namespace, and 11667 # are all built from PIC. 11668 case $host_os in 11669 aix3*) 11670 test "$enable_shared" = yes && enable_static=no 11671 if test -n "$RANLIB"; then 11672 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11673 postinstall_cmds='$RANLIB $lib' 11674 fi 11675 ;; 11676 11677 aix[4-9]*) 11678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11679 test "$enable_shared" = yes && enable_static=no 11680 fi 11681 ;; 11682 esac 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11684$as_echo "$enable_shared" >&6; } 11685 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11687$as_echo_n "checking whether to build static libraries... " >&6; } 11688 # Make sure either enable_shared or enable_static is yes. 11689 test "$enable_shared" = yes || enable_static=yes 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11691$as_echo "$enable_static" >&6; } 11692 11693 11694 11695 11696fi 11697ac_ext=c 11698ac_cpp='$CPP $CPPFLAGS' 11699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11701ac_compiler_gnu=$ac_cv_c_compiler_gnu 11702 11703CC="$lt_save_CC" 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 ac_config_commands="$ac_config_commands libtool" 11720 11721 11722 11723 11724# Only expand once: 11725 11726 11727 11728# Require X.Org macros 1.8 or later 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11741$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11742if ${ac_cv_prog_cc_c99+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 ac_cv_prog_cc_c99=no 11746ac_save_CC=$CC 11747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11748/* end confdefs.h. */ 11749#include <stdarg.h> 11750#include <stdbool.h> 11751#include <stdlib.h> 11752#include <wchar.h> 11753#include <stdio.h> 11754 11755// Check varargs macros. These examples are taken from C99 6.10.3.5. 11756#define debug(...) fprintf (stderr, __VA_ARGS__) 11757#define showlist(...) puts (#__VA_ARGS__) 11758#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11759static void 11760test_varargs_macros (void) 11761{ 11762 int x = 1234; 11763 int y = 5678; 11764 debug ("Flag"); 11765 debug ("X = %d\n", x); 11766 showlist (The first, second, and third items.); 11767 report (x>y, "x is %d but y is %d", x, y); 11768} 11769 11770// Check long long types. 11771#define BIG64 18446744073709551615ull 11772#define BIG32 4294967295ul 11773#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11774#if !BIG_OK 11775 your preprocessor is broken; 11776#endif 11777#if BIG_OK 11778#else 11779 your preprocessor is broken; 11780#endif 11781static long long int bignum = -9223372036854775807LL; 11782static unsigned long long int ubignum = BIG64; 11783 11784struct incomplete_array 11785{ 11786 int datasize; 11787 double data[]; 11788}; 11789 11790struct named_init { 11791 int number; 11792 const wchar_t *name; 11793 double average; 11794}; 11795 11796typedef const char *ccp; 11797 11798static inline int 11799test_restrict (ccp restrict text) 11800{ 11801 // See if C++-style comments work. 11802 // Iterate through items via the restricted pointer. 11803 // Also check for declarations in for loops. 11804 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11805 continue; 11806 return 0; 11807} 11808 11809// Check varargs and va_copy. 11810static void 11811test_varargs (const char *format, ...) 11812{ 11813 va_list args; 11814 va_start (args, format); 11815 va_list args_copy; 11816 va_copy (args_copy, args); 11817 11818 const char *str; 11819 int number; 11820 float fnumber; 11821 11822 while (*format) 11823 { 11824 switch (*format++) 11825 { 11826 case 's': // string 11827 str = va_arg (args_copy, const char *); 11828 break; 11829 case 'd': // int 11830 number = va_arg (args_copy, int); 11831 break; 11832 case 'f': // float 11833 fnumber = va_arg (args_copy, double); 11834 break; 11835 default: 11836 break; 11837 } 11838 } 11839 va_end (args_copy); 11840 va_end (args); 11841} 11842 11843int 11844main () 11845{ 11846 11847 // Check bool. 11848 _Bool success = false; 11849 11850 // Check restrict. 11851 if (test_restrict ("String literal") == 0) 11852 success = true; 11853 char *restrict newvar = "Another string"; 11854 11855 // Check varargs. 11856 test_varargs ("s, d' f .", "string", 65, 34.234); 11857 test_varargs_macros (); 11858 11859 // Check flexible array members. 11860 struct incomplete_array *ia = 11861 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11862 ia->datasize = 10; 11863 for (int i = 0; i < ia->datasize; ++i) 11864 ia->data[i] = i * 1.234; 11865 11866 // Check named initializers. 11867 struct named_init ni = { 11868 .number = 34, 11869 .name = L"Test wide string", 11870 .average = 543.34343, 11871 }; 11872 11873 ni.number = 58; 11874 11875 int dynamic_array[ni.number]; 11876 dynamic_array[ni.number - 1] = 543; 11877 11878 // work around unused variable warnings 11879 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11880 || dynamic_array[ni.number - 1] != 543); 11881 11882 ; 11883 return 0; 11884} 11885_ACEOF 11886for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11887do 11888 CC="$ac_save_CC $ac_arg" 11889 if ac_fn_c_try_compile "$LINENO"; then : 11890 ac_cv_prog_cc_c99=$ac_arg 11891fi 11892rm -f core conftest.err conftest.$ac_objext 11893 test "x$ac_cv_prog_cc_c99" != "xno" && break 11894done 11895rm -f conftest.$ac_ext 11896CC=$ac_save_CC 11897 11898fi 11899# AC_CACHE_VAL 11900case "x$ac_cv_prog_cc_c99" in 11901 x) 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11903$as_echo "none needed" >&6; } ;; 11904 xno) 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11906$as_echo "unsupported" >&6; } ;; 11907 *) 11908 CC="$CC $ac_cv_prog_cc_c99" 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11910$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11911esac 11912if test "x$ac_cv_prog_cc_c99" != xno; then : 11913 11914fi 11915 11916 11917 11918 11919 11920 11921ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11922if test "x$ac_cv_have_decl___clang__" = xyes; then : 11923 CLANGCC="yes" 11924else 11925 CLANGCC="no" 11926fi 11927 11928ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11929if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11930 INTELCC="yes" 11931else 11932 INTELCC="no" 11933fi 11934 11935ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11936if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11937 SUNCC="yes" 11938else 11939 SUNCC="no" 11940fi 11941 11942 11943 11944 11945if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11946 if test -n "$ac_tool_prefix"; then 11947 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11948set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11950$as_echo_n "checking for $ac_word... " >&6; } 11951if ${ac_cv_path_PKG_CONFIG+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 case $PKG_CONFIG in 11955 [\\/]* | ?:[\\/]*) 11956 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11957 ;; 11958 *) 11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11960for as_dir in $PATH 11961do 11962 IFS=$as_save_IFS 11963 test -z "$as_dir" && as_dir=. 11964 for ac_exec_ext in '' $ac_executable_extensions; do 11965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11966 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11968 break 2 11969 fi 11970done 11971 done 11972IFS=$as_save_IFS 11973 11974 ;; 11975esac 11976fi 11977PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11978if test -n "$PKG_CONFIG"; then 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11980$as_echo "$PKG_CONFIG" >&6; } 11981else 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11983$as_echo "no" >&6; } 11984fi 11985 11986 11987fi 11988if test -z "$ac_cv_path_PKG_CONFIG"; then 11989 ac_pt_PKG_CONFIG=$PKG_CONFIG 11990 # Extract the first word of "pkg-config", so it can be a program name with args. 11991set dummy pkg-config; ac_word=$2 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11993$as_echo_n "checking for $ac_word... " >&6; } 11994if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11995 $as_echo_n "(cached) " >&6 11996else 11997 case $ac_pt_PKG_CONFIG in 11998 [\\/]* | ?:[\\/]*) 11999 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12000 ;; 12001 *) 12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12003for as_dir in $PATH 12004do 12005 IFS=$as_save_IFS 12006 test -z "$as_dir" && as_dir=. 12007 for ac_exec_ext in '' $ac_executable_extensions; do 12008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12009 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12011 break 2 12012 fi 12013done 12014 done 12015IFS=$as_save_IFS 12016 12017 ;; 12018esac 12019fi 12020ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12021if test -n "$ac_pt_PKG_CONFIG"; then 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12023$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12024else 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12026$as_echo "no" >&6; } 12027fi 12028 12029 if test "x$ac_pt_PKG_CONFIG" = x; then 12030 PKG_CONFIG="" 12031 else 12032 case $cross_compiling:$ac_tool_warned in 12033yes:) 12034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12036ac_tool_warned=yes ;; 12037esac 12038 PKG_CONFIG=$ac_pt_PKG_CONFIG 12039 fi 12040else 12041 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12042fi 12043 12044fi 12045if test -n "$PKG_CONFIG"; then 12046 _pkg_min_version=0.9.0 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12048$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12049 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12051$as_echo "yes" >&6; } 12052 else 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054$as_echo "no" >&6; } 12055 PKG_CONFIG="" 12056 fi 12057 12058fi 12059 12060 12061 12062 12063 12064# Check whether --enable-selective-werror was given. 12065if test "${enable_selective_werror+set}" = set; then : 12066 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12067else 12068 SELECTIVE_WERROR=yes 12069fi 12070 12071 12072 12073 12074 12075# -v is too short to test reliably with XORG_TESTSET_CFLAG 12076if test "x$SUNCC" = "xyes"; then 12077 BASE_CFLAGS="-v" 12078else 12079 BASE_CFLAGS="" 12080fi 12081 12082# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096xorg_testset_save_CFLAGS="$CFLAGS" 12097 12098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12106/* end confdefs.h. */ 12107int i; 12108_ACEOF 12109if ac_fn_c_try_compile "$LINENO"; then : 12110 xorg_cv_cc_flag_unknown_warning_option=yes 12111else 12112 xorg_cv_cc_flag_unknown_warning_option=no 12113fi 12114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12115fi 12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12119 CFLAGS="$xorg_testset_save_CFLAGS" 12120fi 12121 12122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12125 fi 12126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12130 $as_echo_n "(cached) " >&6 12131else 12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12133/* end confdefs.h. */ 12134int i; 12135_ACEOF 12136if ac_fn_c_try_compile "$LINENO"; then : 12137 xorg_cv_cc_flag_unused_command_line_argument=yes 12138else 12139 xorg_cv_cc_flag_unused_command_line_argument=no 12140fi 12141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12142fi 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12146 CFLAGS="$xorg_testset_save_CFLAGS" 12147fi 12148 12149found="no" 12150 12151 if test $found = "no" ; then 12152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12154 fi 12155 12156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12158 fi 12159 12160 CFLAGS="$CFLAGS -Wall" 12161 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12163$as_echo_n "checking if $CC supports -Wall... " >&6; } 12164 cacheid=xorg_cv_cc_flag__Wall 12165 if eval \${$cacheid+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167else 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170int i; 12171int 12172main () 12173{ 12174 12175 ; 12176 return 0; 12177} 12178_ACEOF 12179if ac_fn_c_try_link "$LINENO"; then : 12180 eval $cacheid=yes 12181else 12182 eval $cacheid=no 12183fi 12184rm -f core conftest.err conftest.$ac_objext \ 12185 conftest$ac_exeext conftest.$ac_ext 12186fi 12187 12188 12189 CFLAGS="$xorg_testset_save_CFLAGS" 12190 12191 eval supported=\$$cacheid 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12193$as_echo "$supported" >&6; } 12194 if test "$supported" = "yes" ; then 12195 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12196 found="yes" 12197 fi 12198 fi 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214xorg_testset_save_CFLAGS="$CFLAGS" 12215 12216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222else 12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224/* end confdefs.h. */ 12225int i; 12226_ACEOF 12227if ac_fn_c_try_compile "$LINENO"; then : 12228 xorg_cv_cc_flag_unknown_warning_option=yes 12229else 12230 xorg_cv_cc_flag_unknown_warning_option=no 12231fi 12232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12233fi 12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12237 CFLAGS="$xorg_testset_save_CFLAGS" 12238fi 12239 12240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12243 fi 12244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249else 12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12251/* end confdefs.h. */ 12252int i; 12253_ACEOF 12254if ac_fn_c_try_compile "$LINENO"; then : 12255 xorg_cv_cc_flag_unused_command_line_argument=yes 12256else 12257 xorg_cv_cc_flag_unused_command_line_argument=no 12258fi 12259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12260fi 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12264 CFLAGS="$xorg_testset_save_CFLAGS" 12265fi 12266 12267found="no" 12268 12269 if test $found = "no" ; then 12270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12272 fi 12273 12274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12276 fi 12277 12278 CFLAGS="$CFLAGS -Wpointer-arith" 12279 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12281$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12282 cacheid=xorg_cv_cc_flag__Wpointer_arith 12283 if eval \${$cacheid+:} false; then : 12284 $as_echo_n "(cached) " >&6 12285else 12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288int i; 12289int 12290main () 12291{ 12292 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_link "$LINENO"; then : 12298 eval $cacheid=yes 12299else 12300 eval $cacheid=no 12301fi 12302rm -f core conftest.err conftest.$ac_objext \ 12303 conftest$ac_exeext conftest.$ac_ext 12304fi 12305 12306 12307 CFLAGS="$xorg_testset_save_CFLAGS" 12308 12309 eval supported=\$$cacheid 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12311$as_echo "$supported" >&6; } 12312 if test "$supported" = "yes" ; then 12313 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12314 found="yes" 12315 fi 12316 fi 12317 12318 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 -Wmissing-declarations" 12397 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12399$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12400 cacheid=xorg_cv_cc_flag__Wmissing_declarations 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 -Wmissing-declarations" 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 -Wformat=2" 12515 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12517$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12518 cacheid=xorg_cv_cc_flag__Wformat_2 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 -Wformat=2" 12550 found="yes" 12551 fi 12552 fi 12553 12554 if test $found = "no" ; then 12555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12557 fi 12558 12559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12561 fi 12562 12563 CFLAGS="$CFLAGS -Wformat" 12564 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12566$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12567 cacheid=xorg_cv_cc_flag__Wformat 12568 if eval \${$cacheid+:} false; then : 12569 $as_echo_n "(cached) " >&6 12570else 12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12572/* end confdefs.h. */ 12573int i; 12574int 12575main () 12576{ 12577 12578 ; 12579 return 0; 12580} 12581_ACEOF 12582if ac_fn_c_try_link "$LINENO"; then : 12583 eval $cacheid=yes 12584else 12585 eval $cacheid=no 12586fi 12587rm -f core conftest.err conftest.$ac_objext \ 12588 conftest$ac_exeext conftest.$ac_ext 12589fi 12590 12591 12592 CFLAGS="$xorg_testset_save_CFLAGS" 12593 12594 eval supported=\$$cacheid 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12596$as_echo "$supported" >&6; } 12597 if test "$supported" = "yes" ; then 12598 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12599 found="yes" 12600 fi 12601 fi 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619xorg_testset_save_CFLAGS="$CFLAGS" 12620 12621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12626 $as_echo_n "(cached) " >&6 12627else 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630int i; 12631_ACEOF 12632if ac_fn_c_try_compile "$LINENO"; then : 12633 xorg_cv_cc_flag_unknown_warning_option=yes 12634else 12635 xorg_cv_cc_flag_unknown_warning_option=no 12636fi 12637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12638fi 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12642 CFLAGS="$xorg_testset_save_CFLAGS" 12643fi 12644 12645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12648 fi 12649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12656/* end confdefs.h. */ 12657int i; 12658_ACEOF 12659if ac_fn_c_try_compile "$LINENO"; then : 12660 xorg_cv_cc_flag_unused_command_line_argument=yes 12661else 12662 xorg_cv_cc_flag_unused_command_line_argument=no 12663fi 12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12665fi 12666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12669 CFLAGS="$xorg_testset_save_CFLAGS" 12670fi 12671 12672found="no" 12673 12674 if test $found = "no" ; then 12675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12677 fi 12678 12679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12681 fi 12682 12683 CFLAGS="$CFLAGS -Wstrict-prototypes" 12684 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12686$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12687 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12688 if eval \${$cacheid+:} false; then : 12689 $as_echo_n "(cached) " >&6 12690else 12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692/* end confdefs.h. */ 12693int i; 12694int 12695main () 12696{ 12697 12698 ; 12699 return 0; 12700} 12701_ACEOF 12702if ac_fn_c_try_link "$LINENO"; then : 12703 eval $cacheid=yes 12704else 12705 eval $cacheid=no 12706fi 12707rm -f core conftest.err conftest.$ac_objext \ 12708 conftest$ac_exeext conftest.$ac_ext 12709fi 12710 12711 12712 CFLAGS="$xorg_testset_save_CFLAGS" 12713 12714 eval supported=\$$cacheid 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12716$as_echo "$supported" >&6; } 12717 if test "$supported" = "yes" ; then 12718 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12719 found="yes" 12720 fi 12721 fi 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737xorg_testset_save_CFLAGS="$CFLAGS" 12738 12739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12744 $as_echo_n "(cached) " >&6 12745else 12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12747/* end confdefs.h. */ 12748int i; 12749_ACEOF 12750if ac_fn_c_try_compile "$LINENO"; then : 12751 xorg_cv_cc_flag_unknown_warning_option=yes 12752else 12753 xorg_cv_cc_flag_unknown_warning_option=no 12754fi 12755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12756fi 12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12760 CFLAGS="$xorg_testset_save_CFLAGS" 12761fi 12762 12763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12766 fi 12767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12771 $as_echo_n "(cached) " >&6 12772else 12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12774/* end confdefs.h. */ 12775int i; 12776_ACEOF 12777if ac_fn_c_try_compile "$LINENO"; then : 12778 xorg_cv_cc_flag_unused_command_line_argument=yes 12779else 12780 xorg_cv_cc_flag_unused_command_line_argument=no 12781fi 12782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12783fi 12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12787 CFLAGS="$xorg_testset_save_CFLAGS" 12788fi 12789 12790found="no" 12791 12792 if test $found = "no" ; then 12793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12795 fi 12796 12797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12799 fi 12800 12801 CFLAGS="$CFLAGS -Wmissing-prototypes" 12802 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12804$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12805 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12806 if eval \${$cacheid+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808else 12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12810/* end confdefs.h. */ 12811int i; 12812int 12813main () 12814{ 12815 12816 ; 12817 return 0; 12818} 12819_ACEOF 12820if ac_fn_c_try_link "$LINENO"; then : 12821 eval $cacheid=yes 12822else 12823 eval $cacheid=no 12824fi 12825rm -f core conftest.err conftest.$ac_objext \ 12826 conftest$ac_exeext conftest.$ac_ext 12827fi 12828 12829 12830 CFLAGS="$xorg_testset_save_CFLAGS" 12831 12832 eval supported=\$$cacheid 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12834$as_echo "$supported" >&6; } 12835 if test "$supported" = "yes" ; then 12836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12837 found="yes" 12838 fi 12839 fi 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 -Wnested-externs" 12920 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12922$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12923 cacheid=xorg_cv_cc_flag__Wnested_externs 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 -Wnested-externs" 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 -Wbad-function-cast" 13038 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13040$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13041 cacheid=xorg_cv_cc_flag__Wbad_function_cast 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 -Wbad-function-cast" 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 -Wold-style-definition" 13156 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13158$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13159 cacheid=xorg_cv_cc_flag__Wold_style_definition 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 -Wold-style-definition" 13191 found="yes" 13192 fi 13193 fi 13194 13195 if test $found = "no" ; then 13196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13198 fi 13199 13200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13202 fi 13203 13204 CFLAGS="$CFLAGS -fd" 13205 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13207$as_echo_n "checking if $CC supports -fd... " >&6; } 13208 cacheid=xorg_cv_cc_flag__fd 13209 if eval \${$cacheid+:} false; then : 13210 $as_echo_n "(cached) " >&6 13211else 13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13213/* end confdefs.h. */ 13214int i; 13215int 13216main () 13217{ 13218 13219 ; 13220 return 0; 13221} 13222_ACEOF 13223if ac_fn_c_try_link "$LINENO"; then : 13224 eval $cacheid=yes 13225else 13226 eval $cacheid=no 13227fi 13228rm -f core conftest.err conftest.$ac_objext \ 13229 conftest$ac_exeext conftest.$ac_ext 13230fi 13231 13232 13233 CFLAGS="$xorg_testset_save_CFLAGS" 13234 13235 eval supported=\$$cacheid 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13237$as_echo "$supported" >&6; } 13238 if test "$supported" = "yes" ; then 13239 BASE_CFLAGS="$BASE_CFLAGS -fd" 13240 found="yes" 13241 fi 13242 fi 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258xorg_testset_save_CFLAGS="$CFLAGS" 13259 13260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13265 $as_echo_n "(cached) " >&6 13266else 13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13268/* end confdefs.h. */ 13269int i; 13270_ACEOF 13271if ac_fn_c_try_compile "$LINENO"; then : 13272 xorg_cv_cc_flag_unknown_warning_option=yes 13273else 13274 xorg_cv_cc_flag_unknown_warning_option=no 13275fi 13276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13277fi 13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13281 CFLAGS="$xorg_testset_save_CFLAGS" 13282fi 13283 13284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13287 fi 13288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296int i; 13297_ACEOF 13298if ac_fn_c_try_compile "$LINENO"; then : 13299 xorg_cv_cc_flag_unused_command_line_argument=yes 13300else 13301 xorg_cv_cc_flag_unused_command_line_argument=no 13302fi 13303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13304fi 13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13308 CFLAGS="$xorg_testset_save_CFLAGS" 13309fi 13310 13311found="no" 13312 13313 if test $found = "no" ; then 13314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13316 fi 13317 13318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13320 fi 13321 13322 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13323 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13325$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13326 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13327 if eval \${$cacheid+:} false; then : 13328 $as_echo_n "(cached) " >&6 13329else 13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13331/* end confdefs.h. */ 13332int i; 13333int 13334main () 13335{ 13336 13337 ; 13338 return 0; 13339} 13340_ACEOF 13341if ac_fn_c_try_link "$LINENO"; then : 13342 eval $cacheid=yes 13343else 13344 eval $cacheid=no 13345fi 13346rm -f core conftest.err conftest.$ac_objext \ 13347 conftest$ac_exeext conftest.$ac_ext 13348fi 13349 13350 13351 CFLAGS="$xorg_testset_save_CFLAGS" 13352 13353 eval supported=\$$cacheid 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13355$as_echo "$supported" >&6; } 13356 if test "$supported" = "yes" ; then 13357 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13358 found="yes" 13359 fi 13360 fi 13361 13362 13363 13364 13365 13366# This chunk adds additional warnings that could catch undesired effects. 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380xorg_testset_save_CFLAGS="$CFLAGS" 13381 13382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388else 13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13390/* end confdefs.h. */ 13391int i; 13392_ACEOF 13393if ac_fn_c_try_compile "$LINENO"; then : 13394 xorg_cv_cc_flag_unknown_warning_option=yes 13395else 13396 xorg_cv_cc_flag_unknown_warning_option=no 13397fi 13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13399fi 13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13403 CFLAGS="$xorg_testset_save_CFLAGS" 13404fi 13405 13406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13409 fi 13410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13417/* end confdefs.h. */ 13418int i; 13419_ACEOF 13420if ac_fn_c_try_compile "$LINENO"; then : 13421 xorg_cv_cc_flag_unused_command_line_argument=yes 13422else 13423 xorg_cv_cc_flag_unused_command_line_argument=no 13424fi 13425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13426fi 13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13430 CFLAGS="$xorg_testset_save_CFLAGS" 13431fi 13432 13433found="no" 13434 13435 if test $found = "no" ; then 13436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13438 fi 13439 13440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13442 fi 13443 13444 CFLAGS="$CFLAGS -Wunused" 13445 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13447$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13448 cacheid=xorg_cv_cc_flag__Wunused 13449 if eval \${$cacheid+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451else 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453/* end confdefs.h. */ 13454int i; 13455int 13456main () 13457{ 13458 13459 ; 13460 return 0; 13461} 13462_ACEOF 13463if ac_fn_c_try_link "$LINENO"; then : 13464 eval $cacheid=yes 13465else 13466 eval $cacheid=no 13467fi 13468rm -f core conftest.err conftest.$ac_objext \ 13469 conftest$ac_exeext conftest.$ac_ext 13470fi 13471 13472 13473 CFLAGS="$xorg_testset_save_CFLAGS" 13474 13475 eval supported=\$$cacheid 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13477$as_echo "$supported" >&6; } 13478 if test "$supported" = "yes" ; then 13479 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13480 found="yes" 13481 fi 13482 fi 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498xorg_testset_save_CFLAGS="$CFLAGS" 13499 13500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506else 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13508/* end confdefs.h. */ 13509int i; 13510_ACEOF 13511if ac_fn_c_try_compile "$LINENO"; then : 13512 xorg_cv_cc_flag_unknown_warning_option=yes 13513else 13514 xorg_cv_cc_flag_unknown_warning_option=no 13515fi 13516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13517fi 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13521 CFLAGS="$xorg_testset_save_CFLAGS" 13522fi 13523 13524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13527 fi 13528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13532 $as_echo_n "(cached) " >&6 13533else 13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13535/* end confdefs.h. */ 13536int i; 13537_ACEOF 13538if ac_fn_c_try_compile "$LINENO"; then : 13539 xorg_cv_cc_flag_unused_command_line_argument=yes 13540else 13541 xorg_cv_cc_flag_unused_command_line_argument=no 13542fi 13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13544fi 13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13548 CFLAGS="$xorg_testset_save_CFLAGS" 13549fi 13550 13551found="no" 13552 13553 if test $found = "no" ; then 13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13556 fi 13557 13558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13560 fi 13561 13562 CFLAGS="$CFLAGS -Wuninitialized" 13563 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13565$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13566 cacheid=xorg_cv_cc_flag__Wuninitialized 13567 if eval \${$cacheid+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572int i; 13573int 13574main () 13575{ 13576 13577 ; 13578 return 0; 13579} 13580_ACEOF 13581if ac_fn_c_try_link "$LINENO"; then : 13582 eval $cacheid=yes 13583else 13584 eval $cacheid=no 13585fi 13586rm -f core conftest.err conftest.$ac_objext \ 13587 conftest$ac_exeext conftest.$ac_ext 13588fi 13589 13590 13591 CFLAGS="$xorg_testset_save_CFLAGS" 13592 13593 eval supported=\$$cacheid 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13595$as_echo "$supported" >&6; } 13596 if test "$supported" = "yes" ; then 13597 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13598 found="yes" 13599 fi 13600 fi 13601 13602 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 -Wshadow" 13681 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13683$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13684 cacheid=xorg_cv_cc_flag__Wshadow 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 -Wshadow" 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 -Wmissing-noreturn" 13799 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13801$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13802 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 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 -Wmissing-noreturn" 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 -Wmissing-format-attribute" 13917 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13919$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13920 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 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 -Wmissing-format-attribute" 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 -Wredundant-decls" 14035 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14037$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14038 cacheid=xorg_cv_cc_flag__Wredundant_decls 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 -Wredundant-decls" 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 -Wlogical-op" 14153 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14155$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14156 cacheid=xorg_cv_cc_flag__Wlogical_op 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 -Wlogical-op" 14188 found="yes" 14189 fi 14190 fi 14191 14192 14193 14194# These are currently disabled because they are noisy. They will be enabled 14195# in the future once the codebase is sufficiently modernized to silence 14196# them. For now, I don't want them to drown out the other warnings. 14197# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14198# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14199# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14200 14201# Turn some warnings into errors, so we don't accidently get successful builds 14202# when there are problems that should be fixed. 14203 14204if test "x$SELECTIVE_WERROR" = "xyes" ; then 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218xorg_testset_save_CFLAGS="$CFLAGS" 14219 14220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14228/* end confdefs.h. */ 14229int i; 14230_ACEOF 14231if ac_fn_c_try_compile "$LINENO"; then : 14232 xorg_cv_cc_flag_unknown_warning_option=yes 14233else 14234 xorg_cv_cc_flag_unknown_warning_option=no 14235fi 14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14237fi 14238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14241 CFLAGS="$xorg_testset_save_CFLAGS" 14242fi 14243 14244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14247 fi 14248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14252 $as_echo_n "(cached) " >&6 14253else 14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14255/* end confdefs.h. */ 14256int i; 14257_ACEOF 14258if ac_fn_c_try_compile "$LINENO"; then : 14259 xorg_cv_cc_flag_unused_command_line_argument=yes 14260else 14261 xorg_cv_cc_flag_unused_command_line_argument=no 14262fi 14263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14264fi 14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14268 CFLAGS="$xorg_testset_save_CFLAGS" 14269fi 14270 14271found="no" 14272 14273 if test $found = "no" ; then 14274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14276 fi 14277 14278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14280 fi 14281 14282 CFLAGS="$CFLAGS -Werror=implicit" 14283 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14285$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14286 cacheid=xorg_cv_cc_flag__Werror_implicit 14287 if eval \${$cacheid+:} false; then : 14288 $as_echo_n "(cached) " >&6 14289else 14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291/* end confdefs.h. */ 14292int i; 14293int 14294main () 14295{ 14296 14297 ; 14298 return 0; 14299} 14300_ACEOF 14301if ac_fn_c_try_link "$LINENO"; then : 14302 eval $cacheid=yes 14303else 14304 eval $cacheid=no 14305fi 14306rm -f core conftest.err conftest.$ac_objext \ 14307 conftest$ac_exeext conftest.$ac_ext 14308fi 14309 14310 14311 CFLAGS="$xorg_testset_save_CFLAGS" 14312 14313 eval supported=\$$cacheid 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14315$as_echo "$supported" >&6; } 14316 if test "$supported" = "yes" ; then 14317 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14318 found="yes" 14319 fi 14320 fi 14321 14322 if test $found = "no" ; then 14323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14325 fi 14326 14327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14329 fi 14330 14331 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14332 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14334$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14335 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14336 if eval \${$cacheid+:} false; then : 14337 $as_echo_n "(cached) " >&6 14338else 14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14340/* end confdefs.h. */ 14341int i; 14342int 14343main () 14344{ 14345 14346 ; 14347 return 0; 14348} 14349_ACEOF 14350if ac_fn_c_try_link "$LINENO"; then : 14351 eval $cacheid=yes 14352else 14353 eval $cacheid=no 14354fi 14355rm -f core conftest.err conftest.$ac_objext \ 14356 conftest$ac_exeext conftest.$ac_ext 14357fi 14358 14359 14360 CFLAGS="$xorg_testset_save_CFLAGS" 14361 14362 eval supported=\$$cacheid 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14364$as_echo "$supported" >&6; } 14365 if test "$supported" = "yes" ; then 14366 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14367 found="yes" 14368 fi 14369 fi 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385xorg_testset_save_CFLAGS="$CFLAGS" 14386 14387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14392 $as_echo_n "(cached) " >&6 14393else 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396int i; 14397_ACEOF 14398if ac_fn_c_try_compile "$LINENO"; then : 14399 xorg_cv_cc_flag_unknown_warning_option=yes 14400else 14401 xorg_cv_cc_flag_unknown_warning_option=no 14402fi 14403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14404fi 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14408 CFLAGS="$xorg_testset_save_CFLAGS" 14409fi 14410 14411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14414 fi 14415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14419 $as_echo_n "(cached) " >&6 14420else 14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14422/* end confdefs.h. */ 14423int i; 14424_ACEOF 14425if ac_fn_c_try_compile "$LINENO"; then : 14426 xorg_cv_cc_flag_unused_command_line_argument=yes 14427else 14428 xorg_cv_cc_flag_unused_command_line_argument=no 14429fi 14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14431fi 14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14435 CFLAGS="$xorg_testset_save_CFLAGS" 14436fi 14437 14438found="no" 14439 14440 if test $found = "no" ; then 14441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14443 fi 14444 14445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14447 fi 14448 14449 CFLAGS="$CFLAGS -Werror=nonnull" 14450 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14452$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14453 cacheid=xorg_cv_cc_flag__Werror_nonnull 14454 if eval \${$cacheid+:} false; then : 14455 $as_echo_n "(cached) " >&6 14456else 14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14458/* end confdefs.h. */ 14459int i; 14460int 14461main () 14462{ 14463 14464 ; 14465 return 0; 14466} 14467_ACEOF 14468if ac_fn_c_try_link "$LINENO"; then : 14469 eval $cacheid=yes 14470else 14471 eval $cacheid=no 14472fi 14473rm -f core conftest.err conftest.$ac_objext \ 14474 conftest$ac_exeext conftest.$ac_ext 14475fi 14476 14477 14478 CFLAGS="$xorg_testset_save_CFLAGS" 14479 14480 eval supported=\$$cacheid 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14482$as_echo "$supported" >&6; } 14483 if test "$supported" = "yes" ; then 14484 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14485 found="yes" 14486 fi 14487 fi 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503xorg_testset_save_CFLAGS="$CFLAGS" 14504 14505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14510 $as_echo_n "(cached) " >&6 14511else 14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14513/* end confdefs.h. */ 14514int i; 14515_ACEOF 14516if ac_fn_c_try_compile "$LINENO"; then : 14517 xorg_cv_cc_flag_unknown_warning_option=yes 14518else 14519 xorg_cv_cc_flag_unknown_warning_option=no 14520fi 14521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14522fi 14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14526 CFLAGS="$xorg_testset_save_CFLAGS" 14527fi 14528 14529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14532 fi 14533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540/* end confdefs.h. */ 14541int i; 14542_ACEOF 14543if ac_fn_c_try_compile "$LINENO"; then : 14544 xorg_cv_cc_flag_unused_command_line_argument=yes 14545else 14546 xorg_cv_cc_flag_unused_command_line_argument=no 14547fi 14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14549fi 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14553 CFLAGS="$xorg_testset_save_CFLAGS" 14554fi 14555 14556found="no" 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 -Werror=init-self" 14568 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14570$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14571 cacheid=xorg_cv_cc_flag__Werror_init_self 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 -Werror=init-self" 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=main" 14686 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14688$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14689 cacheid=xorg_cv_cc_flag__Werror_main 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=main" 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=missing-braces" 14804 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14806$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14807 cacheid=xorg_cv_cc_flag__Werror_missing_braces 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=missing-braces" 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=sequence-point" 14922 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14924$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14925 cacheid=xorg_cv_cc_flag__Werror_sequence_point 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=sequence-point" 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=return-type" 15040 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15042$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15043 cacheid=xorg_cv_cc_flag__Werror_return_type 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=return-type" 15075 found="yes" 15076 fi 15077 fi 15078 15079 if test $found = "no" ; then 15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15082 fi 15083 15084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15086 fi 15087 15088 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15089 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15091$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15092 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15093 if eval \${$cacheid+:} false; then : 15094 $as_echo_n "(cached) " >&6 15095else 15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15097/* end confdefs.h. */ 15098int i; 15099int 15100main () 15101{ 15102 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107if ac_fn_c_try_link "$LINENO"; then : 15108 eval $cacheid=yes 15109else 15110 eval $cacheid=no 15111fi 15112rm -f core conftest.err conftest.$ac_objext \ 15113 conftest$ac_exeext conftest.$ac_ext 15114fi 15115 15116 15117 CFLAGS="$xorg_testset_save_CFLAGS" 15118 15119 eval supported=\$$cacheid 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15121$as_echo "$supported" >&6; } 15122 if test "$supported" = "yes" ; then 15123 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15124 found="yes" 15125 fi 15126 fi 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142xorg_testset_save_CFLAGS="$CFLAGS" 15143 15144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15149 $as_echo_n "(cached) " >&6 15150else 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15152/* end confdefs.h. */ 15153int i; 15154_ACEOF 15155if ac_fn_c_try_compile "$LINENO"; then : 15156 xorg_cv_cc_flag_unknown_warning_option=yes 15157else 15158 xorg_cv_cc_flag_unknown_warning_option=no 15159fi 15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15161fi 15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15165 CFLAGS="$xorg_testset_save_CFLAGS" 15166fi 15167 15168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15171 fi 15172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180int i; 15181_ACEOF 15182if ac_fn_c_try_compile "$LINENO"; then : 15183 xorg_cv_cc_flag_unused_command_line_argument=yes 15184else 15185 xorg_cv_cc_flag_unused_command_line_argument=no 15186fi 15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15188fi 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15192 CFLAGS="$xorg_testset_save_CFLAGS" 15193fi 15194 15195found="no" 15196 15197 if test $found = "no" ; then 15198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15200 fi 15201 15202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15204 fi 15205 15206 CFLAGS="$CFLAGS -Werror=trigraphs" 15207 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15209$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15210 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15211 if eval \${$cacheid+:} false; then : 15212 $as_echo_n "(cached) " >&6 15213else 15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15215/* end confdefs.h. */ 15216int i; 15217int 15218main () 15219{ 15220 15221 ; 15222 return 0; 15223} 15224_ACEOF 15225if ac_fn_c_try_link "$LINENO"; then : 15226 eval $cacheid=yes 15227else 15228 eval $cacheid=no 15229fi 15230rm -f core conftest.err conftest.$ac_objext \ 15231 conftest$ac_exeext conftest.$ac_ext 15232fi 15233 15234 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236 15237 eval supported=\$$cacheid 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15239$as_echo "$supported" >&6; } 15240 if test "$supported" = "yes" ; then 15241 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15242 found="yes" 15243 fi 15244 fi 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260xorg_testset_save_CFLAGS="$CFLAGS" 15261 15262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15267 $as_echo_n "(cached) " >&6 15268else 15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15270/* end confdefs.h. */ 15271int i; 15272_ACEOF 15273if ac_fn_c_try_compile "$LINENO"; then : 15274 xorg_cv_cc_flag_unknown_warning_option=yes 15275else 15276 xorg_cv_cc_flag_unknown_warning_option=no 15277fi 15278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15279fi 15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15283 CFLAGS="$xorg_testset_save_CFLAGS" 15284fi 15285 15286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15289 fi 15290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15294 $as_echo_n "(cached) " >&6 15295else 15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15297/* end confdefs.h. */ 15298int i; 15299_ACEOF 15300if ac_fn_c_try_compile "$LINENO"; then : 15301 xorg_cv_cc_flag_unused_command_line_argument=yes 15302else 15303 xorg_cv_cc_flag_unused_command_line_argument=no 15304fi 15305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15306fi 15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15310 CFLAGS="$xorg_testset_save_CFLAGS" 15311fi 15312 15313found="no" 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 -Werror=array-bounds" 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15327$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15328 cacheid=xorg_cv_cc_flag__Werror_array_bounds 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 -Werror=array-bounds" 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=write-strings" 15443 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15445$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15446 cacheid=xorg_cv_cc_flag__Werror_write_strings 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=write-strings" 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=address" 15561 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15563$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15564 cacheid=xorg_cv_cc_flag__Werror_address 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=address" 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=int-to-pointer-cast" 15679 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15681$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15682 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 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=int-to-pointer-cast" 15714 found="yes" 15715 fi 15716 fi 15717 15718 if test $found = "no" ; then 15719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15721 fi 15722 15723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15725 fi 15726 15727 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15728 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15730$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15731 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15732 if eval \${$cacheid+:} false; then : 15733 $as_echo_n "(cached) " >&6 15734else 15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15736/* end confdefs.h. */ 15737int i; 15738int 15739main () 15740{ 15741 15742 ; 15743 return 0; 15744} 15745_ACEOF 15746if ac_fn_c_try_link "$LINENO"; then : 15747 eval $cacheid=yes 15748else 15749 eval $cacheid=no 15750fi 15751rm -f core conftest.err conftest.$ac_objext \ 15752 conftest$ac_exeext conftest.$ac_ext 15753fi 15754 15755 15756 CFLAGS="$xorg_testset_save_CFLAGS" 15757 15758 eval supported=\$$cacheid 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15760$as_echo "$supported" >&6; } 15761 if test "$supported" = "yes" ; then 15762 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15763 found="yes" 15764 fi 15765 fi 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781xorg_testset_save_CFLAGS="$CFLAGS" 15782 15783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15788 $as_echo_n "(cached) " >&6 15789else 15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15791/* end confdefs.h. */ 15792int i; 15793_ACEOF 15794if ac_fn_c_try_compile "$LINENO"; then : 15795 xorg_cv_cc_flag_unknown_warning_option=yes 15796else 15797 xorg_cv_cc_flag_unknown_warning_option=no 15798fi 15799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15800fi 15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15804 CFLAGS="$xorg_testset_save_CFLAGS" 15805fi 15806 15807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15810 fi 15811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15815 $as_echo_n "(cached) " >&6 15816else 15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819int i; 15820_ACEOF 15821if ac_fn_c_try_compile "$LINENO"; then : 15822 xorg_cv_cc_flag_unused_command_line_argument=yes 15823else 15824 xorg_cv_cc_flag_unused_command_line_argument=no 15825fi 15826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15827fi 15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15831 CFLAGS="$xorg_testset_save_CFLAGS" 15832fi 15833 15834found="no" 15835 15836 if test $found = "no" ; then 15837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15839 fi 15840 15841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15843 fi 15844 15845 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15846 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15848$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15849 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15850 if eval \${$cacheid+:} false; then : 15851 $as_echo_n "(cached) " >&6 15852else 15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15854/* end confdefs.h. */ 15855int i; 15856int 15857main () 15858{ 15859 15860 ; 15861 return 0; 15862} 15863_ACEOF 15864if ac_fn_c_try_link "$LINENO"; then : 15865 eval $cacheid=yes 15866else 15867 eval $cacheid=no 15868fi 15869rm -f core conftest.err conftest.$ac_objext \ 15870 conftest$ac_exeext conftest.$ac_ext 15871fi 15872 15873 15874 CFLAGS="$xorg_testset_save_CFLAGS" 15875 15876 eval supported=\$$cacheid 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15878$as_echo "$supported" >&6; } 15879 if test "$supported" = "yes" ; then 15880 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15881 found="yes" 15882 fi 15883 fi 15884 15885 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15886else 15887{ $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 15888$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;} 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902xorg_testset_save_CFLAGS="$CFLAGS" 15903 15904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15909 $as_echo_n "(cached) " >&6 15910else 15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913int i; 15914_ACEOF 15915if ac_fn_c_try_compile "$LINENO"; then : 15916 xorg_cv_cc_flag_unknown_warning_option=yes 15917else 15918 xorg_cv_cc_flag_unknown_warning_option=no 15919fi 15920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15921fi 15922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15925 CFLAGS="$xorg_testset_save_CFLAGS" 15926fi 15927 15928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15931 fi 15932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15936 $as_echo_n "(cached) " >&6 15937else 15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15939/* end confdefs.h. */ 15940int i; 15941_ACEOF 15942if ac_fn_c_try_compile "$LINENO"; then : 15943 xorg_cv_cc_flag_unused_command_line_argument=yes 15944else 15945 xorg_cv_cc_flag_unused_command_line_argument=no 15946fi 15947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15948fi 15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15952 CFLAGS="$xorg_testset_save_CFLAGS" 15953fi 15954 15955found="no" 15956 15957 if test $found = "no" ; then 15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15960 fi 15961 15962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15964 fi 15965 15966 CFLAGS="$CFLAGS -Wimplicit" 15967 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15969$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15970 cacheid=xorg_cv_cc_flag__Wimplicit 15971 if eval \${$cacheid+:} false; then : 15972 $as_echo_n "(cached) " >&6 15973else 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976int i; 15977int 15978main () 15979{ 15980 15981 ; 15982 return 0; 15983} 15984_ACEOF 15985if ac_fn_c_try_link "$LINENO"; then : 15986 eval $cacheid=yes 15987else 15988 eval $cacheid=no 15989fi 15990rm -f core conftest.err conftest.$ac_objext \ 15991 conftest$ac_exeext conftest.$ac_ext 15992fi 15993 15994 15995 CFLAGS="$xorg_testset_save_CFLAGS" 15996 15997 eval supported=\$$cacheid 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15999$as_echo "$supported" >&6; } 16000 if test "$supported" = "yes" ; then 16001 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16002 found="yes" 16003 fi 16004 fi 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020xorg_testset_save_CFLAGS="$CFLAGS" 16021 16022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16027 $as_echo_n "(cached) " >&6 16028else 16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16030/* end confdefs.h. */ 16031int i; 16032_ACEOF 16033if ac_fn_c_try_compile "$LINENO"; then : 16034 xorg_cv_cc_flag_unknown_warning_option=yes 16035else 16036 xorg_cv_cc_flag_unknown_warning_option=no 16037fi 16038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16039fi 16040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16043 CFLAGS="$xorg_testset_save_CFLAGS" 16044fi 16045 16046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16049 fi 16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16054 $as_echo_n "(cached) " >&6 16055else 16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16057/* end confdefs.h. */ 16058int i; 16059_ACEOF 16060if ac_fn_c_try_compile "$LINENO"; then : 16061 xorg_cv_cc_flag_unused_command_line_argument=yes 16062else 16063 xorg_cv_cc_flag_unused_command_line_argument=no 16064fi 16065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16066fi 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16070 CFLAGS="$xorg_testset_save_CFLAGS" 16071fi 16072 16073found="no" 16074 16075 if test $found = "no" ; then 16076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16078 fi 16079 16080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16082 fi 16083 16084 CFLAGS="$CFLAGS -Wnonnull" 16085 16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16087$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16088 cacheid=xorg_cv_cc_flag__Wnonnull 16089 if eval \${$cacheid+:} false; then : 16090 $as_echo_n "(cached) " >&6 16091else 16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16093/* end confdefs.h. */ 16094int i; 16095int 16096main () 16097{ 16098 16099 ; 16100 return 0; 16101} 16102_ACEOF 16103if ac_fn_c_try_link "$LINENO"; then : 16104 eval $cacheid=yes 16105else 16106 eval $cacheid=no 16107fi 16108rm -f core conftest.err conftest.$ac_objext \ 16109 conftest$ac_exeext conftest.$ac_ext 16110fi 16111 16112 16113 CFLAGS="$xorg_testset_save_CFLAGS" 16114 16115 eval supported=\$$cacheid 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16117$as_echo "$supported" >&6; } 16118 if test "$supported" = "yes" ; then 16119 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16120 found="yes" 16121 fi 16122 fi 16123 16124 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 -Winit-self" 16203 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16205$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16206 cacheid=xorg_cv_cc_flag__Winit_self 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 -Winit-self" 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 -Wmain" 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16323$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16324 cacheid=xorg_cv_cc_flag__Wmain 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 -Wmain" 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 -Wmissing-braces" 16439 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16441$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16442 cacheid=xorg_cv_cc_flag__Wmissing_braces 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 -Wmissing-braces" 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 -Wsequence-point" 16557 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16559$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16560 cacheid=xorg_cv_cc_flag__Wsequence_point 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 -Wsequence-point" 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 -Wreturn-type" 16675 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16677$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16678 cacheid=xorg_cv_cc_flag__Wreturn_type 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 -Wreturn-type" 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 -Wtrigraphs" 16793 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16795$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16796 cacheid=xorg_cv_cc_flag__Wtrigraphs 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 -Wtrigraphs" 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 -Warray-bounds" 16911 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16913$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16914 cacheid=xorg_cv_cc_flag__Warray_bounds 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 -Warray-bounds" 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 -Wwrite-strings" 17029 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17031$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17032 cacheid=xorg_cv_cc_flag__Wwrite_strings 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 -Wwrite-strings" 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 -Waddress" 17147 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17149$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17150 cacheid=xorg_cv_cc_flag__Waddress 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 -Waddress" 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 -Wint-to-pointer-cast" 17265 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17267$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17268 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 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 -Wint-to-pointer-cast" 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 -Wpointer-to-int-cast" 17383 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17385$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17386 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 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 -Wpointer-to-int-cast" 17418 found="yes" 17419 fi 17420 fi 17421 17422 17423fi 17424 17425 17426 17427 17428 17429 17430 17431 CWARNFLAGS="$BASE_CFLAGS" 17432 if test "x$GCC" = xyes ; then 17433 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17434 fi 17435 17436 17437 17438 17439 17440 17441 17442 17443# Check whether --enable-strict-compilation was given. 17444if test "${enable_strict_compilation+set}" = set; then : 17445 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17446else 17447 STRICT_COMPILE=no 17448fi 17449 17450 17451 17452 17453 17454 17455STRICT_CFLAGS="" 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469xorg_testset_save_CFLAGS="$CFLAGS" 17470 17471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17476 $as_echo_n "(cached) " >&6 17477else 17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480int i; 17481_ACEOF 17482if ac_fn_c_try_compile "$LINENO"; then : 17483 xorg_cv_cc_flag_unknown_warning_option=yes 17484else 17485 xorg_cv_cc_flag_unknown_warning_option=no 17486fi 17487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17488fi 17489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17492 CFLAGS="$xorg_testset_save_CFLAGS" 17493fi 17494 17495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17498 fi 17499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17503 $as_echo_n "(cached) " >&6 17504else 17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17506/* end confdefs.h. */ 17507int i; 17508_ACEOF 17509if ac_fn_c_try_compile "$LINENO"; then : 17510 xorg_cv_cc_flag_unused_command_line_argument=yes 17511else 17512 xorg_cv_cc_flag_unused_command_line_argument=no 17513fi 17514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17515fi 17516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17519 CFLAGS="$xorg_testset_save_CFLAGS" 17520fi 17521 17522found="no" 17523 17524 if test $found = "no" ; then 17525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17527 fi 17528 17529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17531 fi 17532 17533 CFLAGS="$CFLAGS -pedantic" 17534 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17536$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17537 cacheid=xorg_cv_cc_flag__pedantic 17538 if eval \${$cacheid+:} false; then : 17539 $as_echo_n "(cached) " >&6 17540else 17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17542/* end confdefs.h. */ 17543int i; 17544int 17545main () 17546{ 17547 17548 ; 17549 return 0; 17550} 17551_ACEOF 17552if ac_fn_c_try_link "$LINENO"; then : 17553 eval $cacheid=yes 17554else 17555 eval $cacheid=no 17556fi 17557rm -f core conftest.err conftest.$ac_objext \ 17558 conftest$ac_exeext conftest.$ac_ext 17559fi 17560 17561 17562 CFLAGS="$xorg_testset_save_CFLAGS" 17563 17564 eval supported=\$$cacheid 17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17566$as_echo "$supported" >&6; } 17567 if test "$supported" = "yes" ; then 17568 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17569 found="yes" 17570 fi 17571 fi 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587xorg_testset_save_CFLAGS="$CFLAGS" 17588 17589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17594 $as_echo_n "(cached) " >&6 17595else 17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17597/* end confdefs.h. */ 17598int i; 17599_ACEOF 17600if ac_fn_c_try_compile "$LINENO"; then : 17601 xorg_cv_cc_flag_unknown_warning_option=yes 17602else 17603 xorg_cv_cc_flag_unknown_warning_option=no 17604fi 17605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17606fi 17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17610 CFLAGS="$xorg_testset_save_CFLAGS" 17611fi 17612 17613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17616 fi 17617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17621 $as_echo_n "(cached) " >&6 17622else 17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17624/* end confdefs.h. */ 17625int i; 17626_ACEOF 17627if ac_fn_c_try_compile "$LINENO"; then : 17628 xorg_cv_cc_flag_unused_command_line_argument=yes 17629else 17630 xorg_cv_cc_flag_unused_command_line_argument=no 17631fi 17632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17633fi 17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17637 CFLAGS="$xorg_testset_save_CFLAGS" 17638fi 17639 17640found="no" 17641 17642 if test $found = "no" ; then 17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17645 fi 17646 17647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17649 fi 17650 17651 CFLAGS="$CFLAGS -Werror" 17652 17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17654$as_echo_n "checking if $CC supports -Werror... " >&6; } 17655 cacheid=xorg_cv_cc_flag__Werror 17656 if eval \${$cacheid+:} false; then : 17657 $as_echo_n "(cached) " >&6 17658else 17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17660/* end confdefs.h. */ 17661int i; 17662int 17663main () 17664{ 17665 17666 ; 17667 return 0; 17668} 17669_ACEOF 17670if ac_fn_c_try_link "$LINENO"; then : 17671 eval $cacheid=yes 17672else 17673 eval $cacheid=no 17674fi 17675rm -f core conftest.err conftest.$ac_objext \ 17676 conftest$ac_exeext conftest.$ac_ext 17677fi 17678 17679 17680 CFLAGS="$xorg_testset_save_CFLAGS" 17681 17682 eval supported=\$$cacheid 17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17684$as_echo "$supported" >&6; } 17685 if test "$supported" = "yes" ; then 17686 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17687 found="yes" 17688 fi 17689 fi 17690 17691 if test $found = "no" ; then 17692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17694 fi 17695 17696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17698 fi 17699 17700 CFLAGS="$CFLAGS -errwarn" 17701 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17703$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17704 cacheid=xorg_cv_cc_flag__errwarn 17705 if eval \${$cacheid+:} false; then : 17706 $as_echo_n "(cached) " >&6 17707else 17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17709/* end confdefs.h. */ 17710int i; 17711int 17712main () 17713{ 17714 17715 ; 17716 return 0; 17717} 17718_ACEOF 17719if ac_fn_c_try_link "$LINENO"; then : 17720 eval $cacheid=yes 17721else 17722 eval $cacheid=no 17723fi 17724rm -f core conftest.err conftest.$ac_objext \ 17725 conftest$ac_exeext conftest.$ac_ext 17726fi 17727 17728 17729 CFLAGS="$xorg_testset_save_CFLAGS" 17730 17731 eval supported=\$$cacheid 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17733$as_echo "$supported" >&6; } 17734 if test "$supported" = "yes" ; then 17735 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17736 found="yes" 17737 fi 17738 fi 17739 17740 17741 17742# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17743# activate it with -Werror, so we add it here explicitly. 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757xorg_testset_save_CFLAGS="$CFLAGS" 17758 17759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17764 $as_echo_n "(cached) " >&6 17765else 17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17767/* end confdefs.h. */ 17768int i; 17769_ACEOF 17770if ac_fn_c_try_compile "$LINENO"; then : 17771 xorg_cv_cc_flag_unknown_warning_option=yes 17772else 17773 xorg_cv_cc_flag_unknown_warning_option=no 17774fi 17775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17776fi 17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17780 CFLAGS="$xorg_testset_save_CFLAGS" 17781fi 17782 17783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17786 fi 17787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17791 $as_echo_n "(cached) " >&6 17792else 17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17794/* end confdefs.h. */ 17795int i; 17796_ACEOF 17797if ac_fn_c_try_compile "$LINENO"; then : 17798 xorg_cv_cc_flag_unused_command_line_argument=yes 17799else 17800 xorg_cv_cc_flag_unused_command_line_argument=no 17801fi 17802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17803fi 17804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17807 CFLAGS="$xorg_testset_save_CFLAGS" 17808fi 17809 17810found="no" 17811 17812 if test $found = "no" ; then 17813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17815 fi 17816 17817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17819 fi 17820 17821 CFLAGS="$CFLAGS -Werror=attributes" 17822 17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17824$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17825 cacheid=xorg_cv_cc_flag__Werror_attributes 17826 if eval \${$cacheid+:} false; then : 17827 $as_echo_n "(cached) " >&6 17828else 17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17830/* end confdefs.h. */ 17831int i; 17832int 17833main () 17834{ 17835 17836 ; 17837 return 0; 17838} 17839_ACEOF 17840if ac_fn_c_try_link "$LINENO"; then : 17841 eval $cacheid=yes 17842else 17843 eval $cacheid=no 17844fi 17845rm -f core conftest.err conftest.$ac_objext \ 17846 conftest$ac_exeext conftest.$ac_ext 17847fi 17848 17849 17850 CFLAGS="$xorg_testset_save_CFLAGS" 17851 17852 eval supported=\$$cacheid 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17854$as_echo "$supported" >&6; } 17855 if test "$supported" = "yes" ; then 17856 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17857 found="yes" 17858 fi 17859 fi 17860 17861 17862 17863if test "x$STRICT_COMPILE" = "xyes"; then 17864 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17865 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17866fi 17867 17868 17869 17870 17871 17872 17873cat >>confdefs.h <<_ACEOF 17874#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17875_ACEOF 17876 17877 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17878 if test "x$PVM" = "x"; then 17879 PVM="0" 17880 fi 17881 17882cat >>confdefs.h <<_ACEOF 17883#define PACKAGE_VERSION_MINOR $PVM 17884_ACEOF 17885 17886 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17887 if test "x$PVP" = "x"; then 17888 PVP="0" 17889 fi 17890 17891cat >>confdefs.h <<_ACEOF 17892#define PACKAGE_VERSION_PATCHLEVEL $PVP 17893_ACEOF 17894 17895 17896 17897CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17898mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17899|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17900echo 'git directory not found: installing possibly empty changelog.' >&2)" 17901 17902 17903 17904 17905macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17906INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17907mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17908|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17909echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17910 17911 17912 17913 17914 17915 17916if test x$APP_MAN_SUFFIX = x ; then 17917 APP_MAN_SUFFIX=1 17918fi 17919if test x$APP_MAN_DIR = x ; then 17920 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17921fi 17922 17923if test x$LIB_MAN_SUFFIX = x ; then 17924 LIB_MAN_SUFFIX=3 17925fi 17926if test x$LIB_MAN_DIR = x ; then 17927 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17928fi 17929 17930if test x$FILE_MAN_SUFFIX = x ; then 17931 case $host_os in 17932 solaris*) FILE_MAN_SUFFIX=4 ;; 17933 *) FILE_MAN_SUFFIX=5 ;; 17934 esac 17935fi 17936if test x$FILE_MAN_DIR = x ; then 17937 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17938fi 17939 17940if test x$MISC_MAN_SUFFIX = x ; then 17941 case $host_os in 17942 solaris*) MISC_MAN_SUFFIX=5 ;; 17943 *) MISC_MAN_SUFFIX=7 ;; 17944 esac 17945fi 17946if test x$MISC_MAN_DIR = x ; then 17947 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17948fi 17949 17950if test x$DRIVER_MAN_SUFFIX = x ; then 17951 case $host_os in 17952 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17953 *) DRIVER_MAN_SUFFIX=4 ;; 17954 esac 17955fi 17956if test x$DRIVER_MAN_DIR = x ; then 17957 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17958fi 17959 17960if test x$ADMIN_MAN_SUFFIX = x ; then 17961 case $host_os in 17962 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17963 *) ADMIN_MAN_SUFFIX=8 ;; 17964 esac 17965fi 17966if test x$ADMIN_MAN_DIR = x ; then 17967 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17968fi 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984XORG_MAN_PAGE="X Version 11" 17985 17986MAN_SUBSTS="\ 17987 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17988 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17989 -e 's|__xservername__|Xorg|g' \ 17990 -e 's|__xconfigfile__|xorg.conf|g' \ 17991 -e 's|__projectroot__|\$(prefix)|g' \ 17992 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17993 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17994 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17995 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17996 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17997 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17998 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17999 18000 18001 18002# Check whether --enable-silent-rules was given. 18003if test "${enable_silent_rules+set}" = set; then : 18004 enableval=$enable_silent_rules; 18005fi 18006 18007case $enable_silent_rules in # ((( 18008 yes) AM_DEFAULT_VERBOSITY=0;; 18009 no) AM_DEFAULT_VERBOSITY=1;; 18010 *) AM_DEFAULT_VERBOSITY=0;; 18011esac 18012am_make=${MAKE-make} 18013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18014$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18015if ${am_cv_make_support_nested_variables+:} false; then : 18016 $as_echo_n "(cached) " >&6 18017else 18018 if $as_echo 'TRUE=$(BAR$(V)) 18019BAR0=false 18020BAR1=true 18021V=1 18022am__doit: 18023 @$(TRUE) 18024.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18025 am_cv_make_support_nested_variables=yes 18026else 18027 am_cv_make_support_nested_variables=no 18028fi 18029fi 18030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18031$as_echo "$am_cv_make_support_nested_variables" >&6; } 18032if test $am_cv_make_support_nested_variables = yes; then 18033 AM_V='$(V)' 18034 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18035else 18036 AM_V=$AM_DEFAULT_VERBOSITY 18037 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18038fi 18039AM_BACKSLASH='\' 18040 18041 18042 18043# Check whether --enable-malloc0returnsnull was given. 18044if test "${enable_malloc0returnsnull+set}" = set; then : 18045 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18046else 18047 MALLOC_ZERO_RETURNS_NULL=auto 18048fi 18049 18050 18051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18052$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18053if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18054if ${xorg_cv_malloc0_returns_null+:} false; then : 18055 $as_echo_n "(cached) " >&6 18056else 18057 if test "$cross_compiling" = yes; then : 18058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18060as_fn_error $? "cannot run test program while cross compiling 18061See \`config.log' for more details" "$LINENO" 5; } 18062else 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064/* end confdefs.h. */ 18065 18066#include <stdlib.h> 18067 18068int 18069main () 18070{ 18071 18072 char *m0, *r0, *c0, *p; 18073 m0 = malloc(0); 18074 p = malloc(10); 18075 r0 = realloc(p,0); 18076 c0 = calloc(0,10); 18077 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18078 18079 ; 18080 return 0; 18081} 18082_ACEOF 18083if ac_fn_c_try_run "$LINENO"; then : 18084 xorg_cv_malloc0_returns_null=yes 18085else 18086 xorg_cv_malloc0_returns_null=no 18087fi 18088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18089 conftest.$ac_objext conftest.beam conftest.$ac_ext 18090fi 18091 18092fi 18093 18094MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18095fi 18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18097$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18098 18099if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18100 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18101 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18102 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18103else 18104 MALLOC_ZERO_CFLAGS="" 18105 XMALLOC_ZERO_CFLAGS="" 18106 XTMALLOC_ZERO_CFLAGS="" 18107fi 18108 18109 18110 18111 18112 18113 18114# Obtain compiler/linker options for depedencies 18115 18116pkg_failed=no 18117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FS" >&5 18118$as_echo_n "checking for FS... " >&6; } 18119 18120if test -n "$FS_CFLAGS"; then 18121 pkg_cv_FS_CFLAGS="$FS_CFLAGS" 18122 elif test -n "$PKG_CONFIG"; then 18123 if test -n "$PKG_CONFIG" && \ 18124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 18125 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 18126 ac_status=$? 18127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18128 test $ac_status = 0; }; then 18129 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 18130else 18131 pkg_failed=yes 18132fi 18133 else 18134 pkg_failed=untried 18135fi 18136if test -n "$FS_LIBS"; then 18137 pkg_cv_FS_LIBS="$FS_LIBS" 18138 elif test -n "$PKG_CONFIG"; then 18139 if test -n "$PKG_CONFIG" && \ 18140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 18141 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 18142 ac_status=$? 18143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18144 test $ac_status = 0; }; then 18145 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 18146else 18147 pkg_failed=yes 18148fi 18149 else 18150 pkg_failed=untried 18151fi 18152 18153 18154 18155if test $pkg_failed = yes; then 18156 18157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18158 _pkg_short_errors_supported=yes 18159else 18160 _pkg_short_errors_supported=no 18161fi 18162 if test $_pkg_short_errors_supported = yes; then 18163 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 18164 else 18165 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 18166 fi 18167 # Put the nasty error message in config.log where it belongs 18168 echo "$FS_PKG_ERRORS" >&5 18169 18170 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met: 18171 18172$FS_PKG_ERRORS 18173 18174Consider adjusting the PKG_CONFIG_PATH environment variable if you 18175installed software in a non-standard prefix. 18176 18177Alternatively, you may set the environment variables FS_CFLAGS 18178and FS_LIBS to avoid the need to call pkg-config. 18179See the pkg-config man page for more details. 18180" "$LINENO" 5 18181elif test $pkg_failed = untried; then 18182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18184as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18185is in your PATH or set the PKG_CONFIG environment variable to the full 18186path to pkg-config. 18187 18188Alternatively, you may set the environment variables FS_CFLAGS 18189and FS_LIBS to avoid the need to call pkg-config. 18190See the pkg-config man page for more details. 18191 18192To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18193See \`config.log' for more details" "$LINENO" 5; } 18194else 18195 FS_CFLAGS=$pkg_cv_FS_CFLAGS 18196 FS_LIBS=$pkg_cv_FS_LIBS 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18198$as_echo "yes" >&6; } 18199 : 18200fi 18201 18202# Find needed libraries for TCP sockets (pre-pended in $LIBS) 18203 18204 18205 case $host_os in 18206 mingw*) unixdef="no" ;; 18207 *) unixdef="yes" ;; 18208 esac 18209 # Check whether --enable-unix-transport was given. 18210if test "${enable_unix_transport+set}" = set; then : 18211 enableval=$enable_unix_transport; UNIXCONN=$enableval 18212else 18213 UNIXCONN=$unixdef 18214fi 18215 18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 18217$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 18218 if test "$UNIXCONN" = "yes"; then 18219 18220$as_echo "#define UNIXCONN 1" >>confdefs.h 18221 18222 fi 18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 18224$as_echo "$UNIXCONN" >&6; } 18225 # Check whether --enable-tcp-transport was given. 18226if test "${enable_tcp_transport+set}" = set; then : 18227 enableval=$enable_tcp_transport; TCPCONN=$enableval 18228else 18229 TCPCONN=yes 18230fi 18231 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 18233$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 18235$as_echo "$TCPCONN" >&6; } 18236 if test "$TCPCONN" = "yes"; then 18237 18238$as_echo "#define TCPCONN 1" >>confdefs.h 18239 18240 18241 # SVR4 hides these in libraries other than libc 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18243$as_echo_n "checking for library containing socket... " >&6; } 18244if ${ac_cv_search_socket+:} false; then : 18245 $as_echo_n "(cached) " >&6 18246else 18247 ac_func_search_save_LIBS=$LIBS 18248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250 18251/* Override any GCC internal prototype to avoid an error. 18252 Use char because int might match the return type of a GCC 18253 builtin and then its argument prototype would still apply. */ 18254#ifdef __cplusplus 18255extern "C" 18256#endif 18257char socket (); 18258int 18259main () 18260{ 18261return socket (); 18262 ; 18263 return 0; 18264} 18265_ACEOF 18266for ac_lib in '' socket; do 18267 if test -z "$ac_lib"; then 18268 ac_res="none required" 18269 else 18270 ac_res=-l$ac_lib 18271 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18272 fi 18273 if ac_fn_c_try_link "$LINENO"; then : 18274 ac_cv_search_socket=$ac_res 18275fi 18276rm -f core conftest.err conftest.$ac_objext \ 18277 conftest$ac_exeext 18278 if ${ac_cv_search_socket+:} false; then : 18279 break 18280fi 18281done 18282if ${ac_cv_search_socket+:} false; then : 18283 18284else 18285 ac_cv_search_socket=no 18286fi 18287rm conftest.$ac_ext 18288LIBS=$ac_func_search_save_LIBS 18289fi 18290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18291$as_echo "$ac_cv_search_socket" >&6; } 18292ac_res=$ac_cv_search_socket 18293if test "$ac_res" != no; then : 18294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18295 18296fi 18297 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18299$as_echo_n "checking for library containing gethostbyname... " >&6; } 18300if ${ac_cv_search_gethostbyname+:} false; then : 18301 $as_echo_n "(cached) " >&6 18302else 18303 ac_func_search_save_LIBS=$LIBS 18304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18305/* end confdefs.h. */ 18306 18307/* Override any GCC internal prototype to avoid an error. 18308 Use char because int might match the return type of a GCC 18309 builtin and then its argument prototype would still apply. */ 18310#ifdef __cplusplus 18311extern "C" 18312#endif 18313char gethostbyname (); 18314int 18315main () 18316{ 18317return gethostbyname (); 18318 ; 18319 return 0; 18320} 18321_ACEOF 18322for ac_lib in '' nsl; do 18323 if test -z "$ac_lib"; then 18324 ac_res="none required" 18325 else 18326 ac_res=-l$ac_lib 18327 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18328 fi 18329 if ac_fn_c_try_link "$LINENO"; then : 18330 ac_cv_search_gethostbyname=$ac_res 18331fi 18332rm -f core conftest.err conftest.$ac_objext \ 18333 conftest$ac_exeext 18334 if ${ac_cv_search_gethostbyname+:} false; then : 18335 break 18336fi 18337done 18338if ${ac_cv_search_gethostbyname+:} false; then : 18339 18340else 18341 ac_cv_search_gethostbyname=no 18342fi 18343rm conftest.$ac_ext 18344LIBS=$ac_func_search_save_LIBS 18345fi 18346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18347$as_echo "$ac_cv_search_gethostbyname" >&6; } 18348ac_res=$ac_cv_search_gethostbyname 18349if test "$ac_res" != no; then : 18350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18351 18352fi 18353 18354 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18356$as_echo_n "checking for main in -lws2_32... " >&6; } 18357if ${ac_cv_lib_ws2_32_main+:} false; then : 18358 $as_echo_n "(cached) " >&6 18359else 18360 ac_check_lib_save_LIBS=$LIBS 18361LIBS="-lws2_32 $LIBS" 18362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18363/* end confdefs.h. */ 18364 18365 18366int 18367main () 18368{ 18369return main (); 18370 ; 18371 return 0; 18372} 18373_ACEOF 18374if ac_fn_c_try_link "$LINENO"; then : 18375 ac_cv_lib_ws2_32_main=yes 18376else 18377 ac_cv_lib_ws2_32_main=no 18378fi 18379rm -f core conftest.err conftest.$ac_objext \ 18380 conftest$ac_exeext conftest.$ac_ext 18381LIBS=$ac_check_lib_save_LIBS 18382fi 18383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18384$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18385if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18386 cat >>confdefs.h <<_ACEOF 18387#define HAVE_LIBWS2_32 1 18388_ACEOF 18389 18390 LIBS="-lws2_32 $LIBS" 18391 18392fi 18393 18394 fi 18395 18396 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18397 # Check whether --enable-ipv6 was given. 18398if test "${enable_ipv6+set}" = set; then : 18399 enableval=$enable_ipv6; IPV6CONN=$enableval 18400else 18401 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18402if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18403 IPV6CONN=yes 18404else 18405 IPV6CONN=no 18406fi 18407 18408fi 18409 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18411$as_echo_n "checking if IPv6 support should be built... " >&6; } 18412 if test "$IPV6CONN" = "yes"; then 18413 18414$as_echo "#define IPv6 1" >>confdefs.h 18415 18416 fi 18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18418$as_echo "$IPV6CONN" >&6; } 18419 18420 # 4.3BSD-Reno added a new member to struct sockaddr_in 18421 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18422#include <sys/types.h> 18423#include <sys/socket.h> 18424#include <netinet/in.h> 18425 18426" 18427if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18428 18429$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18430 18431fi 18432 18433 18434 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18435 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18436$ac_includes_default 18437#include <sys/socket.h> 18438" 18439if test "x$ac_cv_type_socklen_t" = xyes; then : 18440 18441cat >>confdefs.h <<_ACEOF 18442#define HAVE_SOCKLEN_T 1 18443_ACEOF 18444 18445 18446fi 18447 18448 18449 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 18450 # _XOPEN_SOURCE to get it (such as on Solaris) 18451 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 18452$ac_includes_default 18453#include <sys/socket.h> 18454 18455" 18456if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 18457 18458fi 18459 18460 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 18461 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 18462 unset ac_cv_member_struct_msghdr_msg_control 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 18464$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 18465 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 18466#define _XOPEN_SOURCE 600 18467$ac_includes_default 18468#include <sys/socket.h> 18469 18470" 18471if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 18472 18473$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 18474 18475 18476fi 18477 18478 fi 18479 # If that didn't work, fall back to XPG5/UNIX98 with C89 18480 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 18481 unset ac_cv_member_struct_msghdr_msg_control 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 18483$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 18484 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 18485#define _XOPEN_SOURCE 500 18486$ac_includes_default 18487#include <sys/socket.h> 18488 18489" 18490if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 18491 18492$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 18493 18494 18495fi 18496 18497 fi 18498 18499 18500 18501 fi 18502 case $host_os in 18503 solaris*|sco*|sysv4*) localdef="yes" ;; 18504 *) localdef="no" ;; 18505 esac 18506 # Check whether --enable-local-transport was given. 18507if test "${enable_local_transport+set}" = set; then : 18508 enableval=$enable_local_transport; LOCALCONN=$enableval 18509else 18510 LOCALCONN=$localdef 18511fi 18512 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 18514$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 18516$as_echo "$LOCALCONN" >&6; } 18517 if test "$LOCALCONN" = "yes"; then 18518 18519$as_echo "#define LOCALCONN 1" >>confdefs.h 18520 18521 fi 18522 18523 18524 18525# Checks for library functions. 18526for ac_func in strlcpy 18527do : 18528 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18529if test "x$ac_cv_func_strlcpy" = xyes; then : 18530 cat >>confdefs.h <<_ACEOF 18531#define HAVE_STRLCPY 1 18532_ACEOF 18533 18534fi 18535done 18536 18537 18538# Allow checking code with lint, sparse, etc. 18539 18540 18541 18542 18543 18544# Check whether --with-lint was given. 18545if test "${with_lint+set}" = set; then : 18546 withval=$with_lint; use_lint=$withval 18547else 18548 use_lint=no 18549fi 18550 18551 18552# Obtain platform specific info like program name and options 18553# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18554case $host_os in 18555 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18556 lint_name=splint 18557 lint_options="-badflag" 18558 ;; 18559 *freebsd* | *netbsd*) 18560 lint_name=lint 18561 lint_options="-u -b" 18562 ;; 18563 *solaris*) 18564 lint_name=lint 18565 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18566 ;; 18567esac 18568 18569# Test for the presence of the program (either guessed by the code or spelled out by the user) 18570if test "x$use_lint" = x"yes" ; then 18571 # Extract the first word of "$lint_name", so it can be a program name with args. 18572set dummy $lint_name; ac_word=$2 18573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18574$as_echo_n "checking for $ac_word... " >&6; } 18575if ${ac_cv_path_LINT+:} false; then : 18576 $as_echo_n "(cached) " >&6 18577else 18578 case $LINT in 18579 [\\/]* | ?:[\\/]*) 18580 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18581 ;; 18582 *) 18583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18584for as_dir in $PATH 18585do 18586 IFS=$as_save_IFS 18587 test -z "$as_dir" && as_dir=. 18588 for ac_exec_ext in '' $ac_executable_extensions; do 18589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18590 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18592 break 2 18593 fi 18594done 18595 done 18596IFS=$as_save_IFS 18597 18598 ;; 18599esac 18600fi 18601LINT=$ac_cv_path_LINT 18602if test -n "$LINT"; then 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18604$as_echo "$LINT" >&6; } 18605else 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18607$as_echo "no" >&6; } 18608fi 18609 18610 18611 if test "x$LINT" = "x"; then 18612 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18613 fi 18614elif test "x$use_lint" = x"no" ; then 18615 if test "x$LINT" != "x"; then 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18617$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18618 fi 18619else 18620 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18621fi 18622 18623# User supplied flags override default flags 18624if test "x$LINT_FLAGS" != "x"; then 18625 lint_options=$LINT_FLAGS 18626fi 18627 18628LINT_FLAGS=$lint_options 18629 18630 if test "x$LINT" != x; then 18631 LINT_TRUE= 18632 LINT_FALSE='#' 18633else 18634 LINT_TRUE='#' 18635 LINT_FALSE= 18636fi 18637 18638 18639 18640 18641 18642# Check whether --enable-lint-library was given. 18643if test "${enable_lint_library+set}" = set; then : 18644 enableval=$enable_lint_library; make_lint_lib=$enableval 18645else 18646 make_lint_lib=no 18647fi 18648 18649 18650if test "x$make_lint_lib" = x"yes" ; then 18651 LINTLIB=llib-lFS.ln 18652 if test "x$LINT" = "x"; then 18653 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18654 fi 18655elif test "x$make_lint_lib" != x"no" ; then 18656 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18657fi 18658 18659 18660 if test x$make_lint_lib != xno; then 18661 MAKE_LINT_LIB_TRUE= 18662 MAKE_LINT_LIB_FALSE='#' 18663else 18664 MAKE_LINT_LIB_TRUE='#' 18665 MAKE_LINT_LIB_FALSE= 18666fi 18667 18668 18669 18670 18671ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc" 18672 18673cat >confcache <<\_ACEOF 18674# This file is a shell script that caches the results of configure 18675# tests run on this system so they can be shared between configure 18676# scripts and configure runs, see configure's option --config-cache. 18677# It is not useful on other systems. If it contains results you don't 18678# want to keep, you may remove or edit it. 18679# 18680# config.status only pays attention to the cache file if you give it 18681# the --recheck option to rerun configure. 18682# 18683# `ac_cv_env_foo' variables (set or unset) will be overridden when 18684# loading this file, other *unset* `ac_cv_foo' will be assigned the 18685# following values. 18686 18687_ACEOF 18688 18689# The following way of writing the cache mishandles newlines in values, 18690# but we know of no workaround that is simple, portable, and efficient. 18691# So, we kill variables containing newlines. 18692# Ultrix sh set writes to stderr and can't be redirected directly, 18693# and sets the high bit in the cache file unless we assign to the vars. 18694( 18695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18696 eval ac_val=\$$ac_var 18697 case $ac_val in #( 18698 *${as_nl}*) 18699 case $ac_var in #( 18700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18701$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18702 esac 18703 case $ac_var in #( 18704 _ | IFS | as_nl) ;; #( 18705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18706 *) { eval $ac_var=; unset $ac_var;} ;; 18707 esac ;; 18708 esac 18709 done 18710 18711 (set) 2>&1 | 18712 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18713 *${as_nl}ac_space=\ *) 18714 # `set' does not quote correctly, so add quotes: double-quote 18715 # substitution turns \\\\ into \\, and sed turns \\ into \. 18716 sed -n \ 18717 "s/'/'\\\\''/g; 18718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18719 ;; #( 18720 *) 18721 # `set' quotes correctly as required by POSIX, so do not add quotes. 18722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18723 ;; 18724 esac | 18725 sort 18726) | 18727 sed ' 18728 /^ac_cv_env_/b end 18729 t clear 18730 :clear 18731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18732 t end 18733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18734 :end' >>confcache 18735if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18736 if test -w "$cache_file"; then 18737 if test "x$cache_file" != "x/dev/null"; then 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18739$as_echo "$as_me: updating cache $cache_file" >&6;} 18740 if test ! -f "$cache_file" || test -h "$cache_file"; then 18741 cat confcache >"$cache_file" 18742 else 18743 case $cache_file in #( 18744 */* | ?:*) 18745 mv -f confcache "$cache_file"$$ && 18746 mv -f "$cache_file"$$ "$cache_file" ;; #( 18747 *) 18748 mv -f confcache "$cache_file" ;; 18749 esac 18750 fi 18751 fi 18752 else 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18754$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18755 fi 18756fi 18757rm -f confcache 18758 18759test "x$prefix" = xNONE && prefix=$ac_default_prefix 18760# Let make expand exec_prefix. 18761test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18762 18763DEFS=-DHAVE_CONFIG_H 18764 18765ac_libobjs= 18766ac_ltlibobjs= 18767U= 18768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18769 # 1. Remove the extension, and $U if already installed. 18770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18773 # will be set to the directory where LIBOBJS objects are built. 18774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18776done 18777LIBOBJS=$ac_libobjs 18778 18779LTLIBOBJS=$ac_ltlibobjs 18780 18781 18782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18783$as_echo_n "checking that generated files are newer than configure... " >&6; } 18784 if test -n "$am_sleep_pid"; then 18785 # Hide warnings about reused PIDs. 18786 wait $am_sleep_pid 2>/dev/null 18787 fi 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18789$as_echo "done" >&6; } 18790 if test -n "$EXEEXT"; then 18791 am__EXEEXT_TRUE= 18792 am__EXEEXT_FALSE='#' 18793else 18794 am__EXEEXT_TRUE='#' 18795 am__EXEEXT_FALSE= 18796fi 18797 18798if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18799 as_fn_error $? "conditional \"AMDEP\" was never defined. 18800Usually this means the macro was only invoked conditionally." "$LINENO" 5 18801fi 18802if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18804Usually this means the macro was only invoked conditionally." "$LINENO" 5 18805fi 18806if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18807 as_fn_error $? "conditional \"LINT\" was never defined. 18808Usually this means the macro was only invoked conditionally." "$LINENO" 5 18809fi 18810if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18811 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18812Usually this means the macro was only invoked conditionally." "$LINENO" 5 18813fi 18814 18815: "${CONFIG_STATUS=./config.status}" 18816ac_write_fail=0 18817ac_clean_files_save=$ac_clean_files 18818ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18819{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18820$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18821as_write_fail=0 18822cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18823#! $SHELL 18824# Generated by $as_me. 18825# Run this file to recreate the current configuration. 18826# Compiler output produced by configure, useful for debugging 18827# configure, is in config.log if it exists. 18828 18829debug=false 18830ac_cs_recheck=false 18831ac_cs_silent=false 18832 18833SHELL=\${CONFIG_SHELL-$SHELL} 18834export SHELL 18835_ASEOF 18836cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18837## -------------------- ## 18838## M4sh Initialization. ## 18839## -------------------- ## 18840 18841# Be more Bourne compatible 18842DUALCASE=1; export DUALCASE # for MKS sh 18843if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18844 emulate sh 18845 NULLCMD=: 18846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18847 # is contrary to our usage. Disable this feature. 18848 alias -g '${1+"$@"}'='"$@"' 18849 setopt NO_GLOB_SUBST 18850else 18851 case `(set -o) 2>/dev/null` in #( 18852 *posix*) : 18853 set -o posix ;; #( 18854 *) : 18855 ;; 18856esac 18857fi 18858 18859 18860as_nl=' 18861' 18862export as_nl 18863# Printing a long string crashes Solaris 7 /usr/bin/printf. 18864as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18867# Prefer a ksh shell builtin over an external printf program on Solaris, 18868# but without wasting forks for bash or zsh. 18869if test -z "$BASH_VERSION$ZSH_VERSION" \ 18870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18871 as_echo='print -r --' 18872 as_echo_n='print -rn --' 18873elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18874 as_echo='printf %s\n' 18875 as_echo_n='printf %s' 18876else 18877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18879 as_echo_n='/usr/ucb/echo -n' 18880 else 18881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18882 as_echo_n_body='eval 18883 arg=$1; 18884 case $arg in #( 18885 *"$as_nl"*) 18886 expr "X$arg" : "X\\(.*\\)$as_nl"; 18887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18888 esac; 18889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18890 ' 18891 export as_echo_n_body 18892 as_echo_n='sh -c $as_echo_n_body as_echo' 18893 fi 18894 export as_echo_body 18895 as_echo='sh -c $as_echo_body as_echo' 18896fi 18897 18898# The user is always right. 18899if test "${PATH_SEPARATOR+set}" != set; then 18900 PATH_SEPARATOR=: 18901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18903 PATH_SEPARATOR=';' 18904 } 18905fi 18906 18907 18908# IFS 18909# We need space, tab and new line, in precisely that order. Quoting is 18910# there to prevent editors from complaining about space-tab. 18911# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18912# splitting by setting IFS to empty value.) 18913IFS=" "" $as_nl" 18914 18915# Find who we are. Look in the path if we contain no directory separator. 18916as_myself= 18917case $0 in #(( 18918 *[\\/]* ) as_myself=$0 ;; 18919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18920for as_dir in $PATH 18921do 18922 IFS=$as_save_IFS 18923 test -z "$as_dir" && as_dir=. 18924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18925 done 18926IFS=$as_save_IFS 18927 18928 ;; 18929esac 18930# We did not find ourselves, most probably we were run as `sh COMMAND' 18931# in which case we are not to be found in the path. 18932if test "x$as_myself" = x; then 18933 as_myself=$0 18934fi 18935if test ! -f "$as_myself"; then 18936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18937 exit 1 18938fi 18939 18940# Unset variables that we do not need and which cause bugs (e.g. in 18941# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18942# suppresses any "Segmentation fault" message there. '((' could 18943# trigger a bug in pdksh 5.2.14. 18944for as_var in BASH_ENV ENV MAIL MAILPATH 18945do eval test x\${$as_var+set} = xset \ 18946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18947done 18948PS1='$ ' 18949PS2='> ' 18950PS4='+ ' 18951 18952# NLS nuisances. 18953LC_ALL=C 18954export LC_ALL 18955LANGUAGE=C 18956export LANGUAGE 18957 18958# CDPATH. 18959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18960 18961 18962# as_fn_error STATUS ERROR [LINENO LOG_FD] 18963# ---------------------------------------- 18964# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18965# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18966# script with STATUS, using 1 if that was 0. 18967as_fn_error () 18968{ 18969 as_status=$1; test $as_status -eq 0 && as_status=1 18970 if test "$4"; then 18971 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18972 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18973 fi 18974 $as_echo "$as_me: error: $2" >&2 18975 as_fn_exit $as_status 18976} # as_fn_error 18977 18978 18979# as_fn_set_status STATUS 18980# ----------------------- 18981# Set $? to STATUS, without forking. 18982as_fn_set_status () 18983{ 18984 return $1 18985} # as_fn_set_status 18986 18987# as_fn_exit STATUS 18988# ----------------- 18989# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18990as_fn_exit () 18991{ 18992 set +e 18993 as_fn_set_status $1 18994 exit $1 18995} # as_fn_exit 18996 18997# as_fn_unset VAR 18998# --------------- 18999# Portably unset VAR. 19000as_fn_unset () 19001{ 19002 { eval $1=; unset $1;} 19003} 19004as_unset=as_fn_unset 19005# as_fn_append VAR VALUE 19006# ---------------------- 19007# Append the text in VALUE to the end of the definition contained in VAR. Take 19008# advantage of any shell optimizations that allow amortized linear growth over 19009# repeated appends, instead of the typical quadratic growth present in naive 19010# implementations. 19011if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19012 eval 'as_fn_append () 19013 { 19014 eval $1+=\$2 19015 }' 19016else 19017 as_fn_append () 19018 { 19019 eval $1=\$$1\$2 19020 } 19021fi # as_fn_append 19022 19023# as_fn_arith ARG... 19024# ------------------ 19025# Perform arithmetic evaluation on the ARGs, and store the result in the 19026# global $as_val. Take advantage of shells that can avoid forks. The arguments 19027# must be portable across $(()) and expr. 19028if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19029 eval 'as_fn_arith () 19030 { 19031 as_val=$(( $* )) 19032 }' 19033else 19034 as_fn_arith () 19035 { 19036 as_val=`expr "$@" || test $? -eq 1` 19037 } 19038fi # as_fn_arith 19039 19040 19041if expr a : '\(a\)' >/dev/null 2>&1 && 19042 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19043 as_expr=expr 19044else 19045 as_expr=false 19046fi 19047 19048if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19049 as_basename=basename 19050else 19051 as_basename=false 19052fi 19053 19054if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19055 as_dirname=dirname 19056else 19057 as_dirname=false 19058fi 19059 19060as_me=`$as_basename -- "$0" || 19061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19062 X"$0" : 'X\(//\)$' \| \ 19063 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19064$as_echo X/"$0" | 19065 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19066 s//\1/ 19067 q 19068 } 19069 /^X\/\(\/\/\)$/{ 19070 s//\1/ 19071 q 19072 } 19073 /^X\/\(\/\).*/{ 19074 s//\1/ 19075 q 19076 } 19077 s/.*/./; q'` 19078 19079# Avoid depending upon Character Ranges. 19080as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19082as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19083as_cr_digits='0123456789' 19084as_cr_alnum=$as_cr_Letters$as_cr_digits 19085 19086ECHO_C= ECHO_N= ECHO_T= 19087case `echo -n x` in #((((( 19088-n*) 19089 case `echo 'xy\c'` in 19090 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19091 xy) ECHO_C='\c';; 19092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19093 ECHO_T=' ';; 19094 esac;; 19095*) 19096 ECHO_N='-n';; 19097esac 19098 19099rm -f conf$$ conf$$.exe conf$$.file 19100if test -d conf$$.dir; then 19101 rm -f conf$$.dir/conf$$.file 19102else 19103 rm -f conf$$.dir 19104 mkdir conf$$.dir 2>/dev/null 19105fi 19106if (echo >conf$$.file) 2>/dev/null; then 19107 if ln -s conf$$.file conf$$ 2>/dev/null; then 19108 as_ln_s='ln -s' 19109 # ... but there are two gotchas: 19110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19112 # In both cases, we have to default to `cp -pR'. 19113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19114 as_ln_s='cp -pR' 19115 elif ln conf$$.file conf$$ 2>/dev/null; then 19116 as_ln_s=ln 19117 else 19118 as_ln_s='cp -pR' 19119 fi 19120else 19121 as_ln_s='cp -pR' 19122fi 19123rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19124rmdir conf$$.dir 2>/dev/null 19125 19126 19127# as_fn_mkdir_p 19128# ------------- 19129# Create "$as_dir" as a directory, including parents if necessary. 19130as_fn_mkdir_p () 19131{ 19132 19133 case $as_dir in #( 19134 -*) as_dir=./$as_dir;; 19135 esac 19136 test -d "$as_dir" || eval $as_mkdir_p || { 19137 as_dirs= 19138 while :; do 19139 case $as_dir in #( 19140 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19141 *) as_qdir=$as_dir;; 19142 esac 19143 as_dirs="'$as_qdir' $as_dirs" 19144 as_dir=`$as_dirname -- "$as_dir" || 19145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19146 X"$as_dir" : 'X\(//\)[^/]' \| \ 19147 X"$as_dir" : 'X\(//\)$' \| \ 19148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19149$as_echo X"$as_dir" | 19150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19151 s//\1/ 19152 q 19153 } 19154 /^X\(\/\/\)[^/].*/{ 19155 s//\1/ 19156 q 19157 } 19158 /^X\(\/\/\)$/{ 19159 s//\1/ 19160 q 19161 } 19162 /^X\(\/\).*/{ 19163 s//\1/ 19164 q 19165 } 19166 s/.*/./; q'` 19167 test -d "$as_dir" && break 19168 done 19169 test -z "$as_dirs" || eval "mkdir $as_dirs" 19170 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19171 19172 19173} # as_fn_mkdir_p 19174if mkdir -p . 2>/dev/null; then 19175 as_mkdir_p='mkdir -p "$as_dir"' 19176else 19177 test -d ./-p && rmdir ./-p 19178 as_mkdir_p=false 19179fi 19180 19181 19182# as_fn_executable_p FILE 19183# ----------------------- 19184# Test if FILE is an executable regular file. 19185as_fn_executable_p () 19186{ 19187 test -f "$1" && test -x "$1" 19188} # as_fn_executable_p 19189as_test_x='test -x' 19190as_executable_p=as_fn_executable_p 19191 19192# Sed expression to map a string onto a valid CPP name. 19193as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19194 19195# Sed expression to map a string onto a valid variable name. 19196as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19197 19198 19199exec 6>&1 19200## ----------------------------------- ## 19201## Main body of $CONFIG_STATUS script. ## 19202## ----------------------------------- ## 19203_ASEOF 19204test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19205 19206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19207# Save the log message, to keep $0 and so on meaningful, and to 19208# report actual input values of CONFIG_FILES etc. instead of their 19209# values after options handling. 19210ac_log=" 19211This file was extended by libFS $as_me 1.0.7, which was 19212generated by GNU Autoconf 2.69. Invocation command line was 19213 19214 CONFIG_FILES = $CONFIG_FILES 19215 CONFIG_HEADERS = $CONFIG_HEADERS 19216 CONFIG_LINKS = $CONFIG_LINKS 19217 CONFIG_COMMANDS = $CONFIG_COMMANDS 19218 $ $0 $@ 19219 19220on `(hostname || uname -n) 2>/dev/null | sed 1q` 19221" 19222 19223_ACEOF 19224 19225case $ac_config_files in *" 19226"*) set x $ac_config_files; shift; ac_config_files=$*;; 19227esac 19228 19229case $ac_config_headers in *" 19230"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19231esac 19232 19233 19234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19235# Files that config.status was made for. 19236config_files="$ac_config_files" 19237config_headers="$ac_config_headers" 19238config_commands="$ac_config_commands" 19239 19240_ACEOF 19241 19242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19243ac_cs_usage="\ 19244\`$as_me' instantiates files and other configuration actions 19245from templates according to the current configuration. Unless the files 19246and actions are specified as TAGs, all are instantiated by default. 19247 19248Usage: $0 [OPTION]... [TAG]... 19249 19250 -h, --help print this help, then exit 19251 -V, --version print version number and configuration settings, then exit 19252 --config print configuration, then exit 19253 -q, --quiet, --silent 19254 do not print progress messages 19255 -d, --debug don't remove temporary files 19256 --recheck update $as_me by reconfiguring in the same conditions 19257 --file=FILE[:TEMPLATE] 19258 instantiate the configuration file FILE 19259 --header=FILE[:TEMPLATE] 19260 instantiate the configuration header FILE 19261 19262Configuration files: 19263$config_files 19264 19265Configuration headers: 19266$config_headers 19267 19268Configuration commands: 19269$config_commands 19270 19271Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19272 19273_ACEOF 19274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19275ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19276ac_cs_version="\\ 19277libFS config.status 1.0.7 19278configured by $0, generated by GNU Autoconf 2.69, 19279 with options \\"\$ac_cs_config\\" 19280 19281Copyright (C) 2012 Free Software Foundation, Inc. 19282This config.status script is free software; the Free Software Foundation 19283gives unlimited permission to copy, distribute and modify it." 19284 19285ac_pwd='$ac_pwd' 19286srcdir='$srcdir' 19287INSTALL='$INSTALL' 19288MKDIR_P='$MKDIR_P' 19289AWK='$AWK' 19290test -n "\$AWK" || AWK=awk 19291_ACEOF 19292 19293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19294# The default lists apply if the user does not specify any file. 19295ac_need_defaults=: 19296while test $# != 0 19297do 19298 case $1 in 19299 --*=?*) 19300 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19302 ac_shift=: 19303 ;; 19304 --*=) 19305 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19306 ac_optarg= 19307 ac_shift=: 19308 ;; 19309 *) 19310 ac_option=$1 19311 ac_optarg=$2 19312 ac_shift=shift 19313 ;; 19314 esac 19315 19316 case $ac_option in 19317 # Handling of the options. 19318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19319 ac_cs_recheck=: ;; 19320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19321 $as_echo "$ac_cs_version"; exit ;; 19322 --config | --confi | --conf | --con | --co | --c ) 19323 $as_echo "$ac_cs_config"; exit ;; 19324 --debug | --debu | --deb | --de | --d | -d ) 19325 debug=: ;; 19326 --file | --fil | --fi | --f ) 19327 $ac_shift 19328 case $ac_optarg in 19329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19330 '') as_fn_error $? "missing file argument" ;; 19331 esac 19332 as_fn_append CONFIG_FILES " '$ac_optarg'" 19333 ac_need_defaults=false;; 19334 --header | --heade | --head | --hea ) 19335 $ac_shift 19336 case $ac_optarg in 19337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19338 esac 19339 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19340 ac_need_defaults=false;; 19341 --he | --h) 19342 # Conflict between --help and --header 19343 as_fn_error $? "ambiguous option: \`$1' 19344Try \`$0 --help' for more information.";; 19345 --help | --hel | -h ) 19346 $as_echo "$ac_cs_usage"; exit ;; 19347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19348 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19349 ac_cs_silent=: ;; 19350 19351 # This is an error. 19352 -*) as_fn_error $? "unrecognized option: \`$1' 19353Try \`$0 --help' for more information." ;; 19354 19355 *) as_fn_append ac_config_targets " $1" 19356 ac_need_defaults=false ;; 19357 19358 esac 19359 shift 19360done 19361 19362ac_configure_extra_args= 19363 19364if $ac_cs_silent; then 19365 exec 6>/dev/null 19366 ac_configure_extra_args="$ac_configure_extra_args --silent" 19367fi 19368 19369_ACEOF 19370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19371if \$ac_cs_recheck; then 19372 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19373 shift 19374 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19375 CONFIG_SHELL='$SHELL' 19376 export CONFIG_SHELL 19377 exec "\$@" 19378fi 19379 19380_ACEOF 19381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19382exec 5>>config.log 19383{ 19384 echo 19385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19386## Running $as_me. ## 19387_ASBOX 19388 $as_echo "$ac_log" 19389} >&5 19390 19391_ACEOF 19392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19393# 19394# INIT-COMMANDS 19395# 19396AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19397 19398 19399# The HP-UX ksh and POSIX shell print the target directory to stdout 19400# if CDPATH is set. 19401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19402 19403sed_quote_subst='$sed_quote_subst' 19404double_quote_subst='$double_quote_subst' 19405delay_variable_subst='$delay_variable_subst' 19406macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19407macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19408enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19409enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19410pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19411enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19412SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19413ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19414PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19415host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19416host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19417host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19418build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19419build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19420build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19421SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19422Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19423GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19424EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19425FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19426LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19427NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19428LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19429max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19430ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19431exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19432lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19433lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19434lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19435lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19436lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19437reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19438reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19439OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19440deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19441file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19442file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19443want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19444DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19445sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19446AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19447AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19448archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19449STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19450RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19451old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19452old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19453old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19454lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19455CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19456CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19457compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19458GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19459lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19460lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19461lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19462lt_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"`' 19463nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19464lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19465objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19466MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19467lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19468lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19469lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19470lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19471lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19472need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19473MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19474DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19475NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19476LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19477OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19478OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19479libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19480shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19481extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19482archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19483enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19484export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19485whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19486compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19487old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19488old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19489archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19490archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19491module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19492module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19493with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19494allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19495no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19496hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19497hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19498hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19499hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19500hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19501hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19502hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19503inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19504link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19505always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19506export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19507exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19508include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19509prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19510postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19511file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19512variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19513need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19514need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19515version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19516runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19517shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19518shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19519libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19520library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19521soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19522install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19523postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19524postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19525finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19526finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19527hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19528sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19529sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19530hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19531enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19532enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19533enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19534old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19535striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19536 19537LTCC='$LTCC' 19538LTCFLAGS='$LTCFLAGS' 19539compiler='$compiler_DEFAULT' 19540 19541# A function that is used when there is no print builtin or printf. 19542func_fallback_echo () 19543{ 19544 eval 'cat <<_LTECHO_EOF 19545\$1 19546_LTECHO_EOF' 19547} 19548 19549# Quote evaled strings. 19550for var in SHELL \ 19551ECHO \ 19552PATH_SEPARATOR \ 19553SED \ 19554GREP \ 19555EGREP \ 19556FGREP \ 19557LD \ 19558NM \ 19559LN_S \ 19560lt_SP2NL \ 19561lt_NL2SP \ 19562reload_flag \ 19563OBJDUMP \ 19564deplibs_check_method \ 19565file_magic_cmd \ 19566file_magic_glob \ 19567want_nocaseglob \ 19568DLLTOOL \ 19569sharedlib_from_linklib_cmd \ 19570AR \ 19571AR_FLAGS \ 19572archiver_list_spec \ 19573STRIP \ 19574RANLIB \ 19575CC \ 19576CFLAGS \ 19577compiler \ 19578lt_cv_sys_global_symbol_pipe \ 19579lt_cv_sys_global_symbol_to_cdecl \ 19580lt_cv_sys_global_symbol_to_c_name_address \ 19581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19582nm_file_list_spec \ 19583lt_prog_compiler_no_builtin_flag \ 19584lt_prog_compiler_pic \ 19585lt_prog_compiler_wl \ 19586lt_prog_compiler_static \ 19587lt_cv_prog_compiler_c_o \ 19588need_locks \ 19589MANIFEST_TOOL \ 19590DSYMUTIL \ 19591NMEDIT \ 19592LIPO \ 19593OTOOL \ 19594OTOOL64 \ 19595shrext_cmds \ 19596export_dynamic_flag_spec \ 19597whole_archive_flag_spec \ 19598compiler_needs_object \ 19599with_gnu_ld \ 19600allow_undefined_flag \ 19601no_undefined_flag \ 19602hardcode_libdir_flag_spec \ 19603hardcode_libdir_separator \ 19604exclude_expsyms \ 19605include_expsyms \ 19606file_list_spec \ 19607variables_saved_for_relink \ 19608libname_spec \ 19609library_names_spec \ 19610soname_spec \ 19611install_override_mode \ 19612finish_eval \ 19613old_striplib \ 19614striplib; do 19615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19616 *[\\\\\\\`\\"\\\$]*) 19617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19618 ;; 19619 *) 19620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19621 ;; 19622 esac 19623done 19624 19625# Double-quote double-evaled strings. 19626for var in reload_cmds \ 19627old_postinstall_cmds \ 19628old_postuninstall_cmds \ 19629old_archive_cmds \ 19630extract_expsyms_cmds \ 19631old_archive_from_new_cmds \ 19632old_archive_from_expsyms_cmds \ 19633archive_cmds \ 19634archive_expsym_cmds \ 19635module_cmds \ 19636module_expsym_cmds \ 19637export_symbols_cmds \ 19638prelink_cmds \ 19639postlink_cmds \ 19640postinstall_cmds \ 19641postuninstall_cmds \ 19642finish_cmds \ 19643sys_lib_search_path_spec \ 19644sys_lib_dlsearch_path_spec; do 19645 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19646 *[\\\\\\\`\\"\\\$]*) 19647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19648 ;; 19649 *) 19650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19651 ;; 19652 esac 19653done 19654 19655ac_aux_dir='$ac_aux_dir' 19656xsi_shell='$xsi_shell' 19657lt_shell_append='$lt_shell_append' 19658 19659# See if we are running on zsh, and set the options which allow our 19660# commands through without removal of \ escapes INIT. 19661if test -n "\${ZSH_VERSION+set}" ; then 19662 setopt NO_GLOB_SUBST 19663fi 19664 19665 19666 PACKAGE='$PACKAGE' 19667 VERSION='$VERSION' 19668 TIMESTAMP='$TIMESTAMP' 19669 RM='$RM' 19670 ofile='$ofile' 19671 19672 19673 19674 19675_ACEOF 19676 19677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19678 19679# Handling of arguments. 19680for ac_config_target in $ac_config_targets 19681do 19682 case $ac_config_target in 19683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19685 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19687 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19688 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19689 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;; 19690 19691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19692 esac 19693done 19694 19695 19696# If the user did not use the arguments to specify the items to instantiate, 19697# then the envvar interface is used. Set only those that are not. 19698# We use the long form for the default assignment because of an extremely 19699# bizarre bug on SunOS 4.1.3. 19700if $ac_need_defaults; then 19701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19704fi 19705 19706# Have a temporary directory for convenience. Make it in the build tree 19707# simply because there is no reason against having it here, and in addition, 19708# creating and moving files from /tmp can sometimes cause problems. 19709# Hook for its removal unless debugging. 19710# Note that there is a small window in which the directory will not be cleaned: 19711# after its creation but before its name has been assigned to `$tmp'. 19712$debug || 19713{ 19714 tmp= ac_tmp= 19715 trap 'exit_status=$? 19716 : "${ac_tmp:=$tmp}" 19717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19718' 0 19719 trap 'as_fn_exit 1' 1 2 13 15 19720} 19721# Create a (secure) tmp directory for tmp files. 19722 19723{ 19724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19725 test -d "$tmp" 19726} || 19727{ 19728 tmp=./conf$$-$RANDOM 19729 (umask 077 && mkdir "$tmp") 19730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19731ac_tmp=$tmp 19732 19733# Set up the scripts for CONFIG_FILES section. 19734# No need to generate them if there are no CONFIG_FILES. 19735# This happens for instance with `./config.status config.h'. 19736if test -n "$CONFIG_FILES"; then 19737 19738 19739ac_cr=`echo X | tr X '\015'` 19740# On cygwin, bash can eat \r inside `` if the user requested igncr. 19741# But we know of no other shell where ac_cr would be empty at this 19742# point, so we can use a bashism as a fallback. 19743if test "x$ac_cr" = x; then 19744 eval ac_cr=\$\'\\r\' 19745fi 19746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19748 ac_cs_awk_cr='\\r' 19749else 19750 ac_cs_awk_cr=$ac_cr 19751fi 19752 19753echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19754_ACEOF 19755 19756 19757{ 19758 echo "cat >conf$$subs.awk <<_ACEOF" && 19759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19760 echo "_ACEOF" 19761} >conf$$subs.sh || 19762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19764ac_delim='%!_!# ' 19765for ac_last_try in false false false false false :; do 19766 . ./conf$$subs.sh || 19767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19768 19769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19770 if test $ac_delim_n = $ac_delim_num; then 19771 break 19772 elif $ac_last_try; then 19773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19774 else 19775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19776 fi 19777done 19778rm -f conf$$subs.sh 19779 19780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19782_ACEOF 19783sed -n ' 19784h 19785s/^/S["/; s/!.*/"]=/ 19786p 19787g 19788s/^[^!]*!// 19789:repl 19790t repl 19791s/'"$ac_delim"'$// 19792t delim 19793:nl 19794h 19795s/\(.\{148\}\)..*/\1/ 19796t more1 19797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19798p 19799n 19800b repl 19801:more1 19802s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19803p 19804g 19805s/.\{148\}// 19806t nl 19807:delim 19808h 19809s/\(.\{148\}\)..*/\1/ 19810t more2 19811s/["\\]/\\&/g; s/^/"/; s/$/"/ 19812p 19813b 19814:more2 19815s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19816p 19817g 19818s/.\{148\}// 19819t delim 19820' <conf$$subs.awk | sed ' 19821/^[^""]/{ 19822 N 19823 s/\n// 19824} 19825' >>$CONFIG_STATUS || ac_write_fail=1 19826rm -f conf$$subs.awk 19827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19828_ACAWK 19829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19830 for (key in S) S_is_set[key] = 1 19831 FS = "" 19832 19833} 19834{ 19835 line = $ 0 19836 nfields = split(line, field, "@") 19837 substed = 0 19838 len = length(field[1]) 19839 for (i = 2; i < nfields; i++) { 19840 key = field[i] 19841 keylen = length(key) 19842 if (S_is_set[key]) { 19843 value = S[key] 19844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19845 len += length(value) + length(field[++i]) 19846 substed = 1 19847 } else 19848 len += 1 + keylen 19849 } 19850 19851 print line 19852} 19853 19854_ACAWK 19855_ACEOF 19856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19859else 19860 cat 19861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19863_ACEOF 19864 19865# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19867# trailing colons and then remove the whole line if VPATH becomes empty 19868# (actually we leave an empty line to preserve line numbers). 19869if test "x$srcdir" = x.; then 19870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19871h 19872s/// 19873s/^/:/ 19874s/[ ]*$/:/ 19875s/:\$(srcdir):/:/g 19876s/:\${srcdir}:/:/g 19877s/:@srcdir@:/:/g 19878s/^:*// 19879s/:*$// 19880x 19881s/\(=[ ]*\).*/\1/ 19882G 19883s/\n// 19884s/^[^=]*=[ ]*$// 19885}' 19886fi 19887 19888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19889fi # test -n "$CONFIG_FILES" 19890 19891# Set up the scripts for CONFIG_HEADERS section. 19892# No need to generate them if there are no CONFIG_HEADERS. 19893# This happens for instance with `./config.status Makefile'. 19894if test -n "$CONFIG_HEADERS"; then 19895cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19896BEGIN { 19897_ACEOF 19898 19899# Transform confdefs.h into an awk script `defines.awk', embedded as 19900# here-document in config.status, that substitutes the proper values into 19901# config.h.in to produce config.h. 19902 19903# Create a delimiter string that does not exist in confdefs.h, to ease 19904# handling of long lines. 19905ac_delim='%!_!# ' 19906for ac_last_try in false false :; do 19907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19908 if test -z "$ac_tt"; then 19909 break 19910 elif $ac_last_try; then 19911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19912 else 19913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19914 fi 19915done 19916 19917# For the awk script, D is an array of macro values keyed by name, 19918# likewise P contains macro parameters if any. Preserve backslash 19919# newline sequences. 19920 19921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19922sed -n ' 19923s/.\{148\}/&'"$ac_delim"'/g 19924t rset 19925:rset 19926s/^[ ]*#[ ]*define[ ][ ]*/ / 19927t def 19928d 19929:def 19930s/\\$// 19931t bsnl 19932s/["\\]/\\&/g 19933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19934D["\1"]=" \3"/p 19935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19936d 19937:bsnl 19938s/["\\]/\\&/g 19939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19940D["\1"]=" \3\\\\\\n"\\/p 19941t cont 19942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19943t cont 19944d 19945:cont 19946n 19947s/.\{148\}/&'"$ac_delim"'/g 19948t clear 19949:clear 19950s/\\$// 19951t bsnlc 19952s/["\\]/\\&/g; s/^/"/; s/$/"/p 19953d 19954:bsnlc 19955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19956b cont 19957' <confdefs.h | sed ' 19958s/'"$ac_delim"'/"\\\ 19959"/g' >>$CONFIG_STATUS || ac_write_fail=1 19960 19961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19962 for (key in D) D_is_set[key] = 1 19963 FS = "" 19964} 19965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19966 line = \$ 0 19967 split(line, arg, " ") 19968 if (arg[1] == "#") { 19969 defundef = arg[2] 19970 mac1 = arg[3] 19971 } else { 19972 defundef = substr(arg[1], 2) 19973 mac1 = arg[2] 19974 } 19975 split(mac1, mac2, "(") #) 19976 macro = mac2[1] 19977 prefix = substr(line, 1, index(line, defundef) - 1) 19978 if (D_is_set[macro]) { 19979 # Preserve the white space surrounding the "#". 19980 print prefix "define", macro P[macro] D[macro] 19981 next 19982 } else { 19983 # Replace #undef with comments. This is necessary, for example, 19984 # in the case of _POSIX_SOURCE, which is predefined and required 19985 # on some systems where configure will not decide to define it. 19986 if (defundef == "undef") { 19987 print "/*", prefix defundef, macro, "*/" 19988 next 19989 } 19990 } 19991} 19992{ print } 19993_ACAWK 19994_ACEOF 19995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19997fi # test -n "$CONFIG_HEADERS" 19998 19999 20000eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20001shift 20002for ac_tag 20003do 20004 case $ac_tag in 20005 :[FHLC]) ac_mode=$ac_tag; continue;; 20006 esac 20007 case $ac_mode$ac_tag in 20008 :[FHL]*:*);; 20009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20010 :[FH]-) ac_tag=-:-;; 20011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20012 esac 20013 ac_save_IFS=$IFS 20014 IFS=: 20015 set x $ac_tag 20016 IFS=$ac_save_IFS 20017 shift 20018 ac_file=$1 20019 shift 20020 20021 case $ac_mode in 20022 :L) ac_source=$1;; 20023 :[FH]) 20024 ac_file_inputs= 20025 for ac_f 20026 do 20027 case $ac_f in 20028 -) ac_f="$ac_tmp/stdin";; 20029 *) # Look for the file first in the build tree, then in the source tree 20030 # (if the path is not absolute). The absolute path cannot be DOS-style, 20031 # because $ac_f cannot contain `:'. 20032 test -f "$ac_f" || 20033 case $ac_f in 20034 [\\/$]*) false;; 20035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20036 esac || 20037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20038 esac 20039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20040 as_fn_append ac_file_inputs " '$ac_f'" 20041 done 20042 20043 # Let's still pretend it is `configure' which instantiates (i.e., don't 20044 # use $as_me), people would be surprised to read: 20045 # /* config.h. Generated by config.status. */ 20046 configure_input='Generated from '` 20047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20048 `' by configure.' 20049 if test x"$ac_file" != x-; then 20050 configure_input="$ac_file. $configure_input" 20051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20052$as_echo "$as_me: creating $ac_file" >&6;} 20053 fi 20054 # Neutralize special characters interpreted by sed in replacement strings. 20055 case $configure_input in #( 20056 *\&* | *\|* | *\\* ) 20057 ac_sed_conf_input=`$as_echo "$configure_input" | 20058 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20059 *) ac_sed_conf_input=$configure_input;; 20060 esac 20061 20062 case $ac_tag in 20063 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20065 esac 20066 ;; 20067 esac 20068 20069 ac_dir=`$as_dirname -- "$ac_file" || 20070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20071 X"$ac_file" : 'X\(//\)[^/]' \| \ 20072 X"$ac_file" : 'X\(//\)$' \| \ 20073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20074$as_echo X"$ac_file" | 20075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20076 s//\1/ 20077 q 20078 } 20079 /^X\(\/\/\)[^/].*/{ 20080 s//\1/ 20081 q 20082 } 20083 /^X\(\/\/\)$/{ 20084 s//\1/ 20085 q 20086 } 20087 /^X\(\/\).*/{ 20088 s//\1/ 20089 q 20090 } 20091 s/.*/./; q'` 20092 as_dir="$ac_dir"; as_fn_mkdir_p 20093 ac_builddir=. 20094 20095case "$ac_dir" in 20096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20097*) 20098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20099 # A ".." for each directory in $ac_dir_suffix. 20100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20101 case $ac_top_builddir_sub in 20102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20104 esac ;; 20105esac 20106ac_abs_top_builddir=$ac_pwd 20107ac_abs_builddir=$ac_pwd$ac_dir_suffix 20108# for backward compatibility: 20109ac_top_builddir=$ac_top_build_prefix 20110 20111case $srcdir in 20112 .) # We are building in place. 20113 ac_srcdir=. 20114 ac_top_srcdir=$ac_top_builddir_sub 20115 ac_abs_top_srcdir=$ac_pwd ;; 20116 [\\/]* | ?:[\\/]* ) # Absolute name. 20117 ac_srcdir=$srcdir$ac_dir_suffix; 20118 ac_top_srcdir=$srcdir 20119 ac_abs_top_srcdir=$srcdir ;; 20120 *) # Relative name. 20121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20122 ac_top_srcdir=$ac_top_build_prefix$srcdir 20123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20124esac 20125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20126 20127 20128 case $ac_mode in 20129 :F) 20130 # 20131 # CONFIG_FILE 20132 # 20133 20134 case $INSTALL in 20135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20137 esac 20138 ac_MKDIR_P=$MKDIR_P 20139 case $MKDIR_P in 20140 [\\/$]* | ?:[\\/]* ) ;; 20141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20142 esac 20143_ACEOF 20144 20145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20146# If the template does not know about datarootdir, expand it. 20147# FIXME: This hack should be removed a few years after 2.60. 20148ac_datarootdir_hack=; ac_datarootdir_seen= 20149ac_sed_dataroot=' 20150/datarootdir/ { 20151 p 20152 q 20153} 20154/@datadir@/p 20155/@docdir@/p 20156/@infodir@/p 20157/@localedir@/p 20158/@mandir@/p' 20159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20160*datarootdir*) ac_datarootdir_seen=yes;; 20161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20163$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20164_ACEOF 20165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20166 ac_datarootdir_hack=' 20167 s&@datadir@&$datadir&g 20168 s&@docdir@&$docdir&g 20169 s&@infodir@&$infodir&g 20170 s&@localedir@&$localedir&g 20171 s&@mandir@&$mandir&g 20172 s&\\\${datarootdir}&$datarootdir&g' ;; 20173esac 20174_ACEOF 20175 20176# Neutralize VPATH when `$srcdir' = `.'. 20177# Shell code in configure.ac might set extrasub. 20178# FIXME: do we really want to maintain this feature? 20179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20180ac_sed_extra="$ac_vpsub 20181$extrasub 20182_ACEOF 20183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20184:t 20185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20186s|@configure_input@|$ac_sed_conf_input|;t t 20187s&@top_builddir@&$ac_top_builddir_sub&;t t 20188s&@top_build_prefix@&$ac_top_build_prefix&;t t 20189s&@srcdir@&$ac_srcdir&;t t 20190s&@abs_srcdir@&$ac_abs_srcdir&;t t 20191s&@top_srcdir@&$ac_top_srcdir&;t t 20192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20193s&@builddir@&$ac_builddir&;t t 20194s&@abs_builddir@&$ac_abs_builddir&;t t 20195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20196s&@INSTALL@&$ac_INSTALL&;t t 20197s&@MKDIR_P@&$ac_MKDIR_P&;t t 20198$ac_datarootdir_hack 20199" 20200eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20202 20203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20206 "$ac_tmp/out"`; test -z "$ac_out"; } && 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20208which seems to be undefined. Please make sure it is defined" >&5 20209$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20210which seems to be undefined. Please make sure it is defined" >&2;} 20211 20212 rm -f "$ac_tmp/stdin" 20213 case $ac_file in 20214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20216 esac \ 20217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20218 ;; 20219 :H) 20220 # 20221 # CONFIG_HEADER 20222 # 20223 if test x"$ac_file" != x-; then 20224 { 20225 $as_echo "/* $configure_input */" \ 20226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20227 } >"$ac_tmp/config.h" \ 20228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20231$as_echo "$as_me: $ac_file is unchanged" >&6;} 20232 else 20233 rm -f "$ac_file" 20234 mv "$ac_tmp/config.h" "$ac_file" \ 20235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20236 fi 20237 else 20238 $as_echo "/* $configure_input */" \ 20239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20240 || as_fn_error $? "could not create -" "$LINENO" 5 20241 fi 20242# Compute "$ac_file"'s index in $config_headers. 20243_am_arg="$ac_file" 20244_am_stamp_count=1 20245for _am_header in $config_headers :; do 20246 case $_am_header in 20247 $_am_arg | $_am_arg:* ) 20248 break ;; 20249 * ) 20250 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20251 esac 20252done 20253echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20254$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20255 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20256 X"$_am_arg" : 'X\(//\)$' \| \ 20257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20258$as_echo X"$_am_arg" | 20259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20260 s//\1/ 20261 q 20262 } 20263 /^X\(\/\/\)[^/].*/{ 20264 s//\1/ 20265 q 20266 } 20267 /^X\(\/\/\)$/{ 20268 s//\1/ 20269 q 20270 } 20271 /^X\(\/\).*/{ 20272 s//\1/ 20273 q 20274 } 20275 s/.*/./; q'`/stamp-h$_am_stamp_count 20276 ;; 20277 20278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20279$as_echo "$as_me: executing $ac_file commands" >&6;} 20280 ;; 20281 esac 20282 20283 20284 case $ac_file$ac_mode in 20285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20286 # Older Autoconf quotes --file arguments for eval, but not when files 20287 # are listed without --file. Let's play safe and only enable the eval 20288 # if we detect the quoting. 20289 case $CONFIG_FILES in 20290 *\'*) eval set x "$CONFIG_FILES" ;; 20291 *) set x $CONFIG_FILES ;; 20292 esac 20293 shift 20294 for mf 20295 do 20296 # Strip MF so we end up with the name of the file. 20297 mf=`echo "$mf" | sed -e 's/:.*$//'` 20298 # Check whether this is an Automake generated Makefile or not. 20299 # We used to match only the files named 'Makefile.in', but 20300 # some people rename them; so instead we look at the file content. 20301 # Grep'ing the first line is not enough: some people post-process 20302 # each Makefile.in and add a new line on top of each file to say so. 20303 # Grep'ing the whole file is not good either: AIX grep has a line 20304 # limit of 2048, but all sed's we know have understand at least 4000. 20305 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20306 dirpart=`$as_dirname -- "$mf" || 20307$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20308 X"$mf" : 'X\(//\)[^/]' \| \ 20309 X"$mf" : 'X\(//\)$' \| \ 20310 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20311$as_echo X"$mf" | 20312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20313 s//\1/ 20314 q 20315 } 20316 /^X\(\/\/\)[^/].*/{ 20317 s//\1/ 20318 q 20319 } 20320 /^X\(\/\/\)$/{ 20321 s//\1/ 20322 q 20323 } 20324 /^X\(\/\).*/{ 20325 s//\1/ 20326 q 20327 } 20328 s/.*/./; q'` 20329 else 20330 continue 20331 fi 20332 # Extract the definition of DEPDIR, am__include, and am__quote 20333 # from the Makefile without running 'make'. 20334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20335 test -z "$DEPDIR" && continue 20336 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20337 test -z "$am__include" && continue 20338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20339 # Find all dependency output files, they are included files with 20340 # $(DEPDIR) in their names. We invoke sed twice because it is the 20341 # simplest approach to changing $(DEPDIR) to its actual value in the 20342 # expansion. 20343 for file in `sed -n " 20344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20346 # Make sure the directory exists. 20347 test -f "$dirpart/$file" && continue 20348 fdir=`$as_dirname -- "$file" || 20349$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20350 X"$file" : 'X\(//\)[^/]' \| \ 20351 X"$file" : 'X\(//\)$' \| \ 20352 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20353$as_echo X"$file" | 20354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20355 s//\1/ 20356 q 20357 } 20358 /^X\(\/\/\)[^/].*/{ 20359 s//\1/ 20360 q 20361 } 20362 /^X\(\/\/\)$/{ 20363 s//\1/ 20364 q 20365 } 20366 /^X\(\/\).*/{ 20367 s//\1/ 20368 q 20369 } 20370 s/.*/./; q'` 20371 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20372 # echo "creating $dirpart/$file" 20373 echo '# dummy' > "$dirpart/$file" 20374 done 20375 done 20376} 20377 ;; 20378 "libtool":C) 20379 20380 # See if we are running on zsh, and set the options which allow our 20381 # commands through without removal of \ escapes. 20382 if test -n "${ZSH_VERSION+set}" ; then 20383 setopt NO_GLOB_SUBST 20384 fi 20385 20386 cfgfile="${ofile}T" 20387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20388 $RM "$cfgfile" 20389 20390 cat <<_LT_EOF >> "$cfgfile" 20391#! $SHELL 20392 20393# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20394# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20396# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20397# 20398# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20399# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20400# Foundation, Inc. 20401# Written by Gordon Matzigkeit, 1996 20402# 20403# This file is part of GNU Libtool. 20404# 20405# GNU Libtool is free software; you can redistribute it and/or 20406# modify it under the terms of the GNU General Public License as 20407# published by the Free Software Foundation; either version 2 of 20408# the License, or (at your option) any later version. 20409# 20410# As a special exception to the GNU General Public License, 20411# if you distribute this file as part of a program or library that 20412# is built using GNU Libtool, you may include this file under the 20413# same distribution terms that you use for the rest of that program. 20414# 20415# GNU Libtool is distributed in the hope that it will be useful, 20416# but WITHOUT ANY WARRANTY; without even the implied warranty of 20417# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20418# GNU General Public License for more details. 20419# 20420# You should have received a copy of the GNU General Public License 20421# along with GNU Libtool; see the file COPYING. If not, a copy 20422# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20423# obtained by writing to the Free Software Foundation, Inc., 20424# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20425 20426 20427# The names of the tagged configurations supported by this script. 20428available_tags="" 20429 20430# ### BEGIN LIBTOOL CONFIG 20431 20432# Which release of libtool.m4 was used? 20433macro_version=$macro_version 20434macro_revision=$macro_revision 20435 20436# Whether or not to build shared libraries. 20437build_libtool_libs=$enable_shared 20438 20439# Whether or not to build static libraries. 20440build_old_libs=$enable_static 20441 20442# What type of objects to build. 20443pic_mode=$pic_mode 20444 20445# Whether or not to optimize for fast installation. 20446fast_install=$enable_fast_install 20447 20448# Shell to use when invoking shell scripts. 20449SHELL=$lt_SHELL 20450 20451# An echo program that protects backslashes. 20452ECHO=$lt_ECHO 20453 20454# The PATH separator for the build system. 20455PATH_SEPARATOR=$lt_PATH_SEPARATOR 20456 20457# The host system. 20458host_alias=$host_alias 20459host=$host 20460host_os=$host_os 20461 20462# The build system. 20463build_alias=$build_alias 20464build=$build 20465build_os=$build_os 20466 20467# A sed program that does not truncate output. 20468SED=$lt_SED 20469 20470# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20471Xsed="\$SED -e 1s/^X//" 20472 20473# A grep program that handles long lines. 20474GREP=$lt_GREP 20475 20476# An ERE matcher. 20477EGREP=$lt_EGREP 20478 20479# A literal string matcher. 20480FGREP=$lt_FGREP 20481 20482# A BSD- or MS-compatible name lister. 20483NM=$lt_NM 20484 20485# Whether we need soft or hard links. 20486LN_S=$lt_LN_S 20487 20488# What is the maximum length of a command? 20489max_cmd_len=$max_cmd_len 20490 20491# Object file suffix (normally "o"). 20492objext=$ac_objext 20493 20494# Executable file suffix (normally ""). 20495exeext=$exeext 20496 20497# whether the shell understands "unset". 20498lt_unset=$lt_unset 20499 20500# turn spaces into newlines. 20501SP2NL=$lt_lt_SP2NL 20502 20503# turn newlines into spaces. 20504NL2SP=$lt_lt_NL2SP 20505 20506# convert \$build file names to \$host format. 20507to_host_file_cmd=$lt_cv_to_host_file_cmd 20508 20509# convert \$build files to toolchain format. 20510to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20511 20512# An object symbol dumper. 20513OBJDUMP=$lt_OBJDUMP 20514 20515# Method to check whether dependent libraries are shared objects. 20516deplibs_check_method=$lt_deplibs_check_method 20517 20518# Command to use when deplibs_check_method = "file_magic". 20519file_magic_cmd=$lt_file_magic_cmd 20520 20521# How to find potential files when deplibs_check_method = "file_magic". 20522file_magic_glob=$lt_file_magic_glob 20523 20524# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20525want_nocaseglob=$lt_want_nocaseglob 20526 20527# DLL creation program. 20528DLLTOOL=$lt_DLLTOOL 20529 20530# Command to associate shared and link libraries. 20531sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20532 20533# The archiver. 20534AR=$lt_AR 20535 20536# Flags to create an archive. 20537AR_FLAGS=$lt_AR_FLAGS 20538 20539# How to feed a file listing to the archiver. 20540archiver_list_spec=$lt_archiver_list_spec 20541 20542# A symbol stripping program. 20543STRIP=$lt_STRIP 20544 20545# Commands used to install an old-style archive. 20546RANLIB=$lt_RANLIB 20547old_postinstall_cmds=$lt_old_postinstall_cmds 20548old_postuninstall_cmds=$lt_old_postuninstall_cmds 20549 20550# Whether to use a lock for old archive extraction. 20551lock_old_archive_extraction=$lock_old_archive_extraction 20552 20553# A C compiler. 20554LTCC=$lt_CC 20555 20556# LTCC compiler flags. 20557LTCFLAGS=$lt_CFLAGS 20558 20559# Take the output of nm and produce a listing of raw symbols and C names. 20560global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20561 20562# Transform the output of nm in a proper C declaration. 20563global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20564 20565# Transform the output of nm in a C name address pair. 20566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20567 20568# Transform the output of nm in a C name address pair when lib prefix is needed. 20569global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20570 20571# Specify filename containing input files for \$NM. 20572nm_file_list_spec=$lt_nm_file_list_spec 20573 20574# The root where to search for dependent libraries,and in which our libraries should be installed. 20575lt_sysroot=$lt_sysroot 20576 20577# The name of the directory that contains temporary libtool files. 20578objdir=$objdir 20579 20580# Used to examine libraries when file_magic_cmd begins with "file". 20581MAGIC_CMD=$MAGIC_CMD 20582 20583# Must we lock files when doing compilation? 20584need_locks=$lt_need_locks 20585 20586# Manifest tool. 20587MANIFEST_TOOL=$lt_MANIFEST_TOOL 20588 20589# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20590DSYMUTIL=$lt_DSYMUTIL 20591 20592# Tool to change global to local symbols on Mac OS X. 20593NMEDIT=$lt_NMEDIT 20594 20595# Tool to manipulate fat objects and archives on Mac OS X. 20596LIPO=$lt_LIPO 20597 20598# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20599OTOOL=$lt_OTOOL 20600 20601# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20602OTOOL64=$lt_OTOOL64 20603 20604# Old archive suffix (normally "a"). 20605libext=$libext 20606 20607# Shared library suffix (normally ".so"). 20608shrext_cmds=$lt_shrext_cmds 20609 20610# The commands to extract the exported symbol list from a shared archive. 20611extract_expsyms_cmds=$lt_extract_expsyms_cmds 20612 20613# Variables whose values should be saved in libtool wrapper scripts and 20614# restored at link time. 20615variables_saved_for_relink=$lt_variables_saved_for_relink 20616 20617# Do we need the "lib" prefix for modules? 20618need_lib_prefix=$need_lib_prefix 20619 20620# Do we need a version for libraries? 20621need_version=$need_version 20622 20623# Library versioning type. 20624version_type=$version_type 20625 20626# Shared library runtime path variable. 20627runpath_var=$runpath_var 20628 20629# Shared library path variable. 20630shlibpath_var=$shlibpath_var 20631 20632# Is shlibpath searched before the hard-coded library search path? 20633shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20634 20635# Format of library name prefix. 20636libname_spec=$lt_libname_spec 20637 20638# List of archive names. First name is the real one, the rest are links. 20639# The last name is the one that the linker finds with -lNAME 20640library_names_spec=$lt_library_names_spec 20641 20642# The coded name of the library, if different from the real name. 20643soname_spec=$lt_soname_spec 20644 20645# Permission mode override for installation of shared libraries. 20646install_override_mode=$lt_install_override_mode 20647 20648# Command to use after installation of a shared archive. 20649postinstall_cmds=$lt_postinstall_cmds 20650 20651# Command to use after uninstallation of a shared archive. 20652postuninstall_cmds=$lt_postuninstall_cmds 20653 20654# Commands used to finish a libtool library installation in a directory. 20655finish_cmds=$lt_finish_cmds 20656 20657# As "finish_cmds", except a single script fragment to be evaled but 20658# not shown. 20659finish_eval=$lt_finish_eval 20660 20661# Whether we should hardcode library paths into libraries. 20662hardcode_into_libs=$hardcode_into_libs 20663 20664# Compile-time system search path for libraries. 20665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20666 20667# Run-time system search path for libraries. 20668sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20669 20670# Whether dlopen is supported. 20671dlopen_support=$enable_dlopen 20672 20673# Whether dlopen of programs is supported. 20674dlopen_self=$enable_dlopen_self 20675 20676# Whether dlopen of statically linked programs is supported. 20677dlopen_self_static=$enable_dlopen_self_static 20678 20679# Commands to strip libraries. 20680old_striplib=$lt_old_striplib 20681striplib=$lt_striplib 20682 20683 20684# The linker used to build libraries. 20685LD=$lt_LD 20686 20687# How to create reloadable object files. 20688reload_flag=$lt_reload_flag 20689reload_cmds=$lt_reload_cmds 20690 20691# Commands used to build an old-style archive. 20692old_archive_cmds=$lt_old_archive_cmds 20693 20694# A language specific compiler. 20695CC=$lt_compiler 20696 20697# Is the compiler the GNU compiler? 20698with_gcc=$GCC 20699 20700# Compiler flag to turn off builtin functions. 20701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20702 20703# Additional compiler flags for building library objects. 20704pic_flag=$lt_lt_prog_compiler_pic 20705 20706# How to pass a linker flag through the compiler. 20707wl=$lt_lt_prog_compiler_wl 20708 20709# Compiler flag to prevent dynamic linking. 20710link_static_flag=$lt_lt_prog_compiler_static 20711 20712# Does compiler simultaneously support -c and -o options? 20713compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20714 20715# Whether or not to add -lc for building shared libraries. 20716build_libtool_need_lc=$archive_cmds_need_lc 20717 20718# Whether or not to disallow shared libs when runtime libs are static. 20719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20720 20721# Compiler flag to allow reflexive dlopens. 20722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20723 20724# Compiler flag to generate shared objects directly from archives. 20725whole_archive_flag_spec=$lt_whole_archive_flag_spec 20726 20727# Whether the compiler copes with passing no objects directly. 20728compiler_needs_object=$lt_compiler_needs_object 20729 20730# Create an old-style archive from a shared archive. 20731old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20732 20733# Create a temporary old-style archive to link instead of a shared archive. 20734old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20735 20736# Commands used to build a shared archive. 20737archive_cmds=$lt_archive_cmds 20738archive_expsym_cmds=$lt_archive_expsym_cmds 20739 20740# Commands used to build a loadable module if different from building 20741# a shared archive. 20742module_cmds=$lt_module_cmds 20743module_expsym_cmds=$lt_module_expsym_cmds 20744 20745# Whether we are building with GNU ld or not. 20746with_gnu_ld=$lt_with_gnu_ld 20747 20748# Flag that allows shared libraries with undefined symbols to be built. 20749allow_undefined_flag=$lt_allow_undefined_flag 20750 20751# Flag that enforces no undefined symbols. 20752no_undefined_flag=$lt_no_undefined_flag 20753 20754# Flag to hardcode \$libdir into a binary during linking. 20755# This must work even if \$libdir does not exist 20756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20757 20758# Whether we need a single "-rpath" flag with a separated argument. 20759hardcode_libdir_separator=$lt_hardcode_libdir_separator 20760 20761# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20762# DIR into the resulting binary. 20763hardcode_direct=$hardcode_direct 20764 20765# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20766# DIR into the resulting binary and the resulting library dependency is 20767# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20768# library is relocated. 20769hardcode_direct_absolute=$hardcode_direct_absolute 20770 20771# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20772# into the resulting binary. 20773hardcode_minus_L=$hardcode_minus_L 20774 20775# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20776# into the resulting binary. 20777hardcode_shlibpath_var=$hardcode_shlibpath_var 20778 20779# Set to "yes" if building a shared library automatically hardcodes DIR 20780# into the library and all subsequent libraries and executables linked 20781# against it. 20782hardcode_automatic=$hardcode_automatic 20783 20784# Set to yes if linker adds runtime paths of dependent libraries 20785# to runtime path list. 20786inherit_rpath=$inherit_rpath 20787 20788# Whether libtool must link a program against all its dependency libraries. 20789link_all_deplibs=$link_all_deplibs 20790 20791# Set to "yes" if exported symbols are required. 20792always_export_symbols=$always_export_symbols 20793 20794# The commands to list exported symbols. 20795export_symbols_cmds=$lt_export_symbols_cmds 20796 20797# Symbols that should not be listed in the preloaded symbols. 20798exclude_expsyms=$lt_exclude_expsyms 20799 20800# Symbols that must always be exported. 20801include_expsyms=$lt_include_expsyms 20802 20803# Commands necessary for linking programs (against libraries) with templates. 20804prelink_cmds=$lt_prelink_cmds 20805 20806# Commands necessary for finishing linking programs. 20807postlink_cmds=$lt_postlink_cmds 20808 20809# Specify filename containing input files. 20810file_list_spec=$lt_file_list_spec 20811 20812# How to hardcode a shared library path into an executable. 20813hardcode_action=$hardcode_action 20814 20815# ### END LIBTOOL CONFIG 20816 20817_LT_EOF 20818 20819 case $host_os in 20820 aix3*) 20821 cat <<\_LT_EOF >> "$cfgfile" 20822# AIX sometimes has problems with the GCC collect2 program. For some 20823# reason, if we set the COLLECT_NAMES environment variable, the problems 20824# vanish in a puff of smoke. 20825if test "X${COLLECT_NAMES+set}" != Xset; then 20826 COLLECT_NAMES= 20827 export COLLECT_NAMES 20828fi 20829_LT_EOF 20830 ;; 20831 esac 20832 20833 20834ltmain="$ac_aux_dir/ltmain.sh" 20835 20836 20837 # We use sed instead of cat because bash on DJGPP gets confused if 20838 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20839 # text mode, it properly converts lines to CR/LF. This bash problem 20840 # is reportedly fixed, but why not run on old versions too? 20841 sed '$q' "$ltmain" >> "$cfgfile" \ 20842 || (rm -f "$cfgfile"; exit 1) 20843 20844 if test x"$xsi_shell" = xyes; then 20845 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20846func_dirname ()\ 20847{\ 20848\ case ${1} in\ 20849\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20850\ * ) func_dirname_result="${3}" ;;\ 20851\ esac\ 20852} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20853 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20855test 0 -eq $? || _lt_function_replace_fail=: 20856 20857 20858 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20859func_basename ()\ 20860{\ 20861\ func_basename_result="${1##*/}"\ 20862} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20863 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20865test 0 -eq $? || _lt_function_replace_fail=: 20866 20867 20868 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20869func_dirname_and_basename ()\ 20870{\ 20871\ case ${1} in\ 20872\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20873\ * ) func_dirname_result="${3}" ;;\ 20874\ esac\ 20875\ func_basename_result="${1##*/}"\ 20876} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20879test 0 -eq $? || _lt_function_replace_fail=: 20880 20881 20882 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20883func_stripname ()\ 20884{\ 20885\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20886\ # positional parameters, so assign one to ordinary parameter first.\ 20887\ func_stripname_result=${3}\ 20888\ func_stripname_result=${func_stripname_result#"${1}"}\ 20889\ func_stripname_result=${func_stripname_result%"${2}"}\ 20890} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20891 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20893test 0 -eq $? || _lt_function_replace_fail=: 20894 20895 20896 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20897func_split_long_opt ()\ 20898{\ 20899\ func_split_long_opt_name=${1%%=*}\ 20900\ func_split_long_opt_arg=${1#*=}\ 20901} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20902 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20904test 0 -eq $? || _lt_function_replace_fail=: 20905 20906 20907 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20908func_split_short_opt ()\ 20909{\ 20910\ func_split_short_opt_arg=${1#??}\ 20911\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20912} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20913 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20915test 0 -eq $? || _lt_function_replace_fail=: 20916 20917 20918 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20919func_lo2o ()\ 20920{\ 20921\ case ${1} in\ 20922\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20923\ *) func_lo2o_result=${1} ;;\ 20924\ esac\ 20925} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20928test 0 -eq $? || _lt_function_replace_fail=: 20929 20930 20931 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20932func_xform ()\ 20933{\ 20934 func_xform_result=${1%.*}.lo\ 20935} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20938test 0 -eq $? || _lt_function_replace_fail=: 20939 20940 20941 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20942func_arith ()\ 20943{\ 20944 func_arith_result=$(( $* ))\ 20945} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20948test 0 -eq $? || _lt_function_replace_fail=: 20949 20950 20951 sed -e '/^func_len ()$/,/^} # func_len /c\ 20952func_len ()\ 20953{\ 20954 func_len_result=${#1}\ 20955} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20956 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20958test 0 -eq $? || _lt_function_replace_fail=: 20959 20960fi 20961 20962if test x"$lt_shell_append" = xyes; then 20963 sed -e '/^func_append ()$/,/^} # func_append /c\ 20964func_append ()\ 20965{\ 20966 eval "${1}+=\\${2}"\ 20967} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20968 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20970test 0 -eq $? || _lt_function_replace_fail=: 20971 20972 20973 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20974func_append_quoted ()\ 20975{\ 20976\ func_quote_for_eval "${2}"\ 20977\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20978} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20979 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20981test 0 -eq $? || _lt_function_replace_fail=: 20982 20983 20984 # Save a `func_append' function call where possible by direct use of '+=' 20985 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20986 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20988 test 0 -eq $? || _lt_function_replace_fail=: 20989else 20990 # Save a `func_append' function call even when '+=' is not available 20991 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20992 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20994 test 0 -eq $? || _lt_function_replace_fail=: 20995fi 20996 20997if test x"$_lt_function_replace_fail" = x":"; then 20998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20999$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21000fi 21001 21002 21003 mv -f "$cfgfile" "$ofile" || 21004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21005 chmod +x "$ofile" 21006 21007 ;; 21008 21009 esac 21010done # for ac_tag 21011 21012 21013as_fn_exit 0 21014_ACEOF 21015ac_clean_files=$ac_clean_files_save 21016 21017test $ac_write_fail = 0 || 21018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21019 21020 21021# configure is writing to config.log, and then calls config.status. 21022# config.status does its own redirection, appending to config.log. 21023# Unfortunately, on DOS this fails, as config.log is still kept open 21024# by configure, so config.status won't be able to write to it; its 21025# output is simply discarded. So we exec the FD to /dev/null, 21026# effectively closing config.log, so it can be properly (re)opened and 21027# appended to by config.status. When coming back to configure, we 21028# need to make the FD available again. 21029if test "$no_create" != yes; then 21030 ac_cs_success=: 21031 ac_config_status_args= 21032 test "$silent" = yes && 21033 ac_config_status_args="$ac_config_status_args --quiet" 21034 exec 5>/dev/null 21035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21036 exec 5>>config.log 21037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21038 # would make configure fail if this is the last instruction. 21039 $ac_cs_success || as_fn_exit 1 21040fi 21041if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21043$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21044fi 21045 21046