configure revision b12e5c03
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xf86-video-siliconmotion 1.7.7. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='xf86-video-siliconmotion' 573PACKAGE_TARNAME='xf86-video-siliconmotion' 574PACKAGE_VERSION='1.7.7' 575PACKAGE_STRING='xf86-video-siliconmotion 1.7.7' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion' 577PACKAGE_URL='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_unique_file="Makefile.am" 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620DRIVER_NAME 621moduledir 622XAA_FALSE 623XAA_TRUE 624XMODES_FALSE 625XMODES_TRUE 626XSERVER_LIBPCIACCESS_FALSE 627XSERVER_LIBPCIACCESS_TRUE 628PCIACCESS_LIBS 629PCIACCESS_CFLAGS 630HAVE_XEXTPROTO_71_FALSE 631HAVE_XEXTPROTO_71_TRUE 632XEXT_LIBS 633XEXT_CFLAGS 634XORG_LIBS 635XORG_CFLAGS 636OTOOL64 637OTOOL 638LIPO 639NMEDIT 640DSYMUTIL 641MANIFEST_TOOL 642RANLIB 643ac_ct_AR 644AR 645DLLTOOL 646OBJDUMP 647LN_S 648NM 649ac_ct_DUMPBIN 650DUMPBIN 651LD 652FGREP 653LIBTOOL 654MAINT 655MAINTAINER_MODE_FALSE 656MAINTAINER_MODE_TRUE 657am__fastdepCC_FALSE 658am__fastdepCC_TRUE 659CCDEPMODE 660am__nodep 661AMDEPBACKSLASH 662AMDEP_FALSE 663AMDEP_TRUE 664am__quote 665am__include 666DEPDIR 667am__untar 668am__tar 669AMTAR 670am__leading_dot 671SET_MAKE 672AWK 673mkdir_p 674MKDIR_P 675INSTALL_STRIP_PROGRAM 676STRIP 677install_sh 678MAKEINFO 679AUTOHEADER 680AUTOMAKE 681AUTOCONF 682ACLOCAL 683VERSION 684PACKAGE 685CYGPATH_W 686am__isrc 687AM_BACKSLASH 688AM_DEFAULT_VERBOSITY 689AM_DEFAULT_V 690AM_V 691MAN_SUBSTS 692XORG_MAN_PAGE 693ADMIN_MAN_DIR 694DRIVER_MAN_DIR 695MISC_MAN_DIR 696FILE_MAN_DIR 697LIB_MAN_DIR 698APP_MAN_DIR 699ADMIN_MAN_SUFFIX 700DRIVER_MAN_SUFFIX 701MISC_MAN_SUFFIX 702FILE_MAN_SUFFIX 703LIB_MAN_SUFFIX 704APP_MAN_SUFFIX 705SED 706host_os 707host_vendor 708host_cpu 709host 710build_os 711build_vendor 712build_cpu 713build 714INSTALL_CMD 715PKG_CONFIG_LIBDIR 716PKG_CONFIG_PATH 717PKG_CONFIG 718CHANGELOG_CMD 719STRICT_CFLAGS 720CWARNFLAGS 721BASE_CFLAGS 722EGREP 723GREP 724CPP 725OBJEXT 726EXEEXT 727ac_ct_CC 728CPPFLAGS 729LDFLAGS 730CFLAGS 731CC 732INSTALL_DATA 733INSTALL_SCRIPT 734INSTALL_PROGRAM 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_selective_werror 777enable_strict_compilation 778enable_silent_rules 779enable_dependency_tracking 780enable_maintainer_mode 781enable_static 782enable_shared 783with_pic 784enable_fast_install 785with_gnu_ld 786with_sysroot 787enable_libtool_lock 788with_xorg_module_dir 789enable_xaa 790' 791 ac_precious_vars='build_alias 792host_alias 793target_alias 794CC 795CFLAGS 796LDFLAGS 797LIBS 798CPPFLAGS 799CPP 800PKG_CONFIG 801PKG_CONFIG_PATH 802PKG_CONFIG_LIBDIR 803XORG_CFLAGS 804XORG_LIBS 805XEXT_CFLAGS 806XEXT_LIBS 807PCIACCESS_CFLAGS 808PCIACCESS_LIBS' 809 810 811# Initialize some variables set by options. 812ac_init_help= 813ac_init_version=false 814ac_unrecognized_opts= 815ac_unrecognized_sep= 816# The variables have the same names as the options, with 817# dashes changed to underlines. 818cache_file=/dev/null 819exec_prefix=NONE 820no_create= 821no_recursion= 822prefix=NONE 823program_prefix=NONE 824program_suffix=NONE 825program_transform_name=s,x,x, 826silent= 827site= 828srcdir= 829verbose= 830x_includes=NONE 831x_libraries=NONE 832 833# Installation directory options. 834# These are left unexpanded so users can "make install exec_prefix=/foo" 835# and all the variables that are supposed to be based on exec_prefix 836# by default will actually change. 837# Use braces instead of parens because sh, perl, etc. also accept them. 838# (The list follows the same order as the GNU Coding Standards.) 839bindir='${exec_prefix}/bin' 840sbindir='${exec_prefix}/sbin' 841libexecdir='${exec_prefix}/libexec' 842datarootdir='${prefix}/share' 843datadir='${datarootdir}' 844sysconfdir='${prefix}/etc' 845sharedstatedir='${prefix}/com' 846localstatedir='${prefix}/var' 847includedir='${prefix}/include' 848oldincludedir='/usr/include' 849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 850infodir='${datarootdir}/info' 851htmldir='${docdir}' 852dvidir='${docdir}' 853pdfdir='${docdir}' 854psdir='${docdir}' 855libdir='${exec_prefix}/lib' 856localedir='${datarootdir}/locale' 857mandir='${datarootdir}/man' 858 859ac_prev= 860ac_dashdash= 861for ac_option 862do 863 # If the previous option needs an argument, assign it. 864 if test -n "$ac_prev"; then 865 eval $ac_prev=\$ac_option 866 ac_prev= 867 continue 868 fi 869 870 case $ac_option in 871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 872 *=) ac_optarg= ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 # Accept the important Cygnus configure options, so we can diagnose typos. 877 878 case $ac_dashdash$ac_option in 879 --) 880 ac_dashdash=yes ;; 881 882 -bindir | --bindir | --bindi | --bind | --bin | --bi) 883 ac_prev=bindir ;; 884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 885 bindir=$ac_optarg ;; 886 887 -build | --build | --buil | --bui | --bu) 888 ac_prev=build_alias ;; 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 890 build_alias=$ac_optarg ;; 891 892 -cache-file | --cache-file | --cache-fil | --cache-fi \ 893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 894 ac_prev=cache_file ;; 895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 897 cache_file=$ac_optarg ;; 898 899 --config-cache | -C) 900 cache_file=config.cache ;; 901 902 -datadir | --datadir | --datadi | --datad) 903 ac_prev=datadir ;; 904 -datadir=* | --datadir=* | --datadi=* | --datad=*) 905 datadir=$ac_optarg ;; 906 907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 908 | --dataroo | --dataro | --datar) 909 ac_prev=datarootdir ;; 910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 912 datarootdir=$ac_optarg ;; 913 914 -disable-* | --disable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=no ;; 929 930 -docdir | --docdir | --docdi | --doc | --do) 931 ac_prev=docdir ;; 932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 933 docdir=$ac_optarg ;; 934 935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 936 ac_prev=dvidir ;; 937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 938 dvidir=$ac_optarg ;; 939 940 -enable-* | --enable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=\$ac_optarg ;; 955 956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 958 | --exec | --exe | --ex) 959 ac_prev=exec_prefix ;; 960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 962 | --exec=* | --exe=* | --ex=*) 963 exec_prefix=$ac_optarg ;; 964 965 -gas | --gas | --ga | --g) 966 # Obsolete; use --with-gas. 967 with_gas=yes ;; 968 969 -help | --help | --hel | --he | -h) 970 ac_init_help=long ;; 971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 972 ac_init_help=recursive ;; 973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 974 ac_init_help=short ;; 975 976 -host | --host | --hos | --ho) 977 ac_prev=host_alias ;; 978 -host=* | --host=* | --hos=* | --ho=*) 979 host_alias=$ac_optarg ;; 980 981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 982 ac_prev=htmldir ;; 983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 984 | --ht=*) 985 htmldir=$ac_optarg ;; 986 987 -includedir | --includedir | --includedi | --included | --include \ 988 | --includ | --inclu | --incl | --inc) 989 ac_prev=includedir ;; 990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 991 | --includ=* | --inclu=* | --incl=* | --inc=*) 992 includedir=$ac_optarg ;; 993 994 -infodir | --infodir | --infodi | --infod | --info | --inf) 995 ac_prev=infodir ;; 996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 997 infodir=$ac_optarg ;; 998 999 -libdir | --libdir | --libdi | --libd) 1000 ac_prev=libdir ;; 1001 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1002 libdir=$ac_optarg ;; 1003 1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1005 | --libexe | --libex | --libe) 1006 ac_prev=libexecdir ;; 1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1008 | --libexe=* | --libex=* | --libe=*) 1009 libexecdir=$ac_optarg ;; 1010 1011 -localedir | --localedir | --localedi | --localed | --locale) 1012 ac_prev=localedir ;; 1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1014 localedir=$ac_optarg ;; 1015 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1017 | --localstate | --localstat | --localsta | --localst | --locals) 1018 ac_prev=localstatedir ;; 1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1021 localstatedir=$ac_optarg ;; 1022 1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1024 ac_prev=mandir ;; 1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1026 mandir=$ac_optarg ;; 1027 1028 -nfp | --nfp | --nf) 1029 # Obsolete; use --without-fp. 1030 with_fp=no ;; 1031 1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1033 | --no-cr | --no-c | -n) 1034 no_create=yes ;; 1035 1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1038 no_recursion=yes ;; 1039 1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1042 | --oldin | --oldi | --old | --ol | --o) 1043 ac_prev=oldincludedir ;; 1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1047 oldincludedir=$ac_optarg ;; 1048 1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1050 ac_prev=prefix ;; 1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1052 prefix=$ac_optarg ;; 1053 1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1055 | --program-pre | --program-pr | --program-p) 1056 ac_prev=program_prefix ;; 1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1059 program_prefix=$ac_optarg ;; 1060 1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1062 | --program-suf | --program-su | --program-s) 1063 ac_prev=program_suffix ;; 1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1066 program_suffix=$ac_optarg ;; 1067 1068 -program-transform-name | --program-transform-name \ 1069 | --program-transform-nam | --program-transform-na \ 1070 | --program-transform-n | --program-transform- \ 1071 | --program-transform | --program-transfor \ 1072 | --program-transfo | --program-transf \ 1073 | --program-trans | --program-tran \ 1074 | --progr-tra | --program-tr | --program-t) 1075 ac_prev=program_transform_name ;; 1076 -program-transform-name=* | --program-transform-name=* \ 1077 | --program-transform-nam=* | --program-transform-na=* \ 1078 | --program-transform-n=* | --program-transform-=* \ 1079 | --program-transform=* | --program-transfor=* \ 1080 | --program-transfo=* | --program-transf=* \ 1081 | --program-trans=* | --program-tran=* \ 1082 | --progr-tra=* | --program-tr=* | --program-t=*) 1083 program_transform_name=$ac_optarg ;; 1084 1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1086 ac_prev=pdfdir ;; 1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1088 pdfdir=$ac_optarg ;; 1089 1090 -psdir | --psdir | --psdi | --psd | --ps) 1091 ac_prev=psdir ;; 1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1093 psdir=$ac_optarg ;; 1094 1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1096 | -silent | --silent | --silen | --sile | --sil) 1097 silent=yes ;; 1098 1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1100 ac_prev=sbindir ;; 1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1102 | --sbi=* | --sb=*) 1103 sbindir=$ac_optarg ;; 1104 1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1107 | --sharedst | --shareds | --shared | --share | --shar \ 1108 | --sha | --sh) 1109 ac_prev=sharedstatedir ;; 1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1113 | --sha=* | --sh=*) 1114 sharedstatedir=$ac_optarg ;; 1115 1116 -site | --site | --sit) 1117 ac_prev=site ;; 1118 -site=* | --site=* | --sit=*) 1119 site=$ac_optarg ;; 1120 1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1122 ac_prev=srcdir ;; 1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1124 srcdir=$ac_optarg ;; 1125 1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1127 | --syscon | --sysco | --sysc | --sys | --sy) 1128 ac_prev=sysconfdir ;; 1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1131 sysconfdir=$ac_optarg ;; 1132 1133 -target | --target | --targe | --targ | --tar | --ta | --t) 1134 ac_prev=target_alias ;; 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1136 target_alias=$ac_optarg ;; 1137 1138 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1139 verbose=yes ;; 1140 1141 -version | --version | --versio | --versi | --vers | -V) 1142 ac_init_version=: ;; 1143 1144 -with-* | --with-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153"with_$ac_useropt" 1154"*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=\$ac_optarg ;; 1159 1160 -without-* | --without-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=no ;; 1175 1176 --x) 1177 # Obsolete; use --with-x. 1178 with_x=yes ;; 1179 1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1181 | --x-incl | --x-inc | --x-in | --x-i) 1182 ac_prev=x_includes ;; 1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1185 x_includes=$ac_optarg ;; 1186 1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1189 ac_prev=x_libraries ;; 1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1192 x_libraries=$ac_optarg ;; 1193 1194 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1195Try \`$0 --help' for more information" 1196 ;; 1197 1198 *=*) 1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1200 # Reject names that are not valid shell variable names. 1201 case $ac_envvar in #( 1202 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1204 esac 1205 eval $ac_envvar=\$ac_optarg 1206 export $ac_envvar ;; 1207 1208 *) 1209 # FIXME: should be removed in autoconf 3.0. 1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1214 ;; 1215 1216 esac 1217done 1218 1219if test -n "$ac_prev"; then 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1221 as_fn_error $? "missing argument to $ac_option" 1222fi 1223 1224if test -n "$ac_unrecognized_opts"; then 1225 case $enable_option_checking in 1226 no) ;; 1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1229 esac 1230fi 1231 1232# Check all directory arguments for consistency. 1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1234 datadir sysconfdir sharedstatedir localstatedir includedir \ 1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1236 libdir localedir mandir 1237do 1238 eval ac_val=\$$ac_var 1239 # Remove trailing slashes. 1240 case $ac_val in 1241 */ ) 1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1243 eval $ac_var=\$ac_val;; 1244 esac 1245 # Be sure to have absolute directory names. 1246 case $ac_val in 1247 [\\/$]* | ?:[\\/]* ) continue;; 1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1249 esac 1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1251done 1252 1253# There might be people who depend on the old broken behavior: `$host' 1254# used to hold the argument of --host etc. 1255# FIXME: To remove some day. 1256build=$build_alias 1257host=$host_alias 1258target=$target_alias 1259 1260# FIXME: To remove some day. 1261if test "x$host_alias" != x; then 1262 if test "x$build_alias" = x; then 1263 cross_compiling=maybe 1264 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1265 If a cross compiler is detected then cross compile mode will be used" >&2 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294$as_echo X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351\`configure' configures xf86-video-siliconmotion 1.7.7 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, \`make install' will install all the files in 1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380for instance \`--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root 1400 [DATAROOTDIR/doc/xf86-video-siliconmotion] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=C prepend C to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.7:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 --enable-silent-rules less verbose build output (undo: `make V=1') 1437 --disable-silent-rules verbose build output (undo: `make V=0') 1438 --disable-dependency-tracking speeds up one-time build 1439 --enable-dependency-tracking do not reject slow dependency extractors 1440 --enable-maintainer-mode enable make rules and dependencies not useful 1441 (and sometimes confusing) to the casual installer 1442 --enable-static[=PKGS] build static libraries [default=no] 1443 --enable-shared[=PKGS] build shared libraries [default=yes] 1444 --enable-fast-install[=PKGS] 1445 optimize for fast installation [default=yes] 1446 --disable-libtool-lock avoid locking (might break parallel builds) 1447 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1448 [default=auto] 1449 1450Optional Packages: 1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1453 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1454 both] 1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1456 --with-sysroot=DIR Search for dependent libraries within DIR 1457 (or the compiler's sysroot if not specified). 1458 --with-xorg-module-dir=DIR 1459 Default xorg module directory 1460 [[default=$libdir/xorg/modules]] 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 CPP C preprocessor 1471 PKG_CONFIG path to pkg-config utility 1472 PKG_CONFIG_PATH 1473 directories to add to pkg-config's search path 1474 PKG_CONFIG_LIBDIR 1475 path overriding pkg-config's built-in search path 1476 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1477 XORG_LIBS linker flags for XORG, overriding pkg-config 1478 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1479 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1480 PCIACCESS_CFLAGS 1481 C compiler flags for PCIACCESS, overriding pkg-config 1482 PCIACCESS_LIBS 1483 linker flags for PCIACCESS, overriding pkg-config 1484 1485Use these variables to override the choices made by `configure' or to help 1486it to find libraries and programs with nonstandard names/locations. 1487 1488Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>. 1489_ACEOF 1490ac_status=$? 1491fi 1492 1493if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501case "$ac_dir" in 1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503*) 1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511esac 1512ac_abs_top_builddir=$ac_pwd 1513ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514# for backward compatibility: 1515ac_top_builddir=$ac_top_build_prefix 1516 1517case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530esac 1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for guested configure. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546fi 1547 1548test -n "$ac_init_help" && exit $ac_status 1549if $ac_init_version; then 1550 cat <<\_ACEOF 1551xf86-video-siliconmotion configure 1.7.7 1552generated by GNU Autoconf 2.68 1553 1554Copyright (C) 2010 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560 1561## ------------------------ ## 1562## Autoconf initialization. ## 1563## ------------------------ ## 1564 1565# ac_fn_c_try_compile LINENO 1566# -------------------------- 1567# Try to compile conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext 1572 if { { ac_try="$ac_compile" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 as_fn_set_status $ac_retval 1600 1601} # ac_fn_c_try_compile 1602 1603# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1604# --------------------------------------------- 1605# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1606# accordingly. 1607ac_fn_c_check_decl () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 as_decl_name=`echo $2|sed 's/ *(.*//'` 1611 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1613$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1614if eval \${$3+:} false; then : 1615 $as_echo_n "(cached) " >&6 1616else 1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618/* end confdefs.h. */ 1619$4 1620int 1621main () 1622{ 1623#ifndef $as_decl_name 1624#ifdef __cplusplus 1625 (void) $as_decl_use; 1626#else 1627 (void) $as_decl_name; 1628#endif 1629#endif 1630 1631 ; 1632 return 0; 1633} 1634_ACEOF 1635if ac_fn_c_try_compile "$LINENO"; then : 1636 eval "$3=yes" 1637else 1638 eval "$3=no" 1639fi 1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1641fi 1642eval ac_res=\$$3 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1644$as_echo "$ac_res" >&6; } 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 1647} # ac_fn_c_check_decl 1648 1649# ac_fn_c_try_cpp LINENO 1650# ---------------------- 1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1652ac_fn_c_try_cpp () 1653{ 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 if { { ac_try="$ac_cpp conftest.$ac_ext" 1656case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1663 ac_status=$? 1664 if test -s conftest.err; then 1665 grep -v '^ *+' conftest.err >conftest.er1 1666 cat conftest.er1 >&5 1667 mv -f conftest.er1 conftest.err 1668 fi 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } > conftest.i && { 1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1672 test ! -s conftest.err 1673 }; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_cpp 1685 1686# ac_fn_c_try_run LINENO 1687# ---------------------- 1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1689# that executables *can* be run. 1690ac_fn_c_try_run () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 if { { ac_try="$ac_link" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_link") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1704 { { case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_try") 2>&5 1711 ac_status=$? 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; }; }; then : 1714 ac_retval=0 1715else 1716 $as_echo "$as_me: program exited with status $ac_status" >&5 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=$ac_status 1721fi 1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 as_fn_set_status $ac_retval 1725 1726} # ac_fn_c_try_run 1727 1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1729# ------------------------------------------------------- 1730# Tests whether HEADER exists and can be compiled using the include files in 1731# INCLUDES, setting the cache variable VAR accordingly. 1732ac_fn_c_check_header_compile () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736$as_echo_n "checking for $2... " >&6; } 1737if eval \${$3+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$4 1743#include <$2> 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO"; then : 1746 eval "$3=yes" 1747else 1748 eval "$3=no" 1749fi 1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1751fi 1752eval ac_res=\$$3 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1754$as_echo "$ac_res" >&6; } 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 1757} # ac_fn_c_check_header_compile 1758 1759# ac_fn_c_try_link LINENO 1760# ----------------------- 1761# Try to link conftest.$ac_ext, and return whether this succeeded. 1762ac_fn_c_try_link () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 rm -f conftest.$ac_objext conftest$ac_exeext 1766 if { { ac_try="$ac_link" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_link") 2>conftest.err 1774 ac_status=$? 1775 if test -s conftest.err; then 1776 grep -v '^ *+' conftest.err >conftest.er1 1777 cat conftest.er1 >&5 1778 mv -f conftest.er1 conftest.err 1779 fi 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } && { 1782 test -z "$ac_c_werror_flag" || 1783 test ! -s conftest.err 1784 } && test -s conftest$ac_exeext && { 1785 test "$cross_compiling" = yes || 1786 $as_test_x conftest$ac_exeext 1787 }; then : 1788 ac_retval=0 1789else 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=1 1794fi 1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1797 # interfere with the next link command; also delete a directory that is 1798 # left behind by Apple's compiler. We do this before executing the actions. 1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_link 1804 1805# ac_fn_c_check_func LINENO FUNC VAR 1806# ---------------------------------- 1807# Tests whether FUNC exists, setting the cache variable VAR accordingly 1808ac_fn_c_check_func () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1820#define $2 innocuous_$2 1821 1822/* System header to define __stub macros and hopefully few prototypes, 1823 which can conflict with char $2 (); below. 1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1825 <limits.h> exists even on freestanding compilers. */ 1826 1827#ifdef __STDC__ 1828# include <limits.h> 1829#else 1830# include <assert.h> 1831#endif 1832 1833#undef $2 1834 1835/* Override any GCC internal prototype to avoid an error. 1836 Use char because int might match the return type of a GCC 1837 builtin and then its argument prototype would still apply. */ 1838#ifdef __cplusplus 1839extern "C" 1840#endif 1841char $2 (); 1842/* The GNU C library defines this for functions which it implements 1843 to always fail with ENOSYS. Some functions are actually named 1844 something starting with __ and the normal name is an alias. */ 1845#if defined __stub_$2 || defined __stub___$2 1846choke me 1847#endif 1848 1849int 1850main () 1851{ 1852return $2 (); 1853 ; 1854 return 0; 1855} 1856_ACEOF 1857if ac_fn_c_try_link "$LINENO"; then : 1858 eval "$3=yes" 1859else 1860 eval "$3=no" 1861fi 1862rm -f core conftest.err conftest.$ac_objext \ 1863 conftest$ac_exeext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_func 1871 1872# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1873# ------------------------------------------------------- 1874# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1875# the include files in INCLUDES and setting the cache variable VAR 1876# accordingly. 1877ac_fn_c_check_header_mongrel () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 if eval \${$3+:} false; then : 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1882$as_echo_n "checking for $2... " >&6; } 1883if eval \${$3+:} false; then : 1884 $as_echo_n "(cached) " >&6 1885fi 1886eval ac_res=\$$3 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888$as_echo "$ac_res" >&6; } 1889else 1890 # Is the header compilable? 1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1892$as_echo_n "checking $2 usability... " >&6; } 1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894/* end confdefs.h. */ 1895$4 1896#include <$2> 1897_ACEOF 1898if ac_fn_c_try_compile "$LINENO"; then : 1899 ac_header_compiler=yes 1900else 1901 ac_header_compiler=no 1902fi 1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1905$as_echo "$ac_header_compiler" >&6; } 1906 1907# Is the header present? 1908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1909$as_echo_n "checking $2 presence... " >&6; } 1910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912#include <$2> 1913_ACEOF 1914if ac_fn_c_try_cpp "$LINENO"; then : 1915 ac_header_preproc=yes 1916else 1917 ac_header_preproc=no 1918fi 1919rm -f conftest.err conftest.i conftest.$ac_ext 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1921$as_echo "$ac_header_preproc" >&6; } 1922 1923# So? What about this header? 1924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1925 yes:no: ) 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1927$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1929$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1930 ;; 1931 no:yes:* ) 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1933$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1935$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1937$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1939$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1941$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1942( $as_echo "## ----------------------------------------------------------------------------------------------------- ## 1943## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion ## 1944## ----------------------------------------------------------------------------------------------------- ##" 1945 ) | sed "s/^/$as_me: WARNING: /" >&2 1946 ;; 1947esac 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1949$as_echo_n "checking for $2... " >&6; } 1950if eval \${$3+:} false; then : 1951 $as_echo_n "(cached) " >&6 1952else 1953 eval "$3=\$ac_header_compiler" 1954fi 1955eval ac_res=\$$3 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1957$as_echo "$ac_res" >&6; } 1958fi 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1960 1961} # ac_fn_c_check_header_mongrel 1962cat >config.log <<_ACEOF 1963This file contains any messages produced by compilers while 1964running configure, to aid debugging if configure makes a mistake. 1965 1966It was created by xf86-video-siliconmotion $as_me 1.7.7, which was 1967generated by GNU Autoconf 2.68. Invocation command line was 1968 1969 $ $0 $@ 1970 1971_ACEOF 1972exec 5>>config.log 1973{ 1974cat <<_ASUNAME 1975## --------- ## 1976## Platform. ## 1977## --------- ## 1978 1979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1980uname -m = `(uname -m) 2>/dev/null || echo unknown` 1981uname -r = `(uname -r) 2>/dev/null || echo unknown` 1982uname -s = `(uname -s) 2>/dev/null || echo unknown` 1983uname -v = `(uname -v) 2>/dev/null || echo unknown` 1984 1985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1986/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1987 1988/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1989/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1991/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1992/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1993/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1994/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1995 1996_ASUNAME 1997 1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1999for as_dir in $PATH 2000do 2001 IFS=$as_save_IFS 2002 test -z "$as_dir" && as_dir=. 2003 $as_echo "PATH: $as_dir" 2004 done 2005IFS=$as_save_IFS 2006 2007} >&5 2008 2009cat >&5 <<_ACEOF 2010 2011 2012## ----------- ## 2013## Core tests. ## 2014## ----------- ## 2015 2016_ACEOF 2017 2018 2019# Keep a trace of the command line. 2020# Strip out --no-create and --no-recursion so they do not pile up. 2021# Strip out --silent because we don't want to record it for future runs. 2022# Also quote any args containing shell meta-characters. 2023# Make two passes to allow for proper duplicate-argument suppression. 2024ac_configure_args= 2025ac_configure_args0= 2026ac_configure_args1= 2027ac_must_keep_next=false 2028for ac_pass in 1 2 2029do 2030 for ac_arg 2031 do 2032 case $ac_arg in 2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2035 | -silent | --silent | --silen | --sile | --sil) 2036 continue ;; 2037 *\'*) 2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 esac 2040 case $ac_pass in 2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2042 2) 2043 as_fn_append ac_configure_args1 " '$ac_arg'" 2044 if test $ac_must_keep_next = true; then 2045 ac_must_keep_next=false # Got value, back to normal. 2046 else 2047 case $ac_arg in 2048 *=* | --config-cache | -C | -disable-* | --disable-* \ 2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2051 | -with-* | --with-* | -without-* | --without-* | --x) 2052 case "$ac_configure_args0 " in 2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2054 esac 2055 ;; 2056 -* ) ac_must_keep_next=true ;; 2057 esac 2058 fi 2059 as_fn_append ac_configure_args " '$ac_arg'" 2060 ;; 2061 esac 2062 done 2063done 2064{ ac_configure_args0=; unset ac_configure_args0;} 2065{ ac_configure_args1=; unset ac_configure_args1;} 2066 2067# When interrupted or exit'd, cleanup temporary files, and complete 2068# config.log. We remove comments because anyway the quotes in there 2069# would cause problems or look ugly. 2070# WARNING: Use '\'' to represent an apostrophe within the trap. 2071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2072trap 'exit_status=$? 2073 # Save into config.log some information that might help in debugging. 2074 { 2075 echo 2076 2077 $as_echo "## ---------------- ## 2078## Cache variables. ## 2079## ---------------- ##" 2080 echo 2081 # The following way of writing the cache mishandles newlines in values, 2082( 2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in #( 2086 *${as_nl}*) 2087 case $ac_var in #( 2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2090 esac 2091 case $ac_var in #( 2092 _ | IFS | as_nl) ;; #( 2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2094 *) { eval $ac_var=; unset $ac_var;} ;; 2095 esac ;; 2096 esac 2097 done 2098 (set) 2>&1 | 2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2100 *${as_nl}ac_space=\ *) 2101 sed -n \ 2102 "s/'\''/'\''\\\\'\'''\''/g; 2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2104 ;; #( 2105 *) 2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2107 ;; 2108 esac | 2109 sort 2110) 2111 echo 2112 2113 $as_echo "## ----------------- ## 2114## Output variables. ## 2115## ----------------- ##" 2116 echo 2117 for ac_var in $ac_subst_vars 2118 do 2119 eval ac_val=\$$ac_var 2120 case $ac_val in 2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2122 esac 2123 $as_echo "$ac_var='\''$ac_val'\''" 2124 done | sort 2125 echo 2126 2127 if test -n "$ac_subst_files"; then 2128 $as_echo "## ------------------- ## 2129## File substitutions. ## 2130## ------------------- ##" 2131 echo 2132 for ac_var in $ac_subst_files 2133 do 2134 eval ac_val=\$$ac_var 2135 case $ac_val in 2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2137 esac 2138 $as_echo "$ac_var='\''$ac_val'\''" 2139 done | sort 2140 echo 2141 fi 2142 2143 if test -s confdefs.h; then 2144 $as_echo "## ----------- ## 2145## confdefs.h. ## 2146## ----------- ##" 2147 echo 2148 cat confdefs.h 2149 echo 2150 fi 2151 test "$ac_signal" != 0 && 2152 $as_echo "$as_me: caught signal $ac_signal" 2153 $as_echo "$as_me: exit $exit_status" 2154 } >&5 2155 rm -f core *.core core.conftest.* && 2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2157 exit $exit_status 2158' 0 2159for ac_signal in 1 2 13 15; do 2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2161done 2162ac_signal=0 2163 2164# confdefs.h avoids OS command line length limits that DEFS can exceed. 2165rm -f -r conftest* confdefs.h 2166 2167$as_echo "/* confdefs.h */" > confdefs.h 2168 2169# Predefined preprocessor variables. 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_NAME "$PACKAGE_NAME" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_VERSION "$PACKAGE_VERSION" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_STRING "$PACKAGE_STRING" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_URL "$PACKAGE_URL" 2193_ACEOF 2194 2195 2196# Let the site file select an alternate cache file if it wants to. 2197# Prefer an explicitly selected file to automatically selected ones. 2198ac_site_file1=NONE 2199ac_site_file2=NONE 2200if test -n "$CONFIG_SITE"; then 2201 # We do not want a PATH search for config.site. 2202 case $CONFIG_SITE in #(( 2203 -*) ac_site_file1=./$CONFIG_SITE;; 2204 */*) ac_site_file1=$CONFIG_SITE;; 2205 *) ac_site_file1=./$CONFIG_SITE;; 2206 esac 2207elif test "x$prefix" != xNONE; then 2208 ac_site_file1=$prefix/share/config.site 2209 ac_site_file2=$prefix/etc/config.site 2210else 2211 ac_site_file1=$ac_default_prefix/share/config.site 2212 ac_site_file2=$ac_default_prefix/etc/config.site 2213fi 2214for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2215do 2216 test "x$ac_site_file" = xNONE && continue 2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2219$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2220 sed 's/^/| /' "$ac_site_file" >&5 2221 . "$ac_site_file" \ 2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2224as_fn_error $? "failed to load site script $ac_site_file 2225See \`config.log' for more details" "$LINENO" 5; } 2226 fi 2227done 2228 2229if test -r "$cache_file"; then 2230 # Some versions of bash will fail to source /dev/null (special files 2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2234$as_echo "$as_me: loading cache $cache_file" >&6;} 2235 case $cache_file in 2236 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2237 *) . "./$cache_file";; 2238 esac 2239 fi 2240else 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2242$as_echo "$as_me: creating cache $cache_file" >&6;} 2243 >$cache_file 2244fi 2245 2246# Check that the precious variables saved in the cache have kept the same 2247# value. 2248ac_cache_corrupted=false 2249for ac_var in $ac_precious_vars; do 2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2251 eval ac_new_set=\$ac_env_${ac_var}_set 2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2253 eval ac_new_val=\$ac_env_${ac_var}_value 2254 case $ac_old_set,$ac_new_set in 2255 set,) 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2257$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2258 ac_cache_corrupted=: ;; 2259 ,set) 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2261$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2262 ac_cache_corrupted=: ;; 2263 ,);; 2264 *) 2265 if test "x$ac_old_val" != "x$ac_new_val"; then 2266 # differences in whitespace do not lead to failure. 2267 ac_old_val_w=`echo x $ac_old_val` 2268 ac_new_val_w=`echo x $ac_new_val` 2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2271$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2272 ac_cache_corrupted=: 2273 else 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2275$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2276 eval $ac_var=\$ac_old_val 2277 fi 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2279$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2281$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2282 fi;; 2283 esac 2284 # Pass precious variables to config.status. 2285 if test "$ac_new_set" = set; then 2286 case $ac_new_val in 2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2288 *) ac_arg=$ac_var=$ac_new_val ;; 2289 esac 2290 case " $ac_configure_args " in 2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2293 esac 2294 fi 2295done 2296if $ac_cache_corrupted; then 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2300$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2302fi 2303## -------------------- ## 2304## Main body of script. ## 2305## -------------------- ## 2306 2307ac_ext=c 2308ac_cpp='$CPP $CPPFLAGS' 2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2311ac_compiler_gnu=$ac_cv_c_compiler_gnu 2312 2313 2314 2315# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327ac_aux_dir= 2328for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2329 if test -f "$ac_dir/install-sh"; then 2330 ac_aux_dir=$ac_dir 2331 ac_install_sh="$ac_aux_dir/install-sh -c" 2332 break 2333 elif test -f "$ac_dir/install.sh"; then 2334 ac_aux_dir=$ac_dir 2335 ac_install_sh="$ac_aux_dir/install.sh -c" 2336 break 2337 elif test -f "$ac_dir/shtool"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/shtool install -c" 2340 break 2341 fi 2342done 2343if test -z "$ac_aux_dir"; then 2344 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2345fi 2346 2347# These three variables are undocumented and unsupported, 2348# and are intended to be withdrawn in a future Autoconf release. 2349# They can cause serious problems if a builder's source tree is in a directory 2350# whose full name contains unusual characters. 2351ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2352ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2353ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2354 2355 2356# Find a good install program. We prefer a C program (faster), 2357# so one script is as good as another. But avoid the broken or 2358# incompatible versions: 2359# SysV /etc/install, /usr/sbin/install 2360# SunOS /usr/etc/install 2361# IRIX /sbin/install 2362# AIX /bin/install 2363# AmigaOS /C/install, which installs bootblocks on floppy discs 2364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2365# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2367# OS/2's system install, which has a completely different semantic 2368# ./install, which can be erroneously created by make from ./install.sh. 2369# Reject install programs that cannot install multiple files. 2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2371$as_echo_n "checking for a BSD-compatible install... " >&6; } 2372if test -z "$INSTALL"; then 2373if ${ac_cv_path_install+:} false; then : 2374 $as_echo_n "(cached) " >&6 2375else 2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2377for as_dir in $PATH 2378do 2379 IFS=$as_save_IFS 2380 test -z "$as_dir" && as_dir=. 2381 # Account for people who put trailing slashes in PATH elements. 2382case $as_dir/ in #(( 2383 ./ | .// | /[cC]/* | \ 2384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2386 /usr/ucb/* ) ;; 2387 *) 2388 # OSF1 and SCO ODT 3.0 have their own names for install. 2389 # Don't use installbsd from OSF since it installs stuff as root 2390 # by default. 2391 for ac_prog in ginstall scoinst install; do 2392 for ac_exec_ext in '' $ac_executable_extensions; do 2393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2394 if test $ac_prog = install && 2395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2396 # AIX install. It has an incompatible calling convention. 2397 : 2398 elif test $ac_prog = install && 2399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2400 # program-specific install script used by HP pwplus--don't use. 2401 : 2402 else 2403 rm -rf conftest.one conftest.two conftest.dir 2404 echo one > conftest.one 2405 echo two > conftest.two 2406 mkdir conftest.dir 2407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2408 test -s conftest.one && test -s conftest.two && 2409 test -s conftest.dir/conftest.one && 2410 test -s conftest.dir/conftest.two 2411 then 2412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2413 break 3 2414 fi 2415 fi 2416 fi 2417 done 2418 done 2419 ;; 2420esac 2421 2422 done 2423IFS=$as_save_IFS 2424 2425rm -rf conftest.one conftest.two conftest.dir 2426 2427fi 2428 if test "${ac_cv_path_install+set}" = set; then 2429 INSTALL=$ac_cv_path_install 2430 else 2431 # As a last resort, use the slow shell script. Don't cache a 2432 # value for INSTALL within a source directory, because that will 2433 # break other packages using the cache if that directory is 2434 # removed, or if the value is a relative name. 2435 INSTALL=$ac_install_sh 2436 fi 2437fi 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2439$as_echo "$INSTALL" >&6; } 2440 2441# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2442# It thinks the first close brace ends the variable substitution. 2443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2444 2445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2446 2447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2448 2449ac_ext=c 2450ac_cpp='$CPP $CPPFLAGS' 2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2453ac_compiler_gnu=$ac_cv_c_compiler_gnu 2454if test -n "$ac_tool_prefix"; then 2455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2456set dummy ${ac_tool_prefix}gcc; ac_word=$2 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2458$as_echo_n "checking for $ac_word... " >&6; } 2459if ${ac_cv_prog_CC+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 if test -n "$CC"; then 2463 ac_cv_prog_CC="$CC" # Let the user override the test. 2464else 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2472 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476done 2477 done 2478IFS=$as_save_IFS 2479 2480fi 2481fi 2482CC=$ac_cv_prog_CC 2483if test -n "$CC"; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2485$as_echo "$CC" >&6; } 2486else 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2488$as_echo "no" >&6; } 2489fi 2490 2491 2492fi 2493if test -z "$ac_cv_prog_CC"; then 2494 ac_ct_CC=$CC 2495 # Extract the first word of "gcc", so it can be a program name with args. 2496set dummy gcc; ac_word=$2 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2498$as_echo_n "checking for $ac_word... " >&6; } 2499if ${ac_cv_prog_ac_ct_CC+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501else 2502 if test -n "$ac_ct_CC"; then 2503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2512 ac_cv_prog_ac_ct_CC="gcc" 2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517 done 2518IFS=$as_save_IFS 2519 2520fi 2521fi 2522ac_ct_CC=$ac_cv_prog_ac_ct_CC 2523if test -n "$ac_ct_CC"; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2525$as_echo "$ac_ct_CC" >&6; } 2526else 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2528$as_echo "no" >&6; } 2529fi 2530 2531 if test "x$ac_ct_CC" = x; then 2532 CC="" 2533 else 2534 case $cross_compiling:$ac_tool_warned in 2535yes:) 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2538ac_tool_warned=yes ;; 2539esac 2540 CC=$ac_ct_CC 2541 fi 2542else 2543 CC="$ac_cv_prog_CC" 2544fi 2545 2546if test -z "$CC"; then 2547 if test -n "$ac_tool_prefix"; then 2548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2549set dummy ${ac_tool_prefix}cc; ac_word=$2 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2551$as_echo_n "checking for $ac_word... " >&6; } 2552if ${ac_cv_prog_CC+:} false; then : 2553 $as_echo_n "(cached) " >&6 2554else 2555 if test -n "$CC"; then 2556 ac_cv_prog_CC="$CC" # Let the user override the test. 2557else 2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2559for as_dir in $PATH 2560do 2561 IFS=$as_save_IFS 2562 test -z "$as_dir" && as_dir=. 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2565 ac_cv_prog_CC="${ac_tool_prefix}cc" 2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2567 break 2 2568 fi 2569done 2570 done 2571IFS=$as_save_IFS 2572 2573fi 2574fi 2575CC=$ac_cv_prog_CC 2576if test -n "$CC"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2578$as_echo "$CC" >&6; } 2579else 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2581$as_echo "no" >&6; } 2582fi 2583 2584 2585 fi 2586fi 2587if test -z "$CC"; then 2588 # Extract the first word of "cc", so it can be a program name with args. 2589set dummy cc; ac_word=$2 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2591$as_echo_n "checking for $ac_word... " >&6; } 2592if ${ac_cv_prog_CC+:} false; then : 2593 $as_echo_n "(cached) " >&6 2594else 2595 if test -n "$CC"; then 2596 ac_cv_prog_CC="$CC" # Let the user override the test. 2597else 2598 ac_prog_rejected=no 2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600for as_dir in $PATH 2601do 2602 IFS=$as_save_IFS 2603 test -z "$as_dir" && as_dir=. 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2607 ac_prog_rejected=yes 2608 continue 2609 fi 2610 ac_cv_prog_CC="cc" 2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2612 break 2 2613 fi 2614done 2615 done 2616IFS=$as_save_IFS 2617 2618if test $ac_prog_rejected = yes; then 2619 # We found a bogon in the path, so make sure we never use it. 2620 set dummy $ac_cv_prog_CC 2621 shift 2622 if test $# != 0; then 2623 # We chose a different compiler from the bogus one. 2624 # However, it has the same basename, so the bogon will be chosen 2625 # first if we set CC to just the basename; use the full file name. 2626 shift 2627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2628 fi 2629fi 2630fi 2631fi 2632CC=$ac_cv_prog_CC 2633if test -n "$CC"; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2635$as_echo "$CC" >&6; } 2636else 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2638$as_echo "no" >&6; } 2639fi 2640 2641 2642fi 2643if test -z "$CC"; then 2644 if test -n "$ac_tool_prefix"; then 2645 for ac_prog in cl.exe 2646 do 2647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2648set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2650$as_echo_n "checking for $ac_word... " >&6; } 2651if ${ac_cv_prog_CC+:} false; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 if test -n "$CC"; then 2655 ac_cv_prog_CC="$CC" # Let the user override the test. 2656else 2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2658for as_dir in $PATH 2659do 2660 IFS=$as_save_IFS 2661 test -z "$as_dir" && as_dir=. 2662 for ac_exec_ext in '' $ac_executable_extensions; do 2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2666 break 2 2667 fi 2668done 2669 done 2670IFS=$as_save_IFS 2671 2672fi 2673fi 2674CC=$ac_cv_prog_CC 2675if test -n "$CC"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2677$as_echo "$CC" >&6; } 2678else 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2680$as_echo "no" >&6; } 2681fi 2682 2683 2684 test -n "$CC" && break 2685 done 2686fi 2687if test -z "$CC"; then 2688 ac_ct_CC=$CC 2689 for ac_prog in cl.exe 2690do 2691 # Extract the first word of "$ac_prog", so it can be a program name with args. 2692set dummy $ac_prog; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if ${ac_cv_prog_ac_ct_CC+:} false; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$ac_ct_CC"; then 2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2708 ac_cv_prog_ac_ct_CC="$ac_prog" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718ac_ct_CC=$ac_cv_prog_ac_ct_CC 2719if test -n "$ac_ct_CC"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2721$as_echo "$ac_ct_CC" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728 test -n "$ac_ct_CC" && break 2729done 2730 2731 if test "x$ac_ct_CC" = x; then 2732 CC="" 2733 else 2734 case $cross_compiling:$ac_tool_warned in 2735yes:) 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2738ac_tool_warned=yes ;; 2739esac 2740 CC=$ac_ct_CC 2741 fi 2742fi 2743 2744fi 2745 2746 2747test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2749as_fn_error $? "no acceptable C compiler found in \$PATH 2750See \`config.log' for more details" "$LINENO" 5; } 2751 2752# Provide some information about the compiler. 2753$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2754set X $ac_compile 2755ac_compiler=$2 2756for ac_option in --version -v -V -qversion; do 2757 { { ac_try="$ac_compiler $ac_option >&5" 2758case "(($ac_try" in 2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2760 *) ac_try_echo=$ac_try;; 2761esac 2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2763$as_echo "$ac_try_echo"; } >&5 2764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2765 ac_status=$? 2766 if test -s conftest.err; then 2767 sed '10a\ 2768... rest of stderr output deleted ... 2769 10q' conftest.err >conftest.er1 2770 cat conftest.er1 >&5 2771 fi 2772 rm -f conftest.er1 conftest.err 2773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2774 test $ac_status = 0; } 2775done 2776 2777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2778/* end confdefs.h. */ 2779 2780int 2781main () 2782{ 2783 2784 ; 2785 return 0; 2786} 2787_ACEOF 2788ac_clean_files_save=$ac_clean_files 2789ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2790# Try to create an executable without -o first, disregard a.out. 2791# It will help us diagnose broken compilers, and finding out an intuition 2792# of exeext. 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2794$as_echo_n "checking whether the C compiler works... " >&6; } 2795ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2796 2797# The possible output files: 2798ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2799 2800ac_rmfiles= 2801for ac_file in $ac_files 2802do 2803 case $ac_file in 2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2805 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2806 esac 2807done 2808rm -f $ac_rmfiles 2809 2810if { { ac_try="$ac_link_default" 2811case "(($ac_try" in 2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2813 *) ac_try_echo=$ac_try;; 2814esac 2815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2816$as_echo "$ac_try_echo"; } >&5 2817 (eval "$ac_link_default") 2>&5 2818 ac_status=$? 2819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2820 test $ac_status = 0; }; then : 2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2823# in a Makefile. We should not override ac_cv_exeext if it was cached, 2824# so that the user can short-circuit this test for compilers unknown to 2825# Autoconf. 2826for ac_file in $ac_files '' 2827do 2828 test -f "$ac_file" || continue 2829 case $ac_file in 2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2831 ;; 2832 [ab].out ) 2833 # We found the default executable, but exeext='' is most 2834 # certainly right. 2835 break;; 2836 *.* ) 2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2838 then :; else 2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2840 fi 2841 # We set ac_cv_exeext here because the later test for it is not 2842 # safe: cross compilers may not add the suffix if given an `-o' 2843 # argument, so we may need to know it at that point already. 2844 # Even if this section looks crufty: it has the advantage of 2845 # actually working. 2846 break;; 2847 * ) 2848 break;; 2849 esac 2850done 2851test "$ac_cv_exeext" = no && ac_cv_exeext= 2852 2853else 2854 ac_file='' 2855fi 2856if test -z "$ac_file"; then : 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858$as_echo "no" >&6; } 2859$as_echo "$as_me: failed program was:" >&5 2860sed 's/^/| /' conftest.$ac_ext >&5 2861 2862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2864as_fn_error 77 "C compiler cannot create executables 2865See \`config.log' for more details" "$LINENO" 5; } 2866else 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2868$as_echo "yes" >&6; } 2869fi 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2871$as_echo_n "checking for C compiler default output file name... " >&6; } 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2873$as_echo "$ac_file" >&6; } 2874ac_exeext=$ac_cv_exeext 2875 2876rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2877ac_clean_files=$ac_clean_files_save 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2879$as_echo_n "checking for suffix of executables... " >&6; } 2880if { { ac_try="$ac_link" 2881case "(($ac_try" in 2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2883 *) ac_try_echo=$ac_try;; 2884esac 2885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2886$as_echo "$ac_try_echo"; } >&5 2887 (eval "$ac_link") 2>&5 2888 ac_status=$? 2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2890 test $ac_status = 0; }; then : 2891 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2893# work properly (i.e., refer to `conftest.exe'), while it won't with 2894# `rm'. 2895for ac_file in conftest.exe conftest conftest.*; do 2896 test -f "$ac_file" || continue 2897 case $ac_file in 2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2900 break;; 2901 * ) break;; 2902 esac 2903done 2904else 2905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2907as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2908See \`config.log' for more details" "$LINENO" 5; } 2909fi 2910rm -f conftest conftest$ac_cv_exeext 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2912$as_echo "$ac_cv_exeext" >&6; } 2913 2914rm -f conftest.$ac_ext 2915EXEEXT=$ac_cv_exeext 2916ac_exeext=$EXEEXT 2917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2918/* end confdefs.h. */ 2919#include <stdio.h> 2920int 2921main () 2922{ 2923FILE *f = fopen ("conftest.out", "w"); 2924 return ferror (f) || fclose (f) != 0; 2925 2926 ; 2927 return 0; 2928} 2929_ACEOF 2930ac_clean_files="$ac_clean_files conftest.out" 2931# Check that the compiler produces executables we can run. If not, either 2932# the compiler is broken, or we cross compile. 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2934$as_echo_n "checking whether we are cross compiling... " >&6; } 2935if test "$cross_compiling" != yes; then 2936 { { ac_try="$ac_link" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2942$as_echo "$ac_try_echo"; } >&5 2943 (eval "$ac_link") 2>&5 2944 ac_status=$? 2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2946 test $ac_status = 0; } 2947 if { ac_try='./conftest$ac_cv_exeext' 2948 { { case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2953$as_echo "$ac_try_echo"; } >&5 2954 (eval "$ac_try") 2>&5 2955 ac_status=$? 2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2957 test $ac_status = 0; }; }; then 2958 cross_compiling=no 2959 else 2960 if test "$cross_compiling" = maybe; then 2961 cross_compiling=yes 2962 else 2963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2965as_fn_error $? "cannot run C compiled programs. 2966If you meant to cross compile, use \`--host'. 2967See \`config.log' for more details" "$LINENO" 5; } 2968 fi 2969 fi 2970fi 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2972$as_echo "$cross_compiling" >&6; } 2973 2974rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2975ac_clean_files=$ac_clean_files_save 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2977$as_echo_n "checking for suffix of object files... " >&6; } 2978if ${ac_cv_objext+:} false; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2982/* end confdefs.h. */ 2983 2984int 2985main () 2986{ 2987 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992rm -f conftest.o conftest.obj 2993if { { ac_try="$ac_compile" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2999$as_echo "$ac_try_echo"; } >&5 3000 (eval "$ac_compile") 2>&5 3001 ac_status=$? 3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3003 test $ac_status = 0; }; then : 3004 for ac_file in conftest.o conftest.obj conftest.*; do 3005 test -f "$ac_file" || continue; 3006 case $ac_file in 3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3009 break;; 3010 esac 3011done 3012else 3013 $as_echo "$as_me: failed program was:" >&5 3014sed 's/^/| /' conftest.$ac_ext >&5 3015 3016{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3018as_fn_error $? "cannot compute suffix of object files: cannot compile 3019See \`config.log' for more details" "$LINENO" 5; } 3020fi 3021rm -f conftest.$ac_cv_objext conftest.$ac_ext 3022fi 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3024$as_echo "$ac_cv_objext" >&6; } 3025OBJEXT=$ac_cv_objext 3026ac_objext=$OBJEXT 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3028$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3029if ${ac_cv_c_compiler_gnu+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3033/* end confdefs.h. */ 3034 3035int 3036main () 3037{ 3038#ifndef __GNUC__ 3039 choke me 3040#endif 3041 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046if ac_fn_c_try_compile "$LINENO"; then : 3047 ac_compiler_gnu=yes 3048else 3049 ac_compiler_gnu=no 3050fi 3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3052ac_cv_c_compiler_gnu=$ac_compiler_gnu 3053 3054fi 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3056$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3057if test $ac_compiler_gnu = yes; then 3058 GCC=yes 3059else 3060 GCC= 3061fi 3062ac_test_CFLAGS=${CFLAGS+set} 3063ac_save_CFLAGS=$CFLAGS 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3065$as_echo_n "checking whether $CC accepts -g... " >&6; } 3066if ${ac_cv_prog_cc_g+:} false; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 ac_save_c_werror_flag=$ac_c_werror_flag 3070 ac_c_werror_flag=yes 3071 ac_cv_prog_cc_g=no 3072 CFLAGS="-g" 3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3074/* end confdefs.h. */ 3075 3076int 3077main () 3078{ 3079 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084if ac_fn_c_try_compile "$LINENO"; then : 3085 ac_cv_prog_cc_g=yes 3086else 3087 CFLAGS="" 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090 3091int 3092main () 3093{ 3094 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099if ac_fn_c_try_compile "$LINENO"; then : 3100 3101else 3102 ac_c_werror_flag=$ac_save_c_werror_flag 3103 CFLAGS="-g" 3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3105/* end confdefs.h. */ 3106 3107int 3108main () 3109{ 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115if ac_fn_c_try_compile "$LINENO"; then : 3116 ac_cv_prog_cc_g=yes 3117fi 3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3119fi 3120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3121fi 3122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3123 ac_c_werror_flag=$ac_save_c_werror_flag 3124fi 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3126$as_echo "$ac_cv_prog_cc_g" >&6; } 3127if test "$ac_test_CFLAGS" = set; then 3128 CFLAGS=$ac_save_CFLAGS 3129elif test $ac_cv_prog_cc_g = yes; then 3130 if test "$GCC" = yes; then 3131 CFLAGS="-g -O2" 3132 else 3133 CFLAGS="-g" 3134 fi 3135else 3136 if test "$GCC" = yes; then 3137 CFLAGS="-O2" 3138 else 3139 CFLAGS= 3140 fi 3141fi 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3143$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3144if ${ac_cv_prog_cc_c89+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 ac_cv_prog_cc_c89=no 3148ac_save_CC=$CC 3149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3150/* end confdefs.h. */ 3151#include <stdarg.h> 3152#include <stdio.h> 3153#include <sys/types.h> 3154#include <sys/stat.h> 3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3156struct buf { int x; }; 3157FILE * (*rcsopen) (struct buf *, struct stat *, int); 3158static char *e (p, i) 3159 char **p; 3160 int i; 3161{ 3162 return p[i]; 3163} 3164static char *f (char * (*g) (char **, int), char **p, ...) 3165{ 3166 char *s; 3167 va_list v; 3168 va_start (v,p); 3169 s = g (p, va_arg (v,int)); 3170 va_end (v); 3171 return s; 3172} 3173 3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3175 function prototypes and stuff, but not '\xHH' hex character constants. 3176 These don't provoke an error unfortunately, instead are silently treated 3177 as 'x'. The following induces an error, until -std is added to get 3178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3179 array size at least. It's necessary to write '\x00'==0 to get something 3180 that's true only with -std. */ 3181int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3182 3183/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3184 inside strings and character constants. */ 3185#define FOO(x) 'x' 3186int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3187 3188int test (int i, double x); 3189struct s1 {int (*f) (int a);}; 3190struct s2 {int (*f) (double a);}; 3191int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3192int argc; 3193char **argv; 3194int 3195main () 3196{ 3197return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3198 ; 3199 return 0; 3200} 3201_ACEOF 3202for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3204do 3205 CC="$ac_save_CC $ac_arg" 3206 if ac_fn_c_try_compile "$LINENO"; then : 3207 ac_cv_prog_cc_c89=$ac_arg 3208fi 3209rm -f core conftest.err conftest.$ac_objext 3210 test "x$ac_cv_prog_cc_c89" != "xno" && break 3211done 3212rm -f conftest.$ac_ext 3213CC=$ac_save_CC 3214 3215fi 3216# AC_CACHE_VAL 3217case "x$ac_cv_prog_cc_c89" in 3218 x) 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3220$as_echo "none needed" >&6; } ;; 3221 xno) 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3223$as_echo "unsupported" >&6; } ;; 3224 *) 3225 CC="$CC $ac_cv_prog_cc_c89" 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3227$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3228esac 3229if test "x$ac_cv_prog_cc_c89" != xno; then : 3230 3231fi 3232 3233ac_ext=c 3234ac_cpp='$CPP $CPPFLAGS' 3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3237ac_compiler_gnu=$ac_cv_c_compiler_gnu 3238 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3240$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3241if ${ac_cv_prog_cc_c99+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 ac_cv_prog_cc_c99=no 3245ac_save_CC=$CC 3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3247/* end confdefs.h. */ 3248#include <stdarg.h> 3249#include <stdbool.h> 3250#include <stdlib.h> 3251#include <wchar.h> 3252#include <stdio.h> 3253 3254// Check varargs macros. These examples are taken from C99 6.10.3.5. 3255#define debug(...) fprintf (stderr, __VA_ARGS__) 3256#define showlist(...) puts (#__VA_ARGS__) 3257#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3258static void 3259test_varargs_macros (void) 3260{ 3261 int x = 1234; 3262 int y = 5678; 3263 debug ("Flag"); 3264 debug ("X = %d\n", x); 3265 showlist (The first, second, and third items.); 3266 report (x>y, "x is %d but y is %d", x, y); 3267} 3268 3269// Check long long types. 3270#define BIG64 18446744073709551615ull 3271#define BIG32 4294967295ul 3272#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3273#if !BIG_OK 3274 your preprocessor is broken; 3275#endif 3276#if BIG_OK 3277#else 3278 your preprocessor is broken; 3279#endif 3280static long long int bignum = -9223372036854775807LL; 3281static unsigned long long int ubignum = BIG64; 3282 3283struct incomplete_array 3284{ 3285 int datasize; 3286 double data[]; 3287}; 3288 3289struct named_init { 3290 int number; 3291 const wchar_t *name; 3292 double average; 3293}; 3294 3295typedef const char *ccp; 3296 3297static inline int 3298test_restrict (ccp restrict text) 3299{ 3300 // See if C++-style comments work. 3301 // Iterate through items via the restricted pointer. 3302 // Also check for declarations in for loops. 3303 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3304 continue; 3305 return 0; 3306} 3307 3308// Check varargs and va_copy. 3309static void 3310test_varargs (const char *format, ...) 3311{ 3312 va_list args; 3313 va_start (args, format); 3314 va_list args_copy; 3315 va_copy (args_copy, args); 3316 3317 const char *str; 3318 int number; 3319 float fnumber; 3320 3321 while (*format) 3322 { 3323 switch (*format++) 3324 { 3325 case 's': // string 3326 str = va_arg (args_copy, const char *); 3327 break; 3328 case 'd': // int 3329 number = va_arg (args_copy, int); 3330 break; 3331 case 'f': // float 3332 fnumber = va_arg (args_copy, double); 3333 break; 3334 default: 3335 break; 3336 } 3337 } 3338 va_end (args_copy); 3339 va_end (args); 3340} 3341 3342int 3343main () 3344{ 3345 3346 // Check bool. 3347 _Bool success = false; 3348 3349 // Check restrict. 3350 if (test_restrict ("String literal") == 0) 3351 success = true; 3352 char *restrict newvar = "Another string"; 3353 3354 // Check varargs. 3355 test_varargs ("s, d' f .", "string", 65, 34.234); 3356 test_varargs_macros (); 3357 3358 // Check flexible array members. 3359 struct incomplete_array *ia = 3360 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3361 ia->datasize = 10; 3362 for (int i = 0; i < ia->datasize; ++i) 3363 ia->data[i] = i * 1.234; 3364 3365 // Check named initializers. 3366 struct named_init ni = { 3367 .number = 34, 3368 .name = L"Test wide string", 3369 .average = 543.34343, 3370 }; 3371 3372 ni.number = 58; 3373 3374 int dynamic_array[ni.number]; 3375 dynamic_array[ni.number - 1] = 543; 3376 3377 // work around unused variable warnings 3378 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3379 || dynamic_array[ni.number - 1] != 543); 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3386do 3387 CC="$ac_save_CC $ac_arg" 3388 if ac_fn_c_try_compile "$LINENO"; then : 3389 ac_cv_prog_cc_c99=$ac_arg 3390fi 3391rm -f core conftest.err conftest.$ac_objext 3392 test "x$ac_cv_prog_cc_c99" != "xno" && break 3393done 3394rm -f conftest.$ac_ext 3395CC=$ac_save_CC 3396 3397fi 3398# AC_CACHE_VAL 3399case "x$ac_cv_prog_cc_c99" in 3400 x) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3402$as_echo "none needed" >&6; } ;; 3403 xno) 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3405$as_echo "unsupported" >&6; } ;; 3406 *) 3407 CC="$CC $ac_cv_prog_cc_c99" 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3409$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3410esac 3411if test "x$ac_cv_prog_cc_c99" != xno; then : 3412 3413fi 3414 3415 3416 3417ac_ext=c 3418ac_cpp='$CPP $CPPFLAGS' 3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3421ac_compiler_gnu=$ac_cv_c_compiler_gnu 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3423$as_echo_n "checking how to run the C preprocessor... " >&6; } 3424# On Suns, sometimes $CPP names a directory. 3425if test -n "$CPP" && test -d "$CPP"; then 3426 CPP= 3427fi 3428if test -z "$CPP"; then 3429 if ${ac_cv_prog_CPP+:} false; then : 3430 $as_echo_n "(cached) " >&6 3431else 3432 # Double quotes because CPP needs to be expanded 3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3434 do 3435 ac_preproc_ok=false 3436for ac_c_preproc_warn_flag in '' yes 3437do 3438 # Use a header file that comes with gcc, so configuring glibc 3439 # with a fresh cross-compiler works. 3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3441 # <limits.h> exists even on freestanding compilers. 3442 # On the NeXT, cc -E runs the code through the compiler's parser, 3443 # not just through cpp. "Syntax error" is here to catch this case. 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445/* end confdefs.h. */ 3446#ifdef __STDC__ 3447# include <limits.h> 3448#else 3449# include <assert.h> 3450#endif 3451 Syntax error 3452_ACEOF 3453if ac_fn_c_try_cpp "$LINENO"; then : 3454 3455else 3456 # Broken: fails on valid input. 3457continue 3458fi 3459rm -f conftest.err conftest.i conftest.$ac_ext 3460 3461 # OK, works on sane cases. Now check whether nonexistent headers 3462 # can be detected and how. 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464/* end confdefs.h. */ 3465#include <ac_nonexistent.h> 3466_ACEOF 3467if ac_fn_c_try_cpp "$LINENO"; then : 3468 # Broken: success on invalid input. 3469continue 3470else 3471 # Passes both tests. 3472ac_preproc_ok=: 3473break 3474fi 3475rm -f conftest.err conftest.i conftest.$ac_ext 3476 3477done 3478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3479rm -f conftest.i conftest.err conftest.$ac_ext 3480if $ac_preproc_ok; then : 3481 break 3482fi 3483 3484 done 3485 ac_cv_prog_CPP=$CPP 3486 3487fi 3488 CPP=$ac_cv_prog_CPP 3489else 3490 ac_cv_prog_CPP=$CPP 3491fi 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3493$as_echo "$CPP" >&6; } 3494ac_preproc_ok=false 3495for ac_c_preproc_warn_flag in '' yes 3496do 3497 # Use a header file that comes with gcc, so configuring glibc 3498 # with a fresh cross-compiler works. 3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3500 # <limits.h> exists even on freestanding compilers. 3501 # On the NeXT, cc -E runs the code through the compiler's parser, 3502 # not just through cpp. "Syntax error" is here to catch this case. 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504/* end confdefs.h. */ 3505#ifdef __STDC__ 3506# include <limits.h> 3507#else 3508# include <assert.h> 3509#endif 3510 Syntax error 3511_ACEOF 3512if ac_fn_c_try_cpp "$LINENO"; then : 3513 3514else 3515 # Broken: fails on valid input. 3516continue 3517fi 3518rm -f conftest.err conftest.i conftest.$ac_ext 3519 3520 # OK, works on sane cases. Now check whether nonexistent headers 3521 # can be detected and how. 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524#include <ac_nonexistent.h> 3525_ACEOF 3526if ac_fn_c_try_cpp "$LINENO"; then : 3527 # Broken: success on invalid input. 3528continue 3529else 3530 # Passes both tests. 3531ac_preproc_ok=: 3532break 3533fi 3534rm -f conftest.err conftest.i conftest.$ac_ext 3535 3536done 3537# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3538rm -f conftest.i conftest.err conftest.$ac_ext 3539if $ac_preproc_ok; then : 3540 3541else 3542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3544as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3545See \`config.log' for more details" "$LINENO" 5; } 3546fi 3547 3548ac_ext=c 3549ac_cpp='$CPP $CPPFLAGS' 3550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3552ac_compiler_gnu=$ac_cv_c_compiler_gnu 3553 3554 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3556$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3557if ${ac_cv_path_GREP+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559else 3560 if test -z "$GREP"; then 3561 ac_path_GREP_found=false 3562 # Loop through the user's path and test for each of PROGNAME-LIST 3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3565do 3566 IFS=$as_save_IFS 3567 test -z "$as_dir" && as_dir=. 3568 for ac_prog in grep ggrep; do 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3571 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3572# Check for GNU ac_path_GREP and select it if it is found. 3573 # Check for GNU $ac_path_GREP 3574case `"$ac_path_GREP" --version 2>&1` in 3575*GNU*) 3576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3577*) 3578 ac_count=0 3579 $as_echo_n 0123456789 >"conftest.in" 3580 while : 3581 do 3582 cat "conftest.in" "conftest.in" >"conftest.tmp" 3583 mv "conftest.tmp" "conftest.in" 3584 cp "conftest.in" "conftest.nl" 3585 $as_echo 'GREP' >> "conftest.nl" 3586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3588 as_fn_arith $ac_count + 1 && ac_count=$as_val 3589 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3590 # Best one so far, save it but keep looking for a better one 3591 ac_cv_path_GREP="$ac_path_GREP" 3592 ac_path_GREP_max=$ac_count 3593 fi 3594 # 10*(2^10) chars as input seems more than enough 3595 test $ac_count -gt 10 && break 3596 done 3597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3598esac 3599 3600 $ac_path_GREP_found && break 3 3601 done 3602 done 3603 done 3604IFS=$as_save_IFS 3605 if test -z "$ac_cv_path_GREP"; then 3606 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3607 fi 3608else 3609 ac_cv_path_GREP=$GREP 3610fi 3611 3612fi 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3614$as_echo "$ac_cv_path_GREP" >&6; } 3615 GREP="$ac_cv_path_GREP" 3616 3617 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3619$as_echo_n "checking for egrep... " >&6; } 3620if ${ac_cv_path_EGREP+:} false; then : 3621 $as_echo_n "(cached) " >&6 3622else 3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3624 then ac_cv_path_EGREP="$GREP -E" 3625 else 3626 if test -z "$EGREP"; then 3627 ac_path_EGREP_found=false 3628 # Loop through the user's path and test for each of PROGNAME-LIST 3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3631do 3632 IFS=$as_save_IFS 3633 test -z "$as_dir" && as_dir=. 3634 for ac_prog in egrep; do 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3637 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3638# Check for GNU ac_path_EGREP and select it if it is found. 3639 # Check for GNU $ac_path_EGREP 3640case `"$ac_path_EGREP" --version 2>&1` in 3641*GNU*) 3642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3643*) 3644 ac_count=0 3645 $as_echo_n 0123456789 >"conftest.in" 3646 while : 3647 do 3648 cat "conftest.in" "conftest.in" >"conftest.tmp" 3649 mv "conftest.tmp" "conftest.in" 3650 cp "conftest.in" "conftest.nl" 3651 $as_echo 'EGREP' >> "conftest.nl" 3652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3654 as_fn_arith $ac_count + 1 && ac_count=$as_val 3655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3656 # Best one so far, save it but keep looking for a better one 3657 ac_cv_path_EGREP="$ac_path_EGREP" 3658 ac_path_EGREP_max=$ac_count 3659 fi 3660 # 10*(2^10) chars as input seems more than enough 3661 test $ac_count -gt 10 && break 3662 done 3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3664esac 3665 3666 $ac_path_EGREP_found && break 3 3667 done 3668 done 3669 done 3670IFS=$as_save_IFS 3671 if test -z "$ac_cv_path_EGREP"; then 3672 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3673 fi 3674else 3675 ac_cv_path_EGREP=$EGREP 3676fi 3677 3678 fi 3679fi 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3681$as_echo "$ac_cv_path_EGREP" >&6; } 3682 EGREP="$ac_cv_path_EGREP" 3683 3684 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3686$as_echo_n "checking for ANSI C header files... " >&6; } 3687if ${ac_cv_header_stdc+:} false; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3691/* end confdefs.h. */ 3692#include <stdlib.h> 3693#include <stdarg.h> 3694#include <string.h> 3695#include <float.h> 3696 3697int 3698main () 3699{ 3700 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705if ac_fn_c_try_compile "$LINENO"; then : 3706 ac_cv_header_stdc=yes 3707else 3708 ac_cv_header_stdc=no 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3711 3712if test $ac_cv_header_stdc = yes; then 3713 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715/* end confdefs.h. */ 3716#include <string.h> 3717 3718_ACEOF 3719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3720 $EGREP "memchr" >/dev/null 2>&1; then : 3721 3722else 3723 ac_cv_header_stdc=no 3724fi 3725rm -f conftest* 3726 3727fi 3728 3729if test $ac_cv_header_stdc = yes; then 3730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732/* end confdefs.h. */ 3733#include <stdlib.h> 3734 3735_ACEOF 3736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3737 $EGREP "free" >/dev/null 2>&1; then : 3738 3739else 3740 ac_cv_header_stdc=no 3741fi 3742rm -f conftest* 3743 3744fi 3745 3746if test $ac_cv_header_stdc = yes; then 3747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3748 if test "$cross_compiling" = yes; then : 3749 : 3750else 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752/* end confdefs.h. */ 3753#include <ctype.h> 3754#include <stdlib.h> 3755#if ((' ' & 0x0FF) == 0x020) 3756# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3757# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3758#else 3759# define ISLOWER(c) \ 3760 (('a' <= (c) && (c) <= 'i') \ 3761 || ('j' <= (c) && (c) <= 'r') \ 3762 || ('s' <= (c) && (c) <= 'z')) 3763# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3764#endif 3765 3766#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3767int 3768main () 3769{ 3770 int i; 3771 for (i = 0; i < 256; i++) 3772 if (XOR (islower (i), ISLOWER (i)) 3773 || toupper (i) != TOUPPER (i)) 3774 return 2; 3775 return 0; 3776} 3777_ACEOF 3778if ac_fn_c_try_run "$LINENO"; then : 3779 3780else 3781 ac_cv_header_stdc=no 3782fi 3783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3784 conftest.$ac_objext conftest.beam conftest.$ac_ext 3785fi 3786 3787fi 3788fi 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3790$as_echo "$ac_cv_header_stdc" >&6; } 3791if test $ac_cv_header_stdc = yes; then 3792 3793$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3794 3795fi 3796 3797# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3798for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3799 inttypes.h stdint.h unistd.h 3800do : 3801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3802ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3803" 3804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3805 cat >>confdefs.h <<_ACEOF 3806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3807_ACEOF 3808 3809fi 3810 3811done 3812 3813 3814 3815 3816 3817 3818ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 3819if test "x$ac_cv_have_decl___clang__" = xyes; then : 3820 CLANGCC="yes" 3821else 3822 CLANGCC="no" 3823fi 3824 3825ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3826if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 3827 INTELCC="yes" 3828else 3829 INTELCC="no" 3830fi 3831 3832ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3833if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 3834 SUNCC="yes" 3835else 3836 SUNCC="no" 3837fi 3838 3839 3840 3841 3842 3843 3844 3845 3846if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3847 if test -n "$ac_tool_prefix"; then 3848 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3849set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3851$as_echo_n "checking for $ac_word... " >&6; } 3852if ${ac_cv_path_PKG_CONFIG+:} false; then : 3853 $as_echo_n "(cached) " >&6 3854else 3855 case $PKG_CONFIG in 3856 [\\/]* | ?:[\\/]*) 3857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3858 ;; 3859 *) 3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do 3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872 done 3873IFS=$as_save_IFS 3874 3875 ;; 3876esac 3877fi 3878PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3879if test -n "$PKG_CONFIG"; then 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3881$as_echo "$PKG_CONFIG" >&6; } 3882else 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3884$as_echo "no" >&6; } 3885fi 3886 3887 3888fi 3889if test -z "$ac_cv_path_PKG_CONFIG"; then 3890 ac_pt_PKG_CONFIG=$PKG_CONFIG 3891 # Extract the first word of "pkg-config", so it can be a program name with args. 3892set dummy pkg-config; ac_word=$2 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3894$as_echo_n "checking for $ac_word... " >&6; } 3895if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3896 $as_echo_n "(cached) " >&6 3897else 3898 case $ac_pt_PKG_CONFIG in 3899 [\\/]* | ?:[\\/]*) 3900 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3901 ;; 3902 *) 3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904for as_dir in $PATH 3905do 3906 IFS=$as_save_IFS 3907 test -z "$as_dir" && as_dir=. 3908 for ac_exec_ext in '' $ac_executable_extensions; do 3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3910 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3912 break 2 3913 fi 3914done 3915 done 3916IFS=$as_save_IFS 3917 3918 ;; 3919esac 3920fi 3921ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3922if test -n "$ac_pt_PKG_CONFIG"; then 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3924$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3925else 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3927$as_echo "no" >&6; } 3928fi 3929 3930 if test "x$ac_pt_PKG_CONFIG" = x; then 3931 PKG_CONFIG="" 3932 else 3933 case $cross_compiling:$ac_tool_warned in 3934yes:) 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3937ac_tool_warned=yes ;; 3938esac 3939 PKG_CONFIG=$ac_pt_PKG_CONFIG 3940 fi 3941else 3942 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3943fi 3944 3945fi 3946if test -n "$PKG_CONFIG"; then 3947 _pkg_min_version=0.9.0 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3949$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3950 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3952$as_echo "yes" >&6; } 3953 else 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955$as_echo "no" >&6; } 3956 PKG_CONFIG="" 3957 fi 3958fi 3959# Make sure we can run config.sub. 3960$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3961 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3962 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3964$as_echo_n "checking build system type... " >&6; } 3965if ${ac_cv_build+:} false; then : 3966 $as_echo_n "(cached) " >&6 3967else 3968 ac_build_alias=$build_alias 3969test "x$ac_build_alias" = x && 3970 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3971test "x$ac_build_alias" = x && 3972 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3973ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3974 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3975 3976fi 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3978$as_echo "$ac_cv_build" >&6; } 3979case $ac_cv_build in 3980*-*-*) ;; 3981*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3982esac 3983build=$ac_cv_build 3984ac_save_IFS=$IFS; IFS='-' 3985set x $ac_cv_build 3986shift 3987build_cpu=$1 3988build_vendor=$2 3989shift; shift 3990# Remember, the first character of IFS is used to create $*, 3991# except with old shells: 3992build_os=$* 3993IFS=$ac_save_IFS 3994case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3995 3996 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3998$as_echo_n "checking host system type... " >&6; } 3999if ${ac_cv_host+:} false; then : 4000 $as_echo_n "(cached) " >&6 4001else 4002 if test "x$host_alias" = x; then 4003 ac_cv_host=$ac_cv_build 4004else 4005 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4006 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4007fi 4008 4009fi 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4011$as_echo "$ac_cv_host" >&6; } 4012case $ac_cv_host in 4013*-*-*) ;; 4014*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4015esac 4016host=$ac_cv_host 4017ac_save_IFS=$IFS; IFS='-' 4018set x $ac_cv_host 4019shift 4020host_cpu=$1 4021host_vendor=$2 4022shift; shift 4023# Remember, the first character of IFS is used to create $*, 4024# except with old shells: 4025host_os=$* 4026IFS=$ac_save_IFS 4027case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4028 4029 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4031$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4032if ${ac_cv_path_SED+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4036 for ac_i in 1 2 3 4 5 6 7; do 4037 ac_script="$ac_script$as_nl$ac_script" 4038 done 4039 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4040 { ac_script=; unset ac_script;} 4041 if test -z "$SED"; then 4042 ac_path_SED_found=false 4043 # Loop through the user's path and test for each of PROGNAME-LIST 4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_prog in sed gsed; do 4050 for ac_exec_ext in '' $ac_executable_extensions; do 4051 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4052 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4053# Check for GNU ac_path_SED and select it if it is found. 4054 # Check for GNU $ac_path_SED 4055case `"$ac_path_SED" --version 2>&1` in 4056*GNU*) 4057 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4058*) 4059 ac_count=0 4060 $as_echo_n 0123456789 >"conftest.in" 4061 while : 4062 do 4063 cat "conftest.in" "conftest.in" >"conftest.tmp" 4064 mv "conftest.tmp" "conftest.in" 4065 cp "conftest.in" "conftest.nl" 4066 $as_echo '' >> "conftest.nl" 4067 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4069 as_fn_arith $ac_count + 1 && ac_count=$as_val 4070 if test $ac_count -gt ${ac_path_SED_max-0}; then 4071 # Best one so far, save it but keep looking for a better one 4072 ac_cv_path_SED="$ac_path_SED" 4073 ac_path_SED_max=$ac_count 4074 fi 4075 # 10*(2^10) chars as input seems more than enough 4076 test $ac_count -gt 10 && break 4077 done 4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4079esac 4080 4081 $ac_path_SED_found && break 3 4082 done 4083 done 4084 done 4085IFS=$as_save_IFS 4086 if test -z "$ac_cv_path_SED"; then 4087 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4088 fi 4089else 4090 ac_cv_path_SED=$SED 4091fi 4092 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4095$as_echo "$ac_cv_path_SED" >&6; } 4096 SED="$ac_cv_path_SED" 4097 rm -f conftest.sed 4098 4099 4100 4101 4102 4103 4104# Check whether --enable-selective-werror was given. 4105if test "${enable_selective_werror+set}" = set; then : 4106 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4107else 4108 SELECTIVE_WERROR=yes 4109fi 4110 4111 4112 4113 4114 4115# -v is too short to test reliably with XORG_TESTSET_CFLAG 4116if test "x$SUNCC" = "xyes"; then 4117 BASE_CFLAGS="-v" 4118else 4119 BASE_CFLAGS="" 4120fi 4121 4122# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136xorg_testset_save_CFLAGS="$CFLAGS" 4137 4138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4143 $as_echo_n "(cached) " >&6 4144else 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147int i; 4148_ACEOF 4149if ac_fn_c_try_compile "$LINENO"; then : 4150 xorg_cv_cc_flag_unknown_warning_option=yes 4151else 4152 xorg_cv_cc_flag_unknown_warning_option=no 4153fi 4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4155fi 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4159 CFLAGS="$xorg_testset_save_CFLAGS" 4160fi 4161 4162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4165 fi 4166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174int i; 4175_ACEOF 4176if ac_fn_c_try_compile "$LINENO"; then : 4177 xorg_cv_cc_flag_unused_command_line_argument=yes 4178else 4179 xorg_cv_cc_flag_unused_command_line_argument=no 4180fi 4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4186 CFLAGS="$xorg_testset_save_CFLAGS" 4187fi 4188 4189found="no" 4190 4191 if test $found = "no" ; then 4192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4194 fi 4195 4196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4198 fi 4199 4200 CFLAGS="$CFLAGS -Wall" 4201 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4203$as_echo_n "checking if $CC supports -Wall... " >&6; } 4204 cacheid=xorg_cv_cc_flag__Wall 4205 if eval \${$cacheid+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210int i; 4211int 4212main () 4213{ 4214 4215 ; 4216 return 0; 4217} 4218_ACEOF 4219if ac_fn_c_try_link "$LINENO"; then : 4220 eval $cacheid=yes 4221else 4222 eval $cacheid=no 4223fi 4224rm -f core conftest.err conftest.$ac_objext \ 4225 conftest$ac_exeext conftest.$ac_ext 4226fi 4227 4228 4229 CFLAGS="$xorg_testset_save_CFLAGS" 4230 4231 eval supported=\$$cacheid 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4233$as_echo "$supported" >&6; } 4234 if test "$supported" = "yes" ; then 4235 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4236 found="yes" 4237 fi 4238 fi 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254xorg_testset_save_CFLAGS="$CFLAGS" 4255 4256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265int i; 4266_ACEOF 4267if ac_fn_c_try_compile "$LINENO"; then : 4268 xorg_cv_cc_flag_unknown_warning_option=yes 4269else 4270 xorg_cv_cc_flag_unknown_warning_option=no 4271fi 4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4277 CFLAGS="$xorg_testset_save_CFLAGS" 4278fi 4279 4280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4283 fi 4284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4288 $as_echo_n "(cached) " >&6 4289else 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291/* end confdefs.h. */ 4292int i; 4293_ACEOF 4294if ac_fn_c_try_compile "$LINENO"; then : 4295 xorg_cv_cc_flag_unused_command_line_argument=yes 4296else 4297 xorg_cv_cc_flag_unused_command_line_argument=no 4298fi 4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4300fi 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4304 CFLAGS="$xorg_testset_save_CFLAGS" 4305fi 4306 4307found="no" 4308 4309 if test $found = "no" ; then 4310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4312 fi 4313 4314 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4316 fi 4317 4318 CFLAGS="$CFLAGS -Wpointer-arith" 4319 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4321$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4322 cacheid=xorg_cv_cc_flag__Wpointer_arith 4323 if eval \${$cacheid+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4327/* end confdefs.h. */ 4328int i; 4329int 4330main () 4331{ 4332 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337if ac_fn_c_try_link "$LINENO"; then : 4338 eval $cacheid=yes 4339else 4340 eval $cacheid=no 4341fi 4342rm -f core conftest.err conftest.$ac_objext \ 4343 conftest$ac_exeext conftest.$ac_ext 4344fi 4345 4346 4347 CFLAGS="$xorg_testset_save_CFLAGS" 4348 4349 eval supported=\$$cacheid 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4351$as_echo "$supported" >&6; } 4352 if test "$supported" = "yes" ; then 4353 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4354 found="yes" 4355 fi 4356 fi 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372xorg_testset_save_CFLAGS="$CFLAGS" 4373 4374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4382/* end confdefs.h. */ 4383int i; 4384_ACEOF 4385if ac_fn_c_try_compile "$LINENO"; then : 4386 xorg_cv_cc_flag_unknown_warning_option=yes 4387else 4388 xorg_cv_cc_flag_unknown_warning_option=no 4389fi 4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4391fi 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4395 CFLAGS="$xorg_testset_save_CFLAGS" 4396fi 4397 4398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4401 fi 4402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409/* end confdefs.h. */ 4410int i; 4411_ACEOF 4412if ac_fn_c_try_compile "$LINENO"; then : 4413 xorg_cv_cc_flag_unused_command_line_argument=yes 4414else 4415 xorg_cv_cc_flag_unused_command_line_argument=no 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418fi 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4422 CFLAGS="$xorg_testset_save_CFLAGS" 4423fi 4424 4425found="no" 4426 4427 if test $found = "no" ; then 4428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4430 fi 4431 4432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4434 fi 4435 4436 CFLAGS="$CFLAGS -Wmissing-declarations" 4437 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4439$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4440 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4441 if eval \${$cacheid+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446int i; 4447int 4448main () 4449{ 4450 4451 ; 4452 return 0; 4453} 4454_ACEOF 4455if ac_fn_c_try_link "$LINENO"; then : 4456 eval $cacheid=yes 4457else 4458 eval $cacheid=no 4459fi 4460rm -f core conftest.err conftest.$ac_objext \ 4461 conftest$ac_exeext conftest.$ac_ext 4462fi 4463 4464 4465 CFLAGS="$xorg_testset_save_CFLAGS" 4466 4467 eval supported=\$$cacheid 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4469$as_echo "$supported" >&6; } 4470 if test "$supported" = "yes" ; then 4471 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4472 found="yes" 4473 fi 4474 fi 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490xorg_testset_save_CFLAGS="$CFLAGS" 4491 4492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4497 $as_echo_n "(cached) " >&6 4498else 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501int i; 4502_ACEOF 4503if ac_fn_c_try_compile "$LINENO"; then : 4504 xorg_cv_cc_flag_unknown_warning_option=yes 4505else 4506 xorg_cv_cc_flag_unknown_warning_option=no 4507fi 4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4513 CFLAGS="$xorg_testset_save_CFLAGS" 4514fi 4515 4516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4519 fi 4520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528int i; 4529_ACEOF 4530if ac_fn_c_try_compile "$LINENO"; then : 4531 xorg_cv_cc_flag_unused_command_line_argument=yes 4532else 4533 xorg_cv_cc_flag_unused_command_line_argument=no 4534fi 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4540 CFLAGS="$xorg_testset_save_CFLAGS" 4541fi 4542 4543found="no" 4544 4545 if test $found = "no" ; then 4546 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4548 fi 4549 4550 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4552 fi 4553 4554 CFLAGS="$CFLAGS -Wformat=2" 4555 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4557$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4558 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4559 if eval \${$cacheid+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4563/* end confdefs.h. */ 4564int i; 4565int 4566main () 4567{ 4568 4569 ; 4570 return 0; 4571} 4572_ACEOF 4573if ac_fn_c_try_link "$LINENO"; then : 4574 eval $cacheid=yes 4575else 4576 eval $cacheid=no 4577fi 4578rm -f core conftest.err conftest.$ac_objext \ 4579 conftest$ac_exeext conftest.$ac_ext 4580fi 4581 4582 4583 CFLAGS="$xorg_testset_save_CFLAGS" 4584 4585 eval supported=\$$cacheid 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4587$as_echo "$supported" >&6; } 4588 if test "$supported" = "yes" ; then 4589 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4590 found="yes" 4591 fi 4592 fi 4593 4594 if test $found = "no" ; then 4595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4597 fi 4598 4599 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4601 fi 4602 4603 CFLAGS="$CFLAGS -Wformat" 4604 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4606$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4607 cacheid=xorg_cv_cc_flag__Wformat 4608 if eval \${$cacheid+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613int i; 4614int 4615main () 4616{ 4617 4618 ; 4619 return 0; 4620} 4621_ACEOF 4622if ac_fn_c_try_link "$LINENO"; then : 4623 eval $cacheid=yes 4624else 4625 eval $cacheid=no 4626fi 4627rm -f core conftest.err conftest.$ac_objext \ 4628 conftest$ac_exeext conftest.$ac_ext 4629fi 4630 4631 4632 CFLAGS="$xorg_testset_save_CFLAGS" 4633 4634 eval supported=\$$cacheid 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4636$as_echo "$supported" >&6; } 4637 if test "$supported" = "yes" ; then 4638 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4639 found="yes" 4640 fi 4641 fi 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659xorg_testset_save_CFLAGS="$CFLAGS" 4660 4661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4669/* end confdefs.h. */ 4670int i; 4671_ACEOF 4672if ac_fn_c_try_compile "$LINENO"; then : 4673 xorg_cv_cc_flag_unknown_warning_option=yes 4674else 4675 xorg_cv_cc_flag_unknown_warning_option=no 4676fi 4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4678fi 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4682 CFLAGS="$xorg_testset_save_CFLAGS" 4683fi 4684 4685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4688 fi 4689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697int i; 4698_ACEOF 4699if ac_fn_c_try_compile "$LINENO"; then : 4700 xorg_cv_cc_flag_unused_command_line_argument=yes 4701else 4702 xorg_cv_cc_flag_unused_command_line_argument=no 4703fi 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4709 CFLAGS="$xorg_testset_save_CFLAGS" 4710fi 4711 4712found="no" 4713 4714 if test $found = "no" ; then 4715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4717 fi 4718 4719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4721 fi 4722 4723 CFLAGS="$CFLAGS -Wstrict-prototypes" 4724 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4726$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4727 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4728 if eval \${$cacheid+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733int i; 4734int 4735main () 4736{ 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_link "$LINENO"; then : 4743 eval $cacheid=yes 4744else 4745 eval $cacheid=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext \ 4748 conftest$ac_exeext conftest.$ac_ext 4749fi 4750 4751 4752 CFLAGS="$xorg_testset_save_CFLAGS" 4753 4754 eval supported=\$$cacheid 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4756$as_echo "$supported" >&6; } 4757 if test "$supported" = "yes" ; then 4758 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4759 found="yes" 4760 fi 4761 fi 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777xorg_testset_save_CFLAGS="$CFLAGS" 4778 4779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4784 $as_echo_n "(cached) " >&6 4785else 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788int i; 4789_ACEOF 4790if ac_fn_c_try_compile "$LINENO"; then : 4791 xorg_cv_cc_flag_unknown_warning_option=yes 4792else 4793 xorg_cv_cc_flag_unknown_warning_option=no 4794fi 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4800 CFLAGS="$xorg_testset_save_CFLAGS" 4801fi 4802 4803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4806 fi 4807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815int i; 4816_ACEOF 4817if ac_fn_c_try_compile "$LINENO"; then : 4818 xorg_cv_cc_flag_unused_command_line_argument=yes 4819else 4820 xorg_cv_cc_flag_unused_command_line_argument=no 4821fi 4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4827 CFLAGS="$xorg_testset_save_CFLAGS" 4828fi 4829 4830found="no" 4831 4832 if test $found = "no" ; then 4833 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4835 fi 4836 4837 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4839 fi 4840 4841 CFLAGS="$CFLAGS -Wmissing-prototypes" 4842 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4844$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4845 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 4846 if eval \${$cacheid+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850/* end confdefs.h. */ 4851int i; 4852int 4853main () 4854{ 4855 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860if ac_fn_c_try_link "$LINENO"; then : 4861 eval $cacheid=yes 4862else 4863 eval $cacheid=no 4864fi 4865rm -f core conftest.err conftest.$ac_objext \ 4866 conftest$ac_exeext conftest.$ac_ext 4867fi 4868 4869 4870 CFLAGS="$xorg_testset_save_CFLAGS" 4871 4872 eval supported=\$$cacheid 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4874$as_echo "$supported" >&6; } 4875 if test "$supported" = "yes" ; then 4876 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4877 found="yes" 4878 fi 4879 fi 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895xorg_testset_save_CFLAGS="$CFLAGS" 4896 4897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905/* end confdefs.h. */ 4906int i; 4907_ACEOF 4908if ac_fn_c_try_compile "$LINENO"; then : 4909 xorg_cv_cc_flag_unknown_warning_option=yes 4910else 4911 xorg_cv_cc_flag_unknown_warning_option=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4914fi 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4918 CFLAGS="$xorg_testset_save_CFLAGS" 4919fi 4920 4921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4924 fi 4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933int i; 4934_ACEOF 4935if ac_fn_c_try_compile "$LINENO"; then : 4936 xorg_cv_cc_flag_unused_command_line_argument=yes 4937else 4938 xorg_cv_cc_flag_unused_command_line_argument=no 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4945 CFLAGS="$xorg_testset_save_CFLAGS" 4946fi 4947 4948found="no" 4949 4950 if test $found = "no" ; then 4951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4953 fi 4954 4955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4957 fi 4958 4959 CFLAGS="$CFLAGS -Wnested-externs" 4960 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 4962$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 4963 cacheid=xorg_cv_cc_flag__Wnested_externs 4964 if eval \${$cacheid+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968/* end confdefs.h. */ 4969int i; 4970int 4971main () 4972{ 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978if ac_fn_c_try_link "$LINENO"; then : 4979 eval $cacheid=yes 4980else 4981 eval $cacheid=no 4982fi 4983rm -f core conftest.err conftest.$ac_objext \ 4984 conftest$ac_exeext conftest.$ac_ext 4985fi 4986 4987 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4989 4990 eval supported=\$$cacheid 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4992$as_echo "$supported" >&6; } 4993 if test "$supported" = "yes" ; then 4994 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 4995 found="yes" 4996 fi 4997 fi 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013xorg_testset_save_CFLAGS="$CFLAGS" 5014 5015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024int i; 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO"; then : 5027 xorg_cv_cc_flag_unknown_warning_option=yes 5028else 5029 xorg_cv_cc_flag_unknown_warning_option=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5032fi 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037fi 5038 5039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5042 fi 5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051int i; 5052_ACEOF 5053if ac_fn_c_try_compile "$LINENO"; then : 5054 xorg_cv_cc_flag_unused_command_line_argument=yes 5055else 5056 xorg_cv_cc_flag_unused_command_line_argument=no 5057fi 5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059fi 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5063 CFLAGS="$xorg_testset_save_CFLAGS" 5064fi 5065 5066found="no" 5067 5068 if test $found = "no" ; then 5069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5071 fi 5072 5073 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5075 fi 5076 5077 CFLAGS="$CFLAGS -Wbad-function-cast" 5078 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5080$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5081 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5082 if eval \${$cacheid+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086/* end confdefs.h. */ 5087int i; 5088int 5089main () 5090{ 5091 5092 ; 5093 return 0; 5094} 5095_ACEOF 5096if ac_fn_c_try_link "$LINENO"; then : 5097 eval $cacheid=yes 5098else 5099 eval $cacheid=no 5100fi 5101rm -f core conftest.err conftest.$ac_objext \ 5102 conftest$ac_exeext conftest.$ac_ext 5103fi 5104 5105 5106 CFLAGS="$xorg_testset_save_CFLAGS" 5107 5108 eval supported=\$$cacheid 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5110$as_echo "$supported" >&6; } 5111 if test "$supported" = "yes" ; then 5112 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5113 found="yes" 5114 fi 5115 fi 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131xorg_testset_save_CFLAGS="$CFLAGS" 5132 5133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142int i; 5143_ACEOF 5144if ac_fn_c_try_compile "$LINENO"; then : 5145 xorg_cv_cc_flag_unknown_warning_option=yes 5146else 5147 xorg_cv_cc_flag_unknown_warning_option=no 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155fi 5156 5157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 fi 5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5168/* end confdefs.h. */ 5169int i; 5170_ACEOF 5171if ac_fn_c_try_compile "$LINENO"; then : 5172 xorg_cv_cc_flag_unused_command_line_argument=yes 5173else 5174 xorg_cv_cc_flag_unused_command_line_argument=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5181 CFLAGS="$xorg_testset_save_CFLAGS" 5182fi 5183 5184found="no" 5185 5186 if test $found = "no" ; then 5187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 5191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5193 fi 5194 5195 CFLAGS="$CFLAGS -Wold-style-definition" 5196 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5198$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5199 cacheid=xorg_cv_cc_flag__Wold_style_definition 5200 if eval \${$cacheid+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205int i; 5206int 5207main () 5208{ 5209 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214if ac_fn_c_try_link "$LINENO"; then : 5215 eval $cacheid=yes 5216else 5217 eval $cacheid=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext \ 5220 conftest$ac_exeext conftest.$ac_ext 5221fi 5222 5223 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225 5226 eval supported=\$$cacheid 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5228$as_echo "$supported" >&6; } 5229 if test "$supported" = "yes" ; then 5230 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5231 found="yes" 5232 fi 5233 fi 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249xorg_testset_save_CFLAGS="$CFLAGS" 5250 5251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257else 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259/* end confdefs.h. */ 5260int i; 5261_ACEOF 5262if ac_fn_c_try_compile "$LINENO"; then : 5263 xorg_cv_cc_flag_unknown_warning_option=yes 5264else 5265 xorg_cv_cc_flag_unknown_warning_option=no 5266fi 5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5268fi 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5272 CFLAGS="$xorg_testset_save_CFLAGS" 5273fi 5274 5275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 fi 5279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287int i; 5288_ACEOF 5289if ac_fn_c_try_compile "$LINENO"; then : 5290 xorg_cv_cc_flag_unused_command_line_argument=yes 5291else 5292 xorg_cv_cc_flag_unused_command_line_argument=no 5293fi 5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5295fi 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5299 CFLAGS="$xorg_testset_save_CFLAGS" 5300fi 5301 5302found="no" 5303 5304 if test $found = "no" ; then 5305 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5307 fi 5308 5309 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5311 fi 5312 5313 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5314 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5316$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5317 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5318 if eval \${$cacheid+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323int i; 5324int 5325main () 5326{ 5327 5328 ; 5329 return 0; 5330} 5331_ACEOF 5332if ac_fn_c_try_link "$LINENO"; then : 5333 eval $cacheid=yes 5334else 5335 eval $cacheid=no 5336fi 5337rm -f core conftest.err conftest.$ac_objext \ 5338 conftest$ac_exeext conftest.$ac_ext 5339fi 5340 5341 5342 CFLAGS="$xorg_testset_save_CFLAGS" 5343 5344 eval supported=\$$cacheid 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5346$as_echo "$supported" >&6; } 5347 if test "$supported" = "yes" ; then 5348 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5349 found="yes" 5350 fi 5351 fi 5352 5353 5354 5355 5356 5357# This chunk adds additional warnings that could catch undesired effects. 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371xorg_testset_save_CFLAGS="$CFLAGS" 5372 5373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379else 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381/* end confdefs.h. */ 5382int i; 5383_ACEOF 5384if ac_fn_c_try_compile "$LINENO"; then : 5385 xorg_cv_cc_flag_unknown_warning_option=yes 5386else 5387 xorg_cv_cc_flag_unknown_warning_option=no 5388fi 5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5390fi 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5394 CFLAGS="$xorg_testset_save_CFLAGS" 5395fi 5396 5397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5400 fi 5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409int i; 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO"; then : 5412 xorg_cv_cc_flag_unused_command_line_argument=yes 5413else 5414 xorg_cv_cc_flag_unused_command_line_argument=no 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417fi 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5421 CFLAGS="$xorg_testset_save_CFLAGS" 5422fi 5423 5424found="no" 5425 5426 if test $found = "no" ; then 5427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 fi 5430 5431 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433 fi 5434 5435 CFLAGS="$CFLAGS -Wunused" 5436 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5438$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5439 cacheid=xorg_cv_cc_flag__Wunused 5440 if eval \${$cacheid+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442else 5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5444/* end confdefs.h. */ 5445int i; 5446int 5447main () 5448{ 5449 5450 ; 5451 return 0; 5452} 5453_ACEOF 5454if ac_fn_c_try_link "$LINENO"; then : 5455 eval $cacheid=yes 5456else 5457 eval $cacheid=no 5458fi 5459rm -f core conftest.err conftest.$ac_objext \ 5460 conftest$ac_exeext conftest.$ac_ext 5461fi 5462 5463 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465 5466 eval supported=\$$cacheid 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5468$as_echo "$supported" >&6; } 5469 if test "$supported" = "yes" ; then 5470 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5471 found="yes" 5472 fi 5473 fi 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489xorg_testset_save_CFLAGS="$CFLAGS" 5490 5491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499/* end confdefs.h. */ 5500int i; 5501_ACEOF 5502if ac_fn_c_try_compile "$LINENO"; then : 5503 xorg_cv_cc_flag_unknown_warning_option=yes 5504else 5505 xorg_cv_cc_flag_unknown_warning_option=no 5506fi 5507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5508fi 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5512 CFLAGS="$xorg_testset_save_CFLAGS" 5513fi 5514 5515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5518 fi 5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524else 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526/* end confdefs.h. */ 5527int i; 5528_ACEOF 5529if ac_fn_c_try_compile "$LINENO"; then : 5530 xorg_cv_cc_flag_unused_command_line_argument=yes 5531else 5532 xorg_cv_cc_flag_unused_command_line_argument=no 5533fi 5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5535fi 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5539 CFLAGS="$xorg_testset_save_CFLAGS" 5540fi 5541 5542found="no" 5543 5544 if test $found = "no" ; then 5545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547 fi 5548 5549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551 fi 5552 5553 CFLAGS="$CFLAGS -Wuninitialized" 5554 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5556$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5557 cacheid=xorg_cv_cc_flag__Wuninitialized 5558 if eval \${$cacheid+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562/* end confdefs.h. */ 5563int i; 5564int 5565main () 5566{ 5567 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572if ac_fn_c_try_link "$LINENO"; then : 5573 eval $cacheid=yes 5574else 5575 eval $cacheid=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext \ 5578 conftest$ac_exeext conftest.$ac_ext 5579fi 5580 5581 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583 5584 eval supported=\$$cacheid 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5586$as_echo "$supported" >&6; } 5587 if test "$supported" = "yes" ; then 5588 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5589 found="yes" 5590 fi 5591 fi 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607xorg_testset_save_CFLAGS="$CFLAGS" 5608 5609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617/* end confdefs.h. */ 5618int i; 5619_ACEOF 5620if ac_fn_c_try_compile "$LINENO"; then : 5621 xorg_cv_cc_flag_unknown_warning_option=yes 5622else 5623 xorg_cv_cc_flag_unknown_warning_option=no 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5626fi 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5630 CFLAGS="$xorg_testset_save_CFLAGS" 5631fi 5632 5633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5636 fi 5637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642else 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644/* end confdefs.h. */ 5645int i; 5646_ACEOF 5647if ac_fn_c_try_compile "$LINENO"; then : 5648 xorg_cv_cc_flag_unused_command_line_argument=yes 5649else 5650 xorg_cv_cc_flag_unused_command_line_argument=no 5651fi 5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5653fi 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5657 CFLAGS="$xorg_testset_save_CFLAGS" 5658fi 5659 5660found="no" 5661 5662 if test $found = "no" ; then 5663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5665 fi 5666 5667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 fi 5670 5671 CFLAGS="$CFLAGS -Wshadow" 5672 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5674$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5675 cacheid=xorg_cv_cc_flag__Wshadow 5676 if eval \${$cacheid+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681int i; 5682int 5683main () 5684{ 5685 5686 ; 5687 return 0; 5688} 5689_ACEOF 5690if ac_fn_c_try_link "$LINENO"; then : 5691 eval $cacheid=yes 5692else 5693 eval $cacheid=no 5694fi 5695rm -f core conftest.err conftest.$ac_objext \ 5696 conftest$ac_exeext conftest.$ac_ext 5697fi 5698 5699 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701 5702 eval supported=\$$cacheid 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5704$as_echo "$supported" >&6; } 5705 if test "$supported" = "yes" ; then 5706 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5707 found="yes" 5708 fi 5709 fi 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725xorg_testset_save_CFLAGS="$CFLAGS" 5726 5727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736int i; 5737_ACEOF 5738if ac_fn_c_try_compile "$LINENO"; then : 5739 xorg_cv_cc_flag_unknown_warning_option=yes 5740else 5741 xorg_cv_cc_flag_unknown_warning_option=no 5742fi 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5744fi 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749fi 5750 5751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763int i; 5764_ACEOF 5765if ac_fn_c_try_compile "$LINENO"; then : 5766 xorg_cv_cc_flag_unused_command_line_argument=yes 5767else 5768 xorg_cv_cc_flag_unused_command_line_argument=no 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5775 CFLAGS="$xorg_testset_save_CFLAGS" 5776fi 5777 5778found="no" 5779 5780 if test $found = "no" ; then 5781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783 fi 5784 5785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787 fi 5788 5789 CFLAGS="$CFLAGS -Wcast-qual" 5790 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 5792$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 5793 cacheid=xorg_cv_cc_flag__Wcast_qual 5794 if eval \${$cacheid+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799int i; 5800int 5801main () 5802{ 5803 5804 ; 5805 return 0; 5806} 5807_ACEOF 5808if ac_fn_c_try_link "$LINENO"; then : 5809 eval $cacheid=yes 5810else 5811 eval $cacheid=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext \ 5814 conftest$ac_exeext conftest.$ac_ext 5815fi 5816 5817 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 5820 eval supported=\$$cacheid 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5822$as_echo "$supported" >&6; } 5823 if test "$supported" = "yes" ; then 5824 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 5825 found="yes" 5826 fi 5827 fi 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843xorg_testset_save_CFLAGS="$CFLAGS" 5844 5845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853/* end confdefs.h. */ 5854int i; 5855_ACEOF 5856if ac_fn_c_try_compile "$LINENO"; then : 5857 xorg_cv_cc_flag_unknown_warning_option=yes 5858else 5859 xorg_cv_cc_flag_unknown_warning_option=no 5860fi 5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5862fi 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5866 CFLAGS="$xorg_testset_save_CFLAGS" 5867fi 5868 5869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881int i; 5882_ACEOF 5883if ac_fn_c_try_compile "$LINENO"; then : 5884 xorg_cv_cc_flag_unused_command_line_argument=yes 5885else 5886 xorg_cv_cc_flag_unused_command_line_argument=no 5887fi 5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5889fi 5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5893 CFLAGS="$xorg_testset_save_CFLAGS" 5894fi 5895 5896found="no" 5897 5898 if test $found = "no" ; then 5899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5901 fi 5902 5903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5905 fi 5906 5907 CFLAGS="$CFLAGS -Wmissing-noreturn" 5908 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 5910$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 5911 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 5912 if eval \${$cacheid+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914else 5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5916/* end confdefs.h. */ 5917int i; 5918int 5919main () 5920{ 5921 5922 ; 5923 return 0; 5924} 5925_ACEOF 5926if ac_fn_c_try_link "$LINENO"; then : 5927 eval $cacheid=yes 5928else 5929 eval $cacheid=no 5930fi 5931rm -f core conftest.err conftest.$ac_objext \ 5932 conftest$ac_exeext conftest.$ac_ext 5933fi 5934 5935 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937 5938 eval supported=\$$cacheid 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5940$as_echo "$supported" >&6; } 5941 if test "$supported" = "yes" ; then 5942 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 5943 found="yes" 5944 fi 5945 fi 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961xorg_testset_save_CFLAGS="$CFLAGS" 5962 5963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972int i; 5973_ACEOF 5974if ac_fn_c_try_compile "$LINENO"; then : 5975 xorg_cv_cc_flag_unknown_warning_option=yes 5976else 5977 xorg_cv_cc_flag_unknown_warning_option=no 5978fi 5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5984 CFLAGS="$xorg_testset_save_CFLAGS" 5985fi 5986 5987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 fi 5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5995 $as_echo_n "(cached) " >&6 5996else 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000_ACEOF 6001if ac_fn_c_try_compile "$LINENO"; then : 6002 xorg_cv_cc_flag_unused_command_line_argument=yes 6003else 6004 xorg_cv_cc_flag_unused_command_line_argument=no 6005fi 6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6007fi 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6011 CFLAGS="$xorg_testset_save_CFLAGS" 6012fi 6013 6014found="no" 6015 6016 if test $found = "no" ; then 6017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 fi 6020 6021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6023 fi 6024 6025 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6026 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6028$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6029 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6030 if eval \${$cacheid+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6034/* end confdefs.h. */ 6035int i; 6036int 6037main () 6038{ 6039 6040 ; 6041 return 0; 6042} 6043_ACEOF 6044if ac_fn_c_try_link "$LINENO"; then : 6045 eval $cacheid=yes 6046else 6047 eval $cacheid=no 6048fi 6049rm -f core conftest.err conftest.$ac_objext \ 6050 conftest$ac_exeext conftest.$ac_ext 6051fi 6052 6053 6054 CFLAGS="$xorg_testset_save_CFLAGS" 6055 6056 eval supported=\$$cacheid 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6058$as_echo "$supported" >&6; } 6059 if test "$supported" = "yes" ; then 6060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6061 found="yes" 6062 fi 6063 fi 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079xorg_testset_save_CFLAGS="$CFLAGS" 6080 6081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090int i; 6091_ACEOF 6092if ac_fn_c_try_compile "$LINENO"; then : 6093 xorg_cv_cc_flag_unknown_warning_option=yes 6094else 6095 xorg_cv_cc_flag_unknown_warning_option=no 6096fi 6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6098fi 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6102 CFLAGS="$xorg_testset_save_CFLAGS" 6103fi 6104 6105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6108 fi 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117int i; 6118_ACEOF 6119if ac_fn_c_try_compile "$LINENO"; then : 6120 xorg_cv_cc_flag_unused_command_line_argument=yes 6121else 6122 xorg_cv_cc_flag_unused_command_line_argument=no 6123fi 6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6125fi 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130fi 6131 6132found="no" 6133 6134 if test $found = "no" ; then 6135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 fi 6138 6139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6141 fi 6142 6143 CFLAGS="$CFLAGS -Wredundant-decls" 6144 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6146$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6147 cacheid=xorg_cv_cc_flag__Wredundant_decls 6148 if eval \${$cacheid+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153int i; 6154int 6155main () 6156{ 6157 6158 ; 6159 return 0; 6160} 6161_ACEOF 6162if ac_fn_c_try_link "$LINENO"; then : 6163 eval $cacheid=yes 6164else 6165 eval $cacheid=no 6166fi 6167rm -f core conftest.err conftest.$ac_objext \ 6168 conftest$ac_exeext conftest.$ac_ext 6169fi 6170 6171 6172 CFLAGS="$xorg_testset_save_CFLAGS" 6173 6174 eval supported=\$$cacheid 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6176$as_echo "$supported" >&6; } 6177 if test "$supported" = "yes" ; then 6178 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6179 found="yes" 6180 fi 6181 fi 6182 6183 6184 6185# These are currently disabled because they are noisy. They will be enabled 6186# in the future once the codebase is sufficiently modernized to silence 6187# them. For now, I don't want them to drown out the other warnings. 6188# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6189# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6190# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6191 6192# Turn some warnings into errors, so we don't accidently get successful builds 6193# when there are problems that should be fixed. 6194 6195if test "x$SELECTIVE_WERROR" = "xyes" ; then 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209xorg_testset_save_CFLAGS="$CFLAGS" 6210 6211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219/* end confdefs.h. */ 6220int i; 6221_ACEOF 6222if ac_fn_c_try_compile "$LINENO"; then : 6223 xorg_cv_cc_flag_unknown_warning_option=yes 6224else 6225 xorg_cv_cc_flag_unknown_warning_option=no 6226fi 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228fi 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6232 CFLAGS="$xorg_testset_save_CFLAGS" 6233fi 6234 6235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238 fi 6239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248_ACEOF 6249if ac_fn_c_try_compile "$LINENO"; then : 6250 xorg_cv_cc_flag_unused_command_line_argument=yes 6251else 6252 xorg_cv_cc_flag_unused_command_line_argument=no 6253fi 6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260fi 6261 6262found="no" 6263 6264 if test $found = "no" ; then 6265 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6267 fi 6268 6269 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6271 fi 6272 6273 CFLAGS="$CFLAGS -Werror=implicit" 6274 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6276$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6277 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6278 if eval \${$cacheid+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283int i; 6284int 6285main () 6286{ 6287 6288 ; 6289 return 0; 6290} 6291_ACEOF 6292if ac_fn_c_try_link "$LINENO"; then : 6293 eval $cacheid=yes 6294else 6295 eval $cacheid=no 6296fi 6297rm -f core conftest.err conftest.$ac_objext \ 6298 conftest$ac_exeext conftest.$ac_ext 6299fi 6300 6301 6302 CFLAGS="$xorg_testset_save_CFLAGS" 6303 6304 eval supported=\$$cacheid 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6306$as_echo "$supported" >&6; } 6307 if test "$supported" = "yes" ; then 6308 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6309 found="yes" 6310 fi 6311 fi 6312 6313 if test $found = "no" ; then 6314 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 fi 6317 6318 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6320 fi 6321 6322 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6323 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6325$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6326 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6327 if eval \${$cacheid+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333int 6334main () 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO"; then : 6342 eval $cacheid=yes 6343else 6344 eval $cacheid=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext \ 6347 conftest$ac_exeext conftest.$ac_ext 6348fi 6349 6350 6351 CFLAGS="$xorg_testset_save_CFLAGS" 6352 6353 eval supported=\$$cacheid 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6355$as_echo "$supported" >&6; } 6356 if test "$supported" = "yes" ; then 6357 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6358 found="yes" 6359 fi 6360 fi 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376xorg_testset_save_CFLAGS="$CFLAGS" 6377 6378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387int i; 6388_ACEOF 6389if ac_fn_c_try_compile "$LINENO"; then : 6390 xorg_cv_cc_flag_unknown_warning_option=yes 6391else 6392 xorg_cv_cc_flag_unknown_warning_option=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400fi 6401 6402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405 fi 6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414int i; 6415_ACEOF 6416if ac_fn_c_try_compile "$LINENO"; then : 6417 xorg_cv_cc_flag_unused_command_line_argument=yes 6418else 6419 xorg_cv_cc_flag_unused_command_line_argument=no 6420fi 6421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6422fi 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427fi 6428 6429found="no" 6430 6431 if test $found = "no" ; then 6432 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 fi 6435 6436 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6438 fi 6439 6440 CFLAGS="$CFLAGS -Werror=nonnull" 6441 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6443$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6444 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6445 if eval \${$cacheid+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450int i; 6451int 6452main () 6453{ 6454 6455 ; 6456 return 0; 6457} 6458_ACEOF 6459if ac_fn_c_try_link "$LINENO"; then : 6460 eval $cacheid=yes 6461else 6462 eval $cacheid=no 6463fi 6464rm -f core conftest.err conftest.$ac_objext \ 6465 conftest$ac_exeext conftest.$ac_ext 6466fi 6467 6468 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470 6471 eval supported=\$$cacheid 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6473$as_echo "$supported" >&6; } 6474 if test "$supported" = "yes" ; then 6475 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6476 found="yes" 6477 fi 6478 fi 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494xorg_testset_save_CFLAGS="$CFLAGS" 6495 6496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505int i; 6506_ACEOF 6507if ac_fn_c_try_compile "$LINENO"; then : 6508 xorg_cv_cc_flag_unknown_warning_option=yes 6509else 6510 xorg_cv_cc_flag_unknown_warning_option=no 6511fi 6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6513fi 6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6517 CFLAGS="$xorg_testset_save_CFLAGS" 6518fi 6519 6520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6531/* end confdefs.h. */ 6532int i; 6533_ACEOF 6534if ac_fn_c_try_compile "$LINENO"; then : 6535 xorg_cv_cc_flag_unused_command_line_argument=yes 6536else 6537 xorg_cv_cc_flag_unused_command_line_argument=no 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6540fi 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6544 CFLAGS="$xorg_testset_save_CFLAGS" 6545fi 6546 6547found="no" 6548 6549 if test $found = "no" ; then 6550 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 fi 6553 6554 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6556 fi 6557 6558 CFLAGS="$CFLAGS -Werror=init-self" 6559 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6561$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6562 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6563 if eval \${$cacheid+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568int i; 6569int 6570main () 6571{ 6572 6573 ; 6574 return 0; 6575} 6576_ACEOF 6577if ac_fn_c_try_link "$LINENO"; then : 6578 eval $cacheid=yes 6579else 6580 eval $cacheid=no 6581fi 6582rm -f core conftest.err conftest.$ac_objext \ 6583 conftest$ac_exeext conftest.$ac_ext 6584fi 6585 6586 6587 CFLAGS="$xorg_testset_save_CFLAGS" 6588 6589 eval supported=\$$cacheid 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6591$as_echo "$supported" >&6; } 6592 if test "$supported" = "yes" ; then 6593 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6594 found="yes" 6595 fi 6596 fi 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612xorg_testset_save_CFLAGS="$CFLAGS" 6613 6614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623int i; 6624_ACEOF 6625if ac_fn_c_try_compile "$LINENO"; then : 6626 xorg_cv_cc_flag_unknown_warning_option=yes 6627else 6628 xorg_cv_cc_flag_unknown_warning_option=no 6629fi 6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6631fi 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6635 CFLAGS="$xorg_testset_save_CFLAGS" 6636fi 6637 6638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6641 fi 6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6649/* end confdefs.h. */ 6650int i; 6651_ACEOF 6652if ac_fn_c_try_compile "$LINENO"; then : 6653 xorg_cv_cc_flag_unused_command_line_argument=yes 6654else 6655 xorg_cv_cc_flag_unused_command_line_argument=no 6656fi 6657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6658fi 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6662 CFLAGS="$xorg_testset_save_CFLAGS" 6663fi 6664 6665found="no" 6666 6667 if test $found = "no" ; then 6668 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 fi 6671 6672 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6674 fi 6675 6676 CFLAGS="$CFLAGS -Werror=main" 6677 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6679$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6680 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 6681 if eval \${$cacheid+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687int 6688main () 6689{ 6690 6691 ; 6692 return 0; 6693} 6694_ACEOF 6695if ac_fn_c_try_link "$LINENO"; then : 6696 eval $cacheid=yes 6697else 6698 eval $cacheid=no 6699fi 6700rm -f core conftest.err conftest.$ac_objext \ 6701 conftest$ac_exeext conftest.$ac_ext 6702fi 6703 6704 6705 CFLAGS="$xorg_testset_save_CFLAGS" 6706 6707 eval supported=\$$cacheid 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6709$as_echo "$supported" >&6; } 6710 if test "$supported" = "yes" ; then 6711 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6712 found="yes" 6713 fi 6714 fi 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730xorg_testset_save_CFLAGS="$CFLAGS" 6731 6732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6740/* end confdefs.h. */ 6741int i; 6742_ACEOF 6743if ac_fn_c_try_compile "$LINENO"; then : 6744 xorg_cv_cc_flag_unknown_warning_option=yes 6745else 6746 xorg_cv_cc_flag_unknown_warning_option=no 6747fi 6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6749fi 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6753 CFLAGS="$xorg_testset_save_CFLAGS" 6754fi 6755 6756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6759 fi 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769_ACEOF 6770if ac_fn_c_try_compile "$LINENO"; then : 6771 xorg_cv_cc_flag_unused_command_line_argument=yes 6772else 6773 xorg_cv_cc_flag_unused_command_line_argument=no 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6776fi 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781fi 6782 6783found="no" 6784 6785 if test $found = "no" ; then 6786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 6790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6792 fi 6793 6794 CFLAGS="$CFLAGS -Werror=missing-braces" 6795 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6797$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6798 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 6799 if eval \${$cacheid+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805int 6806main () 6807{ 6808 6809 ; 6810 return 0; 6811} 6812_ACEOF 6813if ac_fn_c_try_link "$LINENO"; then : 6814 eval $cacheid=yes 6815else 6816 eval $cacheid=no 6817fi 6818rm -f core conftest.err conftest.$ac_objext \ 6819 conftest$ac_exeext conftest.$ac_ext 6820fi 6821 6822 6823 CFLAGS="$xorg_testset_save_CFLAGS" 6824 6825 eval supported=\$$cacheid 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6827$as_echo "$supported" >&6; } 6828 if test "$supported" = "yes" ; then 6829 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6830 found="yes" 6831 fi 6832 fi 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848xorg_testset_save_CFLAGS="$CFLAGS" 6849 6850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859int i; 6860_ACEOF 6861if ac_fn_c_try_compile "$LINENO"; then : 6862 xorg_cv_cc_flag_unknown_warning_option=yes 6863else 6864 xorg_cv_cc_flag_unknown_warning_option=no 6865fi 6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6867fi 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6871 CFLAGS="$xorg_testset_save_CFLAGS" 6872fi 6873 6874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 fi 6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885/* end confdefs.h. */ 6886int i; 6887_ACEOF 6888if ac_fn_c_try_compile "$LINENO"; then : 6889 xorg_cv_cc_flag_unused_command_line_argument=yes 6890else 6891 xorg_cv_cc_flag_unused_command_line_argument=no 6892fi 6893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6894fi 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899fi 6900 6901found="no" 6902 6903 if test $found = "no" ; then 6904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 fi 6907 6908 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910 fi 6911 6912 CFLAGS="$CFLAGS -Werror=sequence-point" 6913 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 6915$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 6916 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 6917 if eval \${$cacheid+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922int i; 6923int 6924main () 6925{ 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_link "$LINENO"; then : 6932 eval $cacheid=yes 6933else 6934 eval $cacheid=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext \ 6937 conftest$ac_exeext conftest.$ac_ext 6938fi 6939 6940 6941 CFLAGS="$xorg_testset_save_CFLAGS" 6942 6943 eval supported=\$$cacheid 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6945$as_echo "$supported" >&6; } 6946 if test "$supported" = "yes" ; then 6947 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 6948 found="yes" 6949 fi 6950 fi 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966xorg_testset_save_CFLAGS="$CFLAGS" 6967 6968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977int i; 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO"; then : 6980 xorg_cv_cc_flag_unknown_warning_option=yes 6981else 6982 xorg_cv_cc_flag_unknown_warning_option=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985fi 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990fi 6991 6992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6995 fi 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001else 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004int i; 7005_ACEOF 7006if ac_fn_c_try_compile "$LINENO"; then : 7007 xorg_cv_cc_flag_unused_command_line_argument=yes 7008else 7009 xorg_cv_cc_flag_unused_command_line_argument=no 7010fi 7011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7012fi 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7016 CFLAGS="$xorg_testset_save_CFLAGS" 7017fi 7018 7019found="no" 7020 7021 if test $found = "no" ; then 7022 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7024 fi 7025 7026 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7028 fi 7029 7030 CFLAGS="$CFLAGS -Werror=return-type" 7031 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7033$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7034 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7035 if eval \${$cacheid+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040int i; 7041int 7042main () 7043{ 7044 7045 ; 7046 return 0; 7047} 7048_ACEOF 7049if ac_fn_c_try_link "$LINENO"; then : 7050 eval $cacheid=yes 7051else 7052 eval $cacheid=no 7053fi 7054rm -f core conftest.err conftest.$ac_objext \ 7055 conftest$ac_exeext conftest.$ac_ext 7056fi 7057 7058 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060 7061 eval supported=\$$cacheid 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7063$as_echo "$supported" >&6; } 7064 if test "$supported" = "yes" ; then 7065 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7066 found="yes" 7067 fi 7068 fi 7069 7070 if test $found = "no" ; then 7071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7073 fi 7074 7075 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7077 fi 7078 7079 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7080 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7082$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7083 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7084 if eval \${$cacheid+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090int 7091main () 7092{ 7093 7094 ; 7095 return 0; 7096} 7097_ACEOF 7098if ac_fn_c_try_link "$LINENO"; then : 7099 eval $cacheid=yes 7100else 7101 eval $cacheid=no 7102fi 7103rm -f core conftest.err conftest.$ac_objext \ 7104 conftest$ac_exeext conftest.$ac_ext 7105fi 7106 7107 7108 CFLAGS="$xorg_testset_save_CFLAGS" 7109 7110 eval supported=\$$cacheid 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7112$as_echo "$supported" >&6; } 7113 if test "$supported" = "yes" ; then 7114 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7115 found="yes" 7116 fi 7117 fi 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133xorg_testset_save_CFLAGS="$CFLAGS" 7134 7135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7143/* end confdefs.h. */ 7144int i; 7145_ACEOF 7146if ac_fn_c_try_compile "$LINENO"; then : 7147 xorg_cv_cc_flag_unknown_warning_option=yes 7148else 7149 xorg_cv_cc_flag_unknown_warning_option=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7152fi 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157fi 7158 7159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7162 fi 7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7170/* end confdefs.h. */ 7171int i; 7172_ACEOF 7173if ac_fn_c_try_compile "$LINENO"; then : 7174 xorg_cv_cc_flag_unused_command_line_argument=yes 7175else 7176 xorg_cv_cc_flag_unused_command_line_argument=no 7177fi 7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7179fi 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7183 CFLAGS="$xorg_testset_save_CFLAGS" 7184fi 7185 7186found="no" 7187 7188 if test $found = "no" ; then 7189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 fi 7192 7193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 fi 7196 7197 CFLAGS="$CFLAGS -Werror=trigraphs" 7198 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7200$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7201 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7202 if eval \${$cacheid+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208int 7209main () 7210{ 7211 7212 ; 7213 return 0; 7214} 7215_ACEOF 7216if ac_fn_c_try_link "$LINENO"; then : 7217 eval $cacheid=yes 7218else 7219 eval $cacheid=no 7220fi 7221rm -f core conftest.err conftest.$ac_objext \ 7222 conftest$ac_exeext conftest.$ac_ext 7223fi 7224 7225 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227 7228 eval supported=\$$cacheid 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7230$as_echo "$supported" >&6; } 7231 if test "$supported" = "yes" ; then 7232 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7233 found="yes" 7234 fi 7235 fi 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251xorg_testset_save_CFLAGS="$CFLAGS" 7252 7253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262int i; 7263_ACEOF 7264if ac_fn_c_try_compile "$LINENO"; then : 7265 xorg_cv_cc_flag_unknown_warning_option=yes 7266else 7267 xorg_cv_cc_flag_unknown_warning_option=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7270fi 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275fi 7276 7277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7280 fi 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289int i; 7290_ACEOF 7291if ac_fn_c_try_compile "$LINENO"; then : 7292 xorg_cv_cc_flag_unused_command_line_argument=yes 7293else 7294 xorg_cv_cc_flag_unused_command_line_argument=no 7295fi 7296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7297fi 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7301 CFLAGS="$xorg_testset_save_CFLAGS" 7302fi 7303 7304found="no" 7305 7306 if test $found = "no" ; then 7307 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 fi 7310 7311 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7313 fi 7314 7315 CFLAGS="$CFLAGS -Werror=array-bounds" 7316 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7318$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7319 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7320 if eval \${$cacheid+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325int i; 7326int 7327main () 7328{ 7329 7330 ; 7331 return 0; 7332} 7333_ACEOF 7334if ac_fn_c_try_link "$LINENO"; then : 7335 eval $cacheid=yes 7336else 7337 eval $cacheid=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext \ 7340 conftest$ac_exeext conftest.$ac_ext 7341fi 7342 7343 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345 7346 eval supported=\$$cacheid 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7348$as_echo "$supported" >&6; } 7349 if test "$supported" = "yes" ; then 7350 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7351 found="yes" 7352 fi 7353 fi 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369xorg_testset_save_CFLAGS="$CFLAGS" 7370 7371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381_ACEOF 7382if ac_fn_c_try_compile "$LINENO"; then : 7383 xorg_cv_cc_flag_unknown_warning_option=yes 7384else 7385 xorg_cv_cc_flag_unknown_warning_option=no 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7392 CFLAGS="$xorg_testset_save_CFLAGS" 7393fi 7394 7395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7398 fi 7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7403 $as_echo_n "(cached) " >&6 7404else 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407int i; 7408_ACEOF 7409if ac_fn_c_try_compile "$LINENO"; then : 7410 xorg_cv_cc_flag_unused_command_line_argument=yes 7411else 7412 xorg_cv_cc_flag_unused_command_line_argument=no 7413fi 7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7419 CFLAGS="$xorg_testset_save_CFLAGS" 7420fi 7421 7422found="no" 7423 7424 if test $found = "no" ; then 7425 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 fi 7428 7429 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7431 fi 7432 7433 CFLAGS="$CFLAGS -Werror=write-strings" 7434 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7436$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7437 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7438 if eval \${$cacheid+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443int i; 7444int 7445main () 7446{ 7447 7448 ; 7449 return 0; 7450} 7451_ACEOF 7452if ac_fn_c_try_link "$LINENO"; then : 7453 eval $cacheid=yes 7454else 7455 eval $cacheid=no 7456fi 7457rm -f core conftest.err conftest.$ac_objext \ 7458 conftest$ac_exeext conftest.$ac_ext 7459fi 7460 7461 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463 7464 eval supported=\$$cacheid 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7466$as_echo "$supported" >&6; } 7467 if test "$supported" = "yes" ; then 7468 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7469 found="yes" 7470 fi 7471 fi 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487xorg_testset_save_CFLAGS="$CFLAGS" 7488 7489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498int i; 7499_ACEOF 7500if ac_fn_c_try_compile "$LINENO"; then : 7501 xorg_cv_cc_flag_unknown_warning_option=yes 7502else 7503 xorg_cv_cc_flag_unknown_warning_option=no 7504fi 7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7506fi 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7510 CFLAGS="$xorg_testset_save_CFLAGS" 7511fi 7512 7513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7516 fi 7517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7521 $as_echo_n "(cached) " >&6 7522else 7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7524/* end confdefs.h. */ 7525int i; 7526_ACEOF 7527if ac_fn_c_try_compile "$LINENO"; then : 7528 xorg_cv_cc_flag_unused_command_line_argument=yes 7529else 7530 xorg_cv_cc_flag_unused_command_line_argument=no 7531fi 7532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7533fi 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7537 CFLAGS="$xorg_testset_save_CFLAGS" 7538fi 7539 7540found="no" 7541 7542 if test $found = "no" ; then 7543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7545 fi 7546 7547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7549 fi 7550 7551 CFLAGS="$CFLAGS -Werror=address" 7552 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7554$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7555 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7556 if eval \${$cacheid+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7560/* end confdefs.h. */ 7561int i; 7562int 7563main () 7564{ 7565 7566 ; 7567 return 0; 7568} 7569_ACEOF 7570if ac_fn_c_try_link "$LINENO"; then : 7571 eval $cacheid=yes 7572else 7573 eval $cacheid=no 7574fi 7575rm -f core conftest.err conftest.$ac_objext \ 7576 conftest$ac_exeext conftest.$ac_ext 7577fi 7578 7579 7580 CFLAGS="$xorg_testset_save_CFLAGS" 7581 7582 eval supported=\$$cacheid 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7584$as_echo "$supported" >&6; } 7585 if test "$supported" = "yes" ; then 7586 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7587 found="yes" 7588 fi 7589 fi 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605xorg_testset_save_CFLAGS="$CFLAGS" 7606 7607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616int i; 7617_ACEOF 7618if ac_fn_c_try_compile "$LINENO"; then : 7619 xorg_cv_cc_flag_unknown_warning_option=yes 7620else 7621 xorg_cv_cc_flag_unknown_warning_option=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7624fi 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629fi 7630 7631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634 fi 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7639 $as_echo_n "(cached) " >&6 7640else 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643int i; 7644_ACEOF 7645if ac_fn_c_try_compile "$LINENO"; then : 7646 xorg_cv_cc_flag_unused_command_line_argument=yes 7647else 7648 xorg_cv_cc_flag_unused_command_line_argument=no 7649fi 7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7651fi 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656fi 7657 7658found="no" 7659 7660 if test $found = "no" ; then 7661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7663 fi 7664 7665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 fi 7668 7669 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7670 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7672$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7673 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 7674 if eval \${$cacheid+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679int i; 7680int 7681main () 7682{ 7683 7684 ; 7685 return 0; 7686} 7687_ACEOF 7688if ac_fn_c_try_link "$LINENO"; then : 7689 eval $cacheid=yes 7690else 7691 eval $cacheid=no 7692fi 7693rm -f core conftest.err conftest.$ac_objext \ 7694 conftest$ac_exeext conftest.$ac_ext 7695fi 7696 7697 7698 CFLAGS="$xorg_testset_save_CFLAGS" 7699 7700 eval supported=\$$cacheid 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7702$as_echo "$supported" >&6; } 7703 if test "$supported" = "yes" ; then 7704 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7705 found="yes" 7706 fi 7707 fi 7708 7709 if test $found = "no" ; then 7710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7712 fi 7713 7714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7716 fi 7717 7718 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7719 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7721$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7722 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 7723 if eval \${$cacheid+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729int 7730main () 7731{ 7732 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737if ac_fn_c_try_link "$LINENO"; then : 7738 eval $cacheid=yes 7739else 7740 eval $cacheid=no 7741fi 7742rm -f core conftest.err conftest.$ac_objext \ 7743 conftest$ac_exeext conftest.$ac_ext 7744fi 7745 7746 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748 7749 eval supported=\$$cacheid 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7751$as_echo "$supported" >&6; } 7752 if test "$supported" = "yes" ; then 7753 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7754 found="yes" 7755 fi 7756 fi 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772xorg_testset_save_CFLAGS="$CFLAGS" 7773 7774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784_ACEOF 7785if ac_fn_c_try_compile "$LINENO"; then : 7786 xorg_cv_cc_flag_unknown_warning_option=yes 7787else 7788 xorg_cv_cc_flag_unknown_warning_option=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796fi 7797 7798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 fi 7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810int i; 7811_ACEOF 7812if ac_fn_c_try_compile "$LINENO"; then : 7813 xorg_cv_cc_flag_unused_command_line_argument=yes 7814else 7815 xorg_cv_cc_flag_unused_command_line_argument=no 7816fi 7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7818fi 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7822 CFLAGS="$xorg_testset_save_CFLAGS" 7823fi 7824 7825found="no" 7826 7827 if test $found = "no" ; then 7828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7830 fi 7831 7832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7834 fi 7835 7836 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7837 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7839$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7840 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 7841 if eval \${$cacheid+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847int 7848main () 7849{ 7850 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855if ac_fn_c_try_link "$LINENO"; then : 7856 eval $cacheid=yes 7857else 7858 eval $cacheid=no 7859fi 7860rm -f core conftest.err conftest.$ac_objext \ 7861 conftest$ac_exeext conftest.$ac_ext 7862fi 7863 7864 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866 7867 eval supported=\$$cacheid 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7869$as_echo "$supported" >&6; } 7870 if test "$supported" = "yes" ; then 7871 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 7872 found="yes" 7873 fi 7874 fi 7875 7876 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 7877else 7878{ $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 7879$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;} 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893xorg_testset_save_CFLAGS="$CFLAGS" 7894 7895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7903/* end confdefs.h. */ 7904int i; 7905_ACEOF 7906if ac_fn_c_try_compile "$LINENO"; then : 7907 xorg_cv_cc_flag_unknown_warning_option=yes 7908else 7909 xorg_cv_cc_flag_unknown_warning_option=no 7910fi 7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7912fi 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7916 CFLAGS="$xorg_testset_save_CFLAGS" 7917fi 7918 7919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7922 fi 7923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7927 $as_echo_n "(cached) " >&6 7928else 7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7930/* end confdefs.h. */ 7931int i; 7932_ACEOF 7933if ac_fn_c_try_compile "$LINENO"; then : 7934 xorg_cv_cc_flag_unused_command_line_argument=yes 7935else 7936 xorg_cv_cc_flag_unused_command_line_argument=no 7937fi 7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7939fi 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7943 CFLAGS="$xorg_testset_save_CFLAGS" 7944fi 7945 7946found="no" 7947 7948 if test $found = "no" ; then 7949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7951 fi 7952 7953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7955 fi 7956 7957 CFLAGS="$CFLAGS -Wimplicit" 7958 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 7960$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 7961 cacheid=xorg_cv_cc_flag__Wimplicit 7962 if eval \${$cacheid+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7966/* end confdefs.h. */ 7967int i; 7968int 7969main () 7970{ 7971 7972 ; 7973 return 0; 7974} 7975_ACEOF 7976if ac_fn_c_try_link "$LINENO"; then : 7977 eval $cacheid=yes 7978else 7979 eval $cacheid=no 7980fi 7981rm -f core conftest.err conftest.$ac_objext \ 7982 conftest$ac_exeext conftest.$ac_ext 7983fi 7984 7985 7986 CFLAGS="$xorg_testset_save_CFLAGS" 7987 7988 eval supported=\$$cacheid 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7990$as_echo "$supported" >&6; } 7991 if test "$supported" = "yes" ; then 7992 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 7993 found="yes" 7994 fi 7995 fi 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011xorg_testset_save_CFLAGS="$CFLAGS" 8012 8013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8021/* end confdefs.h. */ 8022int i; 8023_ACEOF 8024if ac_fn_c_try_compile "$LINENO"; then : 8025 xorg_cv_cc_flag_unknown_warning_option=yes 8026else 8027 xorg_cv_cc_flag_unknown_warning_option=no 8028fi 8029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8030fi 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035fi 8036 8037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8040 fi 8041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046else 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049int i; 8050_ACEOF 8051if ac_fn_c_try_compile "$LINENO"; then : 8052 xorg_cv_cc_flag_unused_command_line_argument=yes 8053else 8054 xorg_cv_cc_flag_unused_command_line_argument=no 8055fi 8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8057fi 8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8061 CFLAGS="$xorg_testset_save_CFLAGS" 8062fi 8063 8064found="no" 8065 8066 if test $found = "no" ; then 8067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8069 fi 8070 8071 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8073 fi 8074 8075 CFLAGS="$CFLAGS -Wnonnull" 8076 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8078$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8079 cacheid=xorg_cv_cc_flag__Wnonnull 8080 if eval \${$cacheid+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086int 8087main () 8088{ 8089 8090 ; 8091 return 0; 8092} 8093_ACEOF 8094if ac_fn_c_try_link "$LINENO"; then : 8095 eval $cacheid=yes 8096else 8097 eval $cacheid=no 8098fi 8099rm -f core conftest.err conftest.$ac_objext \ 8100 conftest$ac_exeext conftest.$ac_ext 8101fi 8102 8103 8104 CFLAGS="$xorg_testset_save_CFLAGS" 8105 8106 eval supported=\$$cacheid 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8108$as_echo "$supported" >&6; } 8109 if test "$supported" = "yes" ; then 8110 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8111 found="yes" 8112 fi 8113 fi 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129xorg_testset_save_CFLAGS="$CFLAGS" 8130 8131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8136 $as_echo_n "(cached) " >&6 8137else 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139/* end confdefs.h. */ 8140int i; 8141_ACEOF 8142if ac_fn_c_try_compile "$LINENO"; then : 8143 xorg_cv_cc_flag_unknown_warning_option=yes 8144else 8145 xorg_cv_cc_flag_unknown_warning_option=no 8146fi 8147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8148fi 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8152 CFLAGS="$xorg_testset_save_CFLAGS" 8153fi 8154 8155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8158 fi 8159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164else 8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166/* end confdefs.h. */ 8167int i; 8168_ACEOF 8169if ac_fn_c_try_compile "$LINENO"; then : 8170 xorg_cv_cc_flag_unused_command_line_argument=yes 8171else 8172 xorg_cv_cc_flag_unused_command_line_argument=no 8173fi 8174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8175fi 8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8179 CFLAGS="$xorg_testset_save_CFLAGS" 8180fi 8181 8182found="no" 8183 8184 if test $found = "no" ; then 8185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8187 fi 8188 8189 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 fi 8192 8193 CFLAGS="$CFLAGS -Winit-self" 8194 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8196$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8197 cacheid=xorg_cv_cc_flag__Winit_self 8198 if eval \${$cacheid+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204int 8205main () 8206{ 8207 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_link "$LINENO"; then : 8213 eval $cacheid=yes 8214else 8215 eval $cacheid=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext \ 8218 conftest$ac_exeext conftest.$ac_ext 8219fi 8220 8221 8222 CFLAGS="$xorg_testset_save_CFLAGS" 8223 8224 eval supported=\$$cacheid 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8226$as_echo "$supported" >&6; } 8227 if test "$supported" = "yes" ; then 8228 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8229 found="yes" 8230 fi 8231 fi 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247xorg_testset_save_CFLAGS="$CFLAGS" 8248 8249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255else 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258int i; 8259_ACEOF 8260if ac_fn_c_try_compile "$LINENO"; then : 8261 xorg_cv_cc_flag_unknown_warning_option=yes 8262else 8263 xorg_cv_cc_flag_unknown_warning_option=no 8264fi 8265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8266fi 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8270 CFLAGS="$xorg_testset_save_CFLAGS" 8271fi 8272 8273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 fi 8277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285int i; 8286_ACEOF 8287if ac_fn_c_try_compile "$LINENO"; then : 8288 xorg_cv_cc_flag_unused_command_line_argument=yes 8289else 8290 xorg_cv_cc_flag_unused_command_line_argument=no 8291fi 8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8293fi 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298fi 8299 8300found="no" 8301 8302 if test $found = "no" ; then 8303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 8307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8309 fi 8310 8311 CFLAGS="$CFLAGS -Wmain" 8312 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8314$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8315 cacheid=xorg_cv_cc_flag__Wmain 8316 if eval \${$cacheid+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8320/* end confdefs.h. */ 8321int i; 8322int 8323main () 8324{ 8325 8326 ; 8327 return 0; 8328} 8329_ACEOF 8330if ac_fn_c_try_link "$LINENO"; then : 8331 eval $cacheid=yes 8332else 8333 eval $cacheid=no 8334fi 8335rm -f core conftest.err conftest.$ac_objext \ 8336 conftest$ac_exeext conftest.$ac_ext 8337fi 8338 8339 8340 CFLAGS="$xorg_testset_save_CFLAGS" 8341 8342 eval supported=\$$cacheid 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8344$as_echo "$supported" >&6; } 8345 if test "$supported" = "yes" ; then 8346 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8347 found="yes" 8348 fi 8349 fi 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365xorg_testset_save_CFLAGS="$CFLAGS" 8366 8367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376int i; 8377_ACEOF 8378if ac_fn_c_try_compile "$LINENO"; then : 8379 xorg_cv_cc_flag_unknown_warning_option=yes 8380else 8381 xorg_cv_cc_flag_unknown_warning_option=no 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8384fi 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8388 CFLAGS="$xorg_testset_save_CFLAGS" 8389fi 8390 8391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8402/* end confdefs.h. */ 8403int i; 8404_ACEOF 8405if ac_fn_c_try_compile "$LINENO"; then : 8406 xorg_cv_cc_flag_unused_command_line_argument=yes 8407else 8408 xorg_cv_cc_flag_unused_command_line_argument=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8411fi 8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416fi 8417 8418found="no" 8419 8420 if test $found = "no" ; then 8421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8423 fi 8424 8425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8427 fi 8428 8429 CFLAGS="$CFLAGS -Wmissing-braces" 8430 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8432$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8433 cacheid=xorg_cv_cc_flag__Wmissing_braces 8434 if eval \${$cacheid+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440int 8441main () 8442{ 8443 8444 ; 8445 return 0; 8446} 8447_ACEOF 8448if ac_fn_c_try_link "$LINENO"; then : 8449 eval $cacheid=yes 8450else 8451 eval $cacheid=no 8452fi 8453rm -f core conftest.err conftest.$ac_objext \ 8454 conftest$ac_exeext conftest.$ac_ext 8455fi 8456 8457 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459 8460 eval supported=\$$cacheid 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8462$as_echo "$supported" >&6; } 8463 if test "$supported" = "yes" ; then 8464 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8465 found="yes" 8466 fi 8467 fi 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483xorg_testset_save_CFLAGS="$CFLAGS" 8484 8485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO"; then : 8497 xorg_cv_cc_flag_unknown_warning_option=yes 8498else 8499 xorg_cv_cc_flag_unknown_warning_option=no 8500fi 8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8506 CFLAGS="$xorg_testset_save_CFLAGS" 8507fi 8508 8509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8512 fi 8513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO"; then : 8524 xorg_cv_cc_flag_unused_command_line_argument=yes 8525else 8526 xorg_cv_cc_flag_unused_command_line_argument=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534fi 8535 8536found="no" 8537 8538 if test $found = "no" ; then 8539 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8541 fi 8542 8543 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8545 fi 8546 8547 CFLAGS="$CFLAGS -Wsequence-point" 8548 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8550$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8551 cacheid=xorg_cv_cc_flag__Wsequence_point 8552 if eval \${$cacheid+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557int i; 8558int 8559main () 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566if ac_fn_c_try_link "$LINENO"; then : 8567 eval $cacheid=yes 8568else 8569 eval $cacheid=no 8570fi 8571rm -f core conftest.err conftest.$ac_objext \ 8572 conftest$ac_exeext conftest.$ac_ext 8573fi 8574 8575 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577 8578 eval supported=\$$cacheid 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8580$as_echo "$supported" >&6; } 8581 if test "$supported" = "yes" ; then 8582 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8583 found="yes" 8584 fi 8585 fi 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601xorg_testset_save_CFLAGS="$CFLAGS" 8602 8603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO"; then : 8615 xorg_cv_cc_flag_unknown_warning_option=yes 8616else 8617 xorg_cv_cc_flag_unknown_warning_option=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625fi 8626 8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638/* end confdefs.h. */ 8639int i; 8640_ACEOF 8641if ac_fn_c_try_compile "$LINENO"; then : 8642 xorg_cv_cc_flag_unused_command_line_argument=yes 8643else 8644 xorg_cv_cc_flag_unused_command_line_argument=no 8645fi 8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8647fi 8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8651 CFLAGS="$xorg_testset_save_CFLAGS" 8652fi 8653 8654found="no" 8655 8656 if test $found = "no" ; then 8657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 fi 8660 8661 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8663 fi 8664 8665 CFLAGS="$CFLAGS -Wreturn-type" 8666 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8668$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8669 cacheid=xorg_cv_cc_flag__Wreturn_type 8670 if eval \${$cacheid+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676int 8677main () 8678{ 8679 8680 ; 8681 return 0; 8682} 8683_ACEOF 8684if ac_fn_c_try_link "$LINENO"; then : 8685 eval $cacheid=yes 8686else 8687 eval $cacheid=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext \ 8690 conftest$ac_exeext conftest.$ac_ext 8691fi 8692 8693 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695 8696 eval supported=\$$cacheid 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8698$as_echo "$supported" >&6; } 8699 if test "$supported" = "yes" ; then 8700 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8701 found="yes" 8702 fi 8703 fi 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719xorg_testset_save_CFLAGS="$CFLAGS" 8720 8721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8729/* end confdefs.h. */ 8730int i; 8731_ACEOF 8732if ac_fn_c_try_compile "$LINENO"; then : 8733 xorg_cv_cc_flag_unknown_warning_option=yes 8734else 8735 xorg_cv_cc_flag_unknown_warning_option=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743fi 8744 8745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8748 fi 8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756/* end confdefs.h. */ 8757int i; 8758_ACEOF 8759if ac_fn_c_try_compile "$LINENO"; then : 8760 xorg_cv_cc_flag_unused_command_line_argument=yes 8761else 8762 xorg_cv_cc_flag_unused_command_line_argument=no 8763fi 8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770fi 8771 8772found="no" 8773 8774 if test $found = "no" ; then 8775 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 fi 8778 8779 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8781 fi 8782 8783 CFLAGS="$CFLAGS -Wtrigraphs" 8784 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8786$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8787 cacheid=xorg_cv_cc_flag__Wtrigraphs 8788 if eval \${$cacheid+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793int i; 8794int 8795main () 8796{ 8797 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802if ac_fn_c_try_link "$LINENO"; then : 8803 eval $cacheid=yes 8804else 8805 eval $cacheid=no 8806fi 8807rm -f core conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809fi 8810 8811 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813 8814 eval supported=\$$cacheid 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8816$as_echo "$supported" >&6; } 8817 if test "$supported" = "yes" ; then 8818 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8819 found="yes" 8820 fi 8821 fi 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837xorg_testset_save_CFLAGS="$CFLAGS" 8838 8839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8847/* end confdefs.h. */ 8848int i; 8849_ACEOF 8850if ac_fn_c_try_compile "$LINENO"; then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852else 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8856fi 8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8874/* end confdefs.h. */ 8875int i; 8876_ACEOF 8877if ac_fn_c_try_compile "$LINENO"; then : 8878 xorg_cv_cc_flag_unused_command_line_argument=yes 8879else 8880 xorg_cv_cc_flag_unused_command_line_argument=no 8881fi 8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888fi 8889 8890found="no" 8891 8892 if test $found = "no" ; then 8893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8895 fi 8896 8897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8899 fi 8900 8901 CFLAGS="$CFLAGS -Warray-bounds" 8902 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 8904$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 8905 cacheid=xorg_cv_cc_flag__Warray_bounds 8906 if eval \${$cacheid+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911int i; 8912int 8913main () 8914{ 8915 8916 ; 8917 return 0; 8918} 8919_ACEOF 8920if ac_fn_c_try_link "$LINENO"; then : 8921 eval $cacheid=yes 8922else 8923 eval $cacheid=no 8924fi 8925rm -f core conftest.err conftest.$ac_objext \ 8926 conftest$ac_exeext conftest.$ac_ext 8927fi 8928 8929 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931 8932 eval supported=\$$cacheid 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8934$as_echo "$supported" >&6; } 8935 if test "$supported" = "yes" ; then 8936 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 8937 found="yes" 8938 fi 8939 fi 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955xorg_testset_save_CFLAGS="$CFLAGS" 8956 8957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963else 8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967_ACEOF 8968if ac_fn_c_try_compile "$LINENO"; then : 8969 xorg_cv_cc_flag_unknown_warning_option=yes 8970else 8971 xorg_cv_cc_flag_unknown_warning_option=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8974fi 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979fi 8980 8981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8984 fi 8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8989 $as_echo_n "(cached) " >&6 8990else 8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8992/* end confdefs.h. */ 8993int i; 8994_ACEOF 8995if ac_fn_c_try_compile "$LINENO"; then : 8996 xorg_cv_cc_flag_unused_command_line_argument=yes 8997else 8998 xorg_cv_cc_flag_unused_command_line_argument=no 8999fi 9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9001fi 9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9005 CFLAGS="$xorg_testset_save_CFLAGS" 9006fi 9007 9008found="no" 9009 9010 if test $found = "no" ; then 9011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9013 fi 9014 9015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9017 fi 9018 9019 CFLAGS="$CFLAGS -Wwrite-strings" 9020 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9022$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9023 cacheid=xorg_cv_cc_flag__Wwrite_strings 9024 if eval \${$cacheid+:} false; then : 9025 $as_echo_n "(cached) " >&6 9026else 9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9028/* end confdefs.h. */ 9029int i; 9030int 9031main () 9032{ 9033 9034 ; 9035 return 0; 9036} 9037_ACEOF 9038if ac_fn_c_try_link "$LINENO"; then : 9039 eval $cacheid=yes 9040else 9041 eval $cacheid=no 9042fi 9043rm -f core conftest.err conftest.$ac_objext \ 9044 conftest$ac_exeext conftest.$ac_ext 9045fi 9046 9047 9048 CFLAGS="$xorg_testset_save_CFLAGS" 9049 9050 eval supported=\$$cacheid 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9052$as_echo "$supported" >&6; } 9053 if test "$supported" = "yes" ; then 9054 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9055 found="yes" 9056 fi 9057 fi 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073xorg_testset_save_CFLAGS="$CFLAGS" 9074 9075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083/* end confdefs.h. */ 9084int i; 9085_ACEOF 9086if ac_fn_c_try_compile "$LINENO"; then : 9087 xorg_cv_cc_flag_unknown_warning_option=yes 9088else 9089 xorg_cv_cc_flag_unknown_warning_option=no 9090fi 9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9092fi 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097fi 9098 9099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 fi 9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108else 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111int i; 9112_ACEOF 9113if ac_fn_c_try_compile "$LINENO"; then : 9114 xorg_cv_cc_flag_unused_command_line_argument=yes 9115else 9116 xorg_cv_cc_flag_unused_command_line_argument=no 9117fi 9118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9119fi 9120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9123 CFLAGS="$xorg_testset_save_CFLAGS" 9124fi 9125 9126found="no" 9127 9128 if test $found = "no" ; then 9129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 fi 9132 9133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9135 fi 9136 9137 CFLAGS="$CFLAGS -Waddress" 9138 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9140$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9141 cacheid=xorg_cv_cc_flag__Waddress 9142 if eval \${$cacheid+:} false; then : 9143 $as_echo_n "(cached) " >&6 9144else 9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9146/* end confdefs.h. */ 9147int i; 9148int 9149main () 9150{ 9151 9152 ; 9153 return 0; 9154} 9155_ACEOF 9156if ac_fn_c_try_link "$LINENO"; then : 9157 eval $cacheid=yes 9158else 9159 eval $cacheid=no 9160fi 9161rm -f core conftest.err conftest.$ac_objext \ 9162 conftest$ac_exeext conftest.$ac_ext 9163fi 9164 9165 9166 CFLAGS="$xorg_testset_save_CFLAGS" 9167 9168 eval supported=\$$cacheid 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9170$as_echo "$supported" >&6; } 9171 if test "$supported" = "yes" ; then 9172 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9173 found="yes" 9174 fi 9175 fi 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191xorg_testset_save_CFLAGS="$CFLAGS" 9192 9193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202int i; 9203_ACEOF 9204if ac_fn_c_try_compile "$LINENO"; then : 9205 xorg_cv_cc_flag_unknown_warning_option=yes 9206else 9207 xorg_cv_cc_flag_unknown_warning_option=no 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9210fi 9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9214 CFLAGS="$xorg_testset_save_CFLAGS" 9215fi 9216 9217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9220 fi 9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9225 $as_echo_n "(cached) " >&6 9226else 9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228/* end confdefs.h. */ 9229int i; 9230_ACEOF 9231if ac_fn_c_try_compile "$LINENO"; then : 9232 xorg_cv_cc_flag_unused_command_line_argument=yes 9233else 9234 xorg_cv_cc_flag_unused_command_line_argument=no 9235fi 9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9237fi 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9241 CFLAGS="$xorg_testset_save_CFLAGS" 9242fi 9243 9244found="no" 9245 9246 if test $found = "no" ; then 9247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9249 fi 9250 9251 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9253 fi 9254 9255 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9256 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9258$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9259 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9260 if eval \${$cacheid+:} false; then : 9261 $as_echo_n "(cached) " >&6 9262else 9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264/* end confdefs.h. */ 9265int i; 9266int 9267main () 9268{ 9269 9270 ; 9271 return 0; 9272} 9273_ACEOF 9274if ac_fn_c_try_link "$LINENO"; then : 9275 eval $cacheid=yes 9276else 9277 eval $cacheid=no 9278fi 9279rm -f core conftest.err conftest.$ac_objext \ 9280 conftest$ac_exeext conftest.$ac_ext 9281fi 9282 9283 9284 CFLAGS="$xorg_testset_save_CFLAGS" 9285 9286 eval supported=\$$cacheid 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9288$as_echo "$supported" >&6; } 9289 if test "$supported" = "yes" ; then 9290 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9291 found="yes" 9292 fi 9293 fi 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309xorg_testset_save_CFLAGS="$CFLAGS" 9310 9311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317else 9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9319/* end confdefs.h. */ 9320int i; 9321_ACEOF 9322if ac_fn_c_try_compile "$LINENO"; then : 9323 xorg_cv_cc_flag_unknown_warning_option=yes 9324else 9325 xorg_cv_cc_flag_unknown_warning_option=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9328fi 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 fi 9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9343 $as_echo_n "(cached) " >&6 9344else 9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9346/* end confdefs.h. */ 9347int i; 9348_ACEOF 9349if ac_fn_c_try_compile "$LINENO"; then : 9350 xorg_cv_cc_flag_unused_command_line_argument=yes 9351else 9352 xorg_cv_cc_flag_unused_command_line_argument=no 9353fi 9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9355fi 9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9359 CFLAGS="$xorg_testset_save_CFLAGS" 9360fi 9361 9362found="no" 9363 9364 if test $found = "no" ; then 9365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 fi 9368 9369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9371 fi 9372 9373 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9374 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9376$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9377 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9378 if eval \${$cacheid+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380else 9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383int i; 9384int 9385main () 9386{ 9387 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392if ac_fn_c_try_link "$LINENO"; then : 9393 eval $cacheid=yes 9394else 9395 eval $cacheid=no 9396fi 9397rm -f core conftest.err conftest.$ac_objext \ 9398 conftest$ac_exeext conftest.$ac_ext 9399fi 9400 9401 9402 CFLAGS="$xorg_testset_save_CFLAGS" 9403 9404 eval supported=\$$cacheid 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9406$as_echo "$supported" >&6; } 9407 if test "$supported" = "yes" ; then 9408 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9409 found="yes" 9410 fi 9411 fi 9412 9413 9414fi 9415 9416 9417 9418 9419 9420 9421 9422 CWARNFLAGS="$BASE_CFLAGS" 9423 if test "x$GCC" = xyes ; then 9424 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9425 fi 9426 9427 9428 9429 9430 9431 9432 9433 9434# Check whether --enable-strict-compilation was given. 9435if test "${enable_strict_compilation+set}" = set; then : 9436 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9437else 9438 STRICT_COMPILE=no 9439fi 9440 9441 9442 9443 9444 9445 9446STRICT_CFLAGS="" 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460xorg_testset_save_CFLAGS="$CFLAGS" 9461 9462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472_ACEOF 9473if ac_fn_c_try_compile "$LINENO"; then : 9474 xorg_cv_cc_flag_unknown_warning_option=yes 9475else 9476 xorg_cv_cc_flag_unknown_warning_option=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9489 fi 9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int i; 9499_ACEOF 9500if ac_fn_c_try_compile "$LINENO"; then : 9501 xorg_cv_cc_flag_unused_command_line_argument=yes 9502else 9503 xorg_cv_cc_flag_unused_command_line_argument=no 9504fi 9505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9506fi 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9510 CFLAGS="$xorg_testset_save_CFLAGS" 9511fi 9512 9513found="no" 9514 9515 if test $found = "no" ; then 9516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9518 fi 9519 9520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9522 fi 9523 9524 CFLAGS="$CFLAGS -pedantic" 9525 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9527$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9528 cacheid=xorg_cv_cc_flag__pedantic 9529 if eval \${$cacheid+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535int 9536main () 9537{ 9538 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543if ac_fn_c_try_link "$LINENO"; then : 9544 eval $cacheid=yes 9545else 9546 eval $cacheid=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext \ 9549 conftest$ac_exeext conftest.$ac_ext 9550fi 9551 9552 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554 9555 eval supported=\$$cacheid 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9557$as_echo "$supported" >&6; } 9558 if test "$supported" = "yes" ; then 9559 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9560 found="yes" 9561 fi 9562 fi 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578xorg_testset_save_CFLAGS="$CFLAGS" 9579 9580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588/* end confdefs.h. */ 9589int i; 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO"; then : 9592 xorg_cv_cc_flag_unknown_warning_option=yes 9593else 9594 xorg_cv_cc_flag_unknown_warning_option=no 9595fi 9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9597fi 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602fi 9603 9604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617_ACEOF 9618if ac_fn_c_try_compile "$LINENO"; then : 9619 xorg_cv_cc_flag_unused_command_line_argument=yes 9620else 9621 xorg_cv_cc_flag_unused_command_line_argument=no 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9624fi 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9628 CFLAGS="$xorg_testset_save_CFLAGS" 9629fi 9630 9631found="no" 9632 9633 if test $found = "no" ; then 9634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9636 fi 9637 9638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9640 fi 9641 9642 CFLAGS="$CFLAGS -Werror" 9643 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9645$as_echo_n "checking if $CC supports -Werror... " >&6; } 9646 cacheid=xorg_cv_cc_flag__Werror 9647 if eval \${$cacheid+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653int 9654main () 9655{ 9656 9657 ; 9658 return 0; 9659} 9660_ACEOF 9661if ac_fn_c_try_link "$LINENO"; then : 9662 eval $cacheid=yes 9663else 9664 eval $cacheid=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext \ 9667 conftest$ac_exeext conftest.$ac_ext 9668fi 9669 9670 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672 9673 eval supported=\$$cacheid 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675$as_echo "$supported" >&6; } 9676 if test "$supported" = "yes" ; then 9677 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9678 found="yes" 9679 fi 9680 fi 9681 9682 if test $found = "no" ; then 9683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685 fi 9686 9687 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9689 fi 9690 9691 CFLAGS="$CFLAGS -errwarn" 9692 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9694$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9695 cacheid=xorg_cv_cc_flag__errwarn 9696 if eval \${$cacheid+:} false; then : 9697 $as_echo_n "(cached) " >&6 9698else 9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700/* end confdefs.h. */ 9701int i; 9702int 9703main () 9704{ 9705 9706 ; 9707 return 0; 9708} 9709_ACEOF 9710if ac_fn_c_try_link "$LINENO"; then : 9711 eval $cacheid=yes 9712else 9713 eval $cacheid=no 9714fi 9715rm -f core conftest.err conftest.$ac_objext \ 9716 conftest$ac_exeext conftest.$ac_ext 9717fi 9718 9719 9720 CFLAGS="$xorg_testset_save_CFLAGS" 9721 9722 eval supported=\$$cacheid 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9724$as_echo "$supported" >&6; } 9725 if test "$supported" = "yes" ; then 9726 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9727 found="yes" 9728 fi 9729 fi 9730 9731 9732 9733# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9734# activate it with -Werror, so we add it here explicitly. 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748xorg_testset_save_CFLAGS="$CFLAGS" 9749 9750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756else 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759int i; 9760_ACEOF 9761if ac_fn_c_try_compile "$LINENO"; then : 9762 xorg_cv_cc_flag_unknown_warning_option=yes 9763else 9764 xorg_cv_cc_flag_unknown_warning_option=no 9765fi 9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9767fi 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772fi 9773 9774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 fi 9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9782 $as_echo_n "(cached) " >&6 9783else 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO"; then : 9789 xorg_cv_cc_flag_unused_command_line_argument=yes 9790else 9791 xorg_cv_cc_flag_unused_command_line_argument=no 9792fi 9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9794fi 9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9798 CFLAGS="$xorg_testset_save_CFLAGS" 9799fi 9800 9801found="no" 9802 9803 if test $found = "no" ; then 9804 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9806 fi 9807 9808 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9810 fi 9811 9812 CFLAGS="$CFLAGS -Werror=attributes" 9813 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9815$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9816 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 9817 if eval \${$cacheid+:} false; then : 9818 $as_echo_n "(cached) " >&6 9819else 9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9821/* end confdefs.h. */ 9822int i; 9823int 9824main () 9825{ 9826 9827 ; 9828 return 0; 9829} 9830_ACEOF 9831if ac_fn_c_try_link "$LINENO"; then : 9832 eval $cacheid=yes 9833else 9834 eval $cacheid=no 9835fi 9836rm -f core conftest.err conftest.$ac_objext \ 9837 conftest$ac_exeext conftest.$ac_ext 9838fi 9839 9840 9841 CFLAGS="$xorg_testset_save_CFLAGS" 9842 9843 eval supported=\$$cacheid 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9845$as_echo "$supported" >&6; } 9846 if test "$supported" = "yes" ; then 9847 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9848 found="yes" 9849 fi 9850 fi 9851 9852 9853 9854if test "x$STRICT_COMPILE" = "xyes"; then 9855 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 9856 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9857fi 9858 9859 9860 9861 9862 9863 9864cat >>confdefs.h <<_ACEOF 9865#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 9866_ACEOF 9867 9868 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 9869 if test "x$PVM" = "x"; then 9870 PVM="0" 9871 fi 9872 9873cat >>confdefs.h <<_ACEOF 9874#define PACKAGE_VERSION_MINOR $PVM 9875_ACEOF 9876 9877 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 9878 if test "x$PVP" = "x"; then 9879 PVP="0" 9880 fi 9881 9882cat >>confdefs.h <<_ACEOF 9883#define PACKAGE_VERSION_PATCHLEVEL $PVP 9884_ACEOF 9885 9886 9887 9888CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 9889mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 9890|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 9891echo 'git directory not found: installing possibly empty changelog.' >&2)" 9892 9893 9894 9895 9896macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 9897INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 9898mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 9899|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 9900echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 9901 9902 9903 9904 9905 9906 9907if test x$APP_MAN_SUFFIX = x ; then 9908 APP_MAN_SUFFIX=1 9909fi 9910if test x$APP_MAN_DIR = x ; then 9911 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 9912fi 9913 9914if test x$LIB_MAN_SUFFIX = x ; then 9915 LIB_MAN_SUFFIX=3 9916fi 9917if test x$LIB_MAN_DIR = x ; then 9918 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 9919fi 9920 9921if test x$FILE_MAN_SUFFIX = x ; then 9922 case $host_os in 9923 solaris*) FILE_MAN_SUFFIX=4 ;; 9924 *) FILE_MAN_SUFFIX=5 ;; 9925 esac 9926fi 9927if test x$FILE_MAN_DIR = x ; then 9928 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 9929fi 9930 9931if test x$MISC_MAN_SUFFIX = x ; then 9932 case $host_os in 9933 solaris*) MISC_MAN_SUFFIX=5 ;; 9934 *) MISC_MAN_SUFFIX=7 ;; 9935 esac 9936fi 9937if test x$MISC_MAN_DIR = x ; then 9938 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 9939fi 9940 9941if test x$DRIVER_MAN_SUFFIX = x ; then 9942 case $host_os in 9943 solaris*) DRIVER_MAN_SUFFIX=7 ;; 9944 *) DRIVER_MAN_SUFFIX=4 ;; 9945 esac 9946fi 9947if test x$DRIVER_MAN_DIR = x ; then 9948 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 9949fi 9950 9951if test x$ADMIN_MAN_SUFFIX = x ; then 9952 case $host_os in 9953 solaris*) ADMIN_MAN_SUFFIX=1m ;; 9954 *) ADMIN_MAN_SUFFIX=8 ;; 9955 esac 9956fi 9957if test x$ADMIN_MAN_DIR = x ; then 9958 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 9959fi 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975XORG_MAN_PAGE="X Version 11" 9976 9977MAN_SUBSTS="\ 9978 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9979 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9980 -e 's|__xservername__|Xorg|g' \ 9981 -e 's|__xconfigfile__|xorg.conf|g' \ 9982 -e 's|__projectroot__|\$(prefix)|g' \ 9983 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 9984 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 9985 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 9986 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 9987 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 9988 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 9989 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 9990 9991 9992 9993# Check whether --enable-silent-rules was given. 9994if test "${enable_silent_rules+set}" = set; then : 9995 enableval=$enable_silent_rules; 9996fi 9997 9998case $enable_silent_rules in 9999yes) AM_DEFAULT_VERBOSITY=0;; 10000no) AM_DEFAULT_VERBOSITY=1;; 10001*) AM_DEFAULT_VERBOSITY=0;; 10002esac 10003am_make=${MAKE-make} 10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10005$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10006if ${am_cv_make_support_nested_variables+:} false; then : 10007 $as_echo_n "(cached) " >&6 10008else 10009 if $as_echo 'TRUE=$(BAR$(V)) 10010BAR0=false 10011BAR1=true 10012V=1 10013am__doit: 10014 @$(TRUE) 10015.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10016 am_cv_make_support_nested_variables=yes 10017else 10018 am_cv_make_support_nested_variables=no 10019fi 10020fi 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10022$as_echo "$am_cv_make_support_nested_variables" >&6; } 10023if test $am_cv_make_support_nested_variables = yes; then 10024 AM_V='$(V)' 10025 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10026else 10027 AM_V=$AM_DEFAULT_VERBOSITY 10028 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10029fi 10030AM_BACKSLASH='\' 10031 10032 10033 10034 10035ac_config_headers="$ac_config_headers config.h" 10036 10037ac_aux_dir= 10038for ac_dir in . "$srcdir"/.; do 10039 if test -f "$ac_dir/install-sh"; then 10040 ac_aux_dir=$ac_dir 10041 ac_install_sh="$ac_aux_dir/install-sh -c" 10042 break 10043 elif test -f "$ac_dir/install.sh"; then 10044 ac_aux_dir=$ac_dir 10045 ac_install_sh="$ac_aux_dir/install.sh -c" 10046 break 10047 elif test -f "$ac_dir/shtool"; then 10048 ac_aux_dir=$ac_dir 10049 ac_install_sh="$ac_aux_dir/shtool install -c" 10050 break 10051 fi 10052done 10053if test -z "$ac_aux_dir"; then 10054 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 10055fi 10056 10057# These three variables are undocumented and unsupported, 10058# and are intended to be withdrawn in a future Autoconf release. 10059# They can cause serious problems if a builder's source tree is in a directory 10060# whose full name contains unusual characters. 10061ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 10062ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 10063ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 10064 10065 10066 10067# Initialize Automake 10068am__api_version='1.11' 10069 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10071$as_echo_n "checking whether build environment is sane... " >&6; } 10072# Just in case 10073sleep 1 10074echo timestamp > conftest.file 10075# Reject unsafe characters in $srcdir or the absolute working directory 10076# name. Accept space and tab only in the latter. 10077am_lf=' 10078' 10079case `pwd` in 10080 *[\\\"\#\$\&\'\`$am_lf]*) 10081 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10082esac 10083case $srcdir in 10084 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10085 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 10086esac 10087 10088# Do `set' in a subshell so we don't clobber the current shell's 10089# arguments. Must try -L first in case configure is actually a 10090# symlink; some systems play weird games with the mod time of symlinks 10091# (eg FreeBSD returns the mod time of the symlink's containing 10092# directory). 10093if ( 10094 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10095 if test "$*" = "X"; then 10096 # -L didn't work. 10097 set X `ls -t "$srcdir/configure" conftest.file` 10098 fi 10099 rm -f conftest.file 10100 if test "$*" != "X $srcdir/configure conftest.file" \ 10101 && test "$*" != "X conftest.file $srcdir/configure"; then 10102 10103 # If neither matched, then we have a broken ls. This can happen 10104 # if, for instance, CONFIG_SHELL is bash and it inherits a 10105 # broken ls alias from the environment. This has actually 10106 # happened. Such a system could not be considered "sane". 10107 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10108alias in your environment" "$LINENO" 5 10109 fi 10110 10111 test "$2" = conftest.file 10112 ) 10113then 10114 # Ok. 10115 : 10116else 10117 as_fn_error $? "newly created file is older than distributed files! 10118Check your system clock" "$LINENO" 5 10119fi 10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10121$as_echo "yes" >&6; } 10122test "$program_prefix" != NONE && 10123 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10124# Use a double $ so make ignores it. 10125test "$program_suffix" != NONE && 10126 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10127# Double any \ or $. 10128# By default was `s,x,x', remove it if useless. 10129ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10130program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 10131 10132# expand $ac_aux_dir to an absolute path 10133am_aux_dir=`cd $ac_aux_dir && pwd` 10134 10135if test x"${MISSING+set}" != xset; then 10136 case $am_aux_dir in 10137 *\ * | *\ *) 10138 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10139 *) 10140 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10141 esac 10142fi 10143# Use eval to expand $SHELL 10144if eval "$MISSING --run true"; then 10145 am_missing_run="$MISSING --run " 10146else 10147 am_missing_run= 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 10149$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 10150fi 10151 10152if test x"${install_sh}" != xset; then 10153 case $am_aux_dir in 10154 *\ * | *\ *) 10155 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10156 *) 10157 install_sh="\${SHELL} $am_aux_dir/install-sh" 10158 esac 10159fi 10160 10161# Installed binaries are usually stripped using `strip' when the user 10162# run `make install-strip'. However `strip' might not be the right 10163# tool to use in cross-compilation environments, therefore Automake 10164# will honor the `STRIP' environment variable to overrule this program. 10165if test "$cross_compiling" != no; then 10166 if test -n "$ac_tool_prefix"; then 10167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10168set dummy ${ac_tool_prefix}strip; ac_word=$2 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10170$as_echo_n "checking for $ac_word... " >&6; } 10171if ${ac_cv_prog_STRIP+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 if test -n "$STRIP"; then 10175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10176else 10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10178for as_dir in $PATH 10179do 10180 IFS=$as_save_IFS 10181 test -z "$as_dir" && as_dir=. 10182 for ac_exec_ext in '' $ac_executable_extensions; do 10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10184 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10186 break 2 10187 fi 10188done 10189 done 10190IFS=$as_save_IFS 10191 10192fi 10193fi 10194STRIP=$ac_cv_prog_STRIP 10195if test -n "$STRIP"; then 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10197$as_echo "$STRIP" >&6; } 10198else 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10200$as_echo "no" >&6; } 10201fi 10202 10203 10204fi 10205if test -z "$ac_cv_prog_STRIP"; then 10206 ac_ct_STRIP=$STRIP 10207 # Extract the first word of "strip", so it can be a program name with args. 10208set dummy strip; ac_word=$2 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10210$as_echo_n "checking for $ac_word... " >&6; } 10211if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10212 $as_echo_n "(cached) " >&6 10213else 10214 if test -n "$ac_ct_STRIP"; then 10215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10216else 10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10218for as_dir in $PATH 10219do 10220 IFS=$as_save_IFS 10221 test -z "$as_dir" && as_dir=. 10222 for ac_exec_ext in '' $ac_executable_extensions; do 10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10224 ac_cv_prog_ac_ct_STRIP="strip" 10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10226 break 2 10227 fi 10228done 10229 done 10230IFS=$as_save_IFS 10231 10232fi 10233fi 10234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10235if test -n "$ac_ct_STRIP"; then 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10237$as_echo "$ac_ct_STRIP" >&6; } 10238else 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10240$as_echo "no" >&6; } 10241fi 10242 10243 if test "x$ac_ct_STRIP" = x; then 10244 STRIP=":" 10245 else 10246 case $cross_compiling:$ac_tool_warned in 10247yes:) 10248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10250ac_tool_warned=yes ;; 10251esac 10252 STRIP=$ac_ct_STRIP 10253 fi 10254else 10255 STRIP="$ac_cv_prog_STRIP" 10256fi 10257 10258fi 10259INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10260 10261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 10262$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 10263if test -z "$MKDIR_P"; then 10264 if ${ac_cv_path_mkdir+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10268for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10269do 10270 IFS=$as_save_IFS 10271 test -z "$as_dir" && as_dir=. 10272 for ac_prog in mkdir gmkdir; do 10273 for ac_exec_ext in '' $ac_executable_extensions; do 10274 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 10275 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 10276 'mkdir (GNU coreutils) '* | \ 10277 'mkdir (coreutils) '* | \ 10278 'mkdir (fileutils) '4.1*) 10279 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 10280 break 3;; 10281 esac 10282 done 10283 done 10284 done 10285IFS=$as_save_IFS 10286 10287fi 10288 10289 test -d ./--version && rmdir ./--version 10290 if test "${ac_cv_path_mkdir+set}" = set; then 10291 MKDIR_P="$ac_cv_path_mkdir -p" 10292 else 10293 # As a last resort, use the slow shell script. Don't cache a 10294 # value for MKDIR_P within a source directory, because that will 10295 # break other packages using the cache if that directory is 10296 # removed, or if the value is a relative name. 10297 MKDIR_P="$ac_install_sh -d" 10298 fi 10299fi 10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10301$as_echo "$MKDIR_P" >&6; } 10302 10303mkdir_p="$MKDIR_P" 10304case $mkdir_p in 10305 [\\/$]* | ?:[\\/]*) ;; 10306 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 10307esac 10308 10309for ac_prog in gawk mawk nawk awk 10310do 10311 # Extract the first word of "$ac_prog", so it can be a program name with args. 10312set dummy $ac_prog; ac_word=$2 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10314$as_echo_n "checking for $ac_word... " >&6; } 10315if ${ac_cv_prog_AWK+:} false; then : 10316 $as_echo_n "(cached) " >&6 10317else 10318 if test -n "$AWK"; then 10319 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10320else 10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10322for as_dir in $PATH 10323do 10324 IFS=$as_save_IFS 10325 test -z "$as_dir" && as_dir=. 10326 for ac_exec_ext in '' $ac_executable_extensions; do 10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10328 ac_cv_prog_AWK="$ac_prog" 10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10330 break 2 10331 fi 10332done 10333 done 10334IFS=$as_save_IFS 10335 10336fi 10337fi 10338AWK=$ac_cv_prog_AWK 10339if test -n "$AWK"; then 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10341$as_echo "$AWK" >&6; } 10342else 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10344$as_echo "no" >&6; } 10345fi 10346 10347 10348 test -n "$AWK" && break 10349done 10350 10351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10352$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10353set x ${MAKE-make} 10354ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10355if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 10356 $as_echo_n "(cached) " >&6 10357else 10358 cat >conftest.make <<\_ACEOF 10359SHELL = /bin/sh 10360all: 10361 @echo '@@@%%%=$(MAKE)=@@@%%%' 10362_ACEOF 10363# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10364case `${MAKE-make} -f conftest.make 2>/dev/null` in 10365 *@@@%%%=?*=@@@%%%*) 10366 eval ac_cv_prog_make_${ac_make}_set=yes;; 10367 *) 10368 eval ac_cv_prog_make_${ac_make}_set=no;; 10369esac 10370rm -f conftest.make 10371fi 10372if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10374$as_echo "yes" >&6; } 10375 SET_MAKE= 10376else 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10378$as_echo "no" >&6; } 10379 SET_MAKE="MAKE=${MAKE-make}" 10380fi 10381 10382rm -rf .tst 2>/dev/null 10383mkdir .tst 2>/dev/null 10384if test -d .tst; then 10385 am__leading_dot=. 10386else 10387 am__leading_dot=_ 10388fi 10389rmdir .tst 2>/dev/null 10390 10391DEPDIR="${am__leading_dot}deps" 10392 10393ac_config_commands="$ac_config_commands depfiles" 10394 10395 10396am_make=${MAKE-make} 10397cat > confinc << 'END' 10398am__doit: 10399 @echo this is the am__doit target 10400.PHONY: am__doit 10401END 10402# If we don't find an include directive, just comment out the code. 10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 10404$as_echo_n "checking for style of include used by $am_make... " >&6; } 10405am__include="#" 10406am__quote= 10407_am_result=none 10408# First try GNU make style include. 10409echo "include confinc" > confmf 10410# Ignore all kinds of additional output from `make'. 10411case `$am_make -s -f confmf 2> /dev/null` in #( 10412*the\ am__doit\ target*) 10413 am__include=include 10414 am__quote= 10415 _am_result=GNU 10416 ;; 10417esac 10418# Now try BSD make style include. 10419if test "$am__include" = "#"; then 10420 echo '.include "confinc"' > confmf 10421 case `$am_make -s -f confmf 2> /dev/null` in #( 10422 *the\ am__doit\ target*) 10423 am__include=.include 10424 am__quote="\"" 10425 _am_result=BSD 10426 ;; 10427 esac 10428fi 10429 10430 10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 10432$as_echo "$_am_result" >&6; } 10433rm -f confinc confmf 10434 10435# Check whether --enable-dependency-tracking was given. 10436if test "${enable_dependency_tracking+set}" = set; then : 10437 enableval=$enable_dependency_tracking; 10438fi 10439 10440if test "x$enable_dependency_tracking" != xno; then 10441 am_depcomp="$ac_aux_dir/depcomp" 10442 AMDEPBACKSLASH='\' 10443 am__nodep='_no' 10444fi 10445 if test "x$enable_dependency_tracking" != xno; then 10446 AMDEP_TRUE= 10447 AMDEP_FALSE='#' 10448else 10449 AMDEP_TRUE='#' 10450 AMDEP_FALSE= 10451fi 10452 10453 10454if test "`cd $srcdir && pwd`" != "`pwd`"; then 10455 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10456 # is not polluted with repeated "-I." 10457 am__isrc=' -I$(srcdir)' 10458 # test to see if srcdir already configured 10459 if test -f $srcdir/config.status; then 10460 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10461 fi 10462fi 10463 10464# test whether we have cygpath 10465if test -z "$CYGPATH_W"; then 10466 if (cygpath --version) >/dev/null 2>/dev/null; then 10467 CYGPATH_W='cygpath -w' 10468 else 10469 CYGPATH_W=echo 10470 fi 10471fi 10472 10473 10474# Define the identity of the package. 10475 PACKAGE='xf86-video-siliconmotion' 10476 VERSION='1.7.7' 10477 10478 10479cat >>confdefs.h <<_ACEOF 10480#define PACKAGE "$PACKAGE" 10481_ACEOF 10482 10483 10484cat >>confdefs.h <<_ACEOF 10485#define VERSION "$VERSION" 10486_ACEOF 10487 10488# Some tools Automake needs. 10489 10490ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10491 10492 10493AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10494 10495 10496AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10497 10498 10499AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10500 10501 10502MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10503 10504# We need awk for the "check" target. The system "awk" is bad on 10505# some platforms. 10506# Always define AMTAR for backward compatibility. Yes, it's still used 10507# in the wild :-( We should find a proper way to deprecate it ... 10508AMTAR='$${TAR-tar}' 10509 10510am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 10511 10512 10513 10514 10515depcc="$CC" am_compiler_list= 10516 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 10518$as_echo_n "checking dependency style of $depcc... " >&6; } 10519if ${am_cv_CC_dependencies_compiler_type+:} false; then : 10520 $as_echo_n "(cached) " >&6 10521else 10522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10523 # We make a subdir and do the tests there. Otherwise we can end up 10524 # making bogus files that we don't know about and never remove. For 10525 # instance it was reported that on HP-UX the gcc test will end up 10526 # making a dummy file named `D' -- because `-MD' means `put the output 10527 # in D'. 10528 rm -rf conftest.dir 10529 mkdir conftest.dir 10530 # Copy depcomp to subdir because otherwise we won't find it if we're 10531 # using a relative directory. 10532 cp "$am_depcomp" conftest.dir 10533 cd conftest.dir 10534 # We will build objects and dependencies in a subdirectory because 10535 # it helps to detect inapplicable dependency modes. For instance 10536 # both Tru64's cc and ICC support -MD to output dependencies as a 10537 # side effect of compilation, but ICC will put the dependencies in 10538 # the current directory while Tru64 will put them in the object 10539 # directory. 10540 mkdir sub 10541 10542 am_cv_CC_dependencies_compiler_type=none 10543 if test "$am_compiler_list" = ""; then 10544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 10545 fi 10546 am__universal=false 10547 case " $depcc " in #( 10548 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10549 esac 10550 10551 for depmode in $am_compiler_list; do 10552 # Setup a source with many dependencies, because some compilers 10553 # like to wrap large dependency lists on column 80 (with \), and 10554 # we should not choose a depcomp mode which is confused by this. 10555 # 10556 # We need to recreate these files for each test, as the compiler may 10557 # overwrite some of them when testing with obscure command lines. 10558 # This happens at least with the AIX C compiler. 10559 : > sub/conftest.c 10560 for i in 1 2 3 4 5 6; do 10561 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 10563 # Solaris 8's {/usr,}/bin/sh. 10564 touch sub/conftst$i.h 10565 done 10566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10567 10568 # We check with `-c' and `-o' for the sake of the "dashmstdout" 10569 # mode. It turns out that the SunPro C++ compiler does not properly 10570 # handle `-M -o', and we need to detect this. Also, some Intel 10571 # versions had trouble with output in subdirs 10572 am__obj=sub/conftest.${OBJEXT-o} 10573 am__minus_obj="-o $am__obj" 10574 case $depmode in 10575 gcc) 10576 # This depmode causes a compiler race in universal mode. 10577 test "$am__universal" = false || continue 10578 ;; 10579 nosideeffect) 10580 # after this tag, mechanisms are not by side-effect, so they'll 10581 # only be used when explicitly requested 10582 if test "x$enable_dependency_tracking" = xyes; then 10583 continue 10584 else 10585 break 10586 fi 10587 ;; 10588 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10589 # This compiler won't grok `-c -o', but also, the minuso test has 10590 # not run yet. These depmodes are late enough in the game, and 10591 # so weak that their functioning should not be impacted. 10592 am__obj=conftest.${OBJEXT-o} 10593 am__minus_obj= 10594 ;; 10595 none) break ;; 10596 esac 10597 if depmode=$depmode \ 10598 source=sub/conftest.c object=$am__obj \ 10599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10601 >/dev/null 2>conftest.err && 10602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10606 # icc doesn't choke on unknown options, it will just issue warnings 10607 # or remarks (even with -Werror). So we grep stderr for any message 10608 # that says an option was ignored or not supported. 10609 # When given -MP, icc 7.0 and 7.1 complain thusly: 10610 # icc: Command line warning: ignoring option '-M'; no argument required 10611 # The diagnosis changed in icc 8.0: 10612 # icc: Command line remark: option '-MP' not supported 10613 if (grep 'ignoring option' conftest.err || 10614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10615 am_cv_CC_dependencies_compiler_type=$depmode 10616 break 10617 fi 10618 fi 10619 done 10620 10621 cd .. 10622 rm -rf conftest.dir 10623else 10624 am_cv_CC_dependencies_compiler_type=none 10625fi 10626 10627fi 10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 10629$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 10630CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 10631 10632 if 10633 test "x$enable_dependency_tracking" != xno \ 10634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 10635 am__fastdepCC_TRUE= 10636 am__fastdepCC_FALSE='#' 10637else 10638 am__fastdepCC_TRUE='#' 10639 am__fastdepCC_FALSE= 10640fi 10641 10642 10643 10644 10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10646$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10647 # Check whether --enable-maintainer-mode was given. 10648if test "${enable_maintainer_mode+set}" = set; then : 10649 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10650else 10651 USE_MAINTAINER_MODE=no 10652fi 10653 10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10655$as_echo "$USE_MAINTAINER_MODE" >&6; } 10656 if test $USE_MAINTAINER_MODE = yes; then 10657 MAINTAINER_MODE_TRUE= 10658 MAINTAINER_MODE_FALSE='#' 10659else 10660 MAINTAINER_MODE_TRUE='#' 10661 MAINTAINER_MODE_FALSE= 10662fi 10663 10664 MAINT=$MAINTAINER_MODE_TRUE 10665 10666 10667 10668# Initialize libtool 10669# Check whether --enable-static was given. 10670if test "${enable_static+set}" = set; then : 10671 enableval=$enable_static; p=${PACKAGE-default} 10672 case $enableval in 10673 yes) enable_static=yes ;; 10674 no) enable_static=no ;; 10675 *) 10676 enable_static=no 10677 # Look at the argument we got. We use all the common list separators. 10678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10679 for pkg in $enableval; do 10680 IFS="$lt_save_ifs" 10681 if test "X$pkg" = "X$p"; then 10682 enable_static=yes 10683 fi 10684 done 10685 IFS="$lt_save_ifs" 10686 ;; 10687 esac 10688else 10689 enable_static=no 10690fi 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700case `pwd` in 10701 *\ * | *\ *) 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10703$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10704esac 10705 10706 10707 10708macro_version='2.4.2' 10709macro_revision='1.3337' 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723ltmain="$ac_aux_dir/ltmain.sh" 10724 10725# Backslashify metacharacters that are still active within 10726# double-quoted strings. 10727sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10728 10729# Same as above, but do not quote variable references. 10730double_quote_subst='s/\(["`\\]\)/\\\1/g' 10731 10732# Sed substitution to delay expansion of an escaped shell variable in a 10733# double_quote_subst'ed string. 10734delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10735 10736# Sed substitution to delay expansion of an escaped single quote. 10737delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10738 10739# Sed substitution to avoid accidental globbing in evaled expressions 10740no_glob_subst='s/\*/\\\*/g' 10741 10742ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10743ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10744ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10745 10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10747$as_echo_n "checking how to print strings... " >&6; } 10748# Test print first, because it will be a builtin if present. 10749if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10750 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10751 ECHO='print -r --' 10752elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10753 ECHO='printf %s\n' 10754else 10755 # Use this function as a fallback that always works. 10756 func_fallback_echo () 10757 { 10758 eval 'cat <<_LTECHO_EOF 10759$1 10760_LTECHO_EOF' 10761 } 10762 ECHO='func_fallback_echo' 10763fi 10764 10765# func_echo_all arg... 10766# Invoke $ECHO with all args, space-separated. 10767func_echo_all () 10768{ 10769 $ECHO "" 10770} 10771 10772case "$ECHO" in 10773 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10774$as_echo "printf" >&6; } ;; 10775 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10776$as_echo "print -r" >&6; } ;; 10777 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10778$as_echo "cat" >&6; } ;; 10779esac 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10795$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10796if ${ac_cv_path_SED+:} false; then : 10797 $as_echo_n "(cached) " >&6 10798else 10799 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10800 for ac_i in 1 2 3 4 5 6 7; do 10801 ac_script="$ac_script$as_nl$ac_script" 10802 done 10803 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10804 { ac_script=; unset ac_script;} 10805 if test -z "$SED"; then 10806 ac_path_SED_found=false 10807 # Loop through the user's path and test for each of PROGNAME-LIST 10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10809for as_dir in $PATH 10810do 10811 IFS=$as_save_IFS 10812 test -z "$as_dir" && as_dir=. 10813 for ac_prog in sed gsed; do 10814 for ac_exec_ext in '' $ac_executable_extensions; do 10815 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10816 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 10817# Check for GNU ac_path_SED and select it if it is found. 10818 # Check for GNU $ac_path_SED 10819case `"$ac_path_SED" --version 2>&1` in 10820*GNU*) 10821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10822*) 10823 ac_count=0 10824 $as_echo_n 0123456789 >"conftest.in" 10825 while : 10826 do 10827 cat "conftest.in" "conftest.in" >"conftest.tmp" 10828 mv "conftest.tmp" "conftest.in" 10829 cp "conftest.in" "conftest.nl" 10830 $as_echo '' >> "conftest.nl" 10831 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10833 as_fn_arith $ac_count + 1 && ac_count=$as_val 10834 if test $ac_count -gt ${ac_path_SED_max-0}; then 10835 # Best one so far, save it but keep looking for a better one 10836 ac_cv_path_SED="$ac_path_SED" 10837 ac_path_SED_max=$ac_count 10838 fi 10839 # 10*(2^10) chars as input seems more than enough 10840 test $ac_count -gt 10 && break 10841 done 10842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10843esac 10844 10845 $ac_path_SED_found && break 3 10846 done 10847 done 10848 done 10849IFS=$as_save_IFS 10850 if test -z "$ac_cv_path_SED"; then 10851 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10852 fi 10853else 10854 ac_cv_path_SED=$SED 10855fi 10856 10857fi 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10859$as_echo "$ac_cv_path_SED" >&6; } 10860 SED="$ac_cv_path_SED" 10861 rm -f conftest.sed 10862 10863test -z "$SED" && SED=sed 10864Xsed="$SED -e 1s/^X//" 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10877$as_echo_n "checking for fgrep... " >&6; } 10878if ${ac_cv_path_FGREP+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880else 10881 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10882 then ac_cv_path_FGREP="$GREP -F" 10883 else 10884 if test -z "$FGREP"; then 10885 ac_path_FGREP_found=false 10886 # Loop through the user's path and test for each of PROGNAME-LIST 10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10889do 10890 IFS=$as_save_IFS 10891 test -z "$as_dir" && as_dir=. 10892 for ac_prog in fgrep; do 10893 for ac_exec_ext in '' $ac_executable_extensions; do 10894 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10895 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 10896# Check for GNU ac_path_FGREP and select it if it is found. 10897 # Check for GNU $ac_path_FGREP 10898case `"$ac_path_FGREP" --version 2>&1` in 10899*GNU*) 10900 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10901*) 10902 ac_count=0 10903 $as_echo_n 0123456789 >"conftest.in" 10904 while : 10905 do 10906 cat "conftest.in" "conftest.in" >"conftest.tmp" 10907 mv "conftest.tmp" "conftest.in" 10908 cp "conftest.in" "conftest.nl" 10909 $as_echo 'FGREP' >> "conftest.nl" 10910 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10912 as_fn_arith $ac_count + 1 && ac_count=$as_val 10913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10914 # Best one so far, save it but keep looking for a better one 10915 ac_cv_path_FGREP="$ac_path_FGREP" 10916 ac_path_FGREP_max=$ac_count 10917 fi 10918 # 10*(2^10) chars as input seems more than enough 10919 test $ac_count -gt 10 && break 10920 done 10921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10922esac 10923 10924 $ac_path_FGREP_found && break 3 10925 done 10926 done 10927 done 10928IFS=$as_save_IFS 10929 if test -z "$ac_cv_path_FGREP"; then 10930 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10931 fi 10932else 10933 ac_cv_path_FGREP=$FGREP 10934fi 10935 10936 fi 10937fi 10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10939$as_echo "$ac_cv_path_FGREP" >&6; } 10940 FGREP="$ac_cv_path_FGREP" 10941 10942 10943test -z "$GREP" && GREP=grep 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963# Check whether --with-gnu-ld was given. 10964if test "${with_gnu_ld+set}" = set; then : 10965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10966else 10967 with_gnu_ld=no 10968fi 10969 10970ac_prog=ld 10971if test "$GCC" = yes; then 10972 # Check if gcc -print-prog-name=ld gives a path. 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10974$as_echo_n "checking for ld used by $CC... " >&6; } 10975 case $host in 10976 *-*-mingw*) 10977 # gcc leaves a trailing carriage return which upsets mingw 10978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10979 *) 10980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10981 esac 10982 case $ac_prog in 10983 # Accept absolute paths. 10984 [\\/]* | ?:[\\/]*) 10985 re_direlt='/[^/][^/]*/\.\./' 10986 # Canonicalize the pathname of ld 10987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10990 done 10991 test -z "$LD" && LD="$ac_prog" 10992 ;; 10993 "") 10994 # If it fails, then pretend we aren't using GCC. 10995 ac_prog=ld 10996 ;; 10997 *) 10998 # If it is relative, then search for the first ld in PATH. 10999 with_gnu_ld=unknown 11000 ;; 11001 esac 11002elif test "$with_gnu_ld" = yes; then 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11004$as_echo_n "checking for GNU ld... " >&6; } 11005else 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11007$as_echo_n "checking for non-GNU ld... " >&6; } 11008fi 11009if ${lt_cv_path_LD+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011else 11012 if test -z "$LD"; then 11013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11014 for ac_dir in $PATH; do 11015 IFS="$lt_save_ifs" 11016 test -z "$ac_dir" && ac_dir=. 11017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11018 lt_cv_path_LD="$ac_dir/$ac_prog" 11019 # Check to see if the program is GNU ld. I'd rather use --version, 11020 # but apparently some variants of GNU ld only accept -v. 11021 # Break only if it was the GNU/non-GNU ld that we prefer. 11022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11023 *GNU* | *'with BFD'*) 11024 test "$with_gnu_ld" != no && break 11025 ;; 11026 *) 11027 test "$with_gnu_ld" != yes && break 11028 ;; 11029 esac 11030 fi 11031 done 11032 IFS="$lt_save_ifs" 11033else 11034 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11035fi 11036fi 11037 11038LD="$lt_cv_path_LD" 11039if test -n "$LD"; then 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11041$as_echo "$LD" >&6; } 11042else 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11044$as_echo "no" >&6; } 11045fi 11046test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11048$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11049if ${lt_cv_prog_gnu_ld+:} false; then : 11050 $as_echo_n "(cached) " >&6 11051else 11052 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11053case `$LD -v 2>&1 </dev/null` in 11054*GNU* | *'with BFD'*) 11055 lt_cv_prog_gnu_ld=yes 11056 ;; 11057*) 11058 lt_cv_prog_gnu_ld=no 11059 ;; 11060esac 11061fi 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11063$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11064with_gnu_ld=$lt_cv_prog_gnu_ld 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11075$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11076if ${lt_cv_path_NM+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078else 11079 if test -n "$NM"; then 11080 # Let the user override the test. 11081 lt_cv_path_NM="$NM" 11082else 11083 lt_nm_to_check="${ac_tool_prefix}nm" 11084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11085 lt_nm_to_check="$lt_nm_to_check nm" 11086 fi 11087 for lt_tmp_nm in $lt_nm_to_check; do 11088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11090 IFS="$lt_save_ifs" 11091 test -z "$ac_dir" && ac_dir=. 11092 tmp_nm="$ac_dir/$lt_tmp_nm" 11093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11094 # Check to see if the nm accepts a BSD-compat flag. 11095 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11096 # nm: unknown option "B" ignored 11097 # Tru64's nm complains that /dev/null is an invalid object file 11098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11099 */dev/null* | *'Invalid file or object type'*) 11100 lt_cv_path_NM="$tmp_nm -B" 11101 break 11102 ;; 11103 *) 11104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11105 */dev/null*) 11106 lt_cv_path_NM="$tmp_nm -p" 11107 break 11108 ;; 11109 *) 11110 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11111 continue # so that we can try to find one that supports BSD flags 11112 ;; 11113 esac 11114 ;; 11115 esac 11116 fi 11117 done 11118 IFS="$lt_save_ifs" 11119 done 11120 : ${lt_cv_path_NM=no} 11121fi 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11124$as_echo "$lt_cv_path_NM" >&6; } 11125if test "$lt_cv_path_NM" != "no"; then 11126 NM="$lt_cv_path_NM" 11127else 11128 # Didn't find any BSD compatible name lister, look for dumpbin. 11129 if test -n "$DUMPBIN"; then : 11130 # Let the user override the test. 11131 else 11132 if test -n "$ac_tool_prefix"; then 11133 for ac_prog in dumpbin "link -dump" 11134 do 11135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11136set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11138$as_echo_n "checking for $ac_word... " >&6; } 11139if ${ac_cv_prog_DUMPBIN+:} false; then : 11140 $as_echo_n "(cached) " >&6 11141else 11142 if test -n "$DUMPBIN"; then 11143 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11144else 11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11146for as_dir in $PATH 11147do 11148 IFS=$as_save_IFS 11149 test -z "$as_dir" && as_dir=. 11150 for ac_exec_ext in '' $ac_executable_extensions; do 11151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11152 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11154 break 2 11155 fi 11156done 11157 done 11158IFS=$as_save_IFS 11159 11160fi 11161fi 11162DUMPBIN=$ac_cv_prog_DUMPBIN 11163if test -n "$DUMPBIN"; then 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11165$as_echo "$DUMPBIN" >&6; } 11166else 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11168$as_echo "no" >&6; } 11169fi 11170 11171 11172 test -n "$DUMPBIN" && break 11173 done 11174fi 11175if test -z "$DUMPBIN"; then 11176 ac_ct_DUMPBIN=$DUMPBIN 11177 for ac_prog in dumpbin "link -dump" 11178do 11179 # Extract the first word of "$ac_prog", so it can be a program name with args. 11180set dummy $ac_prog; ac_word=$2 11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11182$as_echo_n "checking for $ac_word... " >&6; } 11183if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11184 $as_echo_n "(cached) " >&6 11185else 11186 if test -n "$ac_ct_DUMPBIN"; then 11187 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11188else 11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11190for as_dir in $PATH 11191do 11192 IFS=$as_save_IFS 11193 test -z "$as_dir" && as_dir=. 11194 for ac_exec_ext in '' $ac_executable_extensions; do 11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11196 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11198 break 2 11199 fi 11200done 11201 done 11202IFS=$as_save_IFS 11203 11204fi 11205fi 11206ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11207if test -n "$ac_ct_DUMPBIN"; then 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11209$as_echo "$ac_ct_DUMPBIN" >&6; } 11210else 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11212$as_echo "no" >&6; } 11213fi 11214 11215 11216 test -n "$ac_ct_DUMPBIN" && break 11217done 11218 11219 if test "x$ac_ct_DUMPBIN" = x; then 11220 DUMPBIN=":" 11221 else 11222 case $cross_compiling:$ac_tool_warned in 11223yes:) 11224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11226ac_tool_warned=yes ;; 11227esac 11228 DUMPBIN=$ac_ct_DUMPBIN 11229 fi 11230fi 11231 11232 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11233 *COFF*) 11234 DUMPBIN="$DUMPBIN -symbols" 11235 ;; 11236 *) 11237 DUMPBIN=: 11238 ;; 11239 esac 11240 fi 11241 11242 if test "$DUMPBIN" != ":"; then 11243 NM="$DUMPBIN" 11244 fi 11245fi 11246test -z "$NM" && NM=nm 11247 11248 11249 11250 11251 11252 11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11254$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11255if ${lt_cv_nm_interface+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257else 11258 lt_cv_nm_interface="BSD nm" 11259 echo "int some_variable = 0;" > conftest.$ac_ext 11260 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11261 (eval "$ac_compile" 2>conftest.err) 11262 cat conftest.err >&5 11263 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11264 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11265 cat conftest.err >&5 11266 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11267 cat conftest.out >&5 11268 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11269 lt_cv_nm_interface="MS dumpbin" 11270 fi 11271 rm -f conftest* 11272fi 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11274$as_echo "$lt_cv_nm_interface" >&6; } 11275 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11277$as_echo_n "checking whether ln -s works... " >&6; } 11278LN_S=$as_ln_s 11279if test "$LN_S" = "ln -s"; then 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11281$as_echo "yes" >&6; } 11282else 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11284$as_echo "no, using $LN_S" >&6; } 11285fi 11286 11287# find the maximum length of command line arguments 11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11289$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11290if ${lt_cv_sys_max_cmd_len+:} false; then : 11291 $as_echo_n "(cached) " >&6 11292else 11293 i=0 11294 teststring="ABCD" 11295 11296 case $build_os in 11297 msdosdjgpp*) 11298 # On DJGPP, this test can blow up pretty badly due to problems in libc 11299 # (any single argument exceeding 2000 bytes causes a buffer overrun 11300 # during glob expansion). Even if it were fixed, the result of this 11301 # check would be larger than it should be. 11302 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11303 ;; 11304 11305 gnu*) 11306 # Under GNU Hurd, this test is not required because there is 11307 # no limit to the length of command line arguments. 11308 # Libtool will interpret -1 as no limit whatsoever 11309 lt_cv_sys_max_cmd_len=-1; 11310 ;; 11311 11312 cygwin* | mingw* | cegcc*) 11313 # On Win9x/ME, this test blows up -- it succeeds, but takes 11314 # about 5 minutes as the teststring grows exponentially. 11315 # Worse, since 9x/ME are not pre-emptively multitasking, 11316 # you end up with a "frozen" computer, even though with patience 11317 # the test eventually succeeds (with a max line length of 256k). 11318 # Instead, let's just punt: use the minimum linelength reported by 11319 # all of the supported platforms: 8192 (on NT/2K/XP). 11320 lt_cv_sys_max_cmd_len=8192; 11321 ;; 11322 11323 mint*) 11324 # On MiNT this can take a long time and run out of memory. 11325 lt_cv_sys_max_cmd_len=8192; 11326 ;; 11327 11328 amigaos*) 11329 # On AmigaOS with pdksh, this test takes hours, literally. 11330 # So we just punt and use a minimum line length of 8192. 11331 lt_cv_sys_max_cmd_len=8192; 11332 ;; 11333 11334 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11335 # This has been around since 386BSD, at least. Likely further. 11336 if test -x /sbin/sysctl; then 11337 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11338 elif test -x /usr/sbin/sysctl; then 11339 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11340 else 11341 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11342 fi 11343 # And add a safety zone 11344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11346 ;; 11347 11348 interix*) 11349 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11350 lt_cv_sys_max_cmd_len=196608 11351 ;; 11352 11353 os2*) 11354 # The test takes a long time on OS/2. 11355 lt_cv_sys_max_cmd_len=8192 11356 ;; 11357 11358 osf*) 11359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11361 # nice to cause kernel panics so lets avoid the loop below. 11362 # First set a reasonable default. 11363 lt_cv_sys_max_cmd_len=16384 11364 # 11365 if test -x /sbin/sysconfig; then 11366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11367 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11368 esac 11369 fi 11370 ;; 11371 sco3.2v5*) 11372 lt_cv_sys_max_cmd_len=102400 11373 ;; 11374 sysv5* | sco5v6* | sysv4.2uw2*) 11375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11376 if test -n "$kargmax"; then 11377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11378 else 11379 lt_cv_sys_max_cmd_len=32768 11380 fi 11381 ;; 11382 *) 11383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11384 if test -n "$lt_cv_sys_max_cmd_len"; then 11385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11387 else 11388 # Make teststring a little bigger before we do anything with it. 11389 # a 1K string should be a reasonable start. 11390 for i in 1 2 3 4 5 6 7 8 ; do 11391 teststring=$teststring$teststring 11392 done 11393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11394 # If test is not a shell built-in, we'll probably end up computing a 11395 # maximum length that is only half of the actual maximum length, but 11396 # we can't tell. 11397 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11398 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11399 test $i != 17 # 1/2 MB should be enough 11400 do 11401 i=`expr $i + 1` 11402 teststring=$teststring$teststring 11403 done 11404 # Only check the string length outside the loop. 11405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11406 teststring= 11407 # Add a significant safety factor because C++ compilers can tack on 11408 # massive amounts of additional arguments before passing them to the 11409 # linker. It appears as though 1/2 is a usable value. 11410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11411 fi 11412 ;; 11413 esac 11414 11415fi 11416 11417if test -n $lt_cv_sys_max_cmd_len ; then 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11419$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11420else 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11422$as_echo "none" >&6; } 11423fi 11424max_cmd_len=$lt_cv_sys_max_cmd_len 11425 11426 11427 11428 11429 11430 11431: ${CP="cp -f"} 11432: ${MV="mv -f"} 11433: ${RM="rm -f"} 11434 11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11436$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11437# Try some XSI features 11438xsi_shell=no 11439( _lt_dummy="a/b/c" 11440 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11441 = c,a/b,b/c, \ 11442 && eval 'test $(( 1 + 1 )) -eq 2 \ 11443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11444 && xsi_shell=yes 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11446$as_echo "$xsi_shell" >&6; } 11447 11448 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11450$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11451lt_shell_append=no 11452( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11453 >/dev/null 2>&1 \ 11454 && lt_shell_append=yes 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11456$as_echo "$lt_shell_append" >&6; } 11457 11458 11459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11460 lt_unset=unset 11461else 11462 lt_unset=false 11463fi 11464 11465 11466 11467 11468 11469# test EBCDIC or ASCII 11470case `echo X|tr X '\101'` in 11471 A) # ASCII based system 11472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11473 lt_SP2NL='tr \040 \012' 11474 lt_NL2SP='tr \015\012 \040\040' 11475 ;; 11476 *) # EBCDIC based system 11477 lt_SP2NL='tr \100 \n' 11478 lt_NL2SP='tr \r\n \100\100' 11479 ;; 11480esac 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11491$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11492if ${lt_cv_to_host_file_cmd+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 case $host in 11496 *-*-mingw* ) 11497 case $build in 11498 *-*-mingw* ) # actually msys 11499 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11500 ;; 11501 *-*-cygwin* ) 11502 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11503 ;; 11504 * ) # otherwise, assume *nix 11505 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11506 ;; 11507 esac 11508 ;; 11509 *-*-cygwin* ) 11510 case $build in 11511 *-*-mingw* ) # actually msys 11512 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11513 ;; 11514 *-*-cygwin* ) 11515 lt_cv_to_host_file_cmd=func_convert_file_noop 11516 ;; 11517 * ) # otherwise, assume *nix 11518 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11519 ;; 11520 esac 11521 ;; 11522 * ) # unhandled hosts (and "normal" native builds) 11523 lt_cv_to_host_file_cmd=func_convert_file_noop 11524 ;; 11525esac 11526 11527fi 11528 11529to_host_file_cmd=$lt_cv_to_host_file_cmd 11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11531$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11532 11533 11534 11535 11536 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11538$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11539if ${lt_cv_to_tool_file_cmd+:} false; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 #assume ordinary cross tools, or native build. 11543lt_cv_to_tool_file_cmd=func_convert_file_noop 11544case $host in 11545 *-*-mingw* ) 11546 case $build in 11547 *-*-mingw* ) # actually msys 11548 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11549 ;; 11550 esac 11551 ;; 11552esac 11553 11554fi 11555 11556to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11558$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11559 11560 11561 11562 11563 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11565$as_echo_n "checking for $LD option to reload object files... " >&6; } 11566if ${lt_cv_ld_reload_flag+:} false; then : 11567 $as_echo_n "(cached) " >&6 11568else 11569 lt_cv_ld_reload_flag='-r' 11570fi 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11572$as_echo "$lt_cv_ld_reload_flag" >&6; } 11573reload_flag=$lt_cv_ld_reload_flag 11574case $reload_flag in 11575"" | " "*) ;; 11576*) reload_flag=" $reload_flag" ;; 11577esac 11578reload_cmds='$LD$reload_flag -o $output$reload_objs' 11579case $host_os in 11580 cygwin* | mingw* | pw32* | cegcc*) 11581 if test "$GCC" != yes; then 11582 reload_cmds=false 11583 fi 11584 ;; 11585 darwin*) 11586 if test "$GCC" = yes; then 11587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11588 else 11589 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11590 fi 11591 ;; 11592esac 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602if test -n "$ac_tool_prefix"; then 11603 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11604set dummy ${ac_tool_prefix}objdump; ac_word=$2 11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11606$as_echo_n "checking for $ac_word... " >&6; } 11607if ${ac_cv_prog_OBJDUMP+:} false; then : 11608 $as_echo_n "(cached) " >&6 11609else 11610 if test -n "$OBJDUMP"; then 11611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11612else 11613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11614for as_dir in $PATH 11615do 11616 IFS=$as_save_IFS 11617 test -z "$as_dir" && as_dir=. 11618 for ac_exec_ext in '' $ac_executable_extensions; do 11619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11620 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11622 break 2 11623 fi 11624done 11625 done 11626IFS=$as_save_IFS 11627 11628fi 11629fi 11630OBJDUMP=$ac_cv_prog_OBJDUMP 11631if test -n "$OBJDUMP"; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11633$as_echo "$OBJDUMP" >&6; } 11634else 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11636$as_echo "no" >&6; } 11637fi 11638 11639 11640fi 11641if test -z "$ac_cv_prog_OBJDUMP"; then 11642 ac_ct_OBJDUMP=$OBJDUMP 11643 # Extract the first word of "objdump", so it can be a program name with args. 11644set dummy objdump; ac_word=$2 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11646$as_echo_n "checking for $ac_word... " >&6; } 11647if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 if test -n "$ac_ct_OBJDUMP"; then 11651 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11652else 11653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11654for as_dir in $PATH 11655do 11656 IFS=$as_save_IFS 11657 test -z "$as_dir" && as_dir=. 11658 for ac_exec_ext in '' $ac_executable_extensions; do 11659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11660 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11662 break 2 11663 fi 11664done 11665 done 11666IFS=$as_save_IFS 11667 11668fi 11669fi 11670ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11671if test -n "$ac_ct_OBJDUMP"; then 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11673$as_echo "$ac_ct_OBJDUMP" >&6; } 11674else 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11676$as_echo "no" >&6; } 11677fi 11678 11679 if test "x$ac_ct_OBJDUMP" = x; then 11680 OBJDUMP="false" 11681 else 11682 case $cross_compiling:$ac_tool_warned in 11683yes:) 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11686ac_tool_warned=yes ;; 11687esac 11688 OBJDUMP=$ac_ct_OBJDUMP 11689 fi 11690else 11691 OBJDUMP="$ac_cv_prog_OBJDUMP" 11692fi 11693 11694test -z "$OBJDUMP" && OBJDUMP=objdump 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11705$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11706if ${lt_cv_deplibs_check_method+:} false; then : 11707 $as_echo_n "(cached) " >&6 11708else 11709 lt_cv_file_magic_cmd='$MAGIC_CMD' 11710lt_cv_file_magic_test_file= 11711lt_cv_deplibs_check_method='unknown' 11712# Need to set the preceding variable on all platforms that support 11713# interlibrary dependencies. 11714# 'none' -- dependencies not supported. 11715# `unknown' -- same as none, but documents that we really don't know. 11716# 'pass_all' -- all dependencies passed with no checks. 11717# 'test_compile' -- check by making test program. 11718# 'file_magic [[regex]]' -- check by looking for files in library path 11719# which responds to the $file_magic_cmd with a given extended regex. 11720# If you have `file' or equivalent on your system and you're not sure 11721# whether `pass_all' will *always* work, you probably want this one. 11722 11723case $host_os in 11724aix[4-9]*) 11725 lt_cv_deplibs_check_method=pass_all 11726 ;; 11727 11728beos*) 11729 lt_cv_deplibs_check_method=pass_all 11730 ;; 11731 11732bsdi[45]*) 11733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11734 lt_cv_file_magic_cmd='/usr/bin/file -L' 11735 lt_cv_file_magic_test_file=/shlib/libc.so 11736 ;; 11737 11738cygwin*) 11739 # func_win32_libid is a shell function defined in ltmain.sh 11740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11741 lt_cv_file_magic_cmd='func_win32_libid' 11742 ;; 11743 11744mingw* | pw32*) 11745 # Base MSYS/MinGW do not provide the 'file' command needed by 11746 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11747 # unless we find 'file', for example because we are cross-compiling. 11748 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11749 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11751 lt_cv_file_magic_cmd='func_win32_libid' 11752 else 11753 # Keep this pattern in sync with the one in func_win32_libid. 11754 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11755 lt_cv_file_magic_cmd='$OBJDUMP -f' 11756 fi 11757 ;; 11758 11759cegcc*) 11760 # use the weaker test based on 'objdump'. See mingw*. 11761 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11762 lt_cv_file_magic_cmd='$OBJDUMP -f' 11763 ;; 11764 11765darwin* | rhapsody*) 11766 lt_cv_deplibs_check_method=pass_all 11767 ;; 11768 11769freebsd* | dragonfly*) 11770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11771 case $host_cpu in 11772 i*86 ) 11773 # Not sure whether the presence of OpenBSD here was a mistake. 11774 # Let's accept both of them until this is cleared up. 11775 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11776 lt_cv_file_magic_cmd=/usr/bin/file 11777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11778 ;; 11779 esac 11780 else 11781 lt_cv_deplibs_check_method=pass_all 11782 fi 11783 ;; 11784 11785gnu*) 11786 lt_cv_deplibs_check_method=pass_all 11787 ;; 11788 11789haiku*) 11790 lt_cv_deplibs_check_method=pass_all 11791 ;; 11792 11793hpux10.20* | hpux11*) 11794 lt_cv_file_magic_cmd=/usr/bin/file 11795 case $host_cpu in 11796 ia64*) 11797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11798 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11799 ;; 11800 hppa*64*) 11801 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]' 11802 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11803 ;; 11804 *) 11805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11806 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11807 ;; 11808 esac 11809 ;; 11810 11811interix[3-9]*) 11812 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11814 ;; 11815 11816irix5* | irix6* | nonstopux*) 11817 case $LD in 11818 *-32|*"-32 ") libmagic=32-bit;; 11819 *-n32|*"-n32 ") libmagic=N32;; 11820 *-64|*"-64 ") libmagic=64-bit;; 11821 *) libmagic=never-match;; 11822 esac 11823 lt_cv_deplibs_check_method=pass_all 11824 ;; 11825 11826# This must be glibc/ELF. 11827linux* | k*bsd*-gnu | kopensolaris*-gnu) 11828 lt_cv_deplibs_check_method=pass_all 11829 ;; 11830 11831netbsd*) 11832 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11834 else 11835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11836 fi 11837 ;; 11838 11839newos6*) 11840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11841 lt_cv_file_magic_cmd=/usr/bin/file 11842 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11843 ;; 11844 11845*nto* | *qnx*) 11846 lt_cv_deplibs_check_method=pass_all 11847 ;; 11848 11849openbsd*) 11850 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11852 else 11853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11854 fi 11855 ;; 11856 11857osf3* | osf4* | osf5*) 11858 lt_cv_deplibs_check_method=pass_all 11859 ;; 11860 11861rdos*) 11862 lt_cv_deplibs_check_method=pass_all 11863 ;; 11864 11865solaris*) 11866 lt_cv_deplibs_check_method=pass_all 11867 ;; 11868 11869sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11870 lt_cv_deplibs_check_method=pass_all 11871 ;; 11872 11873sysv4 | sysv4.3*) 11874 case $host_vendor in 11875 motorola) 11876 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]' 11877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11878 ;; 11879 ncr) 11880 lt_cv_deplibs_check_method=pass_all 11881 ;; 11882 sequent) 11883 lt_cv_file_magic_cmd='/bin/file' 11884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11885 ;; 11886 sni) 11887 lt_cv_file_magic_cmd='/bin/file' 11888 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11889 lt_cv_file_magic_test_file=/lib/libc.so 11890 ;; 11891 siemens) 11892 lt_cv_deplibs_check_method=pass_all 11893 ;; 11894 pc) 11895 lt_cv_deplibs_check_method=pass_all 11896 ;; 11897 esac 11898 ;; 11899 11900tpf*) 11901 lt_cv_deplibs_check_method=pass_all 11902 ;; 11903esac 11904 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11907$as_echo "$lt_cv_deplibs_check_method" >&6; } 11908 11909file_magic_glob= 11910want_nocaseglob=no 11911if test "$build" = "$host"; then 11912 case $host_os in 11913 mingw* | pw32*) 11914 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11915 want_nocaseglob=yes 11916 else 11917 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11918 fi 11919 ;; 11920 esac 11921fi 11922 11923file_magic_cmd=$lt_cv_file_magic_cmd 11924deplibs_check_method=$lt_cv_deplibs_check_method 11925test -z "$deplibs_check_method" && deplibs_check_method=unknown 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948if test -n "$ac_tool_prefix"; then 11949 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11950set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11952$as_echo_n "checking for $ac_word... " >&6; } 11953if ${ac_cv_prog_DLLTOOL+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 if test -n "$DLLTOOL"; then 11957 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11958else 11959as_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11966 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 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 11974fi 11975fi 11976DLLTOOL=$ac_cv_prog_DLLTOOL 11977if test -n "$DLLTOOL"; then 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11979$as_echo "$DLLTOOL" >&6; } 11980else 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11982$as_echo "no" >&6; } 11983fi 11984 11985 11986fi 11987if test -z "$ac_cv_prog_DLLTOOL"; then 11988 ac_ct_DLLTOOL=$DLLTOOL 11989 # Extract the first word of "dlltool", so it can be a program name with args. 11990set dummy dlltool; ac_word=$2 11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11992$as_echo_n "checking for $ac_word... " >&6; } 11993if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 if test -n "$ac_ct_DLLTOOL"; then 11997 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11998else 11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12000for as_dir in $PATH 12001do 12002 IFS=$as_save_IFS 12003 test -z "$as_dir" && as_dir=. 12004 for ac_exec_ext in '' $ac_executable_extensions; do 12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12006 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12008 break 2 12009 fi 12010done 12011 done 12012IFS=$as_save_IFS 12013 12014fi 12015fi 12016ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12017if test -n "$ac_ct_DLLTOOL"; then 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12019$as_echo "$ac_ct_DLLTOOL" >&6; } 12020else 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12022$as_echo "no" >&6; } 12023fi 12024 12025 if test "x$ac_ct_DLLTOOL" = x; then 12026 DLLTOOL="false" 12027 else 12028 case $cross_compiling:$ac_tool_warned in 12029yes:) 12030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12032ac_tool_warned=yes ;; 12033esac 12034 DLLTOOL=$ac_ct_DLLTOOL 12035 fi 12036else 12037 DLLTOOL="$ac_cv_prog_DLLTOOL" 12038fi 12039 12040test -z "$DLLTOOL" && DLLTOOL=dlltool 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12052$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12053if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12054 $as_echo_n "(cached) " >&6 12055else 12056 lt_cv_sharedlib_from_linklib_cmd='unknown' 12057 12058case $host_os in 12059cygwin* | mingw* | pw32* | cegcc*) 12060 # two different shell functions defined in ltmain.sh 12061 # decide which to use based on capabilities of $DLLTOOL 12062 case `$DLLTOOL --help 2>&1` in 12063 *--identify-strict*) 12064 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12065 ;; 12066 *) 12067 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12068 ;; 12069 esac 12070 ;; 12071*) 12072 # fallback: assume linklib IS sharedlib 12073 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12074 ;; 12075esac 12076 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12079$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12080sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12081test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12082 12083 12084 12085 12086 12087 12088 12089if test -n "$ac_tool_prefix"; then 12090 for ac_prog in ar 12091 do 12092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12093set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12095$as_echo_n "checking for $ac_word... " >&6; } 12096if ${ac_cv_prog_AR+:} false; then : 12097 $as_echo_n "(cached) " >&6 12098else 12099 if test -n "$AR"; then 12100 ac_cv_prog_AR="$AR" # Let the user override the test. 12101else 12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12103for as_dir in $PATH 12104do 12105 IFS=$as_save_IFS 12106 test -z "$as_dir" && as_dir=. 12107 for ac_exec_ext in '' $ac_executable_extensions; do 12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12109 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12111 break 2 12112 fi 12113done 12114 done 12115IFS=$as_save_IFS 12116 12117fi 12118fi 12119AR=$ac_cv_prog_AR 12120if test -n "$AR"; then 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12122$as_echo "$AR" >&6; } 12123else 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12125$as_echo "no" >&6; } 12126fi 12127 12128 12129 test -n "$AR" && break 12130 done 12131fi 12132if test -z "$AR"; then 12133 ac_ct_AR=$AR 12134 for ac_prog in ar 12135do 12136 # Extract the first word of "$ac_prog", so it can be a program name with args. 12137set dummy $ac_prog; ac_word=$2 12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12139$as_echo_n "checking for $ac_word... " >&6; } 12140if ${ac_cv_prog_ac_ct_AR+:} false; then : 12141 $as_echo_n "(cached) " >&6 12142else 12143 if test -n "$ac_ct_AR"; then 12144 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12145else 12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12147for as_dir in $PATH 12148do 12149 IFS=$as_save_IFS 12150 test -z "$as_dir" && as_dir=. 12151 for ac_exec_ext in '' $ac_executable_extensions; do 12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12153 ac_cv_prog_ac_ct_AR="$ac_prog" 12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12155 break 2 12156 fi 12157done 12158 done 12159IFS=$as_save_IFS 12160 12161fi 12162fi 12163ac_ct_AR=$ac_cv_prog_ac_ct_AR 12164if test -n "$ac_ct_AR"; then 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12166$as_echo "$ac_ct_AR" >&6; } 12167else 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12169$as_echo "no" >&6; } 12170fi 12171 12172 12173 test -n "$ac_ct_AR" && break 12174done 12175 12176 if test "x$ac_ct_AR" = x; then 12177 AR="false" 12178 else 12179 case $cross_compiling:$ac_tool_warned in 12180yes:) 12181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12183ac_tool_warned=yes ;; 12184esac 12185 AR=$ac_ct_AR 12186 fi 12187fi 12188 12189: ${AR=ar} 12190: ${AR_FLAGS=cru} 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12203$as_echo_n "checking for archiver @FILE support... " >&6; } 12204if ${lt_cv_ar_at_file+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 lt_cv_ar_at_file=no 12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12209/* end confdefs.h. */ 12210 12211int 12212main () 12213{ 12214 12215 ; 12216 return 0; 12217} 12218_ACEOF 12219if ac_fn_c_try_compile "$LINENO"; then : 12220 echo conftest.$ac_objext > conftest.lst 12221 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12223 (eval $lt_ar_try) 2>&5 12224 ac_status=$? 12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12226 test $ac_status = 0; } 12227 if test "$ac_status" -eq 0; then 12228 # Ensure the archiver fails upon bogus file names. 12229 rm -f conftest.$ac_objext libconftest.a 12230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12231 (eval $lt_ar_try) 2>&5 12232 ac_status=$? 12233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12234 test $ac_status = 0; } 12235 if test "$ac_status" -ne 0; then 12236 lt_cv_ar_at_file=@ 12237 fi 12238 fi 12239 rm -f conftest.* libconftest.a 12240 12241fi 12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12243 12244fi 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12246$as_echo "$lt_cv_ar_at_file" >&6; } 12247 12248if test "x$lt_cv_ar_at_file" = xno; then 12249 archiver_list_spec= 12250else 12251 archiver_list_spec=$lt_cv_ar_at_file 12252fi 12253 12254 12255 12256 12257 12258 12259 12260if test -n "$ac_tool_prefix"; then 12261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12262set dummy ${ac_tool_prefix}strip; ac_word=$2 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12264$as_echo_n "checking for $ac_word... " >&6; } 12265if ${ac_cv_prog_STRIP+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267else 12268 if test -n "$STRIP"; then 12269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12270else 12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12272for as_dir in $PATH 12273do 12274 IFS=$as_save_IFS 12275 test -z "$as_dir" && as_dir=. 12276 for ac_exec_ext in '' $ac_executable_extensions; do 12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12278 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12280 break 2 12281 fi 12282done 12283 done 12284IFS=$as_save_IFS 12285 12286fi 12287fi 12288STRIP=$ac_cv_prog_STRIP 12289if test -n "$STRIP"; then 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12291$as_echo "$STRIP" >&6; } 12292else 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12294$as_echo "no" >&6; } 12295fi 12296 12297 12298fi 12299if test -z "$ac_cv_prog_STRIP"; then 12300 ac_ct_STRIP=$STRIP 12301 # Extract the first word of "strip", so it can be a program name with args. 12302set dummy strip; ac_word=$2 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12304$as_echo_n "checking for $ac_word... " >&6; } 12305if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12306 $as_echo_n "(cached) " >&6 12307else 12308 if test -n "$ac_ct_STRIP"; then 12309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12310else 12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12312for as_dir in $PATH 12313do 12314 IFS=$as_save_IFS 12315 test -z "$as_dir" && as_dir=. 12316 for ac_exec_ext in '' $ac_executable_extensions; do 12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12318 ac_cv_prog_ac_ct_STRIP="strip" 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12320 break 2 12321 fi 12322done 12323 done 12324IFS=$as_save_IFS 12325 12326fi 12327fi 12328ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12329if test -n "$ac_ct_STRIP"; then 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12331$as_echo "$ac_ct_STRIP" >&6; } 12332else 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12334$as_echo "no" >&6; } 12335fi 12336 12337 if test "x$ac_ct_STRIP" = x; then 12338 STRIP=":" 12339 else 12340 case $cross_compiling:$ac_tool_warned in 12341yes:) 12342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12344ac_tool_warned=yes ;; 12345esac 12346 STRIP=$ac_ct_STRIP 12347 fi 12348else 12349 STRIP="$ac_cv_prog_STRIP" 12350fi 12351 12352test -z "$STRIP" && STRIP=: 12353 12354 12355 12356 12357 12358 12359if test -n "$ac_tool_prefix"; then 12360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12361set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12363$as_echo_n "checking for $ac_word... " >&6; } 12364if ${ac_cv_prog_RANLIB+:} false; then : 12365 $as_echo_n "(cached) " >&6 12366else 12367 if test -n "$RANLIB"; then 12368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12369else 12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12371for as_dir in $PATH 12372do 12373 IFS=$as_save_IFS 12374 test -z "$as_dir" && as_dir=. 12375 for ac_exec_ext in '' $ac_executable_extensions; do 12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12379 break 2 12380 fi 12381done 12382 done 12383IFS=$as_save_IFS 12384 12385fi 12386fi 12387RANLIB=$ac_cv_prog_RANLIB 12388if test -n "$RANLIB"; then 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12390$as_echo "$RANLIB" >&6; } 12391else 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12393$as_echo "no" >&6; } 12394fi 12395 12396 12397fi 12398if test -z "$ac_cv_prog_RANLIB"; then 12399 ac_ct_RANLIB=$RANLIB 12400 # Extract the first word of "ranlib", so it can be a program name with args. 12401set dummy ranlib; ac_word=$2 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12403$as_echo_n "checking for $ac_word... " >&6; } 12404if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 if test -n "$ac_ct_RANLIB"; then 12408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12409else 12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12411for as_dir in $PATH 12412do 12413 IFS=$as_save_IFS 12414 test -z "$as_dir" && as_dir=. 12415 for ac_exec_ext in '' $ac_executable_extensions; do 12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12417 ac_cv_prog_ac_ct_RANLIB="ranlib" 12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12419 break 2 12420 fi 12421done 12422 done 12423IFS=$as_save_IFS 12424 12425fi 12426fi 12427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12428if test -n "$ac_ct_RANLIB"; then 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12430$as_echo "$ac_ct_RANLIB" >&6; } 12431else 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12433$as_echo "no" >&6; } 12434fi 12435 12436 if test "x$ac_ct_RANLIB" = x; then 12437 RANLIB=":" 12438 else 12439 case $cross_compiling:$ac_tool_warned in 12440yes:) 12441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12443ac_tool_warned=yes ;; 12444esac 12445 RANLIB=$ac_ct_RANLIB 12446 fi 12447else 12448 RANLIB="$ac_cv_prog_RANLIB" 12449fi 12450 12451test -z "$RANLIB" && RANLIB=: 12452 12453 12454 12455 12456 12457 12458# Determine commands to create old-style static archives. 12459old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12460old_postinstall_cmds='chmod 644 $oldlib' 12461old_postuninstall_cmds= 12462 12463if test -n "$RANLIB"; then 12464 case $host_os in 12465 openbsd*) 12466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12467 ;; 12468 *) 12469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12470 ;; 12471 esac 12472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12473fi 12474 12475case $host_os in 12476 darwin*) 12477 lock_old_archive_extraction=yes ;; 12478 *) 12479 lock_old_archive_extraction=no ;; 12480esac 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520# If no C compiler was specified, use CC. 12521LTCC=${LTCC-"$CC"} 12522 12523# If no C compiler flags were specified, use CFLAGS. 12524LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12525 12526# Allow CC to be a program name with arguments. 12527compiler=$CC 12528 12529 12530# Check for command to grab the raw symbol name followed by C symbol from nm. 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12532$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12533if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 12537# These are sane defaults that work on at least a few old systems. 12538# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12539 12540# Character class describing NM global symbol codes. 12541symcode='[BCDEGRST]' 12542 12543# Regexp to match symbols that can be accessed directly from C. 12544sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12545 12546# Define system-specific variables. 12547case $host_os in 12548aix*) 12549 symcode='[BCDT]' 12550 ;; 12551cygwin* | mingw* | pw32* | cegcc*) 12552 symcode='[ABCDGISTW]' 12553 ;; 12554hpux*) 12555 if test "$host_cpu" = ia64; then 12556 symcode='[ABCDEGRST]' 12557 fi 12558 ;; 12559irix* | nonstopux*) 12560 symcode='[BCDEGRST]' 12561 ;; 12562osf*) 12563 symcode='[BCDEGQRST]' 12564 ;; 12565solaris*) 12566 symcode='[BDRT]' 12567 ;; 12568sco3.2v5*) 12569 symcode='[DT]' 12570 ;; 12571sysv4.2uw2*) 12572 symcode='[DT]' 12573 ;; 12574sysv5* | sco5v6* | unixware* | OpenUNIX*) 12575 symcode='[ABDT]' 12576 ;; 12577sysv4) 12578 symcode='[DFNSTU]' 12579 ;; 12580esac 12581 12582# If we're using GNU nm, then use its standard symbol codes. 12583case `$NM -V 2>&1` in 12584*GNU* | *'with BFD'*) 12585 symcode='[ABCDGIRSTW]' ;; 12586esac 12587 12588# Transform an extracted symbol line into a proper C declaration. 12589# Some systems (esp. on ia64) link data and code symbols differently, 12590# so use this general approach. 12591lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12592 12593# Transform an extracted symbol line into symbol name and symbol address 12594lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12595lt_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'" 12596 12597# Handle CRLF in mingw tool chain 12598opt_cr= 12599case $build_os in 12600mingw*) 12601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12602 ;; 12603esac 12604 12605# Try without a prefix underscore, then with it. 12606for ac_symprfx in "" "_"; do 12607 12608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12609 symxfrm="\\1 $ac_symprfx\\2 \\2" 12610 12611 # Write the raw and C identifiers. 12612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12613 # Fake it for dumpbin and say T for any non-static function 12614 # and D for any global variable. 12615 # Also find C++ and __fastcall symbols from MSVC++, 12616 # which start with @ or ?. 12617 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12618" {last_section=section; section=\$ 3};"\ 12619" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12620" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12621" \$ 0!~/External *\|/{next};"\ 12622" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12623" {if(hide[section]) next};"\ 12624" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12625" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12626" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12627" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12628" ' prfx=^$ac_symprfx" 12629 else 12630 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12631 fi 12632 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12633 12634 # Check to see that the pipe works correctly. 12635 pipe_works=no 12636 12637 rm -f conftest* 12638 cat > conftest.$ac_ext <<_LT_EOF 12639#ifdef __cplusplus 12640extern "C" { 12641#endif 12642char nm_test_var; 12643void nm_test_func(void); 12644void nm_test_func(void){} 12645#ifdef __cplusplus 12646} 12647#endif 12648int main(){nm_test_var='a';nm_test_func();return(0);} 12649_LT_EOF 12650 12651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12652 (eval $ac_compile) 2>&5 12653 ac_status=$? 12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12655 test $ac_status = 0; }; then 12656 # Now try to grab the symbols. 12657 nlist=conftest.nm 12658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12659 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12660 ac_status=$? 12661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12662 test $ac_status = 0; } && test -s "$nlist"; then 12663 # Try sorting and uniquifying the output. 12664 if sort "$nlist" | uniq > "$nlist"T; then 12665 mv -f "$nlist"T "$nlist" 12666 else 12667 rm -f "$nlist"T 12668 fi 12669 12670 # Make sure that we snagged all the symbols we need. 12671 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12672 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12673 cat <<_LT_EOF > conftest.$ac_ext 12674/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12675#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12676/* DATA imports from DLLs on WIN32 con't be const, because runtime 12677 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12678# define LT_DLSYM_CONST 12679#elif defined(__osf__) 12680/* This system does not cope well with relocations in const data. */ 12681# define LT_DLSYM_CONST 12682#else 12683# define LT_DLSYM_CONST const 12684#endif 12685 12686#ifdef __cplusplus 12687extern "C" { 12688#endif 12689 12690_LT_EOF 12691 # Now generate the symbol file. 12692 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12693 12694 cat <<_LT_EOF >> conftest.$ac_ext 12695 12696/* The mapping between symbol names and symbols. */ 12697LT_DLSYM_CONST struct { 12698 const char *name; 12699 void *address; 12700} 12701lt__PROGRAM__LTX_preloaded_symbols[] = 12702{ 12703 { "@PROGRAM@", (void *) 0 }, 12704_LT_EOF 12705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12706 cat <<\_LT_EOF >> conftest.$ac_ext 12707 {0, (void *) 0} 12708}; 12709 12710/* This works around a problem in FreeBSD linker */ 12711#ifdef FREEBSD_WORKAROUND 12712static const void *lt_preloaded_setup() { 12713 return lt__PROGRAM__LTX_preloaded_symbols; 12714} 12715#endif 12716 12717#ifdef __cplusplus 12718} 12719#endif 12720_LT_EOF 12721 # Now try linking the two files. 12722 mv conftest.$ac_objext conftstm.$ac_objext 12723 lt_globsym_save_LIBS=$LIBS 12724 lt_globsym_save_CFLAGS=$CFLAGS 12725 LIBS="conftstm.$ac_objext" 12726 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12728 (eval $ac_link) 2>&5 12729 ac_status=$? 12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12731 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12732 pipe_works=yes 12733 fi 12734 LIBS=$lt_globsym_save_LIBS 12735 CFLAGS=$lt_globsym_save_CFLAGS 12736 else 12737 echo "cannot find nm_test_func in $nlist" >&5 12738 fi 12739 else 12740 echo "cannot find nm_test_var in $nlist" >&5 12741 fi 12742 else 12743 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12744 fi 12745 else 12746 echo "$progname: failed program was:" >&5 12747 cat conftest.$ac_ext >&5 12748 fi 12749 rm -rf conftest* conftst* 12750 12751 # Do not use the global_symbol_pipe unless it works. 12752 if test "$pipe_works" = yes; then 12753 break 12754 else 12755 lt_cv_sys_global_symbol_pipe= 12756 fi 12757done 12758 12759fi 12760 12761if test -z "$lt_cv_sys_global_symbol_pipe"; then 12762 lt_cv_sys_global_symbol_to_cdecl= 12763fi 12764if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12766$as_echo "failed" >&6; } 12767else 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12769$as_echo "ok" >&6; } 12770fi 12771 12772# Response file support. 12773if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12774 nm_file_list_spec='@' 12775elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12776 nm_file_list_spec='@' 12777fi 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12806$as_echo_n "checking for sysroot... " >&6; } 12807 12808# Check whether --with-sysroot was given. 12809if test "${with_sysroot+set}" = set; then : 12810 withval=$with_sysroot; 12811else 12812 with_sysroot=no 12813fi 12814 12815 12816lt_sysroot= 12817case ${with_sysroot} in #( 12818 yes) 12819 if test "$GCC" = yes; then 12820 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12821 fi 12822 ;; #( 12823 /*) 12824 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12825 ;; #( 12826 no|'') 12827 ;; #( 12828 *) 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12830$as_echo "${with_sysroot}" >&6; } 12831 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12832 ;; 12833esac 12834 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12836$as_echo "${lt_sysroot:-no}" >&6; } 12837 12838 12839 12840 12841 12842# Check whether --enable-libtool-lock was given. 12843if test "${enable_libtool_lock+set}" = set; then : 12844 enableval=$enable_libtool_lock; 12845fi 12846 12847test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12848 12849# Some flags need to be propagated to the compiler or linker for good 12850# libtool support. 12851case $host in 12852ia64-*-hpux*) 12853 # Find out which ABI we are using. 12854 echo 'int i;' > conftest.$ac_ext 12855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12856 (eval $ac_compile) 2>&5 12857 ac_status=$? 12858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12859 test $ac_status = 0; }; then 12860 case `/usr/bin/file conftest.$ac_objext` in 12861 *ELF-32*) 12862 HPUX_IA64_MODE="32" 12863 ;; 12864 *ELF-64*) 12865 HPUX_IA64_MODE="64" 12866 ;; 12867 esac 12868 fi 12869 rm -rf conftest* 12870 ;; 12871*-*-irix6*) 12872 # Find out which ABI we are using. 12873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12875 (eval $ac_compile) 2>&5 12876 ac_status=$? 12877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12878 test $ac_status = 0; }; then 12879 if test "$lt_cv_prog_gnu_ld" = yes; then 12880 case `/usr/bin/file conftest.$ac_objext` in 12881 *32-bit*) 12882 LD="${LD-ld} -melf32bsmip" 12883 ;; 12884 *N32*) 12885 LD="${LD-ld} -melf32bmipn32" 12886 ;; 12887 *64-bit*) 12888 LD="${LD-ld} -melf64bmip" 12889 ;; 12890 esac 12891 else 12892 case `/usr/bin/file conftest.$ac_objext` in 12893 *32-bit*) 12894 LD="${LD-ld} -32" 12895 ;; 12896 *N32*) 12897 LD="${LD-ld} -n32" 12898 ;; 12899 *64-bit*) 12900 LD="${LD-ld} -64" 12901 ;; 12902 esac 12903 fi 12904 fi 12905 rm -rf conftest* 12906 ;; 12907 12908x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12909s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12910 # Find out which ABI we are using. 12911 echo 'int i;' > conftest.$ac_ext 12912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12913 (eval $ac_compile) 2>&5 12914 ac_status=$? 12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12916 test $ac_status = 0; }; then 12917 case `/usr/bin/file conftest.o` in 12918 *32-bit*) 12919 case $host in 12920 x86_64-*kfreebsd*-gnu) 12921 LD="${LD-ld} -m elf_i386_fbsd" 12922 ;; 12923 x86_64-*linux*) 12924 LD="${LD-ld} -m elf_i386" 12925 ;; 12926 ppc64-*linux*|powerpc64-*linux*) 12927 LD="${LD-ld} -m elf32ppclinux" 12928 ;; 12929 s390x-*linux*) 12930 LD="${LD-ld} -m elf_s390" 12931 ;; 12932 sparc64-*linux*) 12933 LD="${LD-ld} -m elf32_sparc" 12934 ;; 12935 esac 12936 ;; 12937 *64-bit*) 12938 case $host in 12939 x86_64-*kfreebsd*-gnu) 12940 LD="${LD-ld} -m elf_x86_64_fbsd" 12941 ;; 12942 x86_64-*linux*) 12943 LD="${LD-ld} -m elf_x86_64" 12944 ;; 12945 ppc*-*linux*|powerpc*-*linux*) 12946 LD="${LD-ld} -m elf64ppc" 12947 ;; 12948 s390*-*linux*|s390*-*tpf*) 12949 LD="${LD-ld} -m elf64_s390" 12950 ;; 12951 sparc*-*linux*) 12952 LD="${LD-ld} -m elf64_sparc" 12953 ;; 12954 esac 12955 ;; 12956 esac 12957 fi 12958 rm -rf conftest* 12959 ;; 12960 12961*-*-sco3.2v5*) 12962 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12963 SAVE_CFLAGS="$CFLAGS" 12964 CFLAGS="$CFLAGS -belf" 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12966$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12967if ${lt_cv_cc_needs_belf+:} false; then : 12968 $as_echo_n "(cached) " >&6 12969else 12970 ac_ext=c 12971ac_cpp='$CPP $CPPFLAGS' 12972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12974ac_compiler_gnu=$ac_cv_c_compiler_gnu 12975 12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12977/* end confdefs.h. */ 12978 12979int 12980main () 12981{ 12982 12983 ; 12984 return 0; 12985} 12986_ACEOF 12987if ac_fn_c_try_link "$LINENO"; then : 12988 lt_cv_cc_needs_belf=yes 12989else 12990 lt_cv_cc_needs_belf=no 12991fi 12992rm -f core conftest.err conftest.$ac_objext \ 12993 conftest$ac_exeext conftest.$ac_ext 12994 ac_ext=c 12995ac_cpp='$CPP $CPPFLAGS' 12996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12998ac_compiler_gnu=$ac_cv_c_compiler_gnu 12999 13000fi 13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13002$as_echo "$lt_cv_cc_needs_belf" >&6; } 13003 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13004 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13005 CFLAGS="$SAVE_CFLAGS" 13006 fi 13007 ;; 13008*-*solaris*) 13009 # Find out which ABI we are using. 13010 echo 'int i;' > conftest.$ac_ext 13011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13012 (eval $ac_compile) 2>&5 13013 ac_status=$? 13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13015 test $ac_status = 0; }; then 13016 case `/usr/bin/file conftest.o` in 13017 *64-bit*) 13018 case $lt_cv_prog_gnu_ld in 13019 yes*) 13020 case $host in 13021 i?86-*-solaris*) 13022 LD="${LD-ld} -m elf_x86_64" 13023 ;; 13024 sparc*-*-solaris*) 13025 LD="${LD-ld} -m elf64_sparc" 13026 ;; 13027 esac 13028 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13029 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13030 LD="${LD-ld}_sol2" 13031 fi 13032 ;; 13033 *) 13034 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13035 LD="${LD-ld} -64" 13036 fi 13037 ;; 13038 esac 13039 ;; 13040 esac 13041 fi 13042 rm -rf conftest* 13043 ;; 13044esac 13045 13046need_locks="$enable_libtool_lock" 13047 13048if test -n "$ac_tool_prefix"; then 13049 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13050set dummy ${ac_tool_prefix}mt; ac_word=$2 13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13052$as_echo_n "checking for $ac_word... " >&6; } 13053if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055else 13056 if test -n "$MANIFEST_TOOL"; then 13057 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13058else 13059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13060for as_dir in $PATH 13061do 13062 IFS=$as_save_IFS 13063 test -z "$as_dir" && as_dir=. 13064 for ac_exec_ext in '' $ac_executable_extensions; do 13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13066 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13068 break 2 13069 fi 13070done 13071 done 13072IFS=$as_save_IFS 13073 13074fi 13075fi 13076MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13077if test -n "$MANIFEST_TOOL"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13079$as_echo "$MANIFEST_TOOL" >&6; } 13080else 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082$as_echo "no" >&6; } 13083fi 13084 13085 13086fi 13087if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13088 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13089 # Extract the first word of "mt", so it can be a program name with args. 13090set dummy mt; ac_word=$2 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13092$as_echo_n "checking for $ac_word... " >&6; } 13093if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13094 $as_echo_n "(cached) " >&6 13095else 13096 if test -n "$ac_ct_MANIFEST_TOOL"; then 13097 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13098else 13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13100for as_dir in $PATH 13101do 13102 IFS=$as_save_IFS 13103 test -z "$as_dir" && as_dir=. 13104 for ac_exec_ext in '' $ac_executable_extensions; do 13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13106 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13108 break 2 13109 fi 13110done 13111 done 13112IFS=$as_save_IFS 13113 13114fi 13115fi 13116ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13117if test -n "$ac_ct_MANIFEST_TOOL"; then 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13119$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13120else 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13122$as_echo "no" >&6; } 13123fi 13124 13125 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13126 MANIFEST_TOOL=":" 13127 else 13128 case $cross_compiling:$ac_tool_warned in 13129yes:) 13130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13132ac_tool_warned=yes ;; 13133esac 13134 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13135 fi 13136else 13137 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13138fi 13139 13140test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13142$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13143if ${lt_cv_path_mainfest_tool+:} false; then : 13144 $as_echo_n "(cached) " >&6 13145else 13146 lt_cv_path_mainfest_tool=no 13147 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13148 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13149 cat conftest.err >&5 13150 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13151 lt_cv_path_mainfest_tool=yes 13152 fi 13153 rm -f conftest* 13154fi 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13156$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13157if test "x$lt_cv_path_mainfest_tool" != xyes; then 13158 MANIFEST_TOOL=: 13159fi 13160 13161 13162 13163 13164 13165 13166 case $host_os in 13167 rhapsody* | darwin*) 13168 if test -n "$ac_tool_prefix"; then 13169 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13170set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13172$as_echo_n "checking for $ac_word... " >&6; } 13173if ${ac_cv_prog_DSYMUTIL+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175else 13176 if test -n "$DSYMUTIL"; then 13177 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13178else 13179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13180for as_dir in $PATH 13181do 13182 IFS=$as_save_IFS 13183 test -z "$as_dir" && as_dir=. 13184 for ac_exec_ext in '' $ac_executable_extensions; do 13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13186 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13188 break 2 13189 fi 13190done 13191 done 13192IFS=$as_save_IFS 13193 13194fi 13195fi 13196DSYMUTIL=$ac_cv_prog_DSYMUTIL 13197if test -n "$DSYMUTIL"; then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13199$as_echo "$DSYMUTIL" >&6; } 13200else 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13202$as_echo "no" >&6; } 13203fi 13204 13205 13206fi 13207if test -z "$ac_cv_prog_DSYMUTIL"; then 13208 ac_ct_DSYMUTIL=$DSYMUTIL 13209 # Extract the first word of "dsymutil", so it can be a program name with args. 13210set dummy dsymutil; ac_word=$2 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13212$as_echo_n "checking for $ac_word... " >&6; } 13213if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13214 $as_echo_n "(cached) " >&6 13215else 13216 if test -n "$ac_ct_DSYMUTIL"; then 13217 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13218else 13219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13220for as_dir in $PATH 13221do 13222 IFS=$as_save_IFS 13223 test -z "$as_dir" && as_dir=. 13224 for ac_exec_ext in '' $ac_executable_extensions; do 13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13226 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13228 break 2 13229 fi 13230done 13231 done 13232IFS=$as_save_IFS 13233 13234fi 13235fi 13236ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13237if test -n "$ac_ct_DSYMUTIL"; then 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13239$as_echo "$ac_ct_DSYMUTIL" >&6; } 13240else 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13242$as_echo "no" >&6; } 13243fi 13244 13245 if test "x$ac_ct_DSYMUTIL" = x; then 13246 DSYMUTIL=":" 13247 else 13248 case $cross_compiling:$ac_tool_warned in 13249yes:) 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13252ac_tool_warned=yes ;; 13253esac 13254 DSYMUTIL=$ac_ct_DSYMUTIL 13255 fi 13256else 13257 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13258fi 13259 13260 if test -n "$ac_tool_prefix"; then 13261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13262set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13264$as_echo_n "checking for $ac_word... " >&6; } 13265if ${ac_cv_prog_NMEDIT+:} false; then : 13266 $as_echo_n "(cached) " >&6 13267else 13268 if test -n "$NMEDIT"; then 13269 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13270else 13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13272for as_dir in $PATH 13273do 13274 IFS=$as_save_IFS 13275 test -z "$as_dir" && as_dir=. 13276 for ac_exec_ext in '' $ac_executable_extensions; do 13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13278 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13280 break 2 13281 fi 13282done 13283 done 13284IFS=$as_save_IFS 13285 13286fi 13287fi 13288NMEDIT=$ac_cv_prog_NMEDIT 13289if test -n "$NMEDIT"; then 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13291$as_echo "$NMEDIT" >&6; } 13292else 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13294$as_echo "no" >&6; } 13295fi 13296 13297 13298fi 13299if test -z "$ac_cv_prog_NMEDIT"; then 13300 ac_ct_NMEDIT=$NMEDIT 13301 # Extract the first word of "nmedit", so it can be a program name with args. 13302set dummy nmedit; ac_word=$2 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13304$as_echo_n "checking for $ac_word... " >&6; } 13305if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 if test -n "$ac_ct_NMEDIT"; then 13309 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13310else 13311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13312for as_dir in $PATH 13313do 13314 IFS=$as_save_IFS 13315 test -z "$as_dir" && as_dir=. 13316 for ac_exec_ext in '' $ac_executable_extensions; do 13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13318 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13320 break 2 13321 fi 13322done 13323 done 13324IFS=$as_save_IFS 13325 13326fi 13327fi 13328ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13329if test -n "$ac_ct_NMEDIT"; then 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13331$as_echo "$ac_ct_NMEDIT" >&6; } 13332else 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13334$as_echo "no" >&6; } 13335fi 13336 13337 if test "x$ac_ct_NMEDIT" = x; then 13338 NMEDIT=":" 13339 else 13340 case $cross_compiling:$ac_tool_warned in 13341yes:) 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13344ac_tool_warned=yes ;; 13345esac 13346 NMEDIT=$ac_ct_NMEDIT 13347 fi 13348else 13349 NMEDIT="$ac_cv_prog_NMEDIT" 13350fi 13351 13352 if test -n "$ac_tool_prefix"; then 13353 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13354set dummy ${ac_tool_prefix}lipo; ac_word=$2 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13356$as_echo_n "checking for $ac_word... " >&6; } 13357if ${ac_cv_prog_LIPO+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359else 13360 if test -n "$LIPO"; then 13361 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13362else 13363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13364for as_dir in $PATH 13365do 13366 IFS=$as_save_IFS 13367 test -z "$as_dir" && as_dir=. 13368 for ac_exec_ext in '' $ac_executable_extensions; do 13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13370 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13372 break 2 13373 fi 13374done 13375 done 13376IFS=$as_save_IFS 13377 13378fi 13379fi 13380LIPO=$ac_cv_prog_LIPO 13381if test -n "$LIPO"; then 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13383$as_echo "$LIPO" >&6; } 13384else 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13386$as_echo "no" >&6; } 13387fi 13388 13389 13390fi 13391if test -z "$ac_cv_prog_LIPO"; then 13392 ac_ct_LIPO=$LIPO 13393 # Extract the first word of "lipo", so it can be a program name with args. 13394set dummy lipo; ac_word=$2 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13396$as_echo_n "checking for $ac_word... " >&6; } 13397if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13398 $as_echo_n "(cached) " >&6 13399else 13400 if test -n "$ac_ct_LIPO"; then 13401 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13402else 13403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13404for as_dir in $PATH 13405do 13406 IFS=$as_save_IFS 13407 test -z "$as_dir" && as_dir=. 13408 for ac_exec_ext in '' $ac_executable_extensions; do 13409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13410 ac_cv_prog_ac_ct_LIPO="lipo" 13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13412 break 2 13413 fi 13414done 13415 done 13416IFS=$as_save_IFS 13417 13418fi 13419fi 13420ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13421if test -n "$ac_ct_LIPO"; then 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13423$as_echo "$ac_ct_LIPO" >&6; } 13424else 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13426$as_echo "no" >&6; } 13427fi 13428 13429 if test "x$ac_ct_LIPO" = x; then 13430 LIPO=":" 13431 else 13432 case $cross_compiling:$ac_tool_warned in 13433yes:) 13434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13436ac_tool_warned=yes ;; 13437esac 13438 LIPO=$ac_ct_LIPO 13439 fi 13440else 13441 LIPO="$ac_cv_prog_LIPO" 13442fi 13443 13444 if test -n "$ac_tool_prefix"; then 13445 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13446set dummy ${ac_tool_prefix}otool; ac_word=$2 13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13448$as_echo_n "checking for $ac_word... " >&6; } 13449if ${ac_cv_prog_OTOOL+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451else 13452 if test -n "$OTOOL"; then 13453 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13454else 13455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13456for as_dir in $PATH 13457do 13458 IFS=$as_save_IFS 13459 test -z "$as_dir" && as_dir=. 13460 for ac_exec_ext in '' $ac_executable_extensions; do 13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13462 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13464 break 2 13465 fi 13466done 13467 done 13468IFS=$as_save_IFS 13469 13470fi 13471fi 13472OTOOL=$ac_cv_prog_OTOOL 13473if test -n "$OTOOL"; then 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13475$as_echo "$OTOOL" >&6; } 13476else 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13478$as_echo "no" >&6; } 13479fi 13480 13481 13482fi 13483if test -z "$ac_cv_prog_OTOOL"; then 13484 ac_ct_OTOOL=$OTOOL 13485 # Extract the first word of "otool", so it can be a program name with args. 13486set dummy otool; ac_word=$2 13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13488$as_echo_n "checking for $ac_word... " >&6; } 13489if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13490 $as_echo_n "(cached) " >&6 13491else 13492 if test -n "$ac_ct_OTOOL"; then 13493 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13494else 13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13496for as_dir in $PATH 13497do 13498 IFS=$as_save_IFS 13499 test -z "$as_dir" && as_dir=. 13500 for ac_exec_ext in '' $ac_executable_extensions; do 13501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13502 ac_cv_prog_ac_ct_OTOOL="otool" 13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13504 break 2 13505 fi 13506done 13507 done 13508IFS=$as_save_IFS 13509 13510fi 13511fi 13512ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13513if test -n "$ac_ct_OTOOL"; then 13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13515$as_echo "$ac_ct_OTOOL" >&6; } 13516else 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13518$as_echo "no" >&6; } 13519fi 13520 13521 if test "x$ac_ct_OTOOL" = x; then 13522 OTOOL=":" 13523 else 13524 case $cross_compiling:$ac_tool_warned in 13525yes:) 13526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13528ac_tool_warned=yes ;; 13529esac 13530 OTOOL=$ac_ct_OTOOL 13531 fi 13532else 13533 OTOOL="$ac_cv_prog_OTOOL" 13534fi 13535 13536 if test -n "$ac_tool_prefix"; then 13537 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13538set dummy ${ac_tool_prefix}otool64; ac_word=$2 13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13540$as_echo_n "checking for $ac_word... " >&6; } 13541if ${ac_cv_prog_OTOOL64+:} false; then : 13542 $as_echo_n "(cached) " >&6 13543else 13544 if test -n "$OTOOL64"; then 13545 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13546else 13547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13548for as_dir in $PATH 13549do 13550 IFS=$as_save_IFS 13551 test -z "$as_dir" && as_dir=. 13552 for ac_exec_ext in '' $ac_executable_extensions; do 13553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13554 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13556 break 2 13557 fi 13558done 13559 done 13560IFS=$as_save_IFS 13561 13562fi 13563fi 13564OTOOL64=$ac_cv_prog_OTOOL64 13565if test -n "$OTOOL64"; then 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13567$as_echo "$OTOOL64" >&6; } 13568else 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13570$as_echo "no" >&6; } 13571fi 13572 13573 13574fi 13575if test -z "$ac_cv_prog_OTOOL64"; then 13576 ac_ct_OTOOL64=$OTOOL64 13577 # Extract the first word of "otool64", so it can be a program name with args. 13578set dummy otool64; ac_word=$2 13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13580$as_echo_n "checking for $ac_word... " >&6; } 13581if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13582 $as_echo_n "(cached) " >&6 13583else 13584 if test -n "$ac_ct_OTOOL64"; then 13585 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13586else 13587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13588for as_dir in $PATH 13589do 13590 IFS=$as_save_IFS 13591 test -z "$as_dir" && as_dir=. 13592 for ac_exec_ext in '' $ac_executable_extensions; do 13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13594 ac_cv_prog_ac_ct_OTOOL64="otool64" 13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13596 break 2 13597 fi 13598done 13599 done 13600IFS=$as_save_IFS 13601 13602fi 13603fi 13604ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13605if test -n "$ac_ct_OTOOL64"; then 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13607$as_echo "$ac_ct_OTOOL64" >&6; } 13608else 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13610$as_echo "no" >&6; } 13611fi 13612 13613 if test "x$ac_ct_OTOOL64" = x; then 13614 OTOOL64=":" 13615 else 13616 case $cross_compiling:$ac_tool_warned in 13617yes:) 13618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13620ac_tool_warned=yes ;; 13621esac 13622 OTOOL64=$ac_ct_OTOOL64 13623 fi 13624else 13625 OTOOL64="$ac_cv_prog_OTOOL64" 13626fi 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13655$as_echo_n "checking for -single_module linker flag... " >&6; } 13656if ${lt_cv_apple_cc_single_mod+:} false; then : 13657 $as_echo_n "(cached) " >&6 13658else 13659 lt_cv_apple_cc_single_mod=no 13660 if test -z "${LT_MULTI_MODULE}"; then 13661 # By default we will add the -single_module flag. You can override 13662 # by either setting the environment variable LT_MULTI_MODULE 13663 # non-empty at configure time, or by adding -multi_module to the 13664 # link flags. 13665 rm -rf libconftest.dylib* 13666 echo "int foo(void){return 1;}" > conftest.c 13667 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13668-dynamiclib -Wl,-single_module conftest.c" >&5 13669 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13670 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13671 _lt_result=$? 13672 # If there is a non-empty error log, and "single_module" 13673 # appears in it, assume the flag caused a linker warning 13674 if test -s conftest.err && $GREP single_module conftest.err; then 13675 cat conftest.err >&5 13676 # Otherwise, if the output was created with a 0 exit code from 13677 # the compiler, it worked. 13678 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13679 lt_cv_apple_cc_single_mod=yes 13680 else 13681 cat conftest.err >&5 13682 fi 13683 rm -rf libconftest.dylib* 13684 rm -f conftest.* 13685 fi 13686fi 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13688$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13689 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13691$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13692if ${lt_cv_ld_exported_symbols_list+:} false; then : 13693 $as_echo_n "(cached) " >&6 13694else 13695 lt_cv_ld_exported_symbols_list=no 13696 save_LDFLAGS=$LDFLAGS 13697 echo "_main" > conftest.sym 13698 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701 13702int 13703main () 13704{ 13705 13706 ; 13707 return 0; 13708} 13709_ACEOF 13710if ac_fn_c_try_link "$LINENO"; then : 13711 lt_cv_ld_exported_symbols_list=yes 13712else 13713 lt_cv_ld_exported_symbols_list=no 13714fi 13715rm -f core conftest.err conftest.$ac_objext \ 13716 conftest$ac_exeext conftest.$ac_ext 13717 LDFLAGS="$save_LDFLAGS" 13718 13719fi 13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13721$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13722 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13724$as_echo_n "checking for -force_load linker flag... " >&6; } 13725if ${lt_cv_ld_force_load+:} false; then : 13726 $as_echo_n "(cached) " >&6 13727else 13728 lt_cv_ld_force_load=no 13729 cat > conftest.c << _LT_EOF 13730int forced_loaded() { return 2;} 13731_LT_EOF 13732 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13733 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13734 echo "$AR cru libconftest.a conftest.o" >&5 13735 $AR cru libconftest.a conftest.o 2>&5 13736 echo "$RANLIB libconftest.a" >&5 13737 $RANLIB libconftest.a 2>&5 13738 cat > conftest.c << _LT_EOF 13739int main() { return 0;} 13740_LT_EOF 13741 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13742 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13743 _lt_result=$? 13744 if test -s conftest.err && $GREP force_load conftest.err; then 13745 cat conftest.err >&5 13746 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13747 lt_cv_ld_force_load=yes 13748 else 13749 cat conftest.err >&5 13750 fi 13751 rm -f conftest.err libconftest.a conftest conftest.c 13752 rm -rf conftest.dSYM 13753 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13756$as_echo "$lt_cv_ld_force_load" >&6; } 13757 case $host_os in 13758 rhapsody* | darwin1.[012]) 13759 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13760 darwin1.*) 13761 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13762 darwin*) # darwin 5.x on 13763 # if running on 10.5 or later, the deployment target defaults 13764 # to the OS version, if on x86, and 10.4, the deployment 13765 # target defaults to 10.4. Don't you love it? 13766 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13767 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13768 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13769 10.[012]*) 13770 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13771 10.*) 13772 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13773 esac 13774 ;; 13775 esac 13776 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13777 _lt_dar_single_mod='$single_module' 13778 fi 13779 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13780 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13781 else 13782 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13783 fi 13784 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13785 _lt_dsymutil='~$DSYMUTIL $lib || :' 13786 else 13787 _lt_dsymutil= 13788 fi 13789 ;; 13790 esac 13791 13792for ac_header in dlfcn.h 13793do : 13794 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13795" 13796if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13797 cat >>confdefs.h <<_ACEOF 13798#define HAVE_DLFCN_H 1 13799_ACEOF 13800 13801fi 13802 13803done 13804 13805 13806 13807 13808 13809# Set options 13810 13811 13812 13813 enable_dlopen=no 13814 13815 13816 enable_win32_dll=no 13817 13818 13819 # Check whether --enable-shared was given. 13820if test "${enable_shared+set}" = set; then : 13821 enableval=$enable_shared; p=${PACKAGE-default} 13822 case $enableval in 13823 yes) enable_shared=yes ;; 13824 no) enable_shared=no ;; 13825 *) 13826 enable_shared=no 13827 # Look at the argument we got. We use all the common list separators. 13828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13829 for pkg in $enableval; do 13830 IFS="$lt_save_ifs" 13831 if test "X$pkg" = "X$p"; then 13832 enable_shared=yes 13833 fi 13834 done 13835 IFS="$lt_save_ifs" 13836 ;; 13837 esac 13838else 13839 enable_shared=yes 13840fi 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852# Check whether --with-pic was given. 13853if test "${with_pic+set}" = set; then : 13854 withval=$with_pic; lt_p=${PACKAGE-default} 13855 case $withval in 13856 yes|no) pic_mode=$withval ;; 13857 *) 13858 pic_mode=default 13859 # Look at the argument we got. We use all the common list separators. 13860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13861 for lt_pkg in $withval; do 13862 IFS="$lt_save_ifs" 13863 if test "X$lt_pkg" = "X$lt_p"; then 13864 pic_mode=yes 13865 fi 13866 done 13867 IFS="$lt_save_ifs" 13868 ;; 13869 esac 13870else 13871 pic_mode=default 13872fi 13873 13874 13875test -z "$pic_mode" && pic_mode=default 13876 13877 13878 13879 13880 13881 13882 13883 # Check whether --enable-fast-install was given. 13884if test "${enable_fast_install+set}" = set; then : 13885 enableval=$enable_fast_install; p=${PACKAGE-default} 13886 case $enableval in 13887 yes) enable_fast_install=yes ;; 13888 no) enable_fast_install=no ;; 13889 *) 13890 enable_fast_install=no 13891 # Look at the argument we got. We use all the common list separators. 13892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13893 for pkg in $enableval; do 13894 IFS="$lt_save_ifs" 13895 if test "X$pkg" = "X$p"; then 13896 enable_fast_install=yes 13897 fi 13898 done 13899 IFS="$lt_save_ifs" 13900 ;; 13901 esac 13902else 13903 enable_fast_install=yes 13904fi 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916# This can be used to rebuild libtool when needed 13917LIBTOOL_DEPS="$ltmain" 13918 13919# Always use our own libtool. 13920LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951test -z "$LN_S" && LN_S="ln -s" 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966if test -n "${ZSH_VERSION+set}" ; then 13967 setopt NO_GLOB_SUBST 13968fi 13969 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13971$as_echo_n "checking for objdir... " >&6; } 13972if ${lt_cv_objdir+:} false; then : 13973 $as_echo_n "(cached) " >&6 13974else 13975 rm -f .libs 2>/dev/null 13976mkdir .libs 2>/dev/null 13977if test -d .libs; then 13978 lt_cv_objdir=.libs 13979else 13980 # MS-DOS does not allow filenames that begin with a dot. 13981 lt_cv_objdir=_libs 13982fi 13983rmdir .libs 2>/dev/null 13984fi 13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13986$as_echo "$lt_cv_objdir" >&6; } 13987objdir=$lt_cv_objdir 13988 13989 13990 13991 13992 13993cat >>confdefs.h <<_ACEOF 13994#define LT_OBJDIR "$lt_cv_objdir/" 13995_ACEOF 13996 13997 13998 13999 14000case $host_os in 14001aix3*) 14002 # AIX sometimes has problems with the GCC collect2 program. For some 14003 # reason, if we set the COLLECT_NAMES environment variable, the problems 14004 # vanish in a puff of smoke. 14005 if test "X${COLLECT_NAMES+set}" != Xset; then 14006 COLLECT_NAMES= 14007 export COLLECT_NAMES 14008 fi 14009 ;; 14010esac 14011 14012# Global variables: 14013ofile=libtool 14014can_build_shared=yes 14015 14016# All known linkers require a `.a' archive for static linking (except MSVC, 14017# which needs '.lib'). 14018libext=a 14019 14020with_gnu_ld="$lt_cv_prog_gnu_ld" 14021 14022old_CC="$CC" 14023old_CFLAGS="$CFLAGS" 14024 14025# Set sane defaults for various variables 14026test -z "$CC" && CC=cc 14027test -z "$LTCC" && LTCC=$CC 14028test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14029test -z "$LD" && LD=ld 14030test -z "$ac_objext" && ac_objext=o 14031 14032for cc_temp in $compiler""; do 14033 case $cc_temp in 14034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14036 \-*) ;; 14037 *) break;; 14038 esac 14039done 14040cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14041 14042 14043# Only perform the check for file, if the check method requires it 14044test -z "$MAGIC_CMD" && MAGIC_CMD=file 14045case $deplibs_check_method in 14046file_magic*) 14047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14049$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14050if ${lt_cv_path_MAGIC_CMD+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052else 14053 case $MAGIC_CMD in 14054[\\/*] | ?:[\\/]*) 14055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14056 ;; 14057*) 14058 lt_save_MAGIC_CMD="$MAGIC_CMD" 14059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14061 for ac_dir in $ac_dummy; do 14062 IFS="$lt_save_ifs" 14063 test -z "$ac_dir" && ac_dir=. 14064 if test -f $ac_dir/${ac_tool_prefix}file; then 14065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14066 if test -n "$file_magic_test_file"; then 14067 case $deplibs_check_method in 14068 "file_magic "*) 14069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14072 $EGREP "$file_magic_regex" > /dev/null; then 14073 : 14074 else 14075 cat <<_LT_EOF 1>&2 14076 14077*** Warning: the command libtool uses to detect shared libraries, 14078*** $file_magic_cmd, produces output that libtool cannot recognize. 14079*** The result is that libtool may fail to recognize shared libraries 14080*** as such. This will affect the creation of libtool libraries that 14081*** depend on shared libraries, but programs linked with such libtool 14082*** libraries will work regardless of this problem. Nevertheless, you 14083*** may want to report the problem to your system manager and/or to 14084*** bug-libtool@gnu.org 14085 14086_LT_EOF 14087 fi ;; 14088 esac 14089 fi 14090 break 14091 fi 14092 done 14093 IFS="$lt_save_ifs" 14094 MAGIC_CMD="$lt_save_MAGIC_CMD" 14095 ;; 14096esac 14097fi 14098 14099MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14100if test -n "$MAGIC_CMD"; then 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14102$as_echo "$MAGIC_CMD" >&6; } 14103else 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14105$as_echo "no" >&6; } 14106fi 14107 14108 14109 14110 14111 14112if test -z "$lt_cv_path_MAGIC_CMD"; then 14113 if test -n "$ac_tool_prefix"; then 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14115$as_echo_n "checking for file... " >&6; } 14116if ${lt_cv_path_MAGIC_CMD+:} false; then : 14117 $as_echo_n "(cached) " >&6 14118else 14119 case $MAGIC_CMD in 14120[\\/*] | ?:[\\/]*) 14121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14122 ;; 14123*) 14124 lt_save_MAGIC_CMD="$MAGIC_CMD" 14125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14127 for ac_dir in $ac_dummy; do 14128 IFS="$lt_save_ifs" 14129 test -z "$ac_dir" && ac_dir=. 14130 if test -f $ac_dir/file; then 14131 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14132 if test -n "$file_magic_test_file"; then 14133 case $deplibs_check_method in 14134 "file_magic "*) 14135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14138 $EGREP "$file_magic_regex" > /dev/null; then 14139 : 14140 else 14141 cat <<_LT_EOF 1>&2 14142 14143*** Warning: the command libtool uses to detect shared libraries, 14144*** $file_magic_cmd, produces output that libtool cannot recognize. 14145*** The result is that libtool may fail to recognize shared libraries 14146*** as such. This will affect the creation of libtool libraries that 14147*** depend on shared libraries, but programs linked with such libtool 14148*** libraries will work regardless of this problem. Nevertheless, you 14149*** may want to report the problem to your system manager and/or to 14150*** bug-libtool@gnu.org 14151 14152_LT_EOF 14153 fi ;; 14154 esac 14155 fi 14156 break 14157 fi 14158 done 14159 IFS="$lt_save_ifs" 14160 MAGIC_CMD="$lt_save_MAGIC_CMD" 14161 ;; 14162esac 14163fi 14164 14165MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14166if test -n "$MAGIC_CMD"; then 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14168$as_echo "$MAGIC_CMD" >&6; } 14169else 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14171$as_echo "no" >&6; } 14172fi 14173 14174 14175 else 14176 MAGIC_CMD=: 14177 fi 14178fi 14179 14180 fi 14181 ;; 14182esac 14183 14184# Use C for the default configuration in the libtool script 14185 14186lt_save_CC="$CC" 14187ac_ext=c 14188ac_cpp='$CPP $CPPFLAGS' 14189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14191ac_compiler_gnu=$ac_cv_c_compiler_gnu 14192 14193 14194# Source file extension for C test sources. 14195ac_ext=c 14196 14197# Object file extension for compiled C test sources. 14198objext=o 14199objext=$objext 14200 14201# Code to be used in simple compile tests 14202lt_simple_compile_test_code="int some_variable = 0;" 14203 14204# Code to be used in simple link tests 14205lt_simple_link_test_code='int main(){return(0);}' 14206 14207 14208 14209 14210 14211 14212 14213# If no C compiler was specified, use CC. 14214LTCC=${LTCC-"$CC"} 14215 14216# If no C compiler flags were specified, use CFLAGS. 14217LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14218 14219# Allow CC to be a program name with arguments. 14220compiler=$CC 14221 14222# Save the default compiler, since it gets overwritten when the other 14223# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14224compiler_DEFAULT=$CC 14225 14226# save warnings/boilerplate of simple test code 14227ac_outfile=conftest.$ac_objext 14228echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14230_lt_compiler_boilerplate=`cat conftest.err` 14231$RM conftest* 14232 14233ac_outfile=conftest.$ac_objext 14234echo "$lt_simple_link_test_code" >conftest.$ac_ext 14235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14236_lt_linker_boilerplate=`cat conftest.err` 14237$RM -r conftest* 14238 14239 14240if test -n "$compiler"; then 14241 14242lt_prog_compiler_no_builtin_flag= 14243 14244if test "$GCC" = yes; then 14245 case $cc_basename in 14246 nvcc*) 14247 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14248 *) 14249 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14250 esac 14251 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14253$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14254if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14255 $as_echo_n "(cached) " >&6 14256else 14257 lt_cv_prog_compiler_rtti_exceptions=no 14258 ac_outfile=conftest.$ac_objext 14259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14260 lt_compiler_flag="-fno-rtti -fno-exceptions" 14261 # Insert the option either (1) after the last *FLAGS variable, or 14262 # (2) before a word containing "conftest.", or (3) at the end. 14263 # Note that $ac_compile itself does not contain backslashes and begins 14264 # with a dollar sign (not a hyphen), so the echo should work correctly. 14265 # The option is referenced via a variable to avoid confusing sed. 14266 lt_compile=`echo "$ac_compile" | $SED \ 14267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14269 -e 's:$: $lt_compiler_flag:'` 14270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14271 (eval "$lt_compile" 2>conftest.err) 14272 ac_status=$? 14273 cat conftest.err >&5 14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14275 if (exit $ac_status) && test -s "$ac_outfile"; then 14276 # The compiler can only warn and ignore the option if not recognized 14277 # So say no if there are warnings other than the usual output. 14278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14281 lt_cv_prog_compiler_rtti_exceptions=yes 14282 fi 14283 fi 14284 $RM conftest* 14285 14286fi 14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14288$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14289 14290if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14292else 14293 : 14294fi 14295 14296fi 14297 14298 14299 14300 14301 14302 14303 lt_prog_compiler_wl= 14304lt_prog_compiler_pic= 14305lt_prog_compiler_static= 14306 14307 14308 if test "$GCC" = yes; then 14309 lt_prog_compiler_wl='-Wl,' 14310 lt_prog_compiler_static='-static' 14311 14312 case $host_os in 14313 aix*) 14314 # All AIX code is PIC. 14315 if test "$host_cpu" = ia64; then 14316 # AIX 5 now supports IA64 processor 14317 lt_prog_compiler_static='-Bstatic' 14318 fi 14319 ;; 14320 14321 amigaos*) 14322 case $host_cpu in 14323 powerpc) 14324 # see comment about AmigaOS4 .so support 14325 lt_prog_compiler_pic='-fPIC' 14326 ;; 14327 m68k) 14328 # FIXME: we need at least 68020 code to build shared libraries, but 14329 # adding the `-m68020' flag to GCC prevents building anything better, 14330 # like `-m68040'. 14331 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14332 ;; 14333 esac 14334 ;; 14335 14336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14337 # PIC is the default for these OSes. 14338 ;; 14339 14340 mingw* | cygwin* | pw32* | os2* | cegcc*) 14341 # This hack is so that the source file can tell whether it is being 14342 # built for inclusion in a dll (and should export symbols for example). 14343 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14344 # (--disable-auto-import) libraries 14345 lt_prog_compiler_pic='-DDLL_EXPORT' 14346 ;; 14347 14348 darwin* | rhapsody*) 14349 # PIC is the default on this platform 14350 # Common symbols not allowed in MH_DYLIB files 14351 lt_prog_compiler_pic='-fno-common' 14352 ;; 14353 14354 haiku*) 14355 # PIC is the default for Haiku. 14356 # The "-static" flag exists, but is broken. 14357 lt_prog_compiler_static= 14358 ;; 14359 14360 hpux*) 14361 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14362 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14363 # sets the default TLS model and affects inlining. 14364 case $host_cpu in 14365 hppa*64*) 14366 # +Z the default 14367 ;; 14368 *) 14369 lt_prog_compiler_pic='-fPIC' 14370 ;; 14371 esac 14372 ;; 14373 14374 interix[3-9]*) 14375 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14376 # Instead, we relocate shared libraries at runtime. 14377 ;; 14378 14379 msdosdjgpp*) 14380 # Just because we use GCC doesn't mean we suddenly get shared libraries 14381 # on systems that don't support them. 14382 lt_prog_compiler_can_build_shared=no 14383 enable_shared=no 14384 ;; 14385 14386 *nto* | *qnx*) 14387 # QNX uses GNU C++, but need to define -shared option too, otherwise 14388 # it will coredump. 14389 lt_prog_compiler_pic='-fPIC -shared' 14390 ;; 14391 14392 sysv4*MP*) 14393 if test -d /usr/nec; then 14394 lt_prog_compiler_pic=-Kconform_pic 14395 fi 14396 ;; 14397 14398 *) 14399 lt_prog_compiler_pic='-fPIC' 14400 ;; 14401 esac 14402 14403 case $cc_basename in 14404 nvcc*) # Cuda Compiler Driver 2.2 14405 lt_prog_compiler_wl='-Xlinker ' 14406 if test -n "$lt_prog_compiler_pic"; then 14407 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14408 fi 14409 ;; 14410 esac 14411 else 14412 # PORTME Check for flag to pass linker flags through the system compiler. 14413 case $host_os in 14414 aix*) 14415 lt_prog_compiler_wl='-Wl,' 14416 if test "$host_cpu" = ia64; then 14417 # AIX 5 now supports IA64 processor 14418 lt_prog_compiler_static='-Bstatic' 14419 else 14420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14421 fi 14422 ;; 14423 14424 mingw* | cygwin* | pw32* | os2* | cegcc*) 14425 # This hack is so that the source file can tell whether it is being 14426 # built for inclusion in a dll (and should export symbols for example). 14427 lt_prog_compiler_pic='-DDLL_EXPORT' 14428 ;; 14429 14430 hpux9* | hpux10* | hpux11*) 14431 lt_prog_compiler_wl='-Wl,' 14432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14433 # not for PA HP-UX. 14434 case $host_cpu in 14435 hppa*64*|ia64*) 14436 # +Z the default 14437 ;; 14438 *) 14439 lt_prog_compiler_pic='+Z' 14440 ;; 14441 esac 14442 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14443 lt_prog_compiler_static='${wl}-a ${wl}archive' 14444 ;; 14445 14446 irix5* | irix6* | nonstopux*) 14447 lt_prog_compiler_wl='-Wl,' 14448 # PIC (with -KPIC) is the default. 14449 lt_prog_compiler_static='-non_shared' 14450 ;; 14451 14452 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14453 case $cc_basename in 14454 # old Intel for x86_64 which still supported -KPIC. 14455 ecc*) 14456 lt_prog_compiler_wl='-Wl,' 14457 lt_prog_compiler_pic='-KPIC' 14458 lt_prog_compiler_static='-static' 14459 ;; 14460 # icc used to be incompatible with GCC. 14461 # ICC 10 doesn't accept -KPIC any more. 14462 icc* | ifort*) 14463 lt_prog_compiler_wl='-Wl,' 14464 lt_prog_compiler_pic='-fPIC' 14465 lt_prog_compiler_static='-static' 14466 ;; 14467 # Lahey Fortran 8.1. 14468 lf95*) 14469 lt_prog_compiler_wl='-Wl,' 14470 lt_prog_compiler_pic='--shared' 14471 lt_prog_compiler_static='--static' 14472 ;; 14473 nagfor*) 14474 # NAG Fortran compiler 14475 lt_prog_compiler_wl='-Wl,-Wl,,' 14476 lt_prog_compiler_pic='-PIC' 14477 lt_prog_compiler_static='-Bstatic' 14478 ;; 14479 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14480 # Portland Group compilers (*not* the Pentium gcc compiler, 14481 # which looks to be a dead project) 14482 lt_prog_compiler_wl='-Wl,' 14483 lt_prog_compiler_pic='-fpic' 14484 lt_prog_compiler_static='-Bstatic' 14485 ;; 14486 ccc*) 14487 lt_prog_compiler_wl='-Wl,' 14488 # All Alpha code is PIC. 14489 lt_prog_compiler_static='-non_shared' 14490 ;; 14491 xl* | bgxl* | bgf* | mpixl*) 14492 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14493 lt_prog_compiler_wl='-Wl,' 14494 lt_prog_compiler_pic='-qpic' 14495 lt_prog_compiler_static='-qstaticlink' 14496 ;; 14497 *) 14498 case `$CC -V 2>&1 | sed 5q` in 14499 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14500 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14501 lt_prog_compiler_pic='-KPIC' 14502 lt_prog_compiler_static='-Bstatic' 14503 lt_prog_compiler_wl='' 14504 ;; 14505 *Sun\ F* | *Sun*Fortran*) 14506 lt_prog_compiler_pic='-KPIC' 14507 lt_prog_compiler_static='-Bstatic' 14508 lt_prog_compiler_wl='-Qoption ld ' 14509 ;; 14510 *Sun\ C*) 14511 # Sun C 5.9 14512 lt_prog_compiler_pic='-KPIC' 14513 lt_prog_compiler_static='-Bstatic' 14514 lt_prog_compiler_wl='-Wl,' 14515 ;; 14516 *Intel*\ [CF]*Compiler*) 14517 lt_prog_compiler_wl='-Wl,' 14518 lt_prog_compiler_pic='-fPIC' 14519 lt_prog_compiler_static='-static' 14520 ;; 14521 *Portland\ Group*) 14522 lt_prog_compiler_wl='-Wl,' 14523 lt_prog_compiler_pic='-fpic' 14524 lt_prog_compiler_static='-Bstatic' 14525 ;; 14526 esac 14527 ;; 14528 esac 14529 ;; 14530 14531 newsos6) 14532 lt_prog_compiler_pic='-KPIC' 14533 lt_prog_compiler_static='-Bstatic' 14534 ;; 14535 14536 *nto* | *qnx*) 14537 # QNX uses GNU C++, but need to define -shared option too, otherwise 14538 # it will coredump. 14539 lt_prog_compiler_pic='-fPIC -shared' 14540 ;; 14541 14542 osf3* | osf4* | osf5*) 14543 lt_prog_compiler_wl='-Wl,' 14544 # All OSF/1 code is PIC. 14545 lt_prog_compiler_static='-non_shared' 14546 ;; 14547 14548 rdos*) 14549 lt_prog_compiler_static='-non_shared' 14550 ;; 14551 14552 solaris*) 14553 lt_prog_compiler_pic='-KPIC' 14554 lt_prog_compiler_static='-Bstatic' 14555 case $cc_basename in 14556 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14557 lt_prog_compiler_wl='-Qoption ld ';; 14558 *) 14559 lt_prog_compiler_wl='-Wl,';; 14560 esac 14561 ;; 14562 14563 sunos4*) 14564 lt_prog_compiler_wl='-Qoption ld ' 14565 lt_prog_compiler_pic='-PIC' 14566 lt_prog_compiler_static='-Bstatic' 14567 ;; 14568 14569 sysv4 | sysv4.2uw2* | sysv4.3*) 14570 lt_prog_compiler_wl='-Wl,' 14571 lt_prog_compiler_pic='-KPIC' 14572 lt_prog_compiler_static='-Bstatic' 14573 ;; 14574 14575 sysv4*MP*) 14576 if test -d /usr/nec ;then 14577 lt_prog_compiler_pic='-Kconform_pic' 14578 lt_prog_compiler_static='-Bstatic' 14579 fi 14580 ;; 14581 14582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14583 lt_prog_compiler_wl='-Wl,' 14584 lt_prog_compiler_pic='-KPIC' 14585 lt_prog_compiler_static='-Bstatic' 14586 ;; 14587 14588 unicos*) 14589 lt_prog_compiler_wl='-Wl,' 14590 lt_prog_compiler_can_build_shared=no 14591 ;; 14592 14593 uts4*) 14594 lt_prog_compiler_pic='-pic' 14595 lt_prog_compiler_static='-Bstatic' 14596 ;; 14597 14598 *) 14599 lt_prog_compiler_can_build_shared=no 14600 ;; 14601 esac 14602 fi 14603 14604case $host_os in 14605 # For platforms which do not support PIC, -DPIC is meaningless: 14606 *djgpp*) 14607 lt_prog_compiler_pic= 14608 ;; 14609 *) 14610 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14611 ;; 14612esac 14613 14614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14615$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14616if ${lt_cv_prog_compiler_pic+:} false; then : 14617 $as_echo_n "(cached) " >&6 14618else 14619 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14620fi 14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14622$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14623lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14624 14625# 14626# Check to make sure the PIC flag actually works. 14627# 14628if test -n "$lt_prog_compiler_pic"; then 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14630$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14631if ${lt_cv_prog_compiler_pic_works+:} false; then : 14632 $as_echo_n "(cached) " >&6 14633else 14634 lt_cv_prog_compiler_pic_works=no 14635 ac_outfile=conftest.$ac_objext 14636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14637 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14638 # Insert the option either (1) after the last *FLAGS variable, or 14639 # (2) before a word containing "conftest.", or (3) at the end. 14640 # Note that $ac_compile itself does not contain backslashes and begins 14641 # with a dollar sign (not a hyphen), so the echo should work correctly. 14642 # The option is referenced via a variable to avoid confusing sed. 14643 lt_compile=`echo "$ac_compile" | $SED \ 14644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14646 -e 's:$: $lt_compiler_flag:'` 14647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14648 (eval "$lt_compile" 2>conftest.err) 14649 ac_status=$? 14650 cat conftest.err >&5 14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14652 if (exit $ac_status) && test -s "$ac_outfile"; then 14653 # The compiler can only warn and ignore the option if not recognized 14654 # So say no if there are warnings other than the usual output. 14655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14658 lt_cv_prog_compiler_pic_works=yes 14659 fi 14660 fi 14661 $RM conftest* 14662 14663fi 14664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14665$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14666 14667if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14668 case $lt_prog_compiler_pic in 14669 "" | " "*) ;; 14670 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14671 esac 14672else 14673 lt_prog_compiler_pic= 14674 lt_prog_compiler_can_build_shared=no 14675fi 14676 14677fi 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689# 14690# Check to make sure the static flag actually works. 14691# 14692wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14694$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14695if ${lt_cv_prog_compiler_static_works+:} false; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 lt_cv_prog_compiler_static_works=no 14699 save_LDFLAGS="$LDFLAGS" 14700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14701 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14703 # The linker can only warn and ignore the option if not recognized 14704 # So say no if there are warnings 14705 if test -s conftest.err; then 14706 # Append any errors to the config.log. 14707 cat conftest.err 1>&5 14708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14710 if diff conftest.exp conftest.er2 >/dev/null; then 14711 lt_cv_prog_compiler_static_works=yes 14712 fi 14713 else 14714 lt_cv_prog_compiler_static_works=yes 14715 fi 14716 fi 14717 $RM -r conftest* 14718 LDFLAGS="$save_LDFLAGS" 14719 14720fi 14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14722$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14723 14724if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14725 : 14726else 14727 lt_prog_compiler_static= 14728fi 14729 14730 14731 14732 14733 14734 14735 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14737$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14738if ${lt_cv_prog_compiler_c_o+:} false; then : 14739 $as_echo_n "(cached) " >&6 14740else 14741 lt_cv_prog_compiler_c_o=no 14742 $RM -r conftest 2>/dev/null 14743 mkdir conftest 14744 cd conftest 14745 mkdir out 14746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14747 14748 lt_compiler_flag="-o out/conftest2.$ac_objext" 14749 # Insert the option either (1) after the last *FLAGS variable, or 14750 # (2) before a word containing "conftest.", or (3) at the end. 14751 # Note that $ac_compile itself does not contain backslashes and begins 14752 # with a dollar sign (not a hyphen), so the echo should work correctly. 14753 lt_compile=`echo "$ac_compile" | $SED \ 14754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14756 -e 's:$: $lt_compiler_flag:'` 14757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14758 (eval "$lt_compile" 2>out/conftest.err) 14759 ac_status=$? 14760 cat out/conftest.err >&5 14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14762 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14763 then 14764 # The compiler can only warn and ignore the option if not recognized 14765 # So say no if there are warnings 14766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14769 lt_cv_prog_compiler_c_o=yes 14770 fi 14771 fi 14772 chmod u+w . 2>&5 14773 $RM conftest* 14774 # SGI C++ compiler will create directory out/ii_files/ for 14775 # template instantiation 14776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14777 $RM out/* && rmdir out 14778 cd .. 14779 $RM -r conftest 14780 $RM conftest* 14781 14782fi 14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14784$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14785 14786 14787 14788 14789 14790 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14792$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14793if ${lt_cv_prog_compiler_c_o+:} false; then : 14794 $as_echo_n "(cached) " >&6 14795else 14796 lt_cv_prog_compiler_c_o=no 14797 $RM -r conftest 2>/dev/null 14798 mkdir conftest 14799 cd conftest 14800 mkdir out 14801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14802 14803 lt_compiler_flag="-o out/conftest2.$ac_objext" 14804 # Insert the option either (1) after the last *FLAGS variable, or 14805 # (2) before a word containing "conftest.", or (3) at the end. 14806 # Note that $ac_compile itself does not contain backslashes and begins 14807 # with a dollar sign (not a hyphen), so the echo should work correctly. 14808 lt_compile=`echo "$ac_compile" | $SED \ 14809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14811 -e 's:$: $lt_compiler_flag:'` 14812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14813 (eval "$lt_compile" 2>out/conftest.err) 14814 ac_status=$? 14815 cat out/conftest.err >&5 14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14817 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14818 then 14819 # The compiler can only warn and ignore the option if not recognized 14820 # So say no if there are warnings 14821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14824 lt_cv_prog_compiler_c_o=yes 14825 fi 14826 fi 14827 chmod u+w . 2>&5 14828 $RM conftest* 14829 # SGI C++ compiler will create directory out/ii_files/ for 14830 # template instantiation 14831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14832 $RM out/* && rmdir out 14833 cd .. 14834 $RM -r conftest 14835 $RM conftest* 14836 14837fi 14838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14839$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14840 14841 14842 14843 14844hard_links="nottested" 14845if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14846 # do not overwrite the value of need_locks provided by the user 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14848$as_echo_n "checking if we can lock with hard links... " >&6; } 14849 hard_links=yes 14850 $RM conftest* 14851 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14852 touch conftest.a 14853 ln conftest.a conftest.b 2>&5 || hard_links=no 14854 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14856$as_echo "$hard_links" >&6; } 14857 if test "$hard_links" = no; then 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14859$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14860 need_locks=warn 14861 fi 14862else 14863 need_locks=no 14864fi 14865 14866 14867 14868 14869 14870 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14872$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14873 14874 runpath_var= 14875 allow_undefined_flag= 14876 always_export_symbols=no 14877 archive_cmds= 14878 archive_expsym_cmds= 14879 compiler_needs_object=no 14880 enable_shared_with_static_runtimes=no 14881 export_dynamic_flag_spec= 14882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14883 hardcode_automatic=no 14884 hardcode_direct=no 14885 hardcode_direct_absolute=no 14886 hardcode_libdir_flag_spec= 14887 hardcode_libdir_separator= 14888 hardcode_minus_L=no 14889 hardcode_shlibpath_var=unsupported 14890 inherit_rpath=no 14891 link_all_deplibs=unknown 14892 module_cmds= 14893 module_expsym_cmds= 14894 old_archive_from_new_cmds= 14895 old_archive_from_expsyms_cmds= 14896 thread_safe_flag_spec= 14897 whole_archive_flag_spec= 14898 # include_expsyms should be a list of space-separated symbols to be *always* 14899 # included in the symbol list 14900 include_expsyms= 14901 # exclude_expsyms can be an extended regexp of symbols to exclude 14902 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14904 # as well as any symbol that contains `d'. 14905 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14907 # platforms (ab)use it in PIC code, but their linkers get confused if 14908 # the symbol is explicitly referenced. Since portable code cannot 14909 # rely on this symbol name, it's probably fine to never include it in 14910 # preloaded symbol tables. 14911 # Exclude shared library initialization/finalization symbols. 14912 extract_expsyms_cmds= 14913 14914 case $host_os in 14915 cygwin* | mingw* | pw32* | cegcc*) 14916 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14917 # When not using gcc, we currently assume that we are using 14918 # Microsoft Visual C++. 14919 if test "$GCC" != yes; then 14920 with_gnu_ld=no 14921 fi 14922 ;; 14923 interix*) 14924 # we just hope/assume this is gcc and not c89 (= MSVC++) 14925 with_gnu_ld=yes 14926 ;; 14927 openbsd*) 14928 with_gnu_ld=no 14929 ;; 14930 esac 14931 14932 ld_shlibs=yes 14933 14934 # On some targets, GNU ld is compatible enough with the native linker 14935 # that we're better off using the native interface for both. 14936 lt_use_gnu_ld_interface=no 14937 if test "$with_gnu_ld" = yes; then 14938 case $host_os in 14939 aix*) 14940 # The AIX port of GNU ld has always aspired to compatibility 14941 # with the native linker. However, as the warning in the GNU ld 14942 # block says, versions before 2.19.5* couldn't really create working 14943 # shared libraries, regardless of the interface used. 14944 case `$LD -v 2>&1` in 14945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14947 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14948 *) 14949 lt_use_gnu_ld_interface=yes 14950 ;; 14951 esac 14952 ;; 14953 *) 14954 lt_use_gnu_ld_interface=yes 14955 ;; 14956 esac 14957 fi 14958 14959 if test "$lt_use_gnu_ld_interface" = yes; then 14960 # If archive_cmds runs LD, not CC, wlarc should be empty 14961 wlarc='${wl}' 14962 14963 # Set some defaults for GNU ld with shared library support. These 14964 # are reset later if shared libraries are not supported. Putting them 14965 # here allows them to be overridden if necessary. 14966 runpath_var=LD_RUN_PATH 14967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14968 export_dynamic_flag_spec='${wl}--export-dynamic' 14969 # ancient GNU ld didn't support --whole-archive et. al. 14970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14972 else 14973 whole_archive_flag_spec= 14974 fi 14975 supports_anon_versioning=no 14976 case `$LD -v 2>&1` in 14977 *GNU\ gold*) supports_anon_versioning=yes ;; 14978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14981 *\ 2.11.*) ;; # other 2.11 versions 14982 *) supports_anon_versioning=yes ;; 14983 esac 14984 14985 # See if GNU ld supports shared libraries. 14986 case $host_os in 14987 aix[3-9]*) 14988 # On AIX/PPC, the GNU linker is very broken 14989 if test "$host_cpu" != ia64; then 14990 ld_shlibs=no 14991 cat <<_LT_EOF 1>&2 14992 14993*** Warning: the GNU linker, at least up to release 2.19, is reported 14994*** to be unable to reliably create shared libraries on AIX. 14995*** Therefore, libtool is disabling shared libraries support. If you 14996*** really care for shared libraries, you may want to install binutils 14997*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14998*** You will then need to restart the configuration process. 14999 15000_LT_EOF 15001 fi 15002 ;; 15003 15004 amigaos*) 15005 case $host_cpu in 15006 powerpc) 15007 # see comment about AmigaOS4 .so support 15008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15009 archive_expsym_cmds='' 15010 ;; 15011 m68k) 15012 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)' 15013 hardcode_libdir_flag_spec='-L$libdir' 15014 hardcode_minus_L=yes 15015 ;; 15016 esac 15017 ;; 15018 15019 beos*) 15020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15021 allow_undefined_flag=unsupported 15022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15023 # support --undefined. This deserves some investigation. FIXME 15024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15025 else 15026 ld_shlibs=no 15027 fi 15028 ;; 15029 15030 cygwin* | mingw* | pw32* | cegcc*) 15031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15032 # as there is no search path for DLLs. 15033 hardcode_libdir_flag_spec='-L$libdir' 15034 export_dynamic_flag_spec='${wl}--export-all-symbols' 15035 allow_undefined_flag=unsupported 15036 always_export_symbols=no 15037 enable_shared_with_static_runtimes=yes 15038 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' 15039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15040 15041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15043 # If the export-symbols file already is a .def file (1st line 15044 # is EXPORTS), use it as is; otherwise, prepend... 15045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15046 cp $export_symbols $output_objdir/$soname.def; 15047 else 15048 echo EXPORTS > $output_objdir/$soname.def; 15049 cat $export_symbols >> $output_objdir/$soname.def; 15050 fi~ 15051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15052 else 15053 ld_shlibs=no 15054 fi 15055 ;; 15056 15057 haiku*) 15058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15059 link_all_deplibs=yes 15060 ;; 15061 15062 interix[3-9]*) 15063 hardcode_direct=no 15064 hardcode_shlibpath_var=no 15065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15066 export_dynamic_flag_spec='${wl}-E' 15067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15068 # Instead, shared libraries are loaded at an image base (0x10000000 by 15069 # default) and relocated if they conflict, which is a slow very memory 15070 # consuming and fragmenting process. To avoid this, we pick a random, 15071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15072 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15074 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' 15075 ;; 15076 15077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15078 tmp_diet=no 15079 if test "$host_os" = linux-dietlibc; then 15080 case $cc_basename in 15081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15082 esac 15083 fi 15084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15085 && test "$tmp_diet" = no 15086 then 15087 tmp_addflag=' $pic_flag' 15088 tmp_sharedflag='-shared' 15089 case $cc_basename,$host_cpu in 15090 pgcc*) # Portland Group C compiler 15091 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' 15092 tmp_addflag=' $pic_flag' 15093 ;; 15094 pgf77* | pgf90* | pgf95* | pgfortran*) 15095 # Portland Group f77 and f90 compilers 15096 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' 15097 tmp_addflag=' $pic_flag -Mnomain' ;; 15098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15099 tmp_addflag=' -i_dynamic' ;; 15100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15101 tmp_addflag=' -i_dynamic -nofor_main' ;; 15102 ifc* | ifort*) # Intel Fortran compiler 15103 tmp_addflag=' -nofor_main' ;; 15104 lf95*) # Lahey Fortran 8.1 15105 whole_archive_flag_spec= 15106 tmp_sharedflag='--shared' ;; 15107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15108 tmp_sharedflag='-qmkshrobj' 15109 tmp_addflag= ;; 15110 nvcc*) # Cuda Compiler Driver 2.2 15111 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' 15112 compiler_needs_object=yes 15113 ;; 15114 esac 15115 case `$CC -V 2>&1 | sed 5q` in 15116 *Sun\ C*) # Sun C 5.9 15117 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' 15118 compiler_needs_object=yes 15119 tmp_sharedflag='-G' ;; 15120 *Sun\ F*) # Sun Fortran 8.3 15121 tmp_sharedflag='-G' ;; 15122 esac 15123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15124 15125 if test "x$supports_anon_versioning" = xyes; then 15126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15128 echo "local: *; };" >> $output_objdir/$libname.ver~ 15129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15130 fi 15131 15132 case $cc_basename in 15133 xlf* | bgf* | bgxlf* | mpixlf*) 15134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15138 if test "x$supports_anon_versioning" = xyes; then 15139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15141 echo "local: *; };" >> $output_objdir/$libname.ver~ 15142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15143 fi 15144 ;; 15145 esac 15146 else 15147 ld_shlibs=no 15148 fi 15149 ;; 15150 15151 netbsd*) 15152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15154 wlarc= 15155 else 15156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15158 fi 15159 ;; 15160 15161 solaris*) 15162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15163 ld_shlibs=no 15164 cat <<_LT_EOF 1>&2 15165 15166*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15167*** create shared libraries on Solaris systems. Therefore, libtool 15168*** is disabling shared libraries support. We urge you to upgrade GNU 15169*** binutils to release 2.9.1 or newer. Another option is to modify 15170*** your PATH or compiler configuration so that the native linker is 15171*** used, and then restart. 15172 15173_LT_EOF 15174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15177 else 15178 ld_shlibs=no 15179 fi 15180 ;; 15181 15182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15183 case `$LD -v 2>&1` in 15184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15185 ld_shlibs=no 15186 cat <<_LT_EOF 1>&2 15187 15188*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15189*** reliably create shared libraries on SCO systems. Therefore, libtool 15190*** is disabling shared libraries support. We urge you to upgrade GNU 15191*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15192*** your PATH or compiler configuration so that the native linker is 15193*** used, and then restart. 15194 15195_LT_EOF 15196 ;; 15197 *) 15198 # For security reasons, it is highly recommended that you always 15199 # use absolute paths for naming shared libraries, and exclude the 15200 # DT_RUNPATH tag from executables and libraries. But doing so 15201 # requires that you compile everything twice, which is a pain. 15202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15206 else 15207 ld_shlibs=no 15208 fi 15209 ;; 15210 esac 15211 ;; 15212 15213 sunos4*) 15214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15215 wlarc= 15216 hardcode_direct=yes 15217 hardcode_shlibpath_var=no 15218 ;; 15219 15220 *) 15221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15224 else 15225 ld_shlibs=no 15226 fi 15227 ;; 15228 esac 15229 15230 if test "$ld_shlibs" = no; then 15231 runpath_var= 15232 hardcode_libdir_flag_spec= 15233 export_dynamic_flag_spec= 15234 whole_archive_flag_spec= 15235 fi 15236 else 15237 # PORTME fill in a description of your system's linker (not GNU ld) 15238 case $host_os in 15239 aix3*) 15240 allow_undefined_flag=unsupported 15241 always_export_symbols=yes 15242 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' 15243 # Note: this linker hardcodes the directories in LIBPATH if there 15244 # are no directories specified by -L. 15245 hardcode_minus_L=yes 15246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15247 # Neither direct hardcoding nor static linking is supported with a 15248 # broken collect2. 15249 hardcode_direct=unsupported 15250 fi 15251 ;; 15252 15253 aix[4-9]*) 15254 if test "$host_cpu" = ia64; then 15255 # On IA64, the linker does run time linking by default, so we don't 15256 # have to do anything special. 15257 aix_use_runtimelinking=no 15258 exp_sym_flag='-Bexport' 15259 no_entry_flag="" 15260 else 15261 # If we're using GNU nm, then we don't want the "-C" option. 15262 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15263 # Also, AIX nm treats weak defined symbols like other global 15264 # defined symbols, whereas GNU nm marks them as "W". 15265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15266 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' 15267 else 15268 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' 15269 fi 15270 aix_use_runtimelinking=no 15271 15272 # Test if we are trying to use run time linking or normal 15273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15274 # need to do runtime linking. 15275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15276 for ld_flag in $LDFLAGS; do 15277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15278 aix_use_runtimelinking=yes 15279 break 15280 fi 15281 done 15282 ;; 15283 esac 15284 15285 exp_sym_flag='-bexport' 15286 no_entry_flag='-bnoentry' 15287 fi 15288 15289 # When large executables or shared objects are built, AIX ld can 15290 # have problems creating the table of contents. If linking a library 15291 # or program results in "error TOC overflow" add -mminimal-toc to 15292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15294 15295 archive_cmds='' 15296 hardcode_direct=yes 15297 hardcode_direct_absolute=yes 15298 hardcode_libdir_separator=':' 15299 link_all_deplibs=yes 15300 file_list_spec='${wl}-f,' 15301 15302 if test "$GCC" = yes; then 15303 case $host_os in aix4.[012]|aix4.[012].*) 15304 # We only want to do this on AIX 4.2 and lower, the check 15305 # below for broken collect2 doesn't work under 4.3+ 15306 collect2name=`${CC} -print-prog-name=collect2` 15307 if test -f "$collect2name" && 15308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15309 then 15310 # We have reworked collect2 15311 : 15312 else 15313 # We have old collect2 15314 hardcode_direct=unsupported 15315 # It fails to find uninstalled libraries when the uninstalled 15316 # path is not listed in the libpath. Setting hardcode_minus_L 15317 # to unsupported forces relinking 15318 hardcode_minus_L=yes 15319 hardcode_libdir_flag_spec='-L$libdir' 15320 hardcode_libdir_separator= 15321 fi 15322 ;; 15323 esac 15324 shared_flag='-shared' 15325 if test "$aix_use_runtimelinking" = yes; then 15326 shared_flag="$shared_flag "'${wl}-G' 15327 fi 15328 else 15329 # not using gcc 15330 if test "$host_cpu" = ia64; then 15331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15332 # chokes on -Wl,-G. The following line is correct: 15333 shared_flag='-G' 15334 else 15335 if test "$aix_use_runtimelinking" = yes; then 15336 shared_flag='${wl}-G' 15337 else 15338 shared_flag='${wl}-bM:SRE' 15339 fi 15340 fi 15341 fi 15342 15343 export_dynamic_flag_spec='${wl}-bexpall' 15344 # It seems that -bexpall does not export symbols beginning with 15345 # underscore (_), so it is better to generate a list of symbols to export. 15346 always_export_symbols=yes 15347 if test "$aix_use_runtimelinking" = yes; then 15348 # Warning - without using the other runtime loading flags (-brtl), 15349 # -berok will link without error, but may produce a broken library. 15350 allow_undefined_flag='-berok' 15351 # Determine the default libpath from the value encoded in an 15352 # empty executable. 15353 if test "${lt_cv_aix_libpath+set}" = set; then 15354 aix_libpath=$lt_cv_aix_libpath 15355else 15356 if ${lt_cv_aix_libpath_+:} false; then : 15357 $as_echo_n "(cached) " >&6 15358else 15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360/* end confdefs.h. */ 15361 15362int 15363main () 15364{ 15365 15366 ; 15367 return 0; 15368} 15369_ACEOF 15370if ac_fn_c_try_link "$LINENO"; then : 15371 15372 lt_aix_libpath_sed=' 15373 /Import File Strings/,/^$/ { 15374 /^0/ { 15375 s/^0 *\([^ ]*\) *$/\1/ 15376 p 15377 } 15378 }' 15379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15380 # Check for a 64-bit object if we didn't find anything. 15381 if test -z "$lt_cv_aix_libpath_"; then 15382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15383 fi 15384fi 15385rm -f core conftest.err conftest.$ac_objext \ 15386 conftest$ac_exeext conftest.$ac_ext 15387 if test -z "$lt_cv_aix_libpath_"; then 15388 lt_cv_aix_libpath_="/usr/lib:/lib" 15389 fi 15390 15391fi 15392 15393 aix_libpath=$lt_cv_aix_libpath_ 15394fi 15395 15396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15397 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" 15398 else 15399 if test "$host_cpu" = ia64; then 15400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15401 allow_undefined_flag="-z nodefs" 15402 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" 15403 else 15404 # Determine the default libpath from the value encoded in an 15405 # empty executable. 15406 if test "${lt_cv_aix_libpath+set}" = set; then 15407 aix_libpath=$lt_cv_aix_libpath 15408else 15409 if ${lt_cv_aix_libpath_+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15413/* end confdefs.h. */ 15414 15415int 15416main () 15417{ 15418 15419 ; 15420 return 0; 15421} 15422_ACEOF 15423if ac_fn_c_try_link "$LINENO"; then : 15424 15425 lt_aix_libpath_sed=' 15426 /Import File Strings/,/^$/ { 15427 /^0/ { 15428 s/^0 *\([^ ]*\) *$/\1/ 15429 p 15430 } 15431 }' 15432 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15433 # Check for a 64-bit object if we didn't find anything. 15434 if test -z "$lt_cv_aix_libpath_"; then 15435 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15436 fi 15437fi 15438rm -f core conftest.err conftest.$ac_objext \ 15439 conftest$ac_exeext conftest.$ac_ext 15440 if test -z "$lt_cv_aix_libpath_"; then 15441 lt_cv_aix_libpath_="/usr/lib:/lib" 15442 fi 15443 15444fi 15445 15446 aix_libpath=$lt_cv_aix_libpath_ 15447fi 15448 15449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15450 # Warning - without using the other run time loading flags, 15451 # -berok will link without error, but may produce a broken library. 15452 no_undefined_flag=' ${wl}-bernotok' 15453 allow_undefined_flag=' ${wl}-berok' 15454 if test "$with_gnu_ld" = yes; then 15455 # We only use this code for GNU lds that support --whole-archive. 15456 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15457 else 15458 # Exported symbols can be pulled into shared objects from archives 15459 whole_archive_flag_spec='$convenience' 15460 fi 15461 archive_cmds_need_lc=yes 15462 # This is similar to how AIX traditionally builds its shared libraries. 15463 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' 15464 fi 15465 fi 15466 ;; 15467 15468 amigaos*) 15469 case $host_cpu in 15470 powerpc) 15471 # see comment about AmigaOS4 .so support 15472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15473 archive_expsym_cmds='' 15474 ;; 15475 m68k) 15476 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)' 15477 hardcode_libdir_flag_spec='-L$libdir' 15478 hardcode_minus_L=yes 15479 ;; 15480 esac 15481 ;; 15482 15483 bsdi[45]*) 15484 export_dynamic_flag_spec=-rdynamic 15485 ;; 15486 15487 cygwin* | mingw* | pw32* | cegcc*) 15488 # When not using gcc, we currently assume that we are using 15489 # Microsoft Visual C++. 15490 # hardcode_libdir_flag_spec is actually meaningless, as there is 15491 # no search path for DLLs. 15492 case $cc_basename in 15493 cl*) 15494 # Native MSVC 15495 hardcode_libdir_flag_spec=' ' 15496 allow_undefined_flag=unsupported 15497 always_export_symbols=yes 15498 file_list_spec='@' 15499 # Tell ltmain to make .lib files, not .a files. 15500 libext=lib 15501 # Tell ltmain to make .dll files, not .so files. 15502 shrext_cmds=".dll" 15503 # FIXME: Setting linknames here is a bad hack. 15504 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15506 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15507 else 15508 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15509 fi~ 15510 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15511 linknames=' 15512 # The linker will not automatically build a static lib if we build a DLL. 15513 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15514 enable_shared_with_static_runtimes=yes 15515 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15517 # Don't use ranlib 15518 old_postinstall_cmds='chmod 644 $oldlib' 15519 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15520 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15521 case $lt_outputfile in 15522 *.exe|*.EXE) ;; 15523 *) 15524 lt_outputfile="$lt_outputfile.exe" 15525 lt_tool_outputfile="$lt_tool_outputfile.exe" 15526 ;; 15527 esac~ 15528 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15529 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15530 $RM "$lt_outputfile.manifest"; 15531 fi' 15532 ;; 15533 *) 15534 # Assume MSVC wrapper 15535 hardcode_libdir_flag_spec=' ' 15536 allow_undefined_flag=unsupported 15537 # Tell ltmain to make .lib files, not .a files. 15538 libext=lib 15539 # Tell ltmain to make .dll files, not .so files. 15540 shrext_cmds=".dll" 15541 # FIXME: Setting linknames here is a bad hack. 15542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15543 # The linker will automatically build a .lib file if we build a DLL. 15544 old_archive_from_new_cmds='true' 15545 # FIXME: Should let the user specify the lib program. 15546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15547 enable_shared_with_static_runtimes=yes 15548 ;; 15549 esac 15550 ;; 15551 15552 darwin* | rhapsody*) 15553 15554 15555 archive_cmds_need_lc=no 15556 hardcode_direct=no 15557 hardcode_automatic=yes 15558 hardcode_shlibpath_var=unsupported 15559 if test "$lt_cv_ld_force_load" = "yes"; then 15560 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\"`' 15561 15562 else 15563 whole_archive_flag_spec='' 15564 fi 15565 link_all_deplibs=yes 15566 allow_undefined_flag="$_lt_dar_allow_undefined" 15567 case $cc_basename in 15568 ifort*) _lt_dar_can_shared=yes ;; 15569 *) _lt_dar_can_shared=$GCC ;; 15570 esac 15571 if test "$_lt_dar_can_shared" = "yes"; then 15572 output_verbose_link_cmd=func_echo_all 15573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15575 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}" 15576 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}" 15577 15578 else 15579 ld_shlibs=no 15580 fi 15581 15582 ;; 15583 15584 dgux*) 15585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15586 hardcode_libdir_flag_spec='-L$libdir' 15587 hardcode_shlibpath_var=no 15588 ;; 15589 15590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15591 # support. Future versions do this automatically, but an explicit c++rt0.o 15592 # does not break anything, and helps significantly (at the cost of a little 15593 # extra space). 15594 freebsd2.2*) 15595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15596 hardcode_libdir_flag_spec='-R$libdir' 15597 hardcode_direct=yes 15598 hardcode_shlibpath_var=no 15599 ;; 15600 15601 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15602 freebsd2.*) 15603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15604 hardcode_direct=yes 15605 hardcode_minus_L=yes 15606 hardcode_shlibpath_var=no 15607 ;; 15608 15609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15610 freebsd* | dragonfly*) 15611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15612 hardcode_libdir_flag_spec='-R$libdir' 15613 hardcode_direct=yes 15614 hardcode_shlibpath_var=no 15615 ;; 15616 15617 hpux9*) 15618 if test "$GCC" = yes; then 15619 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' 15620 else 15621 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' 15622 fi 15623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15624 hardcode_libdir_separator=: 15625 hardcode_direct=yes 15626 15627 # hardcode_minus_L: Not really in the search PATH, 15628 # but as the default location of the library. 15629 hardcode_minus_L=yes 15630 export_dynamic_flag_spec='${wl}-E' 15631 ;; 15632 15633 hpux10*) 15634 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15635 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15636 else 15637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15638 fi 15639 if test "$with_gnu_ld" = no; then 15640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15641 hardcode_libdir_separator=: 15642 hardcode_direct=yes 15643 hardcode_direct_absolute=yes 15644 export_dynamic_flag_spec='${wl}-E' 15645 # hardcode_minus_L: Not really in the search PATH, 15646 # but as the default location of the library. 15647 hardcode_minus_L=yes 15648 fi 15649 ;; 15650 15651 hpux11*) 15652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15653 case $host_cpu in 15654 hppa*64*) 15655 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15656 ;; 15657 ia64*) 15658 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15659 ;; 15660 *) 15661 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15662 ;; 15663 esac 15664 else 15665 case $host_cpu in 15666 hppa*64*) 15667 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15668 ;; 15669 ia64*) 15670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15671 ;; 15672 *) 15673 15674 # Older versions of the 11.00 compiler do not understand -b yet 15675 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15677$as_echo_n "checking if $CC understands -b... " >&6; } 15678if ${lt_cv_prog_compiler__b+:} false; then : 15679 $as_echo_n "(cached) " >&6 15680else 15681 lt_cv_prog_compiler__b=no 15682 save_LDFLAGS="$LDFLAGS" 15683 LDFLAGS="$LDFLAGS -b" 15684 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15686 # The linker can only warn and ignore the option if not recognized 15687 # So say no if there are warnings 15688 if test -s conftest.err; then 15689 # Append any errors to the config.log. 15690 cat conftest.err 1>&5 15691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15693 if diff conftest.exp conftest.er2 >/dev/null; then 15694 lt_cv_prog_compiler__b=yes 15695 fi 15696 else 15697 lt_cv_prog_compiler__b=yes 15698 fi 15699 fi 15700 $RM -r conftest* 15701 LDFLAGS="$save_LDFLAGS" 15702 15703fi 15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15705$as_echo "$lt_cv_prog_compiler__b" >&6; } 15706 15707if test x"$lt_cv_prog_compiler__b" = xyes; then 15708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15709else 15710 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15711fi 15712 15713 ;; 15714 esac 15715 fi 15716 if test "$with_gnu_ld" = no; then 15717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15718 hardcode_libdir_separator=: 15719 15720 case $host_cpu in 15721 hppa*64*|ia64*) 15722 hardcode_direct=no 15723 hardcode_shlibpath_var=no 15724 ;; 15725 *) 15726 hardcode_direct=yes 15727 hardcode_direct_absolute=yes 15728 export_dynamic_flag_spec='${wl}-E' 15729 15730 # hardcode_minus_L: Not really in the search PATH, 15731 # but as the default location of the library. 15732 hardcode_minus_L=yes 15733 ;; 15734 esac 15735 fi 15736 ;; 15737 15738 irix5* | irix6* | nonstopux*) 15739 if test "$GCC" = yes; then 15740 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' 15741 # Try to use the -exported_symbol ld option, if it does not 15742 # work, assume that -exports_file does not work either and 15743 # implicitly export all symbols. 15744 # This should be the same for all languages, so no per-tag cache variable. 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15746$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15747if ${lt_cv_irix_exported_symbol+:} false; then : 15748 $as_echo_n "(cached) " >&6 15749else 15750 save_LDFLAGS="$LDFLAGS" 15751 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15753/* end confdefs.h. */ 15754int foo (void) { return 0; } 15755_ACEOF 15756if ac_fn_c_try_link "$LINENO"; then : 15757 lt_cv_irix_exported_symbol=yes 15758else 15759 lt_cv_irix_exported_symbol=no 15760fi 15761rm -f core conftest.err conftest.$ac_objext \ 15762 conftest$ac_exeext conftest.$ac_ext 15763 LDFLAGS="$save_LDFLAGS" 15764fi 15765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15766$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15767 if test "$lt_cv_irix_exported_symbol" = yes; then 15768 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' 15769 fi 15770 else 15771 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' 15772 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' 15773 fi 15774 archive_cmds_need_lc='no' 15775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15776 hardcode_libdir_separator=: 15777 inherit_rpath=yes 15778 link_all_deplibs=yes 15779 ;; 15780 15781 netbsd*) 15782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15784 else 15785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15786 fi 15787 hardcode_libdir_flag_spec='-R$libdir' 15788 hardcode_direct=yes 15789 hardcode_shlibpath_var=no 15790 ;; 15791 15792 newsos6) 15793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15794 hardcode_direct=yes 15795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15796 hardcode_libdir_separator=: 15797 hardcode_shlibpath_var=no 15798 ;; 15799 15800 *nto* | *qnx*) 15801 ;; 15802 15803 openbsd*) 15804 if test -f /usr/libexec/ld.so; then 15805 hardcode_direct=yes 15806 hardcode_shlibpath_var=no 15807 hardcode_direct_absolute=yes 15808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15812 export_dynamic_flag_spec='${wl}-E' 15813 else 15814 case $host_os in 15815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15817 hardcode_libdir_flag_spec='-R$libdir' 15818 ;; 15819 *) 15820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15822 ;; 15823 esac 15824 fi 15825 else 15826 ld_shlibs=no 15827 fi 15828 ;; 15829 15830 os2*) 15831 hardcode_libdir_flag_spec='-L$libdir' 15832 hardcode_minus_L=yes 15833 allow_undefined_flag=unsupported 15834 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' 15835 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15836 ;; 15837 15838 osf3*) 15839 if test "$GCC" = yes; then 15840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15841 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' 15842 else 15843 allow_undefined_flag=' -expect_unresolved \*' 15844 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' 15845 fi 15846 archive_cmds_need_lc='no' 15847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15848 hardcode_libdir_separator=: 15849 ;; 15850 15851 osf4* | osf5*) # as osf3* with the addition of -msym flag 15852 if test "$GCC" = yes; then 15853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15854 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' 15855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15856 else 15857 allow_undefined_flag=' -expect_unresolved \*' 15858 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' 15859 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~ 15860 $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' 15861 15862 # Both c and cxx compiler support -rpath directly 15863 hardcode_libdir_flag_spec='-rpath $libdir' 15864 fi 15865 archive_cmds_need_lc='no' 15866 hardcode_libdir_separator=: 15867 ;; 15868 15869 solaris*) 15870 no_undefined_flag=' -z defs' 15871 if test "$GCC" = yes; then 15872 wlarc='${wl}' 15873 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15875 $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' 15876 else 15877 case `$CC -V 2>&1` in 15878 *"Compilers 5.0"*) 15879 wlarc='' 15880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15883 ;; 15884 *) 15885 wlarc='${wl}' 15886 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15888 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15889 ;; 15890 esac 15891 fi 15892 hardcode_libdir_flag_spec='-R$libdir' 15893 hardcode_shlibpath_var=no 15894 case $host_os in 15895 solaris2.[0-5] | solaris2.[0-5].*) ;; 15896 *) 15897 # The compiler driver will combine and reorder linker options, 15898 # but understands `-z linker_flag'. GCC discards it without `$wl', 15899 # but is careful enough not to reorder. 15900 # Supported since Solaris 2.6 (maybe 2.5.1?) 15901 if test "$GCC" = yes; then 15902 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15903 else 15904 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15905 fi 15906 ;; 15907 esac 15908 link_all_deplibs=yes 15909 ;; 15910 15911 sunos4*) 15912 if test "x$host_vendor" = xsequent; then 15913 # Use $CC to link under sequent, because it throws in some extra .o 15914 # files that make .init and .fini sections work. 15915 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15916 else 15917 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15918 fi 15919 hardcode_libdir_flag_spec='-L$libdir' 15920 hardcode_direct=yes 15921 hardcode_minus_L=yes 15922 hardcode_shlibpath_var=no 15923 ;; 15924 15925 sysv4) 15926 case $host_vendor in 15927 sni) 15928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15929 hardcode_direct=yes # is this really true??? 15930 ;; 15931 siemens) 15932 ## LD is ld it makes a PLAMLIB 15933 ## CC just makes a GrossModule. 15934 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15935 reload_cmds='$CC -r -o $output$reload_objs' 15936 hardcode_direct=no 15937 ;; 15938 motorola) 15939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15940 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15941 ;; 15942 esac 15943 runpath_var='LD_RUN_PATH' 15944 hardcode_shlibpath_var=no 15945 ;; 15946 15947 sysv4.3*) 15948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15949 hardcode_shlibpath_var=no 15950 export_dynamic_flag_spec='-Bexport' 15951 ;; 15952 15953 sysv4*MP*) 15954 if test -d /usr/nec; then 15955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15956 hardcode_shlibpath_var=no 15957 runpath_var=LD_RUN_PATH 15958 hardcode_runpath_var=yes 15959 ld_shlibs=yes 15960 fi 15961 ;; 15962 15963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15964 no_undefined_flag='${wl}-z,text' 15965 archive_cmds_need_lc=no 15966 hardcode_shlibpath_var=no 15967 runpath_var='LD_RUN_PATH' 15968 15969 if test "$GCC" = yes; then 15970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15972 else 15973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15975 fi 15976 ;; 15977 15978 sysv5* | sco3.2v5* | sco5v6*) 15979 # Note: We can NOT use -z defs as we might desire, because we do not 15980 # link with -lc, and that would cause any symbols used from libc to 15981 # always be unresolved, which means just about no library would 15982 # ever link correctly. If we're not using GNU ld we use -z text 15983 # though, which does catch some bad symbols but isn't as heavy-handed 15984 # as -z defs. 15985 no_undefined_flag='${wl}-z,text' 15986 allow_undefined_flag='${wl}-z,nodefs' 15987 archive_cmds_need_lc=no 15988 hardcode_shlibpath_var=no 15989 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15990 hardcode_libdir_separator=':' 15991 link_all_deplibs=yes 15992 export_dynamic_flag_spec='${wl}-Bexport' 15993 runpath_var='LD_RUN_PATH' 15994 15995 if test "$GCC" = yes; then 15996 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15997 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15998 else 15999 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16000 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16001 fi 16002 ;; 16003 16004 uts4*) 16005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16006 hardcode_libdir_flag_spec='-L$libdir' 16007 hardcode_shlibpath_var=no 16008 ;; 16009 16010 *) 16011 ld_shlibs=no 16012 ;; 16013 esac 16014 16015 if test x$host_vendor = xsni; then 16016 case $host in 16017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16018 export_dynamic_flag_spec='${wl}-Blargedynsym' 16019 ;; 16020 esac 16021 fi 16022 fi 16023 16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16025$as_echo "$ld_shlibs" >&6; } 16026test "$ld_shlibs" = no && can_build_shared=no 16027 16028with_gnu_ld=$with_gnu_ld 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044# 16045# Do we need to explicitly link libc? 16046# 16047case "x$archive_cmds_need_lc" in 16048x|xyes) 16049 # Assume -lc should be added 16050 archive_cmds_need_lc=yes 16051 16052 if test "$enable_shared" = yes && test "$GCC" = yes; then 16053 case $archive_cmds in 16054 *'~'*) 16055 # FIXME: we may have to deal with multi-command sequences. 16056 ;; 16057 '$CC '*) 16058 # Test whether the compiler implicitly links with -lc since on some 16059 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16060 # to ld, don't add -lc before -lgcc. 16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16062$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16063if ${lt_cv_archive_cmds_need_lc+:} false; then : 16064 $as_echo_n "(cached) " >&6 16065else 16066 $RM conftest* 16067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16068 16069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16070 (eval $ac_compile) 2>&5 16071 ac_status=$? 16072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16073 test $ac_status = 0; } 2>conftest.err; then 16074 soname=conftest 16075 lib=conftest 16076 libobjs=conftest.$ac_objext 16077 deplibs= 16078 wl=$lt_prog_compiler_wl 16079 pic_flag=$lt_prog_compiler_pic 16080 compiler_flags=-v 16081 linker_flags=-v 16082 verstring= 16083 output_objdir=. 16084 libname=conftest 16085 lt_save_allow_undefined_flag=$allow_undefined_flag 16086 allow_undefined_flag= 16087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16088 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16089 ac_status=$? 16090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16091 test $ac_status = 0; } 16092 then 16093 lt_cv_archive_cmds_need_lc=no 16094 else 16095 lt_cv_archive_cmds_need_lc=yes 16096 fi 16097 allow_undefined_flag=$lt_save_allow_undefined_flag 16098 else 16099 cat conftest.err 1>&5 16100 fi 16101 $RM conftest* 16102 16103fi 16104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16105$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16106 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16107 ;; 16108 esac 16109 fi 16110 ;; 16111esac 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16265$as_echo_n "checking dynamic linker characteristics... " >&6; } 16266 16267if test "$GCC" = yes; then 16268 case $host_os in 16269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16270 *) lt_awk_arg="/^libraries:/" ;; 16271 esac 16272 case $host_os in 16273 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16274 *) lt_sed_strip_eq="s,=/,/,g" ;; 16275 esac 16276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16277 case $lt_search_path_spec in 16278 *\;*) 16279 # if the path contains ";" then we assume it to be the separator 16280 # otherwise default to the standard path separator (i.e. ":") - it is 16281 # assumed that no part of a normal pathname contains ";" but that should 16282 # okay in the real world where ";" in dirpaths is itself problematic. 16283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16284 ;; 16285 *) 16286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16287 ;; 16288 esac 16289 # Ok, now we have the path, separated by spaces, we can step through it 16290 # and add multilib dir if necessary. 16291 lt_tmp_lt_search_path_spec= 16292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16293 for lt_sys_path in $lt_search_path_spec; do 16294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16296 else 16297 test -d "$lt_sys_path" && \ 16298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16299 fi 16300 done 16301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16302BEGIN {RS=" "; FS="/|\n";} { 16303 lt_foo=""; 16304 lt_count=0; 16305 for (lt_i = NF; lt_i > 0; lt_i--) { 16306 if ($lt_i != "" && $lt_i != ".") { 16307 if ($lt_i == "..") { 16308 lt_count++; 16309 } else { 16310 if (lt_count == 0) { 16311 lt_foo="/" $lt_i lt_foo; 16312 } else { 16313 lt_count--; 16314 } 16315 } 16316 } 16317 } 16318 if (lt_foo != "") { lt_freq[lt_foo]++; } 16319 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16320}'` 16321 # AWK program above erroneously prepends '/' to C:/dos/paths 16322 # for these hosts. 16323 case $host_os in 16324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16325 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16326 esac 16327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16328else 16329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16330fi 16331library_names_spec= 16332libname_spec='lib$name' 16333soname_spec= 16334shrext_cmds=".so" 16335postinstall_cmds= 16336postuninstall_cmds= 16337finish_cmds= 16338finish_eval= 16339shlibpath_var= 16340shlibpath_overrides_runpath=unknown 16341version_type=none 16342dynamic_linker="$host_os ld.so" 16343sys_lib_dlsearch_path_spec="/lib /usr/lib" 16344need_lib_prefix=unknown 16345hardcode_into_libs=no 16346 16347# when you set need_version to no, make sure it does not cause -set_version 16348# flags to be left without arguments 16349need_version=unknown 16350 16351case $host_os in 16352aix3*) 16353 version_type=linux # correct to gnu/linux during the next big refactor 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16355 shlibpath_var=LIBPATH 16356 16357 # AIX 3 has no versioning support, so we append a major version to the name. 16358 soname_spec='${libname}${release}${shared_ext}$major' 16359 ;; 16360 16361aix[4-9]*) 16362 version_type=linux # correct to gnu/linux during the next big refactor 16363 need_lib_prefix=no 16364 need_version=no 16365 hardcode_into_libs=yes 16366 if test "$host_cpu" = ia64; then 16367 # AIX 5 supports IA64 16368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16369 shlibpath_var=LD_LIBRARY_PATH 16370 else 16371 # With GCC up to 2.95.x, collect2 would create an import file 16372 # for dependence libraries. The import file would start with 16373 # the line `#! .'. This would cause the generated library to 16374 # depend on `.', always an invalid library. This was fixed in 16375 # development snapshots of GCC prior to 3.0. 16376 case $host_os in 16377 aix4 | aix4.[01] | aix4.[01].*) 16378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16379 echo ' yes ' 16380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16381 : 16382 else 16383 can_build_shared=no 16384 fi 16385 ;; 16386 esac 16387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16388 # soname into executable. Probably we can add versioning support to 16389 # collect2, so additional links can be useful in future. 16390 if test "$aix_use_runtimelinking" = yes; then 16391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16392 # instead of lib<name>.a to let people know that these are not 16393 # typical AIX shared libraries. 16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16395 else 16396 # We preserve .a as extension for shared libraries through AIX4.2 16397 # and later when we are not doing run time linking. 16398 library_names_spec='${libname}${release}.a $libname.a' 16399 soname_spec='${libname}${release}${shared_ext}$major' 16400 fi 16401 shlibpath_var=LIBPATH 16402 fi 16403 ;; 16404 16405amigaos*) 16406 case $host_cpu in 16407 powerpc) 16408 # Since July 2007 AmigaOS4 officially supports .so libraries. 16409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16411 ;; 16412 m68k) 16413 library_names_spec='$libname.ixlibrary $libname.a' 16414 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16415 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' 16416 ;; 16417 esac 16418 ;; 16419 16420beos*) 16421 library_names_spec='${libname}${shared_ext}' 16422 dynamic_linker="$host_os ld.so" 16423 shlibpath_var=LIBRARY_PATH 16424 ;; 16425 16426bsdi[45]*) 16427 version_type=linux # correct to gnu/linux during the next big refactor 16428 need_version=no 16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16430 soname_spec='${libname}${release}${shared_ext}$major' 16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16432 shlibpath_var=LD_LIBRARY_PATH 16433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16435 # the default ld.so.conf also contains /usr/contrib/lib and 16436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16437 # libtool to hard-code these into programs 16438 ;; 16439 16440cygwin* | mingw* | pw32* | cegcc*) 16441 version_type=windows 16442 shrext_cmds=".dll" 16443 need_version=no 16444 need_lib_prefix=no 16445 16446 case $GCC,$cc_basename in 16447 yes,*) 16448 # gcc 16449 library_names_spec='$libname.dll.a' 16450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16451 postinstall_cmds='base_file=`basename \${file}`~ 16452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16453 dldir=$destdir/`dirname \$dlpath`~ 16454 test -d \$dldir || mkdir -p \$dldir~ 16455 $install_prog $dir/$dlname \$dldir/$dlname~ 16456 chmod a+x \$dldir/$dlname~ 16457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16459 fi' 16460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16461 dlpath=$dir/\$dldll~ 16462 $RM \$dlpath' 16463 shlibpath_overrides_runpath=yes 16464 16465 case $host_os in 16466 cygwin*) 16467 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16469 16470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16471 ;; 16472 mingw* | cegcc*) 16473 # MinGW DLLs use traditional 'lib' prefix 16474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16475 ;; 16476 pw32*) 16477 # pw32 DLLs use 'pw' prefix rather than 'lib' 16478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16479 ;; 16480 esac 16481 dynamic_linker='Win32 ld.exe' 16482 ;; 16483 16484 *,cl*) 16485 # Native MSVC 16486 libname_spec='$name' 16487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16488 library_names_spec='${libname}.dll.lib' 16489 16490 case $build_os in 16491 mingw*) 16492 sys_lib_search_path_spec= 16493 lt_save_ifs=$IFS 16494 IFS=';' 16495 for lt_path in $LIB 16496 do 16497 IFS=$lt_save_ifs 16498 # Let DOS variable expansion print the short 8.3 style file name. 16499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16501 done 16502 IFS=$lt_save_ifs 16503 # Convert to MSYS style. 16504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16505 ;; 16506 cygwin*) 16507 # Convert to unix form, then to dos form, then back to unix form 16508 # but this time dos style (no spaces!) so that the unix form looks 16509 # like /cygdrive/c/PROGRA~1:/cygdr... 16510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16513 ;; 16514 *) 16515 sys_lib_search_path_spec="$LIB" 16516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16517 # It is most probably a Windows format PATH. 16518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16519 else 16520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16521 fi 16522 # FIXME: find the short name or the path components, as spaces are 16523 # common. (e.g. "Program Files" -> "PROGRA~1") 16524 ;; 16525 esac 16526 16527 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16528 postinstall_cmds='base_file=`basename \${file}`~ 16529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16530 dldir=$destdir/`dirname \$dlpath`~ 16531 test -d \$dldir || mkdir -p \$dldir~ 16532 $install_prog $dir/$dlname \$dldir/$dlname' 16533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16534 dlpath=$dir/\$dldll~ 16535 $RM \$dlpath' 16536 shlibpath_overrides_runpath=yes 16537 dynamic_linker='Win32 link.exe' 16538 ;; 16539 16540 *) 16541 # Assume MSVC wrapper 16542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16543 dynamic_linker='Win32 ld.exe' 16544 ;; 16545 esac 16546 # FIXME: first we should search . and the directory the executable is in 16547 shlibpath_var=PATH 16548 ;; 16549 16550darwin* | rhapsody*) 16551 dynamic_linker="$host_os dyld" 16552 version_type=darwin 16553 need_lib_prefix=no 16554 need_version=no 16555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16556 soname_spec='${libname}${release}${major}$shared_ext' 16557 shlibpath_overrides_runpath=yes 16558 shlibpath_var=DYLD_LIBRARY_PATH 16559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16560 16561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16563 ;; 16564 16565dgux*) 16566 version_type=linux # correct to gnu/linux during the next big refactor 16567 need_lib_prefix=no 16568 need_version=no 16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16570 soname_spec='${libname}${release}${shared_ext}$major' 16571 shlibpath_var=LD_LIBRARY_PATH 16572 ;; 16573 16574freebsd* | dragonfly*) 16575 # DragonFly does not have aout. When/if they implement a new 16576 # versioning mechanism, adjust this. 16577 if test -x /usr/bin/objformat; then 16578 objformat=`/usr/bin/objformat` 16579 else 16580 case $host_os in 16581 freebsd[23].*) objformat=aout ;; 16582 *) objformat=elf ;; 16583 esac 16584 fi 16585 version_type=freebsd-$objformat 16586 case $version_type in 16587 freebsd-elf*) 16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16589 need_version=no 16590 need_lib_prefix=no 16591 ;; 16592 freebsd-*) 16593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16594 need_version=yes 16595 ;; 16596 esac 16597 shlibpath_var=LD_LIBRARY_PATH 16598 case $host_os in 16599 freebsd2.*) 16600 shlibpath_overrides_runpath=yes 16601 ;; 16602 freebsd3.[01]* | freebsdelf3.[01]*) 16603 shlibpath_overrides_runpath=yes 16604 hardcode_into_libs=yes 16605 ;; 16606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16608 shlibpath_overrides_runpath=no 16609 hardcode_into_libs=yes 16610 ;; 16611 *) # from 4.6 on, and DragonFly 16612 shlibpath_overrides_runpath=yes 16613 hardcode_into_libs=yes 16614 ;; 16615 esac 16616 ;; 16617 16618gnu*) 16619 version_type=linux # correct to gnu/linux during the next big refactor 16620 need_lib_prefix=no 16621 need_version=no 16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16623 soname_spec='${libname}${release}${shared_ext}$major' 16624 shlibpath_var=LD_LIBRARY_PATH 16625 shlibpath_overrides_runpath=no 16626 hardcode_into_libs=yes 16627 ;; 16628 16629haiku*) 16630 version_type=linux # correct to gnu/linux during the next big refactor 16631 need_lib_prefix=no 16632 need_version=no 16633 dynamic_linker="$host_os runtime_loader" 16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16635 soname_spec='${libname}${release}${shared_ext}$major' 16636 shlibpath_var=LIBRARY_PATH 16637 shlibpath_overrides_runpath=yes 16638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16639 hardcode_into_libs=yes 16640 ;; 16641 16642hpux9* | hpux10* | hpux11*) 16643 # Give a soname corresponding to the major version so that dld.sl refuses to 16644 # link against other versions. 16645 version_type=sunos 16646 need_lib_prefix=no 16647 need_version=no 16648 case $host_cpu in 16649 ia64*) 16650 shrext_cmds='.so' 16651 hardcode_into_libs=yes 16652 dynamic_linker="$host_os dld.so" 16653 shlibpath_var=LD_LIBRARY_PATH 16654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16656 soname_spec='${libname}${release}${shared_ext}$major' 16657 if test "X$HPUX_IA64_MODE" = X32; then 16658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16659 else 16660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16661 fi 16662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16663 ;; 16664 hppa*64*) 16665 shrext_cmds='.sl' 16666 hardcode_into_libs=yes 16667 dynamic_linker="$host_os dld.sl" 16668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16671 soname_spec='${libname}${release}${shared_ext}$major' 16672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16674 ;; 16675 *) 16676 shrext_cmds='.sl' 16677 dynamic_linker="$host_os dld.sl" 16678 shlibpath_var=SHLIB_PATH 16679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16681 soname_spec='${libname}${release}${shared_ext}$major' 16682 ;; 16683 esac 16684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16685 postinstall_cmds='chmod 555 $lib' 16686 # or fails outright, so override atomically: 16687 install_override_mode=555 16688 ;; 16689 16690interix[3-9]*) 16691 version_type=linux # correct to gnu/linux during the next big refactor 16692 need_lib_prefix=no 16693 need_version=no 16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16695 soname_spec='${libname}${release}${shared_ext}$major' 16696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16697 shlibpath_var=LD_LIBRARY_PATH 16698 shlibpath_overrides_runpath=no 16699 hardcode_into_libs=yes 16700 ;; 16701 16702irix5* | irix6* | nonstopux*) 16703 case $host_os in 16704 nonstopux*) version_type=nonstopux ;; 16705 *) 16706 if test "$lt_cv_prog_gnu_ld" = yes; then 16707 version_type=linux # correct to gnu/linux during the next big refactor 16708 else 16709 version_type=irix 16710 fi ;; 16711 esac 16712 need_lib_prefix=no 16713 need_version=no 16714 soname_spec='${libname}${release}${shared_ext}$major' 16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16716 case $host_os in 16717 irix5* | nonstopux*) 16718 libsuff= shlibsuff= 16719 ;; 16720 *) 16721 case $LD in # libtool.m4 will add one of these switches to LD 16722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16723 libsuff= shlibsuff= libmagic=32-bit;; 16724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16725 libsuff=32 shlibsuff=N32 libmagic=N32;; 16726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16727 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16728 *) libsuff= shlibsuff= libmagic=never-match;; 16729 esac 16730 ;; 16731 esac 16732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16733 shlibpath_overrides_runpath=no 16734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16736 hardcode_into_libs=yes 16737 ;; 16738 16739# No shared lib support for Linux oldld, aout, or coff. 16740linux*oldld* | linux*aout* | linux*coff*) 16741 dynamic_linker=no 16742 ;; 16743 16744# This must be glibc/ELF. 16745linux* | k*bsd*-gnu | kopensolaris*-gnu) 16746 version_type=linux # correct to gnu/linux during the next big refactor 16747 need_lib_prefix=no 16748 need_version=no 16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16750 soname_spec='${libname}${release}${shared_ext}$major' 16751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16752 shlibpath_var=LD_LIBRARY_PATH 16753 shlibpath_overrides_runpath=no 16754 16755 # Some binutils ld are patched to set DT_RUNPATH 16756 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16757 $as_echo_n "(cached) " >&6 16758else 16759 lt_cv_shlibpath_overrides_runpath=no 16760 save_LDFLAGS=$LDFLAGS 16761 save_libdir=$libdir 16762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766 16767int 16768main () 16769{ 16770 16771 ; 16772 return 0; 16773} 16774_ACEOF 16775if ac_fn_c_try_link "$LINENO"; then : 16776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16777 lt_cv_shlibpath_overrides_runpath=yes 16778fi 16779fi 16780rm -f core conftest.err conftest.$ac_objext \ 16781 conftest$ac_exeext conftest.$ac_ext 16782 LDFLAGS=$save_LDFLAGS 16783 libdir=$save_libdir 16784 16785fi 16786 16787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16788 16789 # This implies no fast_install, which is unacceptable. 16790 # Some rework will be needed to allow for fast_install 16791 # before this can be enabled. 16792 hardcode_into_libs=yes 16793 16794 # Add ABI-specific directories to the system library path. 16795 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16796 16797 # Append ld.so.conf contents to the search path 16798 if test -f /etc/ld.so.conf; then 16799 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' ' '` 16800 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16801 16802 fi 16803 16804 # We used to test for /lib/ld.so.1 and disable shared libraries on 16805 # powerpc, because MkLinux only supported shared libraries with the 16806 # GNU dynamic linker. Since this was broken with cross compilers, 16807 # most powerpc-linux boxes support dynamic linking these days and 16808 # people can always --disable-shared, the test was removed, and we 16809 # assume the GNU/Linux dynamic linker is in use. 16810 dynamic_linker='GNU/Linux ld.so' 16811 ;; 16812 16813netbsd*) 16814 version_type=sunos 16815 need_lib_prefix=no 16816 need_version=no 16817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16820 dynamic_linker='NetBSD (a.out) ld.so' 16821 else 16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16823 soname_spec='${libname}${release}${shared_ext}$major' 16824 dynamic_linker='NetBSD ld.elf_so' 16825 fi 16826 shlibpath_var=LD_LIBRARY_PATH 16827 shlibpath_overrides_runpath=yes 16828 hardcode_into_libs=yes 16829 ;; 16830 16831newsos6) 16832 version_type=linux # correct to gnu/linux during the next big refactor 16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16834 shlibpath_var=LD_LIBRARY_PATH 16835 shlibpath_overrides_runpath=yes 16836 ;; 16837 16838*nto* | *qnx*) 16839 version_type=qnx 16840 need_lib_prefix=no 16841 need_version=no 16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16843 soname_spec='${libname}${release}${shared_ext}$major' 16844 shlibpath_var=LD_LIBRARY_PATH 16845 shlibpath_overrides_runpath=no 16846 hardcode_into_libs=yes 16847 dynamic_linker='ldqnx.so' 16848 ;; 16849 16850openbsd*) 16851 version_type=sunos 16852 sys_lib_dlsearch_path_spec="/usr/lib" 16853 need_lib_prefix=no 16854 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16855 case $host_os in 16856 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16857 *) need_version=no ;; 16858 esac 16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16861 shlibpath_var=LD_LIBRARY_PATH 16862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16863 case $host_os in 16864 openbsd2.[89] | openbsd2.[89].*) 16865 shlibpath_overrides_runpath=no 16866 ;; 16867 *) 16868 shlibpath_overrides_runpath=yes 16869 ;; 16870 esac 16871 else 16872 shlibpath_overrides_runpath=yes 16873 fi 16874 ;; 16875 16876os2*) 16877 libname_spec='$name' 16878 shrext_cmds=".dll" 16879 need_lib_prefix=no 16880 library_names_spec='$libname${shared_ext} $libname.a' 16881 dynamic_linker='OS/2 ld.exe' 16882 shlibpath_var=LIBPATH 16883 ;; 16884 16885osf3* | osf4* | osf5*) 16886 version_type=osf 16887 need_lib_prefix=no 16888 need_version=no 16889 soname_spec='${libname}${release}${shared_ext}$major' 16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16891 shlibpath_var=LD_LIBRARY_PATH 16892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16893 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16894 ;; 16895 16896rdos*) 16897 dynamic_linker=no 16898 ;; 16899 16900solaris*) 16901 version_type=linux # correct to gnu/linux during the next big refactor 16902 need_lib_prefix=no 16903 need_version=no 16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16905 soname_spec='${libname}${release}${shared_ext}$major' 16906 shlibpath_var=LD_LIBRARY_PATH 16907 shlibpath_overrides_runpath=yes 16908 hardcode_into_libs=yes 16909 # ldd complains unless libraries are executable 16910 postinstall_cmds='chmod +x $lib' 16911 ;; 16912 16913sunos4*) 16914 version_type=sunos 16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16917 shlibpath_var=LD_LIBRARY_PATH 16918 shlibpath_overrides_runpath=yes 16919 if test "$with_gnu_ld" = yes; then 16920 need_lib_prefix=no 16921 fi 16922 need_version=yes 16923 ;; 16924 16925sysv4 | sysv4.3*) 16926 version_type=linux # correct to gnu/linux during the next big refactor 16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16928 soname_spec='${libname}${release}${shared_ext}$major' 16929 shlibpath_var=LD_LIBRARY_PATH 16930 case $host_vendor in 16931 sni) 16932 shlibpath_overrides_runpath=no 16933 need_lib_prefix=no 16934 runpath_var=LD_RUN_PATH 16935 ;; 16936 siemens) 16937 need_lib_prefix=no 16938 ;; 16939 motorola) 16940 need_lib_prefix=no 16941 need_version=no 16942 shlibpath_overrides_runpath=no 16943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16944 ;; 16945 esac 16946 ;; 16947 16948sysv4*MP*) 16949 if test -d /usr/nec ;then 16950 version_type=linux # correct to gnu/linux during the next big refactor 16951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16952 soname_spec='$libname${shared_ext}.$major' 16953 shlibpath_var=LD_LIBRARY_PATH 16954 fi 16955 ;; 16956 16957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16958 version_type=freebsd-elf 16959 need_lib_prefix=no 16960 need_version=no 16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16962 soname_spec='${libname}${release}${shared_ext}$major' 16963 shlibpath_var=LD_LIBRARY_PATH 16964 shlibpath_overrides_runpath=yes 16965 hardcode_into_libs=yes 16966 if test "$with_gnu_ld" = yes; then 16967 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16968 else 16969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16970 case $host_os in 16971 sco3.2v5*) 16972 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16973 ;; 16974 esac 16975 fi 16976 sys_lib_dlsearch_path_spec='/usr/lib' 16977 ;; 16978 16979tpf*) 16980 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16981 version_type=linux # correct to gnu/linux during the next big refactor 16982 need_lib_prefix=no 16983 need_version=no 16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16985 shlibpath_var=LD_LIBRARY_PATH 16986 shlibpath_overrides_runpath=no 16987 hardcode_into_libs=yes 16988 ;; 16989 16990uts4*) 16991 version_type=linux # correct to gnu/linux during the next big refactor 16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16993 soname_spec='${libname}${release}${shared_ext}$major' 16994 shlibpath_var=LD_LIBRARY_PATH 16995 ;; 16996 16997*) 16998 dynamic_linker=no 16999 ;; 17000esac 17001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17002$as_echo "$dynamic_linker" >&6; } 17003test "$dynamic_linker" = no && can_build_shared=no 17004 17005variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17006if test "$GCC" = yes; then 17007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17008fi 17009 17010if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17011 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17012fi 17013if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17014 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17015fi 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17109$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17110hardcode_action= 17111if test -n "$hardcode_libdir_flag_spec" || 17112 test -n "$runpath_var" || 17113 test "X$hardcode_automatic" = "Xyes" ; then 17114 17115 # We can hardcode non-existent directories. 17116 if test "$hardcode_direct" != no && 17117 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17118 # have to relink, otherwise we might link with an installed library 17119 # when we should be linking with a yet-to-be-installed one 17120 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17121 test "$hardcode_minus_L" != no; then 17122 # Linking always hardcodes the temporary library directory. 17123 hardcode_action=relink 17124 else 17125 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17126 hardcode_action=immediate 17127 fi 17128else 17129 # We cannot hardcode anything, or else we can only hardcode existing 17130 # directories. 17131 hardcode_action=unsupported 17132fi 17133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17134$as_echo "$hardcode_action" >&6; } 17135 17136if test "$hardcode_action" = relink || 17137 test "$inherit_rpath" = yes; then 17138 # Fast installation is not supported 17139 enable_fast_install=no 17140elif test "$shlibpath_overrides_runpath" = yes || 17141 test "$enable_shared" = no; then 17142 # Fast installation is not necessary 17143 enable_fast_install=needless 17144fi 17145 17146 17147 17148 17149 17150 17151 if test "x$enable_dlopen" != xyes; then 17152 enable_dlopen=unknown 17153 enable_dlopen_self=unknown 17154 enable_dlopen_self_static=unknown 17155else 17156 lt_cv_dlopen=no 17157 lt_cv_dlopen_libs= 17158 17159 case $host_os in 17160 beos*) 17161 lt_cv_dlopen="load_add_on" 17162 lt_cv_dlopen_libs= 17163 lt_cv_dlopen_self=yes 17164 ;; 17165 17166 mingw* | pw32* | cegcc*) 17167 lt_cv_dlopen="LoadLibrary" 17168 lt_cv_dlopen_libs= 17169 ;; 17170 17171 cygwin*) 17172 lt_cv_dlopen="dlopen" 17173 lt_cv_dlopen_libs= 17174 ;; 17175 17176 darwin*) 17177 # if libdl is installed we need to link against it 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17179$as_echo_n "checking for dlopen in -ldl... " >&6; } 17180if ${ac_cv_lib_dl_dlopen+:} false; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 ac_check_lib_save_LIBS=$LIBS 17184LIBS="-ldl $LIBS" 17185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17186/* end confdefs.h. */ 17187 17188/* Override any GCC internal prototype to avoid an error. 17189 Use char because int might match the return type of a GCC 17190 builtin and then its argument prototype would still apply. */ 17191#ifdef __cplusplus 17192extern "C" 17193#endif 17194char dlopen (); 17195int 17196main () 17197{ 17198return dlopen (); 17199 ; 17200 return 0; 17201} 17202_ACEOF 17203if ac_fn_c_try_link "$LINENO"; then : 17204 ac_cv_lib_dl_dlopen=yes 17205else 17206 ac_cv_lib_dl_dlopen=no 17207fi 17208rm -f core conftest.err conftest.$ac_objext \ 17209 conftest$ac_exeext conftest.$ac_ext 17210LIBS=$ac_check_lib_save_LIBS 17211fi 17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17213$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17214if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17216else 17217 17218 lt_cv_dlopen="dyld" 17219 lt_cv_dlopen_libs= 17220 lt_cv_dlopen_self=yes 17221 17222fi 17223 17224 ;; 17225 17226 *) 17227 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17228if test "x$ac_cv_func_shl_load" = xyes; then : 17229 lt_cv_dlopen="shl_load" 17230else 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17232$as_echo_n "checking for shl_load in -ldld... " >&6; } 17233if ${ac_cv_lib_dld_shl_load+:} false; then : 17234 $as_echo_n "(cached) " >&6 17235else 17236 ac_check_lib_save_LIBS=$LIBS 17237LIBS="-ldld $LIBS" 17238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17239/* end confdefs.h. */ 17240 17241/* Override any GCC internal prototype to avoid an error. 17242 Use char because int might match the return type of a GCC 17243 builtin and then its argument prototype would still apply. */ 17244#ifdef __cplusplus 17245extern "C" 17246#endif 17247char shl_load (); 17248int 17249main () 17250{ 17251return shl_load (); 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256if ac_fn_c_try_link "$LINENO"; then : 17257 ac_cv_lib_dld_shl_load=yes 17258else 17259 ac_cv_lib_dld_shl_load=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext \ 17262 conftest$ac_exeext conftest.$ac_ext 17263LIBS=$ac_check_lib_save_LIBS 17264fi 17265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17266$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17267if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17268 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17269else 17270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17271if test "x$ac_cv_func_dlopen" = xyes; then : 17272 lt_cv_dlopen="dlopen" 17273else 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17275$as_echo_n "checking for dlopen in -ldl... " >&6; } 17276if ${ac_cv_lib_dl_dlopen+:} false; then : 17277 $as_echo_n "(cached) " >&6 17278else 17279 ac_check_lib_save_LIBS=$LIBS 17280LIBS="-ldl $LIBS" 17281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17282/* end confdefs.h. */ 17283 17284/* Override any GCC internal prototype to avoid an error. 17285 Use char because int might match the return type of a GCC 17286 builtin and then its argument prototype would still apply. */ 17287#ifdef __cplusplus 17288extern "C" 17289#endif 17290char dlopen (); 17291int 17292main () 17293{ 17294return dlopen (); 17295 ; 17296 return 0; 17297} 17298_ACEOF 17299if ac_fn_c_try_link "$LINENO"; then : 17300 ac_cv_lib_dl_dlopen=yes 17301else 17302 ac_cv_lib_dl_dlopen=no 17303fi 17304rm -f core conftest.err conftest.$ac_objext \ 17305 conftest$ac_exeext conftest.$ac_ext 17306LIBS=$ac_check_lib_save_LIBS 17307fi 17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17309$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17310if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17312else 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17314$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17315if ${ac_cv_lib_svld_dlopen+:} false; then : 17316 $as_echo_n "(cached) " >&6 17317else 17318 ac_check_lib_save_LIBS=$LIBS 17319LIBS="-lsvld $LIBS" 17320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17321/* end confdefs.h. */ 17322 17323/* Override any GCC internal prototype to avoid an error. 17324 Use char because int might match the return type of a GCC 17325 builtin and then its argument prototype would still apply. */ 17326#ifdef __cplusplus 17327extern "C" 17328#endif 17329char dlopen (); 17330int 17331main () 17332{ 17333return dlopen (); 17334 ; 17335 return 0; 17336} 17337_ACEOF 17338if ac_fn_c_try_link "$LINENO"; then : 17339 ac_cv_lib_svld_dlopen=yes 17340else 17341 ac_cv_lib_svld_dlopen=no 17342fi 17343rm -f core conftest.err conftest.$ac_objext \ 17344 conftest$ac_exeext conftest.$ac_ext 17345LIBS=$ac_check_lib_save_LIBS 17346fi 17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17348$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17349if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17351else 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17353$as_echo_n "checking for dld_link in -ldld... " >&6; } 17354if ${ac_cv_lib_dld_dld_link+:} false; then : 17355 $as_echo_n "(cached) " >&6 17356else 17357 ac_check_lib_save_LIBS=$LIBS 17358LIBS="-ldld $LIBS" 17359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17360/* end confdefs.h. */ 17361 17362/* Override any GCC internal prototype to avoid an error. 17363 Use char because int might match the return type of a GCC 17364 builtin and then its argument prototype would still apply. */ 17365#ifdef __cplusplus 17366extern "C" 17367#endif 17368char dld_link (); 17369int 17370main () 17371{ 17372return dld_link (); 17373 ; 17374 return 0; 17375} 17376_ACEOF 17377if ac_fn_c_try_link "$LINENO"; then : 17378 ac_cv_lib_dld_dld_link=yes 17379else 17380 ac_cv_lib_dld_dld_link=no 17381fi 17382rm -f core conftest.err conftest.$ac_objext \ 17383 conftest$ac_exeext conftest.$ac_ext 17384LIBS=$ac_check_lib_save_LIBS 17385fi 17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17387$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17388if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17389 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17390fi 17391 17392 17393fi 17394 17395 17396fi 17397 17398 17399fi 17400 17401 17402fi 17403 17404 17405fi 17406 17407 ;; 17408 esac 17409 17410 if test "x$lt_cv_dlopen" != xno; then 17411 enable_dlopen=yes 17412 else 17413 enable_dlopen=no 17414 fi 17415 17416 case $lt_cv_dlopen in 17417 dlopen) 17418 save_CPPFLAGS="$CPPFLAGS" 17419 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17420 17421 save_LDFLAGS="$LDFLAGS" 17422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17423 17424 save_LIBS="$LIBS" 17425 LIBS="$lt_cv_dlopen_libs $LIBS" 17426 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17428$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17429if ${lt_cv_dlopen_self+:} false; then : 17430 $as_echo_n "(cached) " >&6 17431else 17432 if test "$cross_compiling" = yes; then : 17433 lt_cv_dlopen_self=cross 17434else 17435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17436 lt_status=$lt_dlunknown 17437 cat > conftest.$ac_ext <<_LT_EOF 17438#line $LINENO "configure" 17439#include "confdefs.h" 17440 17441#if HAVE_DLFCN_H 17442#include <dlfcn.h> 17443#endif 17444 17445#include <stdio.h> 17446 17447#ifdef RTLD_GLOBAL 17448# define LT_DLGLOBAL RTLD_GLOBAL 17449#else 17450# ifdef DL_GLOBAL 17451# define LT_DLGLOBAL DL_GLOBAL 17452# else 17453# define LT_DLGLOBAL 0 17454# endif 17455#endif 17456 17457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17458 find out it does not work in some platform. */ 17459#ifndef LT_DLLAZY_OR_NOW 17460# ifdef RTLD_LAZY 17461# define LT_DLLAZY_OR_NOW RTLD_LAZY 17462# else 17463# ifdef DL_LAZY 17464# define LT_DLLAZY_OR_NOW DL_LAZY 17465# else 17466# ifdef RTLD_NOW 17467# define LT_DLLAZY_OR_NOW RTLD_NOW 17468# else 17469# ifdef DL_NOW 17470# define LT_DLLAZY_OR_NOW DL_NOW 17471# else 17472# define LT_DLLAZY_OR_NOW 0 17473# endif 17474# endif 17475# endif 17476# endif 17477#endif 17478 17479/* When -fvisbility=hidden is used, assume the code has been annotated 17480 correspondingly for the symbols needed. */ 17481#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17482int fnord () __attribute__((visibility("default"))); 17483#endif 17484 17485int fnord () { return 42; } 17486int main () 17487{ 17488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17489 int status = $lt_dlunknown; 17490 17491 if (self) 17492 { 17493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17494 else 17495 { 17496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17497 else puts (dlerror ()); 17498 } 17499 /* dlclose (self); */ 17500 } 17501 else 17502 puts (dlerror ()); 17503 17504 return status; 17505} 17506_LT_EOF 17507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17508 (eval $ac_link) 2>&5 17509 ac_status=$? 17510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17511 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17512 (./conftest; exit; ) >&5 2>/dev/null 17513 lt_status=$? 17514 case x$lt_status in 17515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17518 esac 17519 else : 17520 # compilation failed 17521 lt_cv_dlopen_self=no 17522 fi 17523fi 17524rm -fr conftest* 17525 17526 17527fi 17528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17529$as_echo "$lt_cv_dlopen_self" >&6; } 17530 17531 if test "x$lt_cv_dlopen_self" = xyes; then 17532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17534$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17535if ${lt_cv_dlopen_self_static+:} false; then : 17536 $as_echo_n "(cached) " >&6 17537else 17538 if test "$cross_compiling" = yes; then : 17539 lt_cv_dlopen_self_static=cross 17540else 17541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17542 lt_status=$lt_dlunknown 17543 cat > conftest.$ac_ext <<_LT_EOF 17544#line $LINENO "configure" 17545#include "confdefs.h" 17546 17547#if HAVE_DLFCN_H 17548#include <dlfcn.h> 17549#endif 17550 17551#include <stdio.h> 17552 17553#ifdef RTLD_GLOBAL 17554# define LT_DLGLOBAL RTLD_GLOBAL 17555#else 17556# ifdef DL_GLOBAL 17557# define LT_DLGLOBAL DL_GLOBAL 17558# else 17559# define LT_DLGLOBAL 0 17560# endif 17561#endif 17562 17563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17564 find out it does not work in some platform. */ 17565#ifndef LT_DLLAZY_OR_NOW 17566# ifdef RTLD_LAZY 17567# define LT_DLLAZY_OR_NOW RTLD_LAZY 17568# else 17569# ifdef DL_LAZY 17570# define LT_DLLAZY_OR_NOW DL_LAZY 17571# else 17572# ifdef RTLD_NOW 17573# define LT_DLLAZY_OR_NOW RTLD_NOW 17574# else 17575# ifdef DL_NOW 17576# define LT_DLLAZY_OR_NOW DL_NOW 17577# else 17578# define LT_DLLAZY_OR_NOW 0 17579# endif 17580# endif 17581# endif 17582# endif 17583#endif 17584 17585/* When -fvisbility=hidden is used, assume the code has been annotated 17586 correspondingly for the symbols needed. */ 17587#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17588int fnord () __attribute__((visibility("default"))); 17589#endif 17590 17591int fnord () { return 42; } 17592int main () 17593{ 17594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17595 int status = $lt_dlunknown; 17596 17597 if (self) 17598 { 17599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17600 else 17601 { 17602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17603 else puts (dlerror ()); 17604 } 17605 /* dlclose (self); */ 17606 } 17607 else 17608 puts (dlerror ()); 17609 17610 return status; 17611} 17612_LT_EOF 17613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17614 (eval $ac_link) 2>&5 17615 ac_status=$? 17616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17617 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17618 (./conftest; exit; ) >&5 2>/dev/null 17619 lt_status=$? 17620 case x$lt_status in 17621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17624 esac 17625 else : 17626 # compilation failed 17627 lt_cv_dlopen_self_static=no 17628 fi 17629fi 17630rm -fr conftest* 17631 17632 17633fi 17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17635$as_echo "$lt_cv_dlopen_self_static" >&6; } 17636 fi 17637 17638 CPPFLAGS="$save_CPPFLAGS" 17639 LDFLAGS="$save_LDFLAGS" 17640 LIBS="$save_LIBS" 17641 ;; 17642 esac 17643 17644 case $lt_cv_dlopen_self in 17645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17646 *) enable_dlopen_self=unknown ;; 17647 esac 17648 17649 case $lt_cv_dlopen_self_static in 17650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17651 *) enable_dlopen_self_static=unknown ;; 17652 esac 17653fi 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671striplib= 17672old_striplib= 17673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17674$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17675if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17677 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17679$as_echo "yes" >&6; } 17680else 17681# FIXME - insert some real tests, host_os isn't really good enough 17682 case $host_os in 17683 darwin*) 17684 if test -n "$STRIP" ; then 17685 striplib="$STRIP -x" 17686 old_striplib="$STRIP -S" 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17688$as_echo "yes" >&6; } 17689 else 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17691$as_echo "no" >&6; } 17692 fi 17693 ;; 17694 *) 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17696$as_echo "no" >&6; } 17697 ;; 17698 esac 17699fi 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 # Report which library types will actually be built 17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17714$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17716$as_echo "$can_build_shared" >&6; } 17717 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17719$as_echo_n "checking whether to build shared libraries... " >&6; } 17720 test "$can_build_shared" = "no" && enable_shared=no 17721 17722 # On AIX, shared libraries and static libraries use the same namespace, and 17723 # are all built from PIC. 17724 case $host_os in 17725 aix3*) 17726 test "$enable_shared" = yes && enable_static=no 17727 if test -n "$RANLIB"; then 17728 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17729 postinstall_cmds='$RANLIB $lib' 17730 fi 17731 ;; 17732 17733 aix[4-9]*) 17734 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17735 test "$enable_shared" = yes && enable_static=no 17736 fi 17737 ;; 17738 esac 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17740$as_echo "$enable_shared" >&6; } 17741 17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17743$as_echo_n "checking whether to build static libraries... " >&6; } 17744 # Make sure either enable_shared or enable_static is yes. 17745 test "$enable_shared" = yes || enable_static=yes 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17747$as_echo "$enable_static" >&6; } 17748 17749 17750 17751 17752fi 17753ac_ext=c 17754ac_cpp='$CPP $CPPFLAGS' 17755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17757ac_compiler_gnu=$ac_cv_c_compiler_gnu 17758 17759CC="$lt_save_CC" 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 ac_config_commands="$ac_config_commands libtool" 17776 17777 17778 17779 17780# Only expand once: 17781 17782 17783 17784 17785 17786# Define a configure option for an alternate module directory 17787 17788# Check whether --with-xorg-module-dir was given. 17789if test "${with_xorg_module_dir+set}" = set; then : 17790 withval=$with_xorg_module_dir; moduledir="$withval" 17791else 17792 moduledir="$libdir/xorg/modules" 17793fi 17794 17795 17796# Store the list of server defined optional extensions in REQUIRED_MODULES 17797 17798 17799 SAVE_CFLAGS="$CFLAGS" 17800 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17802/* end confdefs.h. */ 17803 17804#include "xorg-server.h" 17805#if !defined XV 17806#error XV not defined 17807#endif 17808 17809int 17810main () 17811{ 17812 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817if ac_fn_c_try_compile "$LINENO"; then : 17818 _EXT_CHECK=yes 17819else 17820 _EXT_CHECK=no 17821fi 17822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17823 CFLAGS="$SAVE_CFLAGS" 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 17825$as_echo_n "checking if XV is defined... " >&6; } 17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17827$as_echo "$_EXT_CHECK" >&6; } 17828 if test "$_EXT_CHECK" != no; then 17829 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 17830 fi 17831 17832 17833 17834 SAVE_CFLAGS="$CFLAGS" 17835 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17837/* end confdefs.h. */ 17838 17839#include "xorg-server.h" 17840#if !defined DPMSExtension 17841#error DPMSExtension not defined 17842#endif 17843 17844int 17845main () 17846{ 17847 17848 ; 17849 return 0; 17850} 17851_ACEOF 17852if ac_fn_c_try_compile "$LINENO"; then : 17853 _EXT_CHECK=yes 17854else 17855 _EXT_CHECK=no 17856fi 17857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17858 CFLAGS="$SAVE_CFLAGS" 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 17860$as_echo_n "checking if DPMSExtension is defined... " >&6; } 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17862$as_echo "$_EXT_CHECK" >&6; } 17863 if test "$_EXT_CHECK" != no; then 17864 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 17865 fi 17866 17867 17868# Obtain compiler/linker options for the driver dependencies 17869 17870pkg_failed=no 17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17872$as_echo_n "checking for XORG... " >&6; } 17873 17874if test -n "$XORG_CFLAGS"; then 17875 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17876 elif test -n "$PKG_CONFIG"; then 17877 if test -n "$PKG_CONFIG" && \ 17878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17879 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17880 ac_status=$? 17881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17882 test $ac_status = 0; }; then 17883 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17884else 17885 pkg_failed=yes 17886fi 17887 else 17888 pkg_failed=untried 17889fi 17890if test -n "$XORG_LIBS"; then 17891 pkg_cv_XORG_LIBS="$XORG_LIBS" 17892 elif test -n "$PKG_CONFIG"; then 17893 if test -n "$PKG_CONFIG" && \ 17894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17895 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17896 ac_status=$? 17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17898 test $ac_status = 0; }; then 17899 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17900else 17901 pkg_failed=yes 17902fi 17903 else 17904 pkg_failed=untried 17905fi 17906 17907 17908 17909if test $pkg_failed = yes; then 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17911$as_echo "no" >&6; } 17912 17913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17914 _pkg_short_errors_supported=yes 17915else 17916 _pkg_short_errors_supported=no 17917fi 17918 if test $_pkg_short_errors_supported = yes; then 17919 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17920 else 17921 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17922 fi 17923 # Put the nasty error message in config.log where it belongs 17924 echo "$XORG_PKG_ERRORS" >&5 17925 17926 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 17927 17928$XORG_PKG_ERRORS 17929 17930Consider adjusting the PKG_CONFIG_PATH environment variable if you 17931installed software in a non-standard prefix. 17932 17933Alternatively, you may set the environment variables XORG_CFLAGS 17934and XORG_LIBS to avoid the need to call pkg-config. 17935See the pkg-config man page for more details." "$LINENO" 5 17936 17937elif test $pkg_failed = untried; then 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17939$as_echo "no" >&6; } 17940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17942as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17943is in your PATH or set the PKG_CONFIG environment variable to the full 17944path to pkg-config. 17945 17946Alternatively, you may set the environment variables XORG_CFLAGS 17947and XORG_LIBS to avoid the need to call pkg-config. 17948See the pkg-config man page for more details. 17949 17950To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17951See \`config.log' for more details" "$LINENO" 5; } 17952 17953else 17954 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17955 XORG_LIBS=$pkg_cv_XORG_LIBS 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17957$as_echo "yes" >&6; } 17958 17959fi 17960 17961pkg_failed=no 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 17963$as_echo_n "checking for XEXT... " >&6; } 17964 17965if test -n "$XEXT_CFLAGS"; then 17966 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 17967 elif test -n "$PKG_CONFIG"; then 17968 if test -n "$PKG_CONFIG" && \ 17969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 17970 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 17971 ac_status=$? 17972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17973 test $ac_status = 0; }; then 17974 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 17975else 17976 pkg_failed=yes 17977fi 17978 else 17979 pkg_failed=untried 17980fi 17981if test -n "$XEXT_LIBS"; then 17982 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 17983 elif test -n "$PKG_CONFIG"; then 17984 if test -n "$PKG_CONFIG" && \ 17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 17986 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 17987 ac_status=$? 17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17989 test $ac_status = 0; }; then 17990 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 17991else 17992 pkg_failed=yes 17993fi 17994 else 17995 pkg_failed=untried 17996fi 17997 17998 17999 18000if test $pkg_failed = yes; then 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18002$as_echo "no" >&6; } 18003 18004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18005 _pkg_short_errors_supported=yes 18006else 18007 _pkg_short_errors_supported=no 18008fi 18009 if test $_pkg_short_errors_supported = yes; then 18010 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 18011 else 18012 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 18013 fi 18014 # Put the nasty error message in config.log where it belongs 18015 echo "$XEXT_PKG_ERRORS" >&5 18016 18017 HAVE_XEXTPROTO_71="no" 18018elif test $pkg_failed = untried; then 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18020$as_echo "no" >&6; } 18021 HAVE_XEXTPROTO_71="no" 18022else 18023 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18024 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18026$as_echo "yes" >&6; } 18027 HAVE_XEXTPROTO_71="yes"; 18028$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18029 18030fi 18031 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18032 HAVE_XEXTPROTO_71_TRUE= 18033 HAVE_XEXTPROTO_71_FALSE='#' 18034else 18035 HAVE_XEXTPROTO_71_TRUE='#' 18036 HAVE_XEXTPROTO_71_FALSE= 18037fi 18038 18039 18040# Checks for libraries. 18041SAVE_CPPFLAGS="$CPPFLAGS" 18042CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18043ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18044" 18045if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18046 XSERVER_LIBPCIACCESS=yes 18047else 18048 XSERVER_LIBPCIACCESS=no 18049fi 18050 18051ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\" 18052" 18053if test "x$ac_cv_header_xf86Modes_h" = xyes; then : 18054 XMODES=yes 18055else 18056 XMODES=no 18057fi 18058 18059 18060CPPFLAGS="$SAVE_CPPFLAGS" 18061 18062if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18063 18064pkg_failed=no 18065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18066$as_echo_n "checking for PCIACCESS... " >&6; } 18067 18068if test -n "$PCIACCESS_CFLAGS"; then 18069 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18070 elif test -n "$PKG_CONFIG"; then 18071 if test -n "$PKG_CONFIG" && \ 18072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18073 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18074 ac_status=$? 18075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18076 test $ac_status = 0; }; then 18077 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18078else 18079 pkg_failed=yes 18080fi 18081 else 18082 pkg_failed=untried 18083fi 18084if test -n "$PCIACCESS_LIBS"; then 18085 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18086 elif test -n "$PKG_CONFIG"; then 18087 if test -n "$PKG_CONFIG" && \ 18088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18089 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18090 ac_status=$? 18091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18092 test $ac_status = 0; }; then 18093 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18094else 18095 pkg_failed=yes 18096fi 18097 else 18098 pkg_failed=untried 18099fi 18100 18101 18102 18103if test $pkg_failed = yes; then 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18105$as_echo "no" >&6; } 18106 18107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18108 _pkg_short_errors_supported=yes 18109else 18110 _pkg_short_errors_supported=no 18111fi 18112 if test $_pkg_short_errors_supported = yes; then 18113 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 18114 else 18115 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 18116 fi 18117 # Put the nasty error message in config.log where it belongs 18118 echo "$PCIACCESS_PKG_ERRORS" >&5 18119 18120 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18121 18122$PCIACCESS_PKG_ERRORS 18123 18124Consider adjusting the PKG_CONFIG_PATH environment variable if you 18125installed software in a non-standard prefix. 18126 18127Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18128and PCIACCESS_LIBS to avoid the need to call pkg-config. 18129See the pkg-config man page for more details." "$LINENO" 5 18130 18131elif test $pkg_failed = untried; then 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18133$as_echo "no" >&6; } 18134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18136as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18137is in your PATH or set the PKG_CONFIG environment variable to the full 18138path to pkg-config. 18139 18140Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18141and PCIACCESS_LIBS to avoid the need to call pkg-config. 18142See the pkg-config man page for more details. 18143 18144To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18145See \`config.log' for more details" "$LINENO" 5; } 18146 18147else 18148 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18149 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18151$as_echo "yes" >&6; } 18152 18153fi 18154fi 18155 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18156 XSERVER_LIBPCIACCESS_TRUE= 18157 XSERVER_LIBPCIACCESS_FALSE='#' 18158else 18159 XSERVER_LIBPCIACCESS_TRUE='#' 18160 XSERVER_LIBPCIACCESS_FALSE= 18161fi 18162 18163 if test "x$XMODES" = xyes; then 18164 XMODES_TRUE= 18165 XMODES_FALSE='#' 18166else 18167 XMODES_TRUE='#' 18168 XMODES_FALSE= 18169fi 18170 18171 18172if test "x$XMODES" = xyes; then 18173 18174$as_echo "#define HAVE_XMODES 1" >>confdefs.h 18175 18176fi 18177# Check whether --enable-xaa was given. 18178if test "${enable_xaa+set}" = set; then : 18179 enableval=$enable_xaa; XAA="$enableval" 18180else 18181 XAA=auto 18182fi 18183 18184if test "x$XAA" != xno; then 18185 save_CFLAGS=$CFLAGS 18186 save_CPPFLAGS=$CPPFLAGS 18187 CFLAGS=$XORG_CFLAGS 18188 CPPFLAGS="$XORG_CFLAGS" 18189 for ac_header in xaa.h 18190do : 18191 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18192if test "x$ac_cv_header_xaa_h" = xyes; then : 18193 cat >>confdefs.h <<_ACEOF 18194#define HAVE_XAA_H 1 18195_ACEOF 18196 XAA=yes 18197else 18198 XAA=no 18199fi 18200 18201done 18202 18203 CFLAGS=$save_CFLAGS 18204 CPPFLAGS=$save_CPPFLAGS 18205fi 18206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18207$as_echo_n "checking whether to include XAA support... " >&6; } 18208 if test "x$XAA" = xyes; then 18209 XAA_TRUE= 18210 XAA_FALSE='#' 18211else 18212 XAA_TRUE='#' 18213 XAA_FALSE= 18214fi 18215 18216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18217$as_echo "$XAA" >&6; } 18218 18219 18220 18221DRIVER_NAME=siliconmotion 18222 18223 18224ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18225 18226cat >confcache <<\_ACEOF 18227# This file is a shell script that caches the results of configure 18228# tests run on this system so they can be shared between configure 18229# scripts and configure runs, see configure's option --config-cache. 18230# It is not useful on other systems. If it contains results you don't 18231# want to keep, you may remove or edit it. 18232# 18233# config.status only pays attention to the cache file if you give it 18234# the --recheck option to rerun configure. 18235# 18236# `ac_cv_env_foo' variables (set or unset) will be overridden when 18237# loading this file, other *unset* `ac_cv_foo' will be assigned the 18238# following values. 18239 18240_ACEOF 18241 18242# The following way of writing the cache mishandles newlines in values, 18243# but we know of no workaround that is simple, portable, and efficient. 18244# So, we kill variables containing newlines. 18245# Ultrix sh set writes to stderr and can't be redirected directly, 18246# and sets the high bit in the cache file unless we assign to the vars. 18247( 18248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18249 eval ac_val=\$$ac_var 18250 case $ac_val in #( 18251 *${as_nl}*) 18252 case $ac_var in #( 18253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18254$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18255 esac 18256 case $ac_var in #( 18257 _ | IFS | as_nl) ;; #( 18258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18259 *) { eval $ac_var=; unset $ac_var;} ;; 18260 esac ;; 18261 esac 18262 done 18263 18264 (set) 2>&1 | 18265 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18266 *${as_nl}ac_space=\ *) 18267 # `set' does not quote correctly, so add quotes: double-quote 18268 # substitution turns \\\\ into \\, and sed turns \\ into \. 18269 sed -n \ 18270 "s/'/'\\\\''/g; 18271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18272 ;; #( 18273 *) 18274 # `set' quotes correctly as required by POSIX, so do not add quotes. 18275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18276 ;; 18277 esac | 18278 sort 18279) | 18280 sed ' 18281 /^ac_cv_env_/b end 18282 t clear 18283 :clear 18284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18285 t end 18286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18287 :end' >>confcache 18288if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18289 if test -w "$cache_file"; then 18290 if test "x$cache_file" != "x/dev/null"; then 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18292$as_echo "$as_me: updating cache $cache_file" >&6;} 18293 if test ! -f "$cache_file" || test -h "$cache_file"; then 18294 cat confcache >"$cache_file" 18295 else 18296 case $cache_file in #( 18297 */* | ?:*) 18298 mv -f confcache "$cache_file"$$ && 18299 mv -f "$cache_file"$$ "$cache_file" ;; #( 18300 *) 18301 mv -f confcache "$cache_file" ;; 18302 esac 18303 fi 18304 fi 18305 else 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18307$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18308 fi 18309fi 18310rm -f confcache 18311 18312test "x$prefix" = xNONE && prefix=$ac_default_prefix 18313# Let make expand exec_prefix. 18314test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18315 18316DEFS=-DHAVE_CONFIG_H 18317 18318ac_libobjs= 18319ac_ltlibobjs= 18320U= 18321for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18322 # 1. Remove the extension, and $U if already installed. 18323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18326 # will be set to the directory where LIBOBJS objects are built. 18327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18329done 18330LIBOBJS=$ac_libobjs 18331 18332LTLIBOBJS=$ac_ltlibobjs 18333 18334 18335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18336 as_fn_error $? "conditional \"AMDEP\" was never defined. 18337Usually this means the macro was only invoked conditionally." "$LINENO" 5 18338fi 18339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18340 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18341Usually this means the macro was only invoked conditionally." "$LINENO" 5 18342fi 18343 if test -n "$EXEEXT"; then 18344 am__EXEEXT_TRUE= 18345 am__EXEEXT_FALSE='#' 18346else 18347 am__EXEEXT_TRUE='#' 18348 am__EXEEXT_FALSE= 18349fi 18350 18351if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18352 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18353Usually this means the macro was only invoked conditionally." "$LINENO" 5 18354fi 18355if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 18356 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 18357Usually this means the macro was only invoked conditionally." "$LINENO" 5 18358fi 18359if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18360 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18361Usually this means the macro was only invoked conditionally." "$LINENO" 5 18362fi 18363if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 18364 as_fn_error $? "conditional \"XMODES\" was never defined. 18365Usually this means the macro was only invoked conditionally." "$LINENO" 5 18366fi 18367if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18368 as_fn_error $? "conditional \"XAA\" was never defined. 18369Usually this means the macro was only invoked conditionally." "$LINENO" 5 18370fi 18371 18372: "${CONFIG_STATUS=./config.status}" 18373ac_write_fail=0 18374ac_clean_files_save=$ac_clean_files 18375ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18376{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18377$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18378as_write_fail=0 18379cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18380#! $SHELL 18381# Generated by $as_me. 18382# Run this file to recreate the current configuration. 18383# Compiler output produced by configure, useful for debugging 18384# configure, is in config.log if it exists. 18385 18386debug=false 18387ac_cs_recheck=false 18388ac_cs_silent=false 18389 18390SHELL=\${CONFIG_SHELL-$SHELL} 18391export SHELL 18392_ASEOF 18393cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18394## -------------------- ## 18395## M4sh Initialization. ## 18396## -------------------- ## 18397 18398# Be more Bourne compatible 18399DUALCASE=1; export DUALCASE # for MKS sh 18400if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18401 emulate sh 18402 NULLCMD=: 18403 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18404 # is contrary to our usage. Disable this feature. 18405 alias -g '${1+"$@"}'='"$@"' 18406 setopt NO_GLOB_SUBST 18407else 18408 case `(set -o) 2>/dev/null` in #( 18409 *posix*) : 18410 set -o posix ;; #( 18411 *) : 18412 ;; 18413esac 18414fi 18415 18416 18417as_nl=' 18418' 18419export as_nl 18420# Printing a long string crashes Solaris 7 /usr/bin/printf. 18421as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18422as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18424# Prefer a ksh shell builtin over an external printf program on Solaris, 18425# but without wasting forks for bash or zsh. 18426if test -z "$BASH_VERSION$ZSH_VERSION" \ 18427 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18428 as_echo='print -r --' 18429 as_echo_n='print -rn --' 18430elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18431 as_echo='printf %s\n' 18432 as_echo_n='printf %s' 18433else 18434 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18435 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18436 as_echo_n='/usr/ucb/echo -n' 18437 else 18438 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18439 as_echo_n_body='eval 18440 arg=$1; 18441 case $arg in #( 18442 *"$as_nl"*) 18443 expr "X$arg" : "X\\(.*\\)$as_nl"; 18444 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18445 esac; 18446 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18447 ' 18448 export as_echo_n_body 18449 as_echo_n='sh -c $as_echo_n_body as_echo' 18450 fi 18451 export as_echo_body 18452 as_echo='sh -c $as_echo_body as_echo' 18453fi 18454 18455# The user is always right. 18456if test "${PATH_SEPARATOR+set}" != set; then 18457 PATH_SEPARATOR=: 18458 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18459 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18460 PATH_SEPARATOR=';' 18461 } 18462fi 18463 18464 18465# IFS 18466# We need space, tab and new line, in precisely that order. Quoting is 18467# there to prevent editors from complaining about space-tab. 18468# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18469# splitting by setting IFS to empty value.) 18470IFS=" "" $as_nl" 18471 18472# Find who we are. Look in the path if we contain no directory separator. 18473as_myself= 18474case $0 in #(( 18475 *[\\/]* ) as_myself=$0 ;; 18476 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18477for as_dir in $PATH 18478do 18479 IFS=$as_save_IFS 18480 test -z "$as_dir" && as_dir=. 18481 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18482 done 18483IFS=$as_save_IFS 18484 18485 ;; 18486esac 18487# We did not find ourselves, most probably we were run as `sh COMMAND' 18488# in which case we are not to be found in the path. 18489if test "x$as_myself" = x; then 18490 as_myself=$0 18491fi 18492if test ! -f "$as_myself"; then 18493 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18494 exit 1 18495fi 18496 18497# Unset variables that we do not need and which cause bugs (e.g. in 18498# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18499# suppresses any "Segmentation fault" message there. '((' could 18500# trigger a bug in pdksh 5.2.14. 18501for as_var in BASH_ENV ENV MAIL MAILPATH 18502do eval test x\${$as_var+set} = xset \ 18503 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18504done 18505PS1='$ ' 18506PS2='> ' 18507PS4='+ ' 18508 18509# NLS nuisances. 18510LC_ALL=C 18511export LC_ALL 18512LANGUAGE=C 18513export LANGUAGE 18514 18515# CDPATH. 18516(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18517 18518 18519# as_fn_error STATUS ERROR [LINENO LOG_FD] 18520# ---------------------------------------- 18521# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18522# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18523# script with STATUS, using 1 if that was 0. 18524as_fn_error () 18525{ 18526 as_status=$1; test $as_status -eq 0 && as_status=1 18527 if test "$4"; then 18528 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18529 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18530 fi 18531 $as_echo "$as_me: error: $2" >&2 18532 as_fn_exit $as_status 18533} # as_fn_error 18534 18535 18536# as_fn_set_status STATUS 18537# ----------------------- 18538# Set $? to STATUS, without forking. 18539as_fn_set_status () 18540{ 18541 return $1 18542} # as_fn_set_status 18543 18544# as_fn_exit STATUS 18545# ----------------- 18546# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18547as_fn_exit () 18548{ 18549 set +e 18550 as_fn_set_status $1 18551 exit $1 18552} # as_fn_exit 18553 18554# as_fn_unset VAR 18555# --------------- 18556# Portably unset VAR. 18557as_fn_unset () 18558{ 18559 { eval $1=; unset $1;} 18560} 18561as_unset=as_fn_unset 18562# as_fn_append VAR VALUE 18563# ---------------------- 18564# Append the text in VALUE to the end of the definition contained in VAR. Take 18565# advantage of any shell optimizations that allow amortized linear growth over 18566# repeated appends, instead of the typical quadratic growth present in naive 18567# implementations. 18568if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18569 eval 'as_fn_append () 18570 { 18571 eval $1+=\$2 18572 }' 18573else 18574 as_fn_append () 18575 { 18576 eval $1=\$$1\$2 18577 } 18578fi # as_fn_append 18579 18580# as_fn_arith ARG... 18581# ------------------ 18582# Perform arithmetic evaluation on the ARGs, and store the result in the 18583# global $as_val. Take advantage of shells that can avoid forks. The arguments 18584# must be portable across $(()) and expr. 18585if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18586 eval 'as_fn_arith () 18587 { 18588 as_val=$(( $* )) 18589 }' 18590else 18591 as_fn_arith () 18592 { 18593 as_val=`expr "$@" || test $? -eq 1` 18594 } 18595fi # as_fn_arith 18596 18597 18598if expr a : '\(a\)' >/dev/null 2>&1 && 18599 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18600 as_expr=expr 18601else 18602 as_expr=false 18603fi 18604 18605if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18606 as_basename=basename 18607else 18608 as_basename=false 18609fi 18610 18611if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18612 as_dirname=dirname 18613else 18614 as_dirname=false 18615fi 18616 18617as_me=`$as_basename -- "$0" || 18618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18619 X"$0" : 'X\(//\)$' \| \ 18620 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18621$as_echo X/"$0" | 18622 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18623 s//\1/ 18624 q 18625 } 18626 /^X\/\(\/\/\)$/{ 18627 s//\1/ 18628 q 18629 } 18630 /^X\/\(\/\).*/{ 18631 s//\1/ 18632 q 18633 } 18634 s/.*/./; q'` 18635 18636# Avoid depending upon Character Ranges. 18637as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18638as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18639as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18640as_cr_digits='0123456789' 18641as_cr_alnum=$as_cr_Letters$as_cr_digits 18642 18643ECHO_C= ECHO_N= ECHO_T= 18644case `echo -n x` in #((((( 18645-n*) 18646 case `echo 'xy\c'` in 18647 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18648 xy) ECHO_C='\c';; 18649 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18650 ECHO_T=' ';; 18651 esac;; 18652*) 18653 ECHO_N='-n';; 18654esac 18655 18656rm -f conf$$ conf$$.exe conf$$.file 18657if test -d conf$$.dir; then 18658 rm -f conf$$.dir/conf$$.file 18659else 18660 rm -f conf$$.dir 18661 mkdir conf$$.dir 2>/dev/null 18662fi 18663if (echo >conf$$.file) 2>/dev/null; then 18664 if ln -s conf$$.file conf$$ 2>/dev/null; then 18665 as_ln_s='ln -s' 18666 # ... but there are two gotchas: 18667 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18668 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18669 # In both cases, we have to default to `cp -p'. 18670 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18671 as_ln_s='cp -p' 18672 elif ln conf$$.file conf$$ 2>/dev/null; then 18673 as_ln_s=ln 18674 else 18675 as_ln_s='cp -p' 18676 fi 18677else 18678 as_ln_s='cp -p' 18679fi 18680rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18681rmdir conf$$.dir 2>/dev/null 18682 18683 18684# as_fn_mkdir_p 18685# ------------- 18686# Create "$as_dir" as a directory, including parents if necessary. 18687as_fn_mkdir_p () 18688{ 18689 18690 case $as_dir in #( 18691 -*) as_dir=./$as_dir;; 18692 esac 18693 test -d "$as_dir" || eval $as_mkdir_p || { 18694 as_dirs= 18695 while :; do 18696 case $as_dir in #( 18697 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18698 *) as_qdir=$as_dir;; 18699 esac 18700 as_dirs="'$as_qdir' $as_dirs" 18701 as_dir=`$as_dirname -- "$as_dir" || 18702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18703 X"$as_dir" : 'X\(//\)[^/]' \| \ 18704 X"$as_dir" : 'X\(//\)$' \| \ 18705 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18706$as_echo X"$as_dir" | 18707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18708 s//\1/ 18709 q 18710 } 18711 /^X\(\/\/\)[^/].*/{ 18712 s//\1/ 18713 q 18714 } 18715 /^X\(\/\/\)$/{ 18716 s//\1/ 18717 q 18718 } 18719 /^X\(\/\).*/{ 18720 s//\1/ 18721 q 18722 } 18723 s/.*/./; q'` 18724 test -d "$as_dir" && break 18725 done 18726 test -z "$as_dirs" || eval "mkdir $as_dirs" 18727 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18728 18729 18730} # as_fn_mkdir_p 18731if mkdir -p . 2>/dev/null; then 18732 as_mkdir_p='mkdir -p "$as_dir"' 18733else 18734 test -d ./-p && rmdir ./-p 18735 as_mkdir_p=false 18736fi 18737 18738if test -x / >/dev/null 2>&1; then 18739 as_test_x='test -x' 18740else 18741 if ls -dL / >/dev/null 2>&1; then 18742 as_ls_L_option=L 18743 else 18744 as_ls_L_option= 18745 fi 18746 as_test_x=' 18747 eval sh -c '\'' 18748 if test -d "$1"; then 18749 test -d "$1/."; 18750 else 18751 case $1 in #( 18752 -*)set "./$1";; 18753 esac; 18754 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18755 ???[sx]*):;;*)false;;esac;fi 18756 '\'' sh 18757 ' 18758fi 18759as_executable_p=$as_test_x 18760 18761# Sed expression to map a string onto a valid CPP name. 18762as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18763 18764# Sed expression to map a string onto a valid variable name. 18765as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18766 18767 18768exec 6>&1 18769## ----------------------------------- ## 18770## Main body of $CONFIG_STATUS script. ## 18771## ----------------------------------- ## 18772_ASEOF 18773test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18774 18775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18776# Save the log message, to keep $0 and so on meaningful, and to 18777# report actual input values of CONFIG_FILES etc. instead of their 18778# values after options handling. 18779ac_log=" 18780This file was extended by xf86-video-siliconmotion $as_me 1.7.7, which was 18781generated by GNU Autoconf 2.68. Invocation command line was 18782 18783 CONFIG_FILES = $CONFIG_FILES 18784 CONFIG_HEADERS = $CONFIG_HEADERS 18785 CONFIG_LINKS = $CONFIG_LINKS 18786 CONFIG_COMMANDS = $CONFIG_COMMANDS 18787 $ $0 $@ 18788 18789on `(hostname || uname -n) 2>/dev/null | sed 1q` 18790" 18791 18792_ACEOF 18793 18794case $ac_config_files in *" 18795"*) set x $ac_config_files; shift; ac_config_files=$*;; 18796esac 18797 18798case $ac_config_headers in *" 18799"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18800esac 18801 18802 18803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18804# Files that config.status was made for. 18805config_files="$ac_config_files" 18806config_headers="$ac_config_headers" 18807config_commands="$ac_config_commands" 18808 18809_ACEOF 18810 18811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18812ac_cs_usage="\ 18813\`$as_me' instantiates files and other configuration actions 18814from templates according to the current configuration. Unless the files 18815and actions are specified as TAGs, all are instantiated by default. 18816 18817Usage: $0 [OPTION]... [TAG]... 18818 18819 -h, --help print this help, then exit 18820 -V, --version print version number and configuration settings, then exit 18821 --config print configuration, then exit 18822 -q, --quiet, --silent 18823 do not print progress messages 18824 -d, --debug don't remove temporary files 18825 --recheck update $as_me by reconfiguring in the same conditions 18826 --file=FILE[:TEMPLATE] 18827 instantiate the configuration file FILE 18828 --header=FILE[:TEMPLATE] 18829 instantiate the configuration header FILE 18830 18831Configuration files: 18832$config_files 18833 18834Configuration headers: 18835$config_headers 18836 18837Configuration commands: 18838$config_commands 18839 18840Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>." 18841 18842_ACEOF 18843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18844ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18845ac_cs_version="\\ 18846xf86-video-siliconmotion config.status 1.7.7 18847configured by $0, generated by GNU Autoconf 2.68, 18848 with options \\"\$ac_cs_config\\" 18849 18850Copyright (C) 2010 Free Software Foundation, Inc. 18851This config.status script is free software; the Free Software Foundation 18852gives unlimited permission to copy, distribute and modify it." 18853 18854ac_pwd='$ac_pwd' 18855srcdir='$srcdir' 18856INSTALL='$INSTALL' 18857MKDIR_P='$MKDIR_P' 18858AWK='$AWK' 18859test -n "\$AWK" || AWK=awk 18860_ACEOF 18861 18862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18863# The default lists apply if the user does not specify any file. 18864ac_need_defaults=: 18865while test $# != 0 18866do 18867 case $1 in 18868 --*=?*) 18869 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18870 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18871 ac_shift=: 18872 ;; 18873 --*=) 18874 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18875 ac_optarg= 18876 ac_shift=: 18877 ;; 18878 *) 18879 ac_option=$1 18880 ac_optarg=$2 18881 ac_shift=shift 18882 ;; 18883 esac 18884 18885 case $ac_option in 18886 # Handling of the options. 18887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18888 ac_cs_recheck=: ;; 18889 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18890 $as_echo "$ac_cs_version"; exit ;; 18891 --config | --confi | --conf | --con | --co | --c ) 18892 $as_echo "$ac_cs_config"; exit ;; 18893 --debug | --debu | --deb | --de | --d | -d ) 18894 debug=: ;; 18895 --file | --fil | --fi | --f ) 18896 $ac_shift 18897 case $ac_optarg in 18898 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18899 '') as_fn_error $? "missing file argument" ;; 18900 esac 18901 as_fn_append CONFIG_FILES " '$ac_optarg'" 18902 ac_need_defaults=false;; 18903 --header | --heade | --head | --hea ) 18904 $ac_shift 18905 case $ac_optarg in 18906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18907 esac 18908 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18909 ac_need_defaults=false;; 18910 --he | --h) 18911 # Conflict between --help and --header 18912 as_fn_error $? "ambiguous option: \`$1' 18913Try \`$0 --help' for more information.";; 18914 --help | --hel | -h ) 18915 $as_echo "$ac_cs_usage"; exit ;; 18916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18917 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18918 ac_cs_silent=: ;; 18919 18920 # This is an error. 18921 -*) as_fn_error $? "unrecognized option: \`$1' 18922Try \`$0 --help' for more information." ;; 18923 18924 *) as_fn_append ac_config_targets " $1" 18925 ac_need_defaults=false ;; 18926 18927 esac 18928 shift 18929done 18930 18931ac_configure_extra_args= 18932 18933if $ac_cs_silent; then 18934 exec 6>/dev/null 18935 ac_configure_extra_args="$ac_configure_extra_args --silent" 18936fi 18937 18938_ACEOF 18939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18940if \$ac_cs_recheck; then 18941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18942 shift 18943 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18944 CONFIG_SHELL='$SHELL' 18945 export CONFIG_SHELL 18946 exec "\$@" 18947fi 18948 18949_ACEOF 18950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18951exec 5>>config.log 18952{ 18953 echo 18954 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18955## Running $as_me. ## 18956_ASBOX 18957 $as_echo "$ac_log" 18958} >&5 18959 18960_ACEOF 18961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18962# 18963# INIT-COMMANDS 18964# 18965AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18966 18967 18968# The HP-UX ksh and POSIX shell print the target directory to stdout 18969# if CDPATH is set. 18970(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18971 18972sed_quote_subst='$sed_quote_subst' 18973double_quote_subst='$double_quote_subst' 18974delay_variable_subst='$delay_variable_subst' 18975enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18976macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18977macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18978enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18979pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18980enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18981SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18982ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18983PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18984host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18985host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18986host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18987build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18988build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18989build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18990SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18991Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18992GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18993EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18994FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18995LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18996NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18997LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18998max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18999ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19000exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19001lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19002lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19003lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19004lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19005lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19006reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19007reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19008OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19009deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19010file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19011file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19012want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19013DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19014sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19015AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19016AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19017archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19018STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19019RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19020old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19021old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19022old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19023lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19024CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19025CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19026compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19027GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19028lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19029lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19030lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19031lt_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"`' 19032nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19033lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19034objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19035MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19036lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19037lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19038lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19039lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19040lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19041need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19042MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19043DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19044NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19045LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19046OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19047OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19048libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19049shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19050extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19051archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19052enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19053export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19054whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19055compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19056old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19057old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19058archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19059archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19060module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19061module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19062with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19063allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19064no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19065hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19066hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19067hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19068hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19069hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19070hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19071hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19072inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19073link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19074always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19075export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19076exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19077include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19078prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19079postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19080file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19081variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19082need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19083need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19084version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19085runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19086shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19087shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19088libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19089library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19090soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19091install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19092postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19093postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19094finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19095finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19096hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19097sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19098sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19099hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19100enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19101enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19102enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19103old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19104striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19105 19106LTCC='$LTCC' 19107LTCFLAGS='$LTCFLAGS' 19108compiler='$compiler_DEFAULT' 19109 19110# A function that is used when there is no print builtin or printf. 19111func_fallback_echo () 19112{ 19113 eval 'cat <<_LTECHO_EOF 19114\$1 19115_LTECHO_EOF' 19116} 19117 19118# Quote evaled strings. 19119for var in SHELL \ 19120ECHO \ 19121PATH_SEPARATOR \ 19122SED \ 19123GREP \ 19124EGREP \ 19125FGREP \ 19126LD \ 19127NM \ 19128LN_S \ 19129lt_SP2NL \ 19130lt_NL2SP \ 19131reload_flag \ 19132OBJDUMP \ 19133deplibs_check_method \ 19134file_magic_cmd \ 19135file_magic_glob \ 19136want_nocaseglob \ 19137DLLTOOL \ 19138sharedlib_from_linklib_cmd \ 19139AR \ 19140AR_FLAGS \ 19141archiver_list_spec \ 19142STRIP \ 19143RANLIB \ 19144CC \ 19145CFLAGS \ 19146compiler \ 19147lt_cv_sys_global_symbol_pipe \ 19148lt_cv_sys_global_symbol_to_cdecl \ 19149lt_cv_sys_global_symbol_to_c_name_address \ 19150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19151nm_file_list_spec \ 19152lt_prog_compiler_no_builtin_flag \ 19153lt_prog_compiler_pic \ 19154lt_prog_compiler_wl \ 19155lt_prog_compiler_static \ 19156lt_cv_prog_compiler_c_o \ 19157need_locks \ 19158MANIFEST_TOOL \ 19159DSYMUTIL \ 19160NMEDIT \ 19161LIPO \ 19162OTOOL \ 19163OTOOL64 \ 19164shrext_cmds \ 19165export_dynamic_flag_spec \ 19166whole_archive_flag_spec \ 19167compiler_needs_object \ 19168with_gnu_ld \ 19169allow_undefined_flag \ 19170no_undefined_flag \ 19171hardcode_libdir_flag_spec \ 19172hardcode_libdir_separator \ 19173exclude_expsyms \ 19174include_expsyms \ 19175file_list_spec \ 19176variables_saved_for_relink \ 19177libname_spec \ 19178library_names_spec \ 19179soname_spec \ 19180install_override_mode \ 19181finish_eval \ 19182old_striplib \ 19183striplib; do 19184 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19185 *[\\\\\\\`\\"\\\$]*) 19186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19187 ;; 19188 *) 19189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19190 ;; 19191 esac 19192done 19193 19194# Double-quote double-evaled strings. 19195for var in reload_cmds \ 19196old_postinstall_cmds \ 19197old_postuninstall_cmds \ 19198old_archive_cmds \ 19199extract_expsyms_cmds \ 19200old_archive_from_new_cmds \ 19201old_archive_from_expsyms_cmds \ 19202archive_cmds \ 19203archive_expsym_cmds \ 19204module_cmds \ 19205module_expsym_cmds \ 19206export_symbols_cmds \ 19207prelink_cmds \ 19208postlink_cmds \ 19209postinstall_cmds \ 19210postuninstall_cmds \ 19211finish_cmds \ 19212sys_lib_search_path_spec \ 19213sys_lib_dlsearch_path_spec; do 19214 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19215 *[\\\\\\\`\\"\\\$]*) 19216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19217 ;; 19218 *) 19219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19220 ;; 19221 esac 19222done 19223 19224ac_aux_dir='$ac_aux_dir' 19225xsi_shell='$xsi_shell' 19226lt_shell_append='$lt_shell_append' 19227 19228# See if we are running on zsh, and set the options which allow our 19229# commands through without removal of \ escapes INIT. 19230if test -n "\${ZSH_VERSION+set}" ; then 19231 setopt NO_GLOB_SUBST 19232fi 19233 19234 19235 PACKAGE='$PACKAGE' 19236 VERSION='$VERSION' 19237 TIMESTAMP='$TIMESTAMP' 19238 RM='$RM' 19239 ofile='$ofile' 19240 19241 19242 19243 19244_ACEOF 19245 19246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19247 19248# Handling of arguments. 19249for ac_config_target in $ac_config_targets 19250do 19251 case $ac_config_target in 19252 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19253 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19254 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19255 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19256 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19257 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19258 19259 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19260 esac 19261done 19262 19263 19264# If the user did not use the arguments to specify the items to instantiate, 19265# then the envvar interface is used. Set only those that are not. 19266# We use the long form for the default assignment because of an extremely 19267# bizarre bug on SunOS 4.1.3. 19268if $ac_need_defaults; then 19269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19270 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19272fi 19273 19274# Have a temporary directory for convenience. Make it in the build tree 19275# simply because there is no reason against having it here, and in addition, 19276# creating and moving files from /tmp can sometimes cause problems. 19277# Hook for its removal unless debugging. 19278# Note that there is a small window in which the directory will not be cleaned: 19279# after its creation but before its name has been assigned to `$tmp'. 19280$debug || 19281{ 19282 tmp= ac_tmp= 19283 trap 'exit_status=$? 19284 : "${ac_tmp:=$tmp}" 19285 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19286' 0 19287 trap 'as_fn_exit 1' 1 2 13 15 19288} 19289# Create a (secure) tmp directory for tmp files. 19290 19291{ 19292 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19293 test -d "$tmp" 19294} || 19295{ 19296 tmp=./conf$$-$RANDOM 19297 (umask 077 && mkdir "$tmp") 19298} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19299ac_tmp=$tmp 19300 19301# Set up the scripts for CONFIG_FILES section. 19302# No need to generate them if there are no CONFIG_FILES. 19303# This happens for instance with `./config.status config.h'. 19304if test -n "$CONFIG_FILES"; then 19305 19306 19307ac_cr=`echo X | tr X '\015'` 19308# On cygwin, bash can eat \r inside `` if the user requested igncr. 19309# But we know of no other shell where ac_cr would be empty at this 19310# point, so we can use a bashism as a fallback. 19311if test "x$ac_cr" = x; then 19312 eval ac_cr=\$\'\\r\' 19313fi 19314ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19315if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19316 ac_cs_awk_cr='\\r' 19317else 19318 ac_cs_awk_cr=$ac_cr 19319fi 19320 19321echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19322_ACEOF 19323 19324 19325{ 19326 echo "cat >conf$$subs.awk <<_ACEOF" && 19327 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19328 echo "_ACEOF" 19329} >conf$$subs.sh || 19330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19331ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19332ac_delim='%!_!# ' 19333for ac_last_try in false false false false false :; do 19334 . ./conf$$subs.sh || 19335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19336 19337 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19338 if test $ac_delim_n = $ac_delim_num; then 19339 break 19340 elif $ac_last_try; then 19341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19342 else 19343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19344 fi 19345done 19346rm -f conf$$subs.sh 19347 19348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19349cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19350_ACEOF 19351sed -n ' 19352h 19353s/^/S["/; s/!.*/"]=/ 19354p 19355g 19356s/^[^!]*!// 19357:repl 19358t repl 19359s/'"$ac_delim"'$// 19360t delim 19361:nl 19362h 19363s/\(.\{148\}\)..*/\1/ 19364t more1 19365s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19366p 19367n 19368b repl 19369:more1 19370s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19371p 19372g 19373s/.\{148\}// 19374t nl 19375:delim 19376h 19377s/\(.\{148\}\)..*/\1/ 19378t more2 19379s/["\\]/\\&/g; s/^/"/; s/$/"/ 19380p 19381b 19382:more2 19383s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19384p 19385g 19386s/.\{148\}// 19387t delim 19388' <conf$$subs.awk | sed ' 19389/^[^""]/{ 19390 N 19391 s/\n// 19392} 19393' >>$CONFIG_STATUS || ac_write_fail=1 19394rm -f conf$$subs.awk 19395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19396_ACAWK 19397cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19398 for (key in S) S_is_set[key] = 1 19399 FS = "" 19400 19401} 19402{ 19403 line = $ 0 19404 nfields = split(line, field, "@") 19405 substed = 0 19406 len = length(field[1]) 19407 for (i = 2; i < nfields; i++) { 19408 key = field[i] 19409 keylen = length(key) 19410 if (S_is_set[key]) { 19411 value = S[key] 19412 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19413 len += length(value) + length(field[++i]) 19414 substed = 1 19415 } else 19416 len += 1 + keylen 19417 } 19418 19419 print line 19420} 19421 19422_ACAWK 19423_ACEOF 19424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19425if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19426 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19427else 19428 cat 19429fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19430 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19431_ACEOF 19432 19433# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19434# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19435# trailing colons and then remove the whole line if VPATH becomes empty 19436# (actually we leave an empty line to preserve line numbers). 19437if test "x$srcdir" = x.; then 19438 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19439h 19440s/// 19441s/^/:/ 19442s/[ ]*$/:/ 19443s/:\$(srcdir):/:/g 19444s/:\${srcdir}:/:/g 19445s/:@srcdir@:/:/g 19446s/^:*// 19447s/:*$// 19448x 19449s/\(=[ ]*\).*/\1/ 19450G 19451s/\n// 19452s/^[^=]*=[ ]*$// 19453}' 19454fi 19455 19456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19457fi # test -n "$CONFIG_FILES" 19458 19459# Set up the scripts for CONFIG_HEADERS section. 19460# No need to generate them if there are no CONFIG_HEADERS. 19461# This happens for instance with `./config.status Makefile'. 19462if test -n "$CONFIG_HEADERS"; then 19463cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19464BEGIN { 19465_ACEOF 19466 19467# Transform confdefs.h into an awk script `defines.awk', embedded as 19468# here-document in config.status, that substitutes the proper values into 19469# config.h.in to produce config.h. 19470 19471# Create a delimiter string that does not exist in confdefs.h, to ease 19472# handling of long lines. 19473ac_delim='%!_!# ' 19474for ac_last_try in false false :; do 19475 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19476 if test -z "$ac_tt"; then 19477 break 19478 elif $ac_last_try; then 19479 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19480 else 19481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19482 fi 19483done 19484 19485# For the awk script, D is an array of macro values keyed by name, 19486# likewise P contains macro parameters if any. Preserve backslash 19487# newline sequences. 19488 19489ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19490sed -n ' 19491s/.\{148\}/&'"$ac_delim"'/g 19492t rset 19493:rset 19494s/^[ ]*#[ ]*define[ ][ ]*/ / 19495t def 19496d 19497:def 19498s/\\$// 19499t bsnl 19500s/["\\]/\\&/g 19501s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19502D["\1"]=" \3"/p 19503s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19504d 19505:bsnl 19506s/["\\]/\\&/g 19507s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19508D["\1"]=" \3\\\\\\n"\\/p 19509t cont 19510s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19511t cont 19512d 19513:cont 19514n 19515s/.\{148\}/&'"$ac_delim"'/g 19516t clear 19517:clear 19518s/\\$// 19519t bsnlc 19520s/["\\]/\\&/g; s/^/"/; s/$/"/p 19521d 19522:bsnlc 19523s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19524b cont 19525' <confdefs.h | sed ' 19526s/'"$ac_delim"'/"\\\ 19527"/g' >>$CONFIG_STATUS || ac_write_fail=1 19528 19529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19530 for (key in D) D_is_set[key] = 1 19531 FS = "" 19532} 19533/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19534 line = \$ 0 19535 split(line, arg, " ") 19536 if (arg[1] == "#") { 19537 defundef = arg[2] 19538 mac1 = arg[3] 19539 } else { 19540 defundef = substr(arg[1], 2) 19541 mac1 = arg[2] 19542 } 19543 split(mac1, mac2, "(") #) 19544 macro = mac2[1] 19545 prefix = substr(line, 1, index(line, defundef) - 1) 19546 if (D_is_set[macro]) { 19547 # Preserve the white space surrounding the "#". 19548 print prefix "define", macro P[macro] D[macro] 19549 next 19550 } else { 19551 # Replace #undef with comments. This is necessary, for example, 19552 # in the case of _POSIX_SOURCE, which is predefined and required 19553 # on some systems where configure will not decide to define it. 19554 if (defundef == "undef") { 19555 print "/*", prefix defundef, macro, "*/" 19556 next 19557 } 19558 } 19559} 19560{ print } 19561_ACAWK 19562_ACEOF 19563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19564 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19565fi # test -n "$CONFIG_HEADERS" 19566 19567 19568eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19569shift 19570for ac_tag 19571do 19572 case $ac_tag in 19573 :[FHLC]) ac_mode=$ac_tag; continue;; 19574 esac 19575 case $ac_mode$ac_tag in 19576 :[FHL]*:*);; 19577 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19578 :[FH]-) ac_tag=-:-;; 19579 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19580 esac 19581 ac_save_IFS=$IFS 19582 IFS=: 19583 set x $ac_tag 19584 IFS=$ac_save_IFS 19585 shift 19586 ac_file=$1 19587 shift 19588 19589 case $ac_mode in 19590 :L) ac_source=$1;; 19591 :[FH]) 19592 ac_file_inputs= 19593 for ac_f 19594 do 19595 case $ac_f in 19596 -) ac_f="$ac_tmp/stdin";; 19597 *) # Look for the file first in the build tree, then in the source tree 19598 # (if the path is not absolute). The absolute path cannot be DOS-style, 19599 # because $ac_f cannot contain `:'. 19600 test -f "$ac_f" || 19601 case $ac_f in 19602 [\\/$]*) false;; 19603 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19604 esac || 19605 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19606 esac 19607 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19608 as_fn_append ac_file_inputs " '$ac_f'" 19609 done 19610 19611 # Let's still pretend it is `configure' which instantiates (i.e., don't 19612 # use $as_me), people would be surprised to read: 19613 # /* config.h. Generated by config.status. */ 19614 configure_input='Generated from '` 19615 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19616 `' by configure.' 19617 if test x"$ac_file" != x-; then 19618 configure_input="$ac_file. $configure_input" 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19620$as_echo "$as_me: creating $ac_file" >&6;} 19621 fi 19622 # Neutralize special characters interpreted by sed in replacement strings. 19623 case $configure_input in #( 19624 *\&* | *\|* | *\\* ) 19625 ac_sed_conf_input=`$as_echo "$configure_input" | 19626 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19627 *) ac_sed_conf_input=$configure_input;; 19628 esac 19629 19630 case $ac_tag in 19631 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19633 esac 19634 ;; 19635 esac 19636 19637 ac_dir=`$as_dirname -- "$ac_file" || 19638$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19639 X"$ac_file" : 'X\(//\)[^/]' \| \ 19640 X"$ac_file" : 'X\(//\)$' \| \ 19641 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19642$as_echo X"$ac_file" | 19643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19644 s//\1/ 19645 q 19646 } 19647 /^X\(\/\/\)[^/].*/{ 19648 s//\1/ 19649 q 19650 } 19651 /^X\(\/\/\)$/{ 19652 s//\1/ 19653 q 19654 } 19655 /^X\(\/\).*/{ 19656 s//\1/ 19657 q 19658 } 19659 s/.*/./; q'` 19660 as_dir="$ac_dir"; as_fn_mkdir_p 19661 ac_builddir=. 19662 19663case "$ac_dir" in 19664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19665*) 19666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19667 # A ".." for each directory in $ac_dir_suffix. 19668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19669 case $ac_top_builddir_sub in 19670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19672 esac ;; 19673esac 19674ac_abs_top_builddir=$ac_pwd 19675ac_abs_builddir=$ac_pwd$ac_dir_suffix 19676# for backward compatibility: 19677ac_top_builddir=$ac_top_build_prefix 19678 19679case $srcdir in 19680 .) # We are building in place. 19681 ac_srcdir=. 19682 ac_top_srcdir=$ac_top_builddir_sub 19683 ac_abs_top_srcdir=$ac_pwd ;; 19684 [\\/]* | ?:[\\/]* ) # Absolute name. 19685 ac_srcdir=$srcdir$ac_dir_suffix; 19686 ac_top_srcdir=$srcdir 19687 ac_abs_top_srcdir=$srcdir ;; 19688 *) # Relative name. 19689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19690 ac_top_srcdir=$ac_top_build_prefix$srcdir 19691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19692esac 19693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19694 19695 19696 case $ac_mode in 19697 :F) 19698 # 19699 # CONFIG_FILE 19700 # 19701 19702 case $INSTALL in 19703 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19704 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19705 esac 19706 ac_MKDIR_P=$MKDIR_P 19707 case $MKDIR_P in 19708 [\\/$]* | ?:[\\/]* ) ;; 19709 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19710 esac 19711_ACEOF 19712 19713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19714# If the template does not know about datarootdir, expand it. 19715# FIXME: This hack should be removed a few years after 2.60. 19716ac_datarootdir_hack=; ac_datarootdir_seen= 19717ac_sed_dataroot=' 19718/datarootdir/ { 19719 p 19720 q 19721} 19722/@datadir@/p 19723/@docdir@/p 19724/@infodir@/p 19725/@localedir@/p 19726/@mandir@/p' 19727case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19728*datarootdir*) ac_datarootdir_seen=yes;; 19729*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19731$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19732_ACEOF 19733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19734 ac_datarootdir_hack=' 19735 s&@datadir@&$datadir&g 19736 s&@docdir@&$docdir&g 19737 s&@infodir@&$infodir&g 19738 s&@localedir@&$localedir&g 19739 s&@mandir@&$mandir&g 19740 s&\\\${datarootdir}&$datarootdir&g' ;; 19741esac 19742_ACEOF 19743 19744# Neutralize VPATH when `$srcdir' = `.'. 19745# Shell code in configure.ac might set extrasub. 19746# FIXME: do we really want to maintain this feature? 19747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19748ac_sed_extra="$ac_vpsub 19749$extrasub 19750_ACEOF 19751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19752:t 19753/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19754s|@configure_input@|$ac_sed_conf_input|;t t 19755s&@top_builddir@&$ac_top_builddir_sub&;t t 19756s&@top_build_prefix@&$ac_top_build_prefix&;t t 19757s&@srcdir@&$ac_srcdir&;t t 19758s&@abs_srcdir@&$ac_abs_srcdir&;t t 19759s&@top_srcdir@&$ac_top_srcdir&;t t 19760s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19761s&@builddir@&$ac_builddir&;t t 19762s&@abs_builddir@&$ac_abs_builddir&;t t 19763s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19764s&@INSTALL@&$ac_INSTALL&;t t 19765s&@MKDIR_P@&$ac_MKDIR_P&;t t 19766$ac_datarootdir_hack 19767" 19768eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19769 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19770 19771test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19772 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19773 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19774 "$ac_tmp/out"`; test -z "$ac_out"; } && 19775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19776which seems to be undefined. Please make sure it is defined" >&5 19777$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19778which seems to be undefined. Please make sure it is defined" >&2;} 19779 19780 rm -f "$ac_tmp/stdin" 19781 case $ac_file in 19782 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19783 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19784 esac \ 19785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19786 ;; 19787 :H) 19788 # 19789 # CONFIG_HEADER 19790 # 19791 if test x"$ac_file" != x-; then 19792 { 19793 $as_echo "/* $configure_input */" \ 19794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19795 } >"$ac_tmp/config.h" \ 19796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19797 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19799$as_echo "$as_me: $ac_file is unchanged" >&6;} 19800 else 19801 rm -f "$ac_file" 19802 mv "$ac_tmp/config.h" "$ac_file" \ 19803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19804 fi 19805 else 19806 $as_echo "/* $configure_input */" \ 19807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19808 || as_fn_error $? "could not create -" "$LINENO" 5 19809 fi 19810# Compute "$ac_file"'s index in $config_headers. 19811_am_arg="$ac_file" 19812_am_stamp_count=1 19813for _am_header in $config_headers :; do 19814 case $_am_header in 19815 $_am_arg | $_am_arg:* ) 19816 break ;; 19817 * ) 19818 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19819 esac 19820done 19821echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19822$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19823 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19824 X"$_am_arg" : 'X\(//\)$' \| \ 19825 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19826$as_echo X"$_am_arg" | 19827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19828 s//\1/ 19829 q 19830 } 19831 /^X\(\/\/\)[^/].*/{ 19832 s//\1/ 19833 q 19834 } 19835 /^X\(\/\/\)$/{ 19836 s//\1/ 19837 q 19838 } 19839 /^X\(\/\).*/{ 19840 s//\1/ 19841 q 19842 } 19843 s/.*/./; q'`/stamp-h$_am_stamp_count 19844 ;; 19845 19846 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19847$as_echo "$as_me: executing $ac_file commands" >&6;} 19848 ;; 19849 esac 19850 19851 19852 case $ac_file$ac_mode in 19853 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19854 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19855 # are listed without --file. Let's play safe and only enable the eval 19856 # if we detect the quoting. 19857 case $CONFIG_FILES in 19858 *\'*) eval set x "$CONFIG_FILES" ;; 19859 *) set x $CONFIG_FILES ;; 19860 esac 19861 shift 19862 for mf 19863 do 19864 # Strip MF so we end up with the name of the file. 19865 mf=`echo "$mf" | sed -e 's/:.*$//'` 19866 # Check whether this is an Automake generated Makefile or not. 19867 # We used to match only the files named `Makefile.in', but 19868 # some people rename them; so instead we look at the file content. 19869 # Grep'ing the first line is not enough: some people post-process 19870 # each Makefile.in and add a new line on top of each file to say so. 19871 # Grep'ing the whole file is not good either: AIX grep has a line 19872 # limit of 2048, but all sed's we know have understand at least 4000. 19873 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19874 dirpart=`$as_dirname -- "$mf" || 19875$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19876 X"$mf" : 'X\(//\)[^/]' \| \ 19877 X"$mf" : 'X\(//\)$' \| \ 19878 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19879$as_echo X"$mf" | 19880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19881 s//\1/ 19882 q 19883 } 19884 /^X\(\/\/\)[^/].*/{ 19885 s//\1/ 19886 q 19887 } 19888 /^X\(\/\/\)$/{ 19889 s//\1/ 19890 q 19891 } 19892 /^X\(\/\).*/{ 19893 s//\1/ 19894 q 19895 } 19896 s/.*/./; q'` 19897 else 19898 continue 19899 fi 19900 # Extract the definition of DEPDIR, am__include, and am__quote 19901 # from the Makefile without running `make'. 19902 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19903 test -z "$DEPDIR" && continue 19904 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19905 test -z "am__include" && continue 19906 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19907 # When using ansi2knr, U may be empty or an underscore; expand it 19908 U=`sed -n 's/^U = //p' < "$mf"` 19909 # Find all dependency output files, they are included files with 19910 # $(DEPDIR) in their names. We invoke sed twice because it is the 19911 # simplest approach to changing $(DEPDIR) to its actual value in the 19912 # expansion. 19913 for file in `sed -n " 19914 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19915 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19916 # Make sure the directory exists. 19917 test -f "$dirpart/$file" && continue 19918 fdir=`$as_dirname -- "$file" || 19919$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19920 X"$file" : 'X\(//\)[^/]' \| \ 19921 X"$file" : 'X\(//\)$' \| \ 19922 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19923$as_echo X"$file" | 19924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19925 s//\1/ 19926 q 19927 } 19928 /^X\(\/\/\)[^/].*/{ 19929 s//\1/ 19930 q 19931 } 19932 /^X\(\/\/\)$/{ 19933 s//\1/ 19934 q 19935 } 19936 /^X\(\/\).*/{ 19937 s//\1/ 19938 q 19939 } 19940 s/.*/./; q'` 19941 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19942 # echo "creating $dirpart/$file" 19943 echo '# dummy' > "$dirpart/$file" 19944 done 19945 done 19946} 19947 ;; 19948 "libtool":C) 19949 19950 # See if we are running on zsh, and set the options which allow our 19951 # commands through without removal of \ escapes. 19952 if test -n "${ZSH_VERSION+set}" ; then 19953 setopt NO_GLOB_SUBST 19954 fi 19955 19956 cfgfile="${ofile}T" 19957 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19958 $RM "$cfgfile" 19959 19960 cat <<_LT_EOF >> "$cfgfile" 19961#! $SHELL 19962 19963# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19964# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19965# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19966# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19967# 19968# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19969# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19970# Foundation, Inc. 19971# Written by Gordon Matzigkeit, 1996 19972# 19973# This file is part of GNU Libtool. 19974# 19975# GNU Libtool is free software; you can redistribute it and/or 19976# modify it under the terms of the GNU General Public License as 19977# published by the Free Software Foundation; either version 2 of 19978# the License, or (at your option) any later version. 19979# 19980# As a special exception to the GNU General Public License, 19981# if you distribute this file as part of a program or library that 19982# is built using GNU Libtool, you may include this file under the 19983# same distribution terms that you use for the rest of that program. 19984# 19985# GNU Libtool is distributed in the hope that it will be useful, 19986# but WITHOUT ANY WARRANTY; without even the implied warranty of 19987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19988# GNU General Public License for more details. 19989# 19990# You should have received a copy of the GNU General Public License 19991# along with GNU Libtool; see the file COPYING. If not, a copy 19992# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19993# obtained by writing to the Free Software Foundation, Inc., 19994# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19995 19996 19997# The names of the tagged configurations supported by this script. 19998available_tags="" 19999 20000# ### BEGIN LIBTOOL CONFIG 20001 20002# Whether or not to build static libraries. 20003build_old_libs=$enable_static 20004 20005# Which release of libtool.m4 was used? 20006macro_version=$macro_version 20007macro_revision=$macro_revision 20008 20009# Whether or not to build shared libraries. 20010build_libtool_libs=$enable_shared 20011 20012# What type of objects to build. 20013pic_mode=$pic_mode 20014 20015# Whether or not to optimize for fast installation. 20016fast_install=$enable_fast_install 20017 20018# Shell to use when invoking shell scripts. 20019SHELL=$lt_SHELL 20020 20021# An echo program that protects backslashes. 20022ECHO=$lt_ECHO 20023 20024# The PATH separator for the build system. 20025PATH_SEPARATOR=$lt_PATH_SEPARATOR 20026 20027# The host system. 20028host_alias=$host_alias 20029host=$host 20030host_os=$host_os 20031 20032# The build system. 20033build_alias=$build_alias 20034build=$build 20035build_os=$build_os 20036 20037# A sed program that does not truncate output. 20038SED=$lt_SED 20039 20040# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20041Xsed="\$SED -e 1s/^X//" 20042 20043# A grep program that handles long lines. 20044GREP=$lt_GREP 20045 20046# An ERE matcher. 20047EGREP=$lt_EGREP 20048 20049# A literal string matcher. 20050FGREP=$lt_FGREP 20051 20052# A BSD- or MS-compatible name lister. 20053NM=$lt_NM 20054 20055# Whether we need soft or hard links. 20056LN_S=$lt_LN_S 20057 20058# What is the maximum length of a command? 20059max_cmd_len=$max_cmd_len 20060 20061# Object file suffix (normally "o"). 20062objext=$ac_objext 20063 20064# Executable file suffix (normally ""). 20065exeext=$exeext 20066 20067# whether the shell understands "unset". 20068lt_unset=$lt_unset 20069 20070# turn spaces into newlines. 20071SP2NL=$lt_lt_SP2NL 20072 20073# turn newlines into spaces. 20074NL2SP=$lt_lt_NL2SP 20075 20076# convert \$build file names to \$host format. 20077to_host_file_cmd=$lt_cv_to_host_file_cmd 20078 20079# convert \$build files to toolchain format. 20080to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20081 20082# An object symbol dumper. 20083OBJDUMP=$lt_OBJDUMP 20084 20085# Method to check whether dependent libraries are shared objects. 20086deplibs_check_method=$lt_deplibs_check_method 20087 20088# Command to use when deplibs_check_method = "file_magic". 20089file_magic_cmd=$lt_file_magic_cmd 20090 20091# How to find potential files when deplibs_check_method = "file_magic". 20092file_magic_glob=$lt_file_magic_glob 20093 20094# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20095want_nocaseglob=$lt_want_nocaseglob 20096 20097# DLL creation program. 20098DLLTOOL=$lt_DLLTOOL 20099 20100# Command to associate shared and link libraries. 20101sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20102 20103# The archiver. 20104AR=$lt_AR 20105 20106# Flags to create an archive. 20107AR_FLAGS=$lt_AR_FLAGS 20108 20109# How to feed a file listing to the archiver. 20110archiver_list_spec=$lt_archiver_list_spec 20111 20112# A symbol stripping program. 20113STRIP=$lt_STRIP 20114 20115# Commands used to install an old-style archive. 20116RANLIB=$lt_RANLIB 20117old_postinstall_cmds=$lt_old_postinstall_cmds 20118old_postuninstall_cmds=$lt_old_postuninstall_cmds 20119 20120# Whether to use a lock for old archive extraction. 20121lock_old_archive_extraction=$lock_old_archive_extraction 20122 20123# A C compiler. 20124LTCC=$lt_CC 20125 20126# LTCC compiler flags. 20127LTCFLAGS=$lt_CFLAGS 20128 20129# Take the output of nm and produce a listing of raw symbols and C names. 20130global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20131 20132# Transform the output of nm in a proper C declaration. 20133global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20134 20135# Transform the output of nm in a C name address pair. 20136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20137 20138# Transform the output of nm in a C name address pair when lib prefix is needed. 20139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20140 20141# Specify filename containing input files for \$NM. 20142nm_file_list_spec=$lt_nm_file_list_spec 20143 20144# The root where to search for dependent libraries,and in which our libraries should be installed. 20145lt_sysroot=$lt_sysroot 20146 20147# The name of the directory that contains temporary libtool files. 20148objdir=$objdir 20149 20150# Used to examine libraries when file_magic_cmd begins with "file". 20151MAGIC_CMD=$MAGIC_CMD 20152 20153# Must we lock files when doing compilation? 20154need_locks=$lt_need_locks 20155 20156# Manifest tool. 20157MANIFEST_TOOL=$lt_MANIFEST_TOOL 20158 20159# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20160DSYMUTIL=$lt_DSYMUTIL 20161 20162# Tool to change global to local symbols on Mac OS X. 20163NMEDIT=$lt_NMEDIT 20164 20165# Tool to manipulate fat objects and archives on Mac OS X. 20166LIPO=$lt_LIPO 20167 20168# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20169OTOOL=$lt_OTOOL 20170 20171# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20172OTOOL64=$lt_OTOOL64 20173 20174# Old archive suffix (normally "a"). 20175libext=$libext 20176 20177# Shared library suffix (normally ".so"). 20178shrext_cmds=$lt_shrext_cmds 20179 20180# The commands to extract the exported symbol list from a shared archive. 20181extract_expsyms_cmds=$lt_extract_expsyms_cmds 20182 20183# Variables whose values should be saved in libtool wrapper scripts and 20184# restored at link time. 20185variables_saved_for_relink=$lt_variables_saved_for_relink 20186 20187# Do we need the "lib" prefix for modules? 20188need_lib_prefix=$need_lib_prefix 20189 20190# Do we need a version for libraries? 20191need_version=$need_version 20192 20193# Library versioning type. 20194version_type=$version_type 20195 20196# Shared library runtime path variable. 20197runpath_var=$runpath_var 20198 20199# Shared library path variable. 20200shlibpath_var=$shlibpath_var 20201 20202# Is shlibpath searched before the hard-coded library search path? 20203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20204 20205# Format of library name prefix. 20206libname_spec=$lt_libname_spec 20207 20208# List of archive names. First name is the real one, the rest are links. 20209# The last name is the one that the linker finds with -lNAME 20210library_names_spec=$lt_library_names_spec 20211 20212# The coded name of the library, if different from the real name. 20213soname_spec=$lt_soname_spec 20214 20215# Permission mode override for installation of shared libraries. 20216install_override_mode=$lt_install_override_mode 20217 20218# Command to use after installation of a shared archive. 20219postinstall_cmds=$lt_postinstall_cmds 20220 20221# Command to use after uninstallation of a shared archive. 20222postuninstall_cmds=$lt_postuninstall_cmds 20223 20224# Commands used to finish a libtool library installation in a directory. 20225finish_cmds=$lt_finish_cmds 20226 20227# As "finish_cmds", except a single script fragment to be evaled but 20228# not shown. 20229finish_eval=$lt_finish_eval 20230 20231# Whether we should hardcode library paths into libraries. 20232hardcode_into_libs=$hardcode_into_libs 20233 20234# Compile-time system search path for libraries. 20235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20236 20237# Run-time system search path for libraries. 20238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20239 20240# Whether dlopen is supported. 20241dlopen_support=$enable_dlopen 20242 20243# Whether dlopen of programs is supported. 20244dlopen_self=$enable_dlopen_self 20245 20246# Whether dlopen of statically linked programs is supported. 20247dlopen_self_static=$enable_dlopen_self_static 20248 20249# Commands to strip libraries. 20250old_striplib=$lt_old_striplib 20251striplib=$lt_striplib 20252 20253 20254# The linker used to build libraries. 20255LD=$lt_LD 20256 20257# How to create reloadable object files. 20258reload_flag=$lt_reload_flag 20259reload_cmds=$lt_reload_cmds 20260 20261# Commands used to build an old-style archive. 20262old_archive_cmds=$lt_old_archive_cmds 20263 20264# A language specific compiler. 20265CC=$lt_compiler 20266 20267# Is the compiler the GNU compiler? 20268with_gcc=$GCC 20269 20270# Compiler flag to turn off builtin functions. 20271no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20272 20273# Additional compiler flags for building library objects. 20274pic_flag=$lt_lt_prog_compiler_pic 20275 20276# How to pass a linker flag through the compiler. 20277wl=$lt_lt_prog_compiler_wl 20278 20279# Compiler flag to prevent dynamic linking. 20280link_static_flag=$lt_lt_prog_compiler_static 20281 20282# Does compiler simultaneously support -c and -o options? 20283compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20284 20285# Whether or not to add -lc for building shared libraries. 20286build_libtool_need_lc=$archive_cmds_need_lc 20287 20288# Whether or not to disallow shared libs when runtime libs are static. 20289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20290 20291# Compiler flag to allow reflexive dlopens. 20292export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20293 20294# Compiler flag to generate shared objects directly from archives. 20295whole_archive_flag_spec=$lt_whole_archive_flag_spec 20296 20297# Whether the compiler copes with passing no objects directly. 20298compiler_needs_object=$lt_compiler_needs_object 20299 20300# Create an old-style archive from a shared archive. 20301old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20302 20303# Create a temporary old-style archive to link instead of a shared archive. 20304old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20305 20306# Commands used to build a shared archive. 20307archive_cmds=$lt_archive_cmds 20308archive_expsym_cmds=$lt_archive_expsym_cmds 20309 20310# Commands used to build a loadable module if different from building 20311# a shared archive. 20312module_cmds=$lt_module_cmds 20313module_expsym_cmds=$lt_module_expsym_cmds 20314 20315# Whether we are building with GNU ld or not. 20316with_gnu_ld=$lt_with_gnu_ld 20317 20318# Flag that allows shared libraries with undefined symbols to be built. 20319allow_undefined_flag=$lt_allow_undefined_flag 20320 20321# Flag that enforces no undefined symbols. 20322no_undefined_flag=$lt_no_undefined_flag 20323 20324# Flag to hardcode \$libdir into a binary during linking. 20325# This must work even if \$libdir does not exist 20326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20327 20328# Whether we need a single "-rpath" flag with a separated argument. 20329hardcode_libdir_separator=$lt_hardcode_libdir_separator 20330 20331# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20332# DIR into the resulting binary. 20333hardcode_direct=$hardcode_direct 20334 20335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20336# DIR into the resulting binary and the resulting library dependency is 20337# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20338# library is relocated. 20339hardcode_direct_absolute=$hardcode_direct_absolute 20340 20341# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20342# into the resulting binary. 20343hardcode_minus_L=$hardcode_minus_L 20344 20345# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20346# into the resulting binary. 20347hardcode_shlibpath_var=$hardcode_shlibpath_var 20348 20349# Set to "yes" if building a shared library automatically hardcodes DIR 20350# into the library and all subsequent libraries and executables linked 20351# against it. 20352hardcode_automatic=$hardcode_automatic 20353 20354# Set to yes if linker adds runtime paths of dependent libraries 20355# to runtime path list. 20356inherit_rpath=$inherit_rpath 20357 20358# Whether libtool must link a program against all its dependency libraries. 20359link_all_deplibs=$link_all_deplibs 20360 20361# Set to "yes" if exported symbols are required. 20362always_export_symbols=$always_export_symbols 20363 20364# The commands to list exported symbols. 20365export_symbols_cmds=$lt_export_symbols_cmds 20366 20367# Symbols that should not be listed in the preloaded symbols. 20368exclude_expsyms=$lt_exclude_expsyms 20369 20370# Symbols that must always be exported. 20371include_expsyms=$lt_include_expsyms 20372 20373# Commands necessary for linking programs (against libraries) with templates. 20374prelink_cmds=$lt_prelink_cmds 20375 20376# Commands necessary for finishing linking programs. 20377postlink_cmds=$lt_postlink_cmds 20378 20379# Specify filename containing input files. 20380file_list_spec=$lt_file_list_spec 20381 20382# How to hardcode a shared library path into an executable. 20383hardcode_action=$hardcode_action 20384 20385# ### END LIBTOOL CONFIG 20386 20387_LT_EOF 20388 20389 case $host_os in 20390 aix3*) 20391 cat <<\_LT_EOF >> "$cfgfile" 20392# AIX sometimes has problems with the GCC collect2 program. For some 20393# reason, if we set the COLLECT_NAMES environment variable, the problems 20394# vanish in a puff of smoke. 20395if test "X${COLLECT_NAMES+set}" != Xset; then 20396 COLLECT_NAMES= 20397 export COLLECT_NAMES 20398fi 20399_LT_EOF 20400 ;; 20401 esac 20402 20403 20404ltmain="$ac_aux_dir/ltmain.sh" 20405 20406 20407 # We use sed instead of cat because bash on DJGPP gets confused if 20408 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20409 # text mode, it properly converts lines to CR/LF. This bash problem 20410 # is reportedly fixed, but why not run on old versions too? 20411 sed '$q' "$ltmain" >> "$cfgfile" \ 20412 || (rm -f "$cfgfile"; exit 1) 20413 20414 if test x"$xsi_shell" = xyes; then 20415 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20416func_dirname ()\ 20417{\ 20418\ case ${1} in\ 20419\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20420\ * ) func_dirname_result="${3}" ;;\ 20421\ esac\ 20422} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20423 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20424 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20425test 0 -eq $? || _lt_function_replace_fail=: 20426 20427 20428 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20429func_basename ()\ 20430{\ 20431\ func_basename_result="${1##*/}"\ 20432} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20433 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20435test 0 -eq $? || _lt_function_replace_fail=: 20436 20437 20438 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20439func_dirname_and_basename ()\ 20440{\ 20441\ case ${1} in\ 20442\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20443\ * ) func_dirname_result="${3}" ;;\ 20444\ esac\ 20445\ func_basename_result="${1##*/}"\ 20446} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20447 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20449test 0 -eq $? || _lt_function_replace_fail=: 20450 20451 20452 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20453func_stripname ()\ 20454{\ 20455\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20456\ # positional parameters, so assign one to ordinary parameter first.\ 20457\ func_stripname_result=${3}\ 20458\ func_stripname_result=${func_stripname_result#"${1}"}\ 20459\ func_stripname_result=${func_stripname_result%"${2}"}\ 20460} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20461 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20463test 0 -eq $? || _lt_function_replace_fail=: 20464 20465 20466 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20467func_split_long_opt ()\ 20468{\ 20469\ func_split_long_opt_name=${1%%=*}\ 20470\ func_split_long_opt_arg=${1#*=}\ 20471} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20472 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20474test 0 -eq $? || _lt_function_replace_fail=: 20475 20476 20477 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20478func_split_short_opt ()\ 20479{\ 20480\ func_split_short_opt_arg=${1#??}\ 20481\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20482} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20483 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20485test 0 -eq $? || _lt_function_replace_fail=: 20486 20487 20488 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20489func_lo2o ()\ 20490{\ 20491\ case ${1} in\ 20492\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20493\ *) func_lo2o_result=${1} ;;\ 20494\ esac\ 20495} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20496 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20498test 0 -eq $? || _lt_function_replace_fail=: 20499 20500 20501 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20502func_xform ()\ 20503{\ 20504 func_xform_result=${1%.*}.lo\ 20505} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20506 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20508test 0 -eq $? || _lt_function_replace_fail=: 20509 20510 20511 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20512func_arith ()\ 20513{\ 20514 func_arith_result=$(( $* ))\ 20515} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20516 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20518test 0 -eq $? || _lt_function_replace_fail=: 20519 20520 20521 sed -e '/^func_len ()$/,/^} # func_len /c\ 20522func_len ()\ 20523{\ 20524 func_len_result=${#1}\ 20525} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20526 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20528test 0 -eq $? || _lt_function_replace_fail=: 20529 20530fi 20531 20532if test x"$lt_shell_append" = xyes; then 20533 sed -e '/^func_append ()$/,/^} # func_append /c\ 20534func_append ()\ 20535{\ 20536 eval "${1}+=\\${2}"\ 20537} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20538 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20540test 0 -eq $? || _lt_function_replace_fail=: 20541 20542 20543 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20544func_append_quoted ()\ 20545{\ 20546\ func_quote_for_eval "${2}"\ 20547\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20548} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20549 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20551test 0 -eq $? || _lt_function_replace_fail=: 20552 20553 20554 # Save a `func_append' function call where possible by direct use of '+=' 20555 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20556 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20558 test 0 -eq $? || _lt_function_replace_fail=: 20559else 20560 # Save a `func_append' function call even when '+=' is not available 20561 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20562 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20564 test 0 -eq $? || _lt_function_replace_fail=: 20565fi 20566 20567if test x"$_lt_function_replace_fail" = x":"; then 20568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20569$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20570fi 20571 20572 20573 mv -f "$cfgfile" "$ofile" || 20574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20575 chmod +x "$ofile" 20576 20577 ;; 20578 20579 esac 20580done # for ac_tag 20581 20582 20583as_fn_exit 0 20584_ACEOF 20585ac_clean_files=$ac_clean_files_save 20586 20587test $ac_write_fail = 0 || 20588 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20589 20590 20591# configure is writing to config.log, and then calls config.status. 20592# config.status does its own redirection, appending to config.log. 20593# Unfortunately, on DOS this fails, as config.log is still kept open 20594# by configure, so config.status won't be able to write to it; its 20595# output is simply discarded. So we exec the FD to /dev/null, 20596# effectively closing config.log, so it can be properly (re)opened and 20597# appended to by config.status. When coming back to configure, we 20598# need to make the FD available again. 20599if test "$no_create" != yes; then 20600 ac_cs_success=: 20601 ac_config_status_args= 20602 test "$silent" = yes && 20603 ac_config_status_args="$ac_config_status_args --quiet" 20604 exec 5>/dev/null 20605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20606 exec 5>>config.log 20607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20608 # would make configure fail if this is the last instruction. 20609 $ac_cs_success || as_fn_exit 1 20610fi 20611if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20613$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20614fi 20615 20616