1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXpresent 1.0.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libXpresent' 593PACKAGE_TARNAME='libXpresent' 594PACKAGE_VERSION='1.0.0' 595PACKAGE_STRING='libXpresent 1.0.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640PRESENTEXT_LIBS 641PRESENTEXT_CFLAGS 642PRESENTEXT_VERSION 643MAN_SUBSTS 644XORG_MAN_PAGE 645ADMIN_MAN_DIR 646DRIVER_MAN_DIR 647MISC_MAN_DIR 648FILE_MAN_DIR 649LIB_MAN_DIR 650APP_MAN_DIR 651ADMIN_MAN_SUFFIX 652DRIVER_MAN_SUFFIX 653MISC_MAN_SUFFIX 654FILE_MAN_SUFFIX 655LIB_MAN_SUFFIX 656APP_MAN_SUFFIX 657INSTALL_CMD 658PKG_CONFIG_LIBDIR 659PKG_CONFIG_PATH 660PKG_CONFIG 661CHANGELOG_CMD 662STRICT_CFLAGS 663CWARNFLAGS 664BASE_CFLAGS 665CPP 666OTOOL64 667OTOOL 668LIPO 669NMEDIT 670DSYMUTIL 671MANIFEST_TOOL 672RANLIB 673ac_ct_AR 674AR 675DLLTOOL 676OBJDUMP 677LN_S 678NM 679ac_ct_DUMPBIN 680DUMPBIN 681LD 682FGREP 683EGREP 684GREP 685SED 686am__fastdepCC_FALSE 687am__fastdepCC_TRUE 688CCDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__quote 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711LIBTOOL 712MAINT 713MAINTAINER_MODE_FALSE 714MAINTAINER_MODE_TRUE 715AM_BACKSLASH 716AM_DEFAULT_VERBOSITY 717AM_DEFAULT_V 718AM_V 719am__untar 720am__tar 721AMTAR 722am__leading_dot 723SET_MAKE 724AWK 725mkdir_p 726MKDIR_P 727INSTALL_STRIP_PROGRAM 728STRIP 729install_sh 730MAKEINFO 731AUTOHEADER 732AUTOMAKE 733AUTOCONF 734ACLOCAL 735VERSION 736PACKAGE 737CYGPATH_W 738am__isrc 739INSTALL_DATA 740INSTALL_SCRIPT 741INSTALL_PROGRAM 742target_alias 743host_alias 744build_alias 745LIBS 746ECHO_T 747ECHO_N 748ECHO_C 749DEFS 750mandir 751localedir 752libdir 753psdir 754pdfdir 755dvidir 756htmldir 757infodir 758docdir 759oldincludedir 760includedir 761localstatedir 762sharedstatedir 763sysconfdir 764datadir 765datarootdir 766libexecdir 767sbindir 768bindir 769program_transform_name 770prefix 771exec_prefix 772PACKAGE_URL 773PACKAGE_BUGREPORT 774PACKAGE_STRING 775PACKAGE_VERSION 776PACKAGE_TARNAME 777PACKAGE_NAME 778PATH_SEPARATOR 779SHELL' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_maintainer_mode 785enable_shared 786enable_static 787with_pic 788enable_fast_install 789enable_dependency_tracking 790with_gnu_ld 791with_sysroot 792enable_libtool_lock 793enable_selective_werror 794enable_strict_compilation 795' 796 ac_precious_vars='build_alias 797host_alias 798target_alias 799CC 800CFLAGS 801LDFLAGS 802LIBS 803CPPFLAGS 804CPP 805PKG_CONFIG 806PKG_CONFIG_PATH 807PKG_CONFIG_LIBDIR 808PRESENTEXT_CFLAGS 809PRESENTEXT_LIBS' 810 811 812# Initialize some variables set by options. 813ac_init_help= 814ac_init_version=false 815ac_unrecognized_opts= 816ac_unrecognized_sep= 817# The variables have the same names as the options, with 818# dashes changed to underlines. 819cache_file=/dev/null 820exec_prefix=NONE 821no_create= 822no_recursion= 823prefix=NONE 824program_prefix=NONE 825program_suffix=NONE 826program_transform_name=s,x,x, 827silent= 828site= 829srcdir= 830verbose= 831x_includes=NONE 832x_libraries=NONE 833 834# Installation directory options. 835# These are left unexpanded so users can "make install exec_prefix=/foo" 836# and all the variables that are supposed to be based on exec_prefix 837# by default will actually change. 838# Use braces instead of parens because sh, perl, etc. also accept them. 839# (The list follows the same order as the GNU Coding Standards.) 840bindir='${exec_prefix}/bin' 841sbindir='${exec_prefix}/sbin' 842libexecdir='${exec_prefix}/libexec' 843datarootdir='${prefix}/share' 844datadir='${datarootdir}' 845sysconfdir='${prefix}/etc' 846sharedstatedir='${prefix}/com' 847localstatedir='${prefix}/var' 848includedir='${prefix}/include' 849oldincludedir='/usr/include' 850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 851infodir='${datarootdir}/info' 852htmldir='${docdir}' 853dvidir='${docdir}' 854pdfdir='${docdir}' 855psdir='${docdir}' 856libdir='${exec_prefix}/lib' 857localedir='${datarootdir}/locale' 858mandir='${datarootdir}/man' 859 860ac_prev= 861ac_dashdash= 862for ac_option 863do 864 # If the previous option needs an argument, assign it. 865 if test -n "$ac_prev"; then 866 eval $ac_prev=\$ac_option 867 ac_prev= 868 continue 869 fi 870 871 case $ac_option in 872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 873 *=) ac_optarg= ;; 874 *) ac_optarg=yes ;; 875 esac 876 877 # Accept the important Cygnus configure options, so we can diagnose typos. 878 879 case $ac_dashdash$ac_option in 880 --) 881 ac_dashdash=yes ;; 882 883 -bindir | --bindir | --bindi | --bind | --bin | --bi) 884 ac_prev=bindir ;; 885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 886 bindir=$ac_optarg ;; 887 888 -build | --build | --buil | --bui | --bu) 889 ac_prev=build_alias ;; 890 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 891 build_alias=$ac_optarg ;; 892 893 -cache-file | --cache-file | --cache-fil | --cache-fi \ 894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 895 ac_prev=cache_file ;; 896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 898 cache_file=$ac_optarg ;; 899 900 --config-cache | -C) 901 cache_file=config.cache ;; 902 903 -datadir | --datadir | --datadi | --datad) 904 ac_prev=datadir ;; 905 -datadir=* | --datadir=* | --datadi=* | --datad=*) 906 datadir=$ac_optarg ;; 907 908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 909 | --dataroo | --dataro | --datar) 910 ac_prev=datarootdir ;; 911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 913 datarootdir=$ac_optarg ;; 914 915 -disable-* | --disable-*) 916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 917 # Reject names that are not valid shell variable names. 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919 as_fn_error $? "invalid feature name: $ac_useropt" 920 ac_useropt_orig=$ac_useropt 921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 922 case $ac_user_opts in 923 *" 924"enable_$ac_useropt" 925"*) ;; 926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 927 ac_unrecognized_sep=', ';; 928 esac 929 eval enable_$ac_useropt=no ;; 930 931 -docdir | --docdir | --docdi | --doc | --do) 932 ac_prev=docdir ;; 933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 934 docdir=$ac_optarg ;; 935 936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 937 ac_prev=dvidir ;; 938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 939 dvidir=$ac_optarg ;; 940 941 -enable-* | --enable-*) 942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 943 # Reject names that are not valid shell variable names. 944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 945 as_fn_error $? "invalid feature name: $ac_useropt" 946 ac_useropt_orig=$ac_useropt 947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 948 case $ac_user_opts in 949 *" 950"enable_$ac_useropt" 951"*) ;; 952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 953 ac_unrecognized_sep=', ';; 954 esac 955 eval enable_$ac_useropt=\$ac_optarg ;; 956 957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 959 | --exec | --exe | --ex) 960 ac_prev=exec_prefix ;; 961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 963 | --exec=* | --exe=* | --ex=*) 964 exec_prefix=$ac_optarg ;; 965 966 -gas | --gas | --ga | --g) 967 # Obsolete; use --with-gas. 968 with_gas=yes ;; 969 970 -help | --help | --hel | --he | -h) 971 ac_init_help=long ;; 972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 973 ac_init_help=recursive ;; 974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 975 ac_init_help=short ;; 976 977 -host | --host | --hos | --ho) 978 ac_prev=host_alias ;; 979 -host=* | --host=* | --hos=* | --ho=*) 980 host_alias=$ac_optarg ;; 981 982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 983 ac_prev=htmldir ;; 984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 985 | --ht=*) 986 htmldir=$ac_optarg ;; 987 988 -includedir | --includedir | --includedi | --included | --include \ 989 | --includ | --inclu | --incl | --inc) 990 ac_prev=includedir ;; 991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 992 | --includ=* | --inclu=* | --incl=* | --inc=*) 993 includedir=$ac_optarg ;; 994 995 -infodir | --infodir | --infodi | --infod | --info | --inf) 996 ac_prev=infodir ;; 997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 998 infodir=$ac_optarg ;; 999 1000 -libdir | --libdir | --libdi | --libd) 1001 ac_prev=libdir ;; 1002 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1003 libdir=$ac_optarg ;; 1004 1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1006 | --libexe | --libex | --libe) 1007 ac_prev=libexecdir ;; 1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1009 | --libexe=* | --libex=* | --libe=*) 1010 libexecdir=$ac_optarg ;; 1011 1012 -localedir | --localedir | --localedi | --localed | --locale) 1013 ac_prev=localedir ;; 1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1015 localedir=$ac_optarg ;; 1016 1017 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1018 | --localstate | --localstat | --localsta | --localst | --locals) 1019 ac_prev=localstatedir ;; 1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1022 localstatedir=$ac_optarg ;; 1023 1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1025 ac_prev=mandir ;; 1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1027 mandir=$ac_optarg ;; 1028 1029 -nfp | --nfp | --nf) 1030 # Obsolete; use --without-fp. 1031 with_fp=no ;; 1032 1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1034 | --no-cr | --no-c | -n) 1035 no_create=yes ;; 1036 1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1039 no_recursion=yes ;; 1040 1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1043 | --oldin | --oldi | --old | --ol | --o) 1044 ac_prev=oldincludedir ;; 1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1048 oldincludedir=$ac_optarg ;; 1049 1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1051 ac_prev=prefix ;; 1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1053 prefix=$ac_optarg ;; 1054 1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1056 | --program-pre | --program-pr | --program-p) 1057 ac_prev=program_prefix ;; 1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1060 program_prefix=$ac_optarg ;; 1061 1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1063 | --program-suf | --program-su | --program-s) 1064 ac_prev=program_suffix ;; 1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1067 program_suffix=$ac_optarg ;; 1068 1069 -program-transform-name | --program-transform-name \ 1070 | --program-transform-nam | --program-transform-na \ 1071 | --program-transform-n | --program-transform- \ 1072 | --program-transform | --program-transfor \ 1073 | --program-transfo | --program-transf \ 1074 | --program-trans | --program-tran \ 1075 | --progr-tra | --program-tr | --program-t) 1076 ac_prev=program_transform_name ;; 1077 -program-transform-name=* | --program-transform-name=* \ 1078 | --program-transform-nam=* | --program-transform-na=* \ 1079 | --program-transform-n=* | --program-transform-=* \ 1080 | --program-transform=* | --program-transfor=* \ 1081 | --program-transfo=* | --program-transf=* \ 1082 | --program-trans=* | --program-tran=* \ 1083 | --progr-tra=* | --program-tr=* | --program-t=*) 1084 program_transform_name=$ac_optarg ;; 1085 1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1087 ac_prev=pdfdir ;; 1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1089 pdfdir=$ac_optarg ;; 1090 1091 -psdir | --psdir | --psdi | --psd | --ps) 1092 ac_prev=psdir ;; 1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1094 psdir=$ac_optarg ;; 1095 1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1097 | -silent | --silent | --silen | --sile | --sil) 1098 silent=yes ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: $ac_useropt" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1196Try \`$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: `$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293$as_echo X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350\`configure' configures libXpresent 1.0.0 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print \`checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for \`--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, \`make install' will install all the files in 1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1379for instance \`--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --libdir=DIR object code libraries [EPREFIX/lib] 1391 --includedir=DIR C header files [PREFIX/include] 1392 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1395 --infodir=DIR info documentation [DATAROOTDIR/info] 1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1397 --mandir=DIR man documentation [DATAROOTDIR/man] 1398 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpresent] 1399 --htmldir=DIR html documentation [DOCDIR] 1400 --dvidir=DIR dvi documentation [DOCDIR] 1401 --pdfdir=DIR pdf documentation [DOCDIR] 1402 --psdir=DIR ps documentation [DOCDIR] 1403_ACEOF 1404 1405 cat <<\_ACEOF 1406 1407Program names: 1408 --program-prefix=PREFIX prepend PREFIX to installed program names 1409 --program-suffix=SUFFIX append SUFFIX to installed program names 1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1411 1412System types: 1413 --build=BUILD configure for building on BUILD [guessed] 1414 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1415_ACEOF 1416fi 1417 1418if test -n "$ac_init_help"; then 1419 case $ac_init_help in 1420 short | recursive ) echo "Configuration of libXpresent 1.0.0:";; 1421 esac 1422 cat <<\_ACEOF 1423 1424Optional Features: 1425 --disable-option-checking ignore unrecognized --enable/--with options 1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --enable-maintainer-mode 1431 enable make rules and dependencies not useful (and 1432 sometimes confusing) to the casual installer 1433 --enable-shared[=PKGS] build shared libraries [default=yes] 1434 --enable-static[=PKGS] build static libraries [default=yes] 1435 --enable-fast-install[=PKGS] 1436 optimize for fast installation [default=yes] 1437 --enable-dependency-tracking 1438 do not reject slow dependency extractors 1439 --disable-dependency-tracking 1440 speeds up one-time build 1441 --disable-libtool-lock avoid locking (might break parallel builds) 1442 --disable-selective-werror 1443 Turn off selective compiler errors. (default: 1444 enabled) 1445 --enable-strict-compilation 1446 Enable all warnings from compiler and make them 1447 errors (default: disabled) 1448 1449Optional Packages: 1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1455 --with-sysroot=DIR Search for dependent libraries within DIR 1456 (or the compiler's sysroot if not specified). 1457 1458Some influential environment variables: 1459 CC C compiler command 1460 CFLAGS C compiler flags 1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1462 nonstandard directory <lib dir> 1463 LIBS libraries to pass to the linker, e.g. -l<library> 1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1465 you have headers in a nonstandard directory <include dir> 1466 CPP C preprocessor 1467 PKG_CONFIG path to pkg-config utility 1468 PKG_CONFIG_PATH 1469 directories to add to pkg-config's search path 1470 PKG_CONFIG_LIBDIR 1471 path overriding pkg-config's built-in search path 1472 PRESENTEXT_CFLAGS 1473 C compiler flags for PRESENTEXT, overriding pkg-config 1474 PRESENTEXT_LIBS 1475 linker flags for PRESENTEXT, overriding pkg-config 1476 1477Use these variables to override the choices made by `configure' or to help 1478it to find libraries and programs with nonstandard names/locations. 1479 1480Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1481_ACEOF 1482ac_status=$? 1483fi 1484 1485if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for guested configure. 1527 if test -f "$ac_srcdir/configure.gnu"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1530 elif test -f "$ac_srcdir/configure"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure" --help=recursive 1533 else 1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1535 fi || ac_status=$? 1536 cd "$ac_pwd" || { ac_status=$?; break; } 1537 done 1538fi 1539 1540test -n "$ac_init_help" && exit $ac_status 1541if $ac_init_version; then 1542 cat <<\_ACEOF 1543libXpresent configure 1.0.0 1544generated by GNU Autoconf 2.69 1545 1546Copyright (C) 2012 Free Software Foundation, Inc. 1547This configure script is free software; the Free Software Foundation 1548gives unlimited permission to copy, distribute and modify it. 1549_ACEOF 1550 exit 1551fi 1552 1553## ------------------------ ## 1554## Autoconf initialization. ## 1555## ------------------------ ## 1556 1557# ac_fn_c_try_compile LINENO 1558# -------------------------- 1559# Try to compile conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_compile () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 rm -f conftest.$ac_objext 1564 if { { ac_try="$ac_compile" 1565case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568esac 1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570$as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_compile") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } && { 1580 test -z "$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 } && test -s conftest.$ac_objext; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593} # ac_fn_c_try_compile 1594 1595# ac_fn_c_try_link LINENO 1596# ----------------------- 1597# Try to link conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_link () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext conftest$ac_exeext 1602 if { { ac_try="$ac_link" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_link") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest$ac_exeext && { 1621 test "$cross_compiling" = yes || 1622 test -x conftest$ac_exeext 1623 }; then : 1624 ac_retval=0 1625else 1626 $as_echo "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630fi 1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1633 # interfere with the next link command; also delete a directory that is 1634 # left behind by Apple's compiler. We do this before executing the actions. 1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_link 1640 1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1642# ------------------------------------------------------- 1643# Tests whether HEADER exists and can be compiled using the include files in 1644# INCLUDES, setting the cache variable VAR accordingly. 1645ac_fn_c_check_header_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1649$as_echo_n "checking for $2... " >&6; } 1650if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652else 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_compile "$LINENO"; then : 1659 eval "$3=yes" 1660else 1661 eval "$3=no" 1662fi 1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664fi 1665eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667$as_echo "$ac_res" >&6; } 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 1670} # ac_fn_c_check_header_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_try_run LINENO 1710# ---------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1712# that executables *can* be run. 1713ac_fn_c_try_run () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1727 { { case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_try") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; }; }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: program exited with status $ac_status" >&5 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=$ac_status 1744fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_run 1750 1751# ac_fn_c_check_func LINENO FUNC VAR 1752# ---------------------------------- 1753# Tests whether FUNC exists, setting the cache variable VAR accordingly 1754ac_fn_c_check_func () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1766#define $2 innocuous_$2 1767 1768/* System header to define __stub macros and hopefully few prototypes, 1769 which can conflict with char $2 (); below. 1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1771 <limits.h> exists even on freestanding compilers. */ 1772 1773#ifdef __STDC__ 1774# include <limits.h> 1775#else 1776# include <assert.h> 1777#endif 1778 1779#undef $2 1780 1781/* Override any GCC internal prototype to avoid an error. 1782 Use char because int might match the return type of a GCC 1783 builtin and then its argument prototype would still apply. */ 1784#ifdef __cplusplus 1785extern "C" 1786#endif 1787char $2 (); 1788/* The GNU C library defines this for functions which it implements 1789 to always fail with ENOSYS. Some functions are actually named 1790 something starting with __ and the normal name is an alias. */ 1791#if defined __stub_$2 || defined __stub___$2 1792choke me 1793#endif 1794 1795int 1796main () 1797{ 1798return $2 (); 1799 ; 1800 return 0; 1801} 1802_ACEOF 1803if ac_fn_c_try_link "$LINENO"; then : 1804 eval "$3=yes" 1805else 1806 eval "$3=no" 1807fi 1808rm -f core conftest.err conftest.$ac_objext \ 1809 conftest$ac_exeext conftest.$ac_ext 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_func 1817 1818# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1819# --------------------------------------------- 1820# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1821# accordingly. 1822ac_fn_c_check_decl () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 as_decl_name=`echo $2|sed 's/ *(.*//'` 1826 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1828$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1829if eval \${$3+:} false; then : 1830 $as_echo_n "(cached) " >&6 1831else 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834$4 1835int 1836main () 1837{ 1838#ifndef $as_decl_name 1839#ifdef __cplusplus 1840 (void) $as_decl_use; 1841#else 1842 (void) $as_decl_name; 1843#endif 1844#endif 1845 1846 ; 1847 return 0; 1848} 1849_ACEOF 1850if ac_fn_c_try_compile "$LINENO"; then : 1851 eval "$3=yes" 1852else 1853 eval "$3=no" 1854fi 1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_decl 1863cat >config.log <<_ACEOF 1864This file contains any messages produced by compilers while 1865running configure, to aid debugging if configure makes a mistake. 1866 1867It was created by libXpresent $as_me 1.0.0, which was 1868generated by GNU Autoconf 2.69. Invocation command line was 1869 1870 $ $0 $@ 1871 1872_ACEOF 1873exec 5>>config.log 1874{ 1875cat <<_ASUNAME 1876## --------- ## 1877## Platform. ## 1878## --------- ## 1879 1880hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1881uname -m = `(uname -m) 2>/dev/null || echo unknown` 1882uname -r = `(uname -r) 2>/dev/null || echo unknown` 1883uname -s = `(uname -s) 2>/dev/null || echo unknown` 1884uname -v = `(uname -v) 2>/dev/null || echo unknown` 1885 1886/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1887/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1888 1889/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1890/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1891/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1892/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1893/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1894/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1895/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1896 1897_ASUNAME 1898 1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1900for as_dir in $PATH 1901do 1902 IFS=$as_save_IFS 1903 test -z "$as_dir" && as_dir=. 1904 $as_echo "PATH: $as_dir" 1905 done 1906IFS=$as_save_IFS 1907 1908} >&5 1909 1910cat >&5 <<_ACEOF 1911 1912 1913## ----------- ## 1914## Core tests. ## 1915## ----------- ## 1916 1917_ACEOF 1918 1919 1920# Keep a trace of the command line. 1921# Strip out --no-create and --no-recursion so they do not pile up. 1922# Strip out --silent because we don't want to record it for future runs. 1923# Also quote any args containing shell meta-characters. 1924# Make two passes to allow for proper duplicate-argument suppression. 1925ac_configure_args= 1926ac_configure_args0= 1927ac_configure_args1= 1928ac_must_keep_next=false 1929for ac_pass in 1 2 1930do 1931 for ac_arg 1932 do 1933 case $ac_arg in 1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1936 | -silent | --silent | --silen | --sile | --sil) 1937 continue ;; 1938 *\'*) 1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1940 esac 1941 case $ac_pass in 1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1943 2) 1944 as_fn_append ac_configure_args1 " '$ac_arg'" 1945 if test $ac_must_keep_next = true; then 1946 ac_must_keep_next=false # Got value, back to normal. 1947 else 1948 case $ac_arg in 1949 *=* | --config-cache | -C | -disable-* | --disable-* \ 1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1952 | -with-* | --with-* | -without-* | --without-* | --x) 1953 case "$ac_configure_args0 " in 1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1955 esac 1956 ;; 1957 -* ) ac_must_keep_next=true ;; 1958 esac 1959 fi 1960 as_fn_append ac_configure_args " '$ac_arg'" 1961 ;; 1962 esac 1963 done 1964done 1965{ ac_configure_args0=; unset ac_configure_args0;} 1966{ ac_configure_args1=; unset ac_configure_args1;} 1967 1968# When interrupted or exit'd, cleanup temporary files, and complete 1969# config.log. We remove comments because anyway the quotes in there 1970# would cause problems or look ugly. 1971# WARNING: Use '\'' to represent an apostrophe within the trap. 1972# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1973trap 'exit_status=$? 1974 # Save into config.log some information that might help in debugging. 1975 { 1976 echo 1977 1978 $as_echo "## ---------------- ## 1979## Cache variables. ## 1980## ---------------- ##" 1981 echo 1982 # The following way of writing the cache mishandles newlines in values, 1983( 1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1985 eval ac_val=\$$ac_var 1986 case $ac_val in #( 1987 *${as_nl}*) 1988 case $ac_var in #( 1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1991 esac 1992 case $ac_var in #( 1993 _ | IFS | as_nl) ;; #( 1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1995 *) { eval $ac_var=; unset $ac_var;} ;; 1996 esac ;; 1997 esac 1998 done 1999 (set) 2>&1 | 2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2001 *${as_nl}ac_space=\ *) 2002 sed -n \ 2003 "s/'\''/'\''\\\\'\'''\''/g; 2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2005 ;; #( 2006 *) 2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2008 ;; 2009 esac | 2010 sort 2011) 2012 echo 2013 2014 $as_echo "## ----------------- ## 2015## Output variables. ## 2016## ----------------- ##" 2017 echo 2018 for ac_var in $ac_subst_vars 2019 do 2020 eval ac_val=\$$ac_var 2021 case $ac_val in 2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2023 esac 2024 $as_echo "$ac_var='\''$ac_val'\''" 2025 done | sort 2026 echo 2027 2028 if test -n "$ac_subst_files"; then 2029 $as_echo "## ------------------- ## 2030## File substitutions. ## 2031## ------------------- ##" 2032 echo 2033 for ac_var in $ac_subst_files 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 $as_echo "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 fi 2043 2044 if test -s confdefs.h; then 2045 $as_echo "## ----------- ## 2046## confdefs.h. ## 2047## ----------- ##" 2048 echo 2049 cat confdefs.h 2050 echo 2051 fi 2052 test "$ac_signal" != 0 && 2053 $as_echo "$as_me: caught signal $ac_signal" 2054 $as_echo "$as_me: exit $exit_status" 2055 } >&5 2056 rm -f core *.core core.conftest.* && 2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2058 exit $exit_status 2059' 0 2060for ac_signal in 1 2 13 15; do 2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2062done 2063ac_signal=0 2064 2065# confdefs.h avoids OS command line length limits that DEFS can exceed. 2066rm -f -r conftest* confdefs.h 2067 2068$as_echo "/* confdefs.h */" > confdefs.h 2069 2070# Predefined preprocessor variables. 2071 2072cat >>confdefs.h <<_ACEOF 2073#define PACKAGE_NAME "$PACKAGE_NAME" 2074_ACEOF 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2078_ACEOF 2079 2080cat >>confdefs.h <<_ACEOF 2081#define PACKAGE_VERSION "$PACKAGE_VERSION" 2082_ACEOF 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_STRING "$PACKAGE_STRING" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_URL "$PACKAGE_URL" 2094_ACEOF 2095 2096 2097# Let the site file select an alternate cache file if it wants to. 2098# Prefer an explicitly selected file to automatically selected ones. 2099ac_site_file1=NONE 2100ac_site_file2=NONE 2101if test -n "$CONFIG_SITE"; then 2102 # We do not want a PATH search for config.site. 2103 case $CONFIG_SITE in #(( 2104 -*) ac_site_file1=./$CONFIG_SITE;; 2105 */*) ac_site_file1=$CONFIG_SITE;; 2106 *) ac_site_file1=./$CONFIG_SITE;; 2107 esac 2108elif test "x$prefix" != xNONE; then 2109 ac_site_file1=$prefix/share/config.site 2110 ac_site_file2=$prefix/etc/config.site 2111else 2112 ac_site_file1=$ac_default_prefix/share/config.site 2113 ac_site_file2=$ac_default_prefix/etc/config.site 2114fi 2115for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2116do 2117 test "x$ac_site_file" = xNONE && continue 2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2120$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2121 sed 's/^/| /' "$ac_site_file" >&5 2122 . "$ac_site_file" \ 2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2125as_fn_error $? "failed to load site script $ac_site_file 2126See \`config.log' for more details" "$LINENO" 5; } 2127 fi 2128done 2129 2130if test -r "$cache_file"; then 2131 # Some versions of bash will fail to source /dev/null (special files 2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2135$as_echo "$as_me: loading cache $cache_file" >&6;} 2136 case $cache_file in 2137 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2138 *) . "./$cache_file";; 2139 esac 2140 fi 2141else 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2143$as_echo "$as_me: creating cache $cache_file" >&6;} 2144 >$cache_file 2145fi 2146 2147# Check that the precious variables saved in the cache have kept the same 2148# value. 2149ac_cache_corrupted=false 2150for ac_var in $ac_precious_vars; do 2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2152 eval ac_new_set=\$ac_env_${ac_var}_set 2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2154 eval ac_new_val=\$ac_env_${ac_var}_value 2155 case $ac_old_set,$ac_new_set in 2156 set,) 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2158$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2159 ac_cache_corrupted=: ;; 2160 ,set) 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2162$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2163 ac_cache_corrupted=: ;; 2164 ,);; 2165 *) 2166 if test "x$ac_old_val" != "x$ac_new_val"; then 2167 # differences in whitespace do not lead to failure. 2168 ac_old_val_w=`echo x $ac_old_val` 2169 ac_new_val_w=`echo x $ac_new_val` 2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2172$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2173 ac_cache_corrupted=: 2174 else 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2176$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2177 eval $ac_var=\$ac_old_val 2178 fi 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2180$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2182$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2183 fi;; 2184 esac 2185 # Pass precious variables to config.status. 2186 if test "$ac_new_set" = set; then 2187 case $ac_new_val in 2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2189 *) ac_arg=$ac_var=$ac_new_val ;; 2190 esac 2191 case " $ac_configure_args " in 2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2194 esac 2195 fi 2196done 2197if $ac_cache_corrupted; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2201$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2203fi 2204## -------------------- ## 2205## Main body of script. ## 2206## -------------------- ## 2207 2208ac_ext=c 2209ac_cpp='$CPP $CPPFLAGS' 2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2212ac_compiler_gnu=$ac_cv_c_compiler_gnu 2213 2214 2215 2216ac_config_headers="$ac_config_headers config.h" 2217 2218ac_aux_dir= 2219for ac_dir in . "$srcdir"/.; do 2220 if test -f "$ac_dir/install-sh"; then 2221 ac_aux_dir=$ac_dir 2222 ac_install_sh="$ac_aux_dir/install-sh -c" 2223 break 2224 elif test -f "$ac_dir/install.sh"; then 2225 ac_aux_dir=$ac_dir 2226 ac_install_sh="$ac_aux_dir/install.sh -c" 2227 break 2228 elif test -f "$ac_dir/shtool"; then 2229 ac_aux_dir=$ac_dir 2230 ac_install_sh="$ac_aux_dir/shtool install -c" 2231 break 2232 fi 2233done 2234if test -z "$ac_aux_dir"; then 2235 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2236fi 2237 2238# These three variables are undocumented and unsupported, 2239# and are intended to be withdrawn in a future Autoconf release. 2240# They can cause serious problems if a builder's source tree is in a directory 2241# whose full name contains unusual characters. 2242ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2243ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2244ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2245 2246 2247 2248 2249# Initialize Automake 2250am__api_version='1.14' 2251 2252# Find a good install program. We prefer a C program (faster), 2253# so one script is as good as another. But avoid the broken or 2254# incompatible versions: 2255# SysV /etc/install, /usr/sbin/install 2256# SunOS /usr/etc/install 2257# IRIX /sbin/install 2258# AIX /bin/install 2259# AmigaOS /C/install, which installs bootblocks on floppy discs 2260# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2261# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2262# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2263# OS/2's system install, which has a completely different semantic 2264# ./install, which can be erroneously created by make from ./install.sh. 2265# Reject install programs that cannot install multiple files. 2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2267$as_echo_n "checking for a BSD-compatible install... " >&6; } 2268if test -z "$INSTALL"; then 2269if ${ac_cv_path_install+:} false; then : 2270 $as_echo_n "(cached) " >&6 2271else 2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2273for as_dir in $PATH 2274do 2275 IFS=$as_save_IFS 2276 test -z "$as_dir" && as_dir=. 2277 # Account for people who put trailing slashes in PATH elements. 2278case $as_dir/ in #(( 2279 ./ | .// | /[cC]/* | \ 2280 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2281 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2282 /usr/ucb/* ) ;; 2283 *) 2284 # OSF1 and SCO ODT 3.0 have their own names for install. 2285 # Don't use installbsd from OSF since it installs stuff as root 2286 # by default. 2287 for ac_prog in ginstall scoinst install; do 2288 for ac_exec_ext in '' $ac_executable_extensions; do 2289 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2290 if test $ac_prog = install && 2291 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2292 # AIX install. It has an incompatible calling convention. 2293 : 2294 elif test $ac_prog = install && 2295 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2296 # program-specific install script used by HP pwplus--don't use. 2297 : 2298 else 2299 rm -rf conftest.one conftest.two conftest.dir 2300 echo one > conftest.one 2301 echo two > conftest.two 2302 mkdir conftest.dir 2303 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2304 test -s conftest.one && test -s conftest.two && 2305 test -s conftest.dir/conftest.one && 2306 test -s conftest.dir/conftest.two 2307 then 2308 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2309 break 3 2310 fi 2311 fi 2312 fi 2313 done 2314 done 2315 ;; 2316esac 2317 2318 done 2319IFS=$as_save_IFS 2320 2321rm -rf conftest.one conftest.two conftest.dir 2322 2323fi 2324 if test "${ac_cv_path_install+set}" = set; then 2325 INSTALL=$ac_cv_path_install 2326 else 2327 # As a last resort, use the slow shell script. Don't cache a 2328 # value for INSTALL within a source directory, because that will 2329 # break other packages using the cache if that directory is 2330 # removed, or if the value is a relative name. 2331 INSTALL=$ac_install_sh 2332 fi 2333fi 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2335$as_echo "$INSTALL" >&6; } 2336 2337# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2338# It thinks the first close brace ends the variable substitution. 2339test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2340 2341test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2342 2343test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2344 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2346$as_echo_n "checking whether build environment is sane... " >&6; } 2347# Reject unsafe characters in $srcdir or the absolute working directory 2348# name. Accept space and tab only in the latter. 2349am_lf=' 2350' 2351case `pwd` in 2352 *[\\\"\#\$\&\'\`$am_lf]*) 2353 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2354esac 2355case $srcdir in 2356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2357 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2358esac 2359 2360# Do 'set' in a subshell so we don't clobber the current shell's 2361# arguments. Must try -L first in case configure is actually a 2362# symlink; some systems play weird games with the mod time of symlinks 2363# (eg FreeBSD returns the mod time of the symlink's containing 2364# directory). 2365if ( 2366 am_has_slept=no 2367 for am_try in 1 2; do 2368 echo "timestamp, slept: $am_has_slept" > conftest.file 2369 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2370 if test "$*" = "X"; then 2371 # -L didn't work. 2372 set X `ls -t "$srcdir/configure" conftest.file` 2373 fi 2374 if test "$*" != "X $srcdir/configure conftest.file" \ 2375 && test "$*" != "X conftest.file $srcdir/configure"; then 2376 2377 # If neither matched, then we have a broken ls. This can happen 2378 # if, for instance, CONFIG_SHELL is bash and it inherits a 2379 # broken ls alias from the environment. This has actually 2380 # happened. Such a system could not be considered "sane". 2381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2382 alias in your environment" "$LINENO" 5 2383 fi 2384 if test "$2" = conftest.file || test $am_try -eq 2; then 2385 break 2386 fi 2387 # Just in case. 2388 sleep 1 2389 am_has_slept=yes 2390 done 2391 test "$2" = conftest.file 2392 ) 2393then 2394 # Ok. 2395 : 2396else 2397 as_fn_error $? "newly created file is older than distributed files! 2398Check your system clock" "$LINENO" 5 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2401$as_echo "yes" >&6; } 2402# If we didn't sleep, we still need to ensure time stamps of config.status and 2403# generated files are strictly newer. 2404am_sleep_pid= 2405if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2406 ( sleep 1 ) & 2407 am_sleep_pid=$! 2408fi 2409 2410rm -f conftest.file 2411 2412test "$program_prefix" != NONE && 2413 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2414# Use a double $ so make ignores it. 2415test "$program_suffix" != NONE && 2416 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2417# Double any \ or $. 2418# By default was `s,x,x', remove it if useless. 2419ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2420program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2421 2422# Expand $ac_aux_dir to an absolute path. 2423am_aux_dir=`cd "$ac_aux_dir" && pwd` 2424 2425if test x"${MISSING+set}" != xset; then 2426 case $am_aux_dir in 2427 *\ * | *\ *) 2428 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2429 *) 2430 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2431 esac 2432fi 2433# Use eval to expand $SHELL 2434if eval "$MISSING --is-lightweight"; then 2435 am_missing_run="$MISSING " 2436else 2437 am_missing_run= 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2439$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2440fi 2441 2442if test x"${install_sh}" != xset; then 2443 case $am_aux_dir in 2444 *\ * | *\ *) 2445 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2446 *) 2447 install_sh="\${SHELL} $am_aux_dir/install-sh" 2448 esac 2449fi 2450 2451# Installed binaries are usually stripped using 'strip' when the user 2452# run "make install-strip". However 'strip' might not be the right 2453# tool to use in cross-compilation environments, therefore Automake 2454# will honor the 'STRIP' environment variable to overrule this program. 2455if test "$cross_compiling" != no; then 2456 if test -n "$ac_tool_prefix"; then 2457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2458set dummy ${ac_tool_prefix}strip; ac_word=$2 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2460$as_echo_n "checking for $ac_word... " >&6; } 2461if ${ac_cv_prog_STRIP+:} false; then : 2462 $as_echo_n "(cached) " >&6 2463else 2464 if test -n "$STRIP"; then 2465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2466else 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_exec_ext in '' $ac_executable_extensions; do 2473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2474 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2476 break 2 2477 fi 2478done 2479 done 2480IFS=$as_save_IFS 2481 2482fi 2483fi 2484STRIP=$ac_cv_prog_STRIP 2485if test -n "$STRIP"; then 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2487$as_echo "$STRIP" >&6; } 2488else 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2490$as_echo "no" >&6; } 2491fi 2492 2493 2494fi 2495if test -z "$ac_cv_prog_STRIP"; then 2496 ac_ct_STRIP=$STRIP 2497 # Extract the first word of "strip", so it can be a program name with args. 2498set dummy strip; ac_word=$2 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2500$as_echo_n "checking for $ac_word... " >&6; } 2501if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2502 $as_echo_n "(cached) " >&6 2503else 2504 if test -n "$ac_ct_STRIP"; then 2505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2506else 2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 for ac_exec_ext in '' $ac_executable_extensions; do 2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2514 ac_cv_prog_ac_ct_STRIP="strip" 2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2516 break 2 2517 fi 2518done 2519 done 2520IFS=$as_save_IFS 2521 2522fi 2523fi 2524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2525if test -n "$ac_ct_STRIP"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2527$as_echo "$ac_ct_STRIP" >&6; } 2528else 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2530$as_echo "no" >&6; } 2531fi 2532 2533 if test "x$ac_ct_STRIP" = x; then 2534 STRIP=":" 2535 else 2536 case $cross_compiling:$ac_tool_warned in 2537yes:) 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2540ac_tool_warned=yes ;; 2541esac 2542 STRIP=$ac_ct_STRIP 2543 fi 2544else 2545 STRIP="$ac_cv_prog_STRIP" 2546fi 2547 2548fi 2549INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2550 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2552$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2553if test -z "$MKDIR_P"; then 2554 if ${ac_cv_path_mkdir+:} false; then : 2555 $as_echo_n "(cached) " >&6 2556else 2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2558for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2559do 2560 IFS=$as_save_IFS 2561 test -z "$as_dir" && as_dir=. 2562 for ac_prog in mkdir gmkdir; do 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2565 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2566 'mkdir (GNU coreutils) '* | \ 2567 'mkdir (coreutils) '* | \ 2568 'mkdir (fileutils) '4.1*) 2569 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2570 break 3;; 2571 esac 2572 done 2573 done 2574 done 2575IFS=$as_save_IFS 2576 2577fi 2578 2579 test -d ./--version && rmdir ./--version 2580 if test "${ac_cv_path_mkdir+set}" = set; then 2581 MKDIR_P="$ac_cv_path_mkdir -p" 2582 else 2583 # As a last resort, use the slow shell script. Don't cache a 2584 # value for MKDIR_P within a source directory, because that will 2585 # break other packages using the cache if that directory is 2586 # removed, or if the value is a relative name. 2587 MKDIR_P="$ac_install_sh -d" 2588 fi 2589fi 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2591$as_echo "$MKDIR_P" >&6; } 2592 2593for ac_prog in gawk mawk nawk awk 2594do 2595 # Extract the first word of "$ac_prog", so it can be a program name with args. 2596set dummy $ac_prog; ac_word=$2 2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2598$as_echo_n "checking for $ac_word... " >&6; } 2599if ${ac_cv_prog_AWK+:} false; then : 2600 $as_echo_n "(cached) " >&6 2601else 2602 if test -n "$AWK"; then 2603 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2604else 2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606for as_dir in $PATH 2607do 2608 IFS=$as_save_IFS 2609 test -z "$as_dir" && as_dir=. 2610 for ac_exec_ext in '' $ac_executable_extensions; do 2611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2612 ac_cv_prog_AWK="$ac_prog" 2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2614 break 2 2615 fi 2616done 2617 done 2618IFS=$as_save_IFS 2619 2620fi 2621fi 2622AWK=$ac_cv_prog_AWK 2623if test -n "$AWK"; then 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2625$as_echo "$AWK" >&6; } 2626else 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2628$as_echo "no" >&6; } 2629fi 2630 2631 2632 test -n "$AWK" && break 2633done 2634 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2636$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2637set x ${MAKE-make} 2638ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2639if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2640 $as_echo_n "(cached) " >&6 2641else 2642 cat >conftest.make <<\_ACEOF 2643SHELL = /bin/sh 2644all: 2645 @echo '@@@%%%=$(MAKE)=@@@%%%' 2646_ACEOF 2647# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2648case `${MAKE-make} -f conftest.make 2>/dev/null` in 2649 *@@@%%%=?*=@@@%%%*) 2650 eval ac_cv_prog_make_${ac_make}_set=yes;; 2651 *) 2652 eval ac_cv_prog_make_${ac_make}_set=no;; 2653esac 2654rm -f conftest.make 2655fi 2656if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2658$as_echo "yes" >&6; } 2659 SET_MAKE= 2660else 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2662$as_echo "no" >&6; } 2663 SET_MAKE="MAKE=${MAKE-make}" 2664fi 2665 2666rm -rf .tst 2>/dev/null 2667mkdir .tst 2>/dev/null 2668if test -d .tst; then 2669 am__leading_dot=. 2670else 2671 am__leading_dot=_ 2672fi 2673rmdir .tst 2>/dev/null 2674 2675# Check whether --enable-silent-rules was given. 2676if test "${enable_silent_rules+set}" = set; then : 2677 enableval=$enable_silent_rules; 2678fi 2679 2680case $enable_silent_rules in # ((( 2681 yes) AM_DEFAULT_VERBOSITY=0;; 2682 no) AM_DEFAULT_VERBOSITY=1;; 2683 *) AM_DEFAULT_VERBOSITY=1;; 2684esac 2685am_make=${MAKE-make} 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2687$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2688if ${am_cv_make_support_nested_variables+:} false; then : 2689 $as_echo_n "(cached) " >&6 2690else 2691 if $as_echo 'TRUE=$(BAR$(V)) 2692BAR0=false 2693BAR1=true 2694V=1 2695am__doit: 2696 @$(TRUE) 2697.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2698 am_cv_make_support_nested_variables=yes 2699else 2700 am_cv_make_support_nested_variables=no 2701fi 2702fi 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2704$as_echo "$am_cv_make_support_nested_variables" >&6; } 2705if test $am_cv_make_support_nested_variables = yes; then 2706 AM_V='$(V)' 2707 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2708else 2709 AM_V=$AM_DEFAULT_VERBOSITY 2710 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2711fi 2712AM_BACKSLASH='\' 2713 2714if test "`cd $srcdir && pwd`" != "`pwd`"; then 2715 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2716 # is not polluted with repeated "-I." 2717 am__isrc=' -I$(srcdir)' 2718 # test to see if srcdir already configured 2719 if test -f $srcdir/config.status; then 2720 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2721 fi 2722fi 2723 2724# test whether we have cygpath 2725if test -z "$CYGPATH_W"; then 2726 if (cygpath --version) >/dev/null 2>/dev/null; then 2727 CYGPATH_W='cygpath -w' 2728 else 2729 CYGPATH_W=echo 2730 fi 2731fi 2732 2733 2734# Define the identity of the package. 2735 PACKAGE='libXpresent' 2736 VERSION='1.0.0' 2737 2738 2739cat >>confdefs.h <<_ACEOF 2740#define PACKAGE "$PACKAGE" 2741_ACEOF 2742 2743 2744cat >>confdefs.h <<_ACEOF 2745#define VERSION "$VERSION" 2746_ACEOF 2747 2748# Some tools Automake needs. 2749 2750ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2751 2752 2753AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2754 2755 2756AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2757 2758 2759AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2760 2761 2762MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2763 2764# For better backward compatibility. To be removed once Automake 1.9.x 2765# dies out for good. For more background, see: 2766# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2767# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2768mkdir_p='$(MKDIR_P)' 2769 2770# We need awk for the "check" target. The system "awk" is bad on 2771# some platforms. 2772# Always define AMTAR for backward compatibility. Yes, it's still used 2773# in the wild :-( We should find a proper way to deprecate it ... 2774AMTAR='$${TAR-tar}' 2775 2776 2777# We'll loop over all known methods to create a tar archive until one works. 2778_am_tools='gnutar pax cpio none' 2779 2780am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2781 2782 2783 2784 2785 2786 2787# POSIX will say in a future version that running "rm -f" with no argument 2788# is OK; and we want to be able to make that assumption in our Makefile 2789# recipes. So use an aggressive probe to check that the usage we want is 2790# actually supported "in the wild" to an acceptable degree. 2791# See automake bug#10828. 2792# To make any issue more visible, cause the running configure to be aborted 2793# by default if the 'rm' program in use doesn't match our expectations; the 2794# user can still override this though. 2795if rm -f && rm -fr && rm -rf; then : OK; else 2796 cat >&2 <<'END' 2797Oops! 2798 2799Your 'rm' program seems unable to run without file operands specified 2800on the command line, even when the '-f' option is present. This is contrary 2801to the behaviour of most rm programs out there, and not conforming with 2802the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2803 2804Please tell bug-automake@gnu.org about your system, including the value 2805of your $PATH and any error possibly output before this message. This 2806can help us improve future automake versions. 2807 2808END 2809 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2810 echo 'Configuration will proceed anyway, since you have set the' >&2 2811 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2812 echo >&2 2813 else 2814 cat >&2 <<'END' 2815Aborting the configuration process, to ensure you take notice of the issue. 2816 2817You can download and install GNU coreutils to get an 'rm' implementation 2818that behaves properly: <http://www.gnu.org/software/coreutils/>. 2819 2820If you want to complete the configuration process using your problematic 2821'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2822to "yes", and re-run configure. 2823 2824END 2825 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2826 fi 2827fi 2828 2829 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2831$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2832 # Check whether --enable-maintainer-mode was given. 2833if test "${enable_maintainer_mode+set}" = set; then : 2834 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2835else 2836 USE_MAINTAINER_MODE=no 2837fi 2838 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2840$as_echo "$USE_MAINTAINER_MODE" >&6; } 2841 if test $USE_MAINTAINER_MODE = yes; then 2842 MAINTAINER_MODE_TRUE= 2843 MAINTAINER_MODE_FALSE='#' 2844else 2845 MAINTAINER_MODE_TRUE='#' 2846 MAINTAINER_MODE_FALSE= 2847fi 2848 2849 MAINT=$MAINTAINER_MODE_TRUE 2850 2851 2852 2853# Initialize libtool 2854case `pwd` in 2855 *\ * | *\ *) 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2857$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2858esac 2859 2860 2861 2862macro_version='2.4.2' 2863macro_revision='1.3337' 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877ltmain="$ac_aux_dir/ltmain.sh" 2878 2879# Make sure we can run config.sub. 2880$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2881 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2882 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2884$as_echo_n "checking build system type... " >&6; } 2885if ${ac_cv_build+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 ac_build_alias=$build_alias 2889test "x$ac_build_alias" = x && 2890 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2891test "x$ac_build_alias" = x && 2892 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2893ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2894 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2895 2896fi 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2898$as_echo "$ac_cv_build" >&6; } 2899case $ac_cv_build in 2900*-*-*) ;; 2901*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2902esac 2903build=$ac_cv_build 2904ac_save_IFS=$IFS; IFS='-' 2905set x $ac_cv_build 2906shift 2907build_cpu=$1 2908build_vendor=$2 2909shift; shift 2910# Remember, the first character of IFS is used to create $*, 2911# except with old shells: 2912build_os=$* 2913IFS=$ac_save_IFS 2914case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2915 2916 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2918$as_echo_n "checking host system type... " >&6; } 2919if ${ac_cv_host+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test "x$host_alias" = x; then 2923 ac_cv_host=$ac_cv_build 2924else 2925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2927fi 2928 2929fi 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2931$as_echo "$ac_cv_host" >&6; } 2932case $ac_cv_host in 2933*-*-*) ;; 2934*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2935esac 2936host=$ac_cv_host 2937ac_save_IFS=$IFS; IFS='-' 2938set x $ac_cv_host 2939shift 2940host_cpu=$1 2941host_vendor=$2 2942shift; shift 2943# Remember, the first character of IFS is used to create $*, 2944# except with old shells: 2945host_os=$* 2946IFS=$ac_save_IFS 2947case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2948 2949 2950# Backslashify metacharacters that are still active within 2951# double-quoted strings. 2952sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2953 2954# Same as above, but do not quote variable references. 2955double_quote_subst='s/\(["`\\]\)/\\\1/g' 2956 2957# Sed substitution to delay expansion of an escaped shell variable in a 2958# double_quote_subst'ed string. 2959delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2960 2961# Sed substitution to delay expansion of an escaped single quote. 2962delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2963 2964# Sed substitution to avoid accidental globbing in evaled expressions 2965no_glob_subst='s/\*/\\\*/g' 2966 2967ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2968ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2969ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2970 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2972$as_echo_n "checking how to print strings... " >&6; } 2973# Test print first, because it will be a builtin if present. 2974if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2975 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2976 ECHO='print -r --' 2977elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2978 ECHO='printf %s\n' 2979else 2980 # Use this function as a fallback that always works. 2981 func_fallback_echo () 2982 { 2983 eval 'cat <<_LTECHO_EOF 2984$1 2985_LTECHO_EOF' 2986 } 2987 ECHO='func_fallback_echo' 2988fi 2989 2990# func_echo_all arg... 2991# Invoke $ECHO with all args, space-separated. 2992func_echo_all () 2993{ 2994 $ECHO "" 2995} 2996 2997case "$ECHO" in 2998 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2999$as_echo "printf" >&6; } ;; 3000 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3001$as_echo "print -r" >&6; } ;; 3002 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3003$as_echo "cat" >&6; } ;; 3004esac 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019DEPDIR="${am__leading_dot}deps" 3020 3021ac_config_commands="$ac_config_commands depfiles" 3022 3023 3024am_make=${MAKE-make} 3025cat > confinc << 'END' 3026am__doit: 3027 @echo this is the am__doit target 3028.PHONY: am__doit 3029END 3030# If we don't find an include directive, just comment out the code. 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3032$as_echo_n "checking for style of include used by $am_make... " >&6; } 3033am__include="#" 3034am__quote= 3035_am_result=none 3036# First try GNU make style include. 3037echo "include confinc" > confmf 3038# Ignore all kinds of additional output from 'make'. 3039case `$am_make -s -f confmf 2> /dev/null` in #( 3040*the\ am__doit\ target*) 3041 am__include=include 3042 am__quote= 3043 _am_result=GNU 3044 ;; 3045esac 3046# Now try BSD make style include. 3047if test "$am__include" = "#"; then 3048 echo '.include "confinc"' > confmf 3049 case `$am_make -s -f confmf 2> /dev/null` in #( 3050 *the\ am__doit\ target*) 3051 am__include=.include 3052 am__quote="\"" 3053 _am_result=BSD 3054 ;; 3055 esac 3056fi 3057 3058 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3060$as_echo "$_am_result" >&6; } 3061rm -f confinc confmf 3062 3063# Check whether --enable-dependency-tracking was given. 3064if test "${enable_dependency_tracking+set}" = set; then : 3065 enableval=$enable_dependency_tracking; 3066fi 3067 3068if test "x$enable_dependency_tracking" != xno; then 3069 am_depcomp="$ac_aux_dir/depcomp" 3070 AMDEPBACKSLASH='\' 3071 am__nodep='_no' 3072fi 3073 if test "x$enable_dependency_tracking" != xno; then 3074 AMDEP_TRUE= 3075 AMDEP_FALSE='#' 3076else 3077 AMDEP_TRUE='#' 3078 AMDEP_FALSE= 3079fi 3080 3081 3082ac_ext=c 3083ac_cpp='$CPP $CPPFLAGS' 3084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3086ac_compiler_gnu=$ac_cv_c_compiler_gnu 3087if test -n "$ac_tool_prefix"; then 3088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3089set dummy ${ac_tool_prefix}gcc; ac_word=$2 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3091$as_echo_n "checking for $ac_word... " >&6; } 3092if ${ac_cv_prog_CC+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -n "$CC"; then 3096 ac_cv_prog_CC="$CC" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115CC=$ac_cv_prog_CC 3116if test -n "$CC"; then 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3118$as_echo "$CC" >&6; } 3119else 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122fi 3123 3124 3125fi 3126if test -z "$ac_cv_prog_CC"; then 3127 ac_ct_CC=$CC 3128 # Extract the first word of "gcc", so it can be a program name with args. 3129set dummy gcc; ac_word=$2 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3131$as_echo_n "checking for $ac_word... " >&6; } 3132if ${ac_cv_prog_ac_ct_CC+:} false; then : 3133 $as_echo_n "(cached) " >&6 3134else 3135 if test -n "$ac_ct_CC"; then 3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3137else 3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139for as_dir in $PATH 3140do 3141 IFS=$as_save_IFS 3142 test -z "$as_dir" && as_dir=. 3143 for ac_exec_ext in '' $ac_executable_extensions; do 3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3145 ac_cv_prog_ac_ct_CC="gcc" 3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3147 break 2 3148 fi 3149done 3150 done 3151IFS=$as_save_IFS 3152 3153fi 3154fi 3155ac_ct_CC=$ac_cv_prog_ac_ct_CC 3156if test -n "$ac_ct_CC"; then 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3158$as_echo "$ac_ct_CC" >&6; } 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162fi 3163 3164 if test "x$ac_ct_CC" = x; then 3165 CC="" 3166 else 3167 case $cross_compiling:$ac_tool_warned in 3168yes:) 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3171ac_tool_warned=yes ;; 3172esac 3173 CC=$ac_ct_CC 3174 fi 3175else 3176 CC="$ac_cv_prog_CC" 3177fi 3178 3179if test -z "$CC"; then 3180 if test -n "$ac_tool_prefix"; then 3181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3182set dummy ${ac_tool_prefix}cc; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$CC"; then 3189 ac_cv_prog_CC="$CC" # Let the user override the test. 3190else 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3198 ac_cv_prog_CC="${ac_tool_prefix}cc" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206fi 3207fi 3208CC=$ac_cv_prog_CC 3209if test -n "$CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3211$as_echo "$CC" >&6; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216 3217 3218 fi 3219fi 3220if test -z "$CC"; then 3221 # Extract the first word of "cc", so it can be a program name with args. 3222set dummy cc; ac_word=$2 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3224$as_echo_n "checking for $ac_word... " >&6; } 3225if ${ac_cv_prog_CC+:} false; then : 3226 $as_echo_n "(cached) " >&6 3227else 3228 if test -n "$CC"; then 3229 ac_cv_prog_CC="$CC" # Let the user override the test. 3230else 3231 ac_prog_rejected=no 3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_exec_ext in '' $ac_executable_extensions; do 3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3240 ac_prog_rejected=yes 3241 continue 3242 fi 3243 ac_cv_prog_CC="cc" 3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3245 break 2 3246 fi 3247done 3248 done 3249IFS=$as_save_IFS 3250 3251if test $ac_prog_rejected = yes; then 3252 # We found a bogon in the path, so make sure we never use it. 3253 set dummy $ac_cv_prog_CC 3254 shift 3255 if test $# != 0; then 3256 # We chose a different compiler from the bogus one. 3257 # However, it has the same basename, so the bogon will be chosen 3258 # first if we set CC to just the basename; use the full file name. 3259 shift 3260 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3261 fi 3262fi 3263fi 3264fi 3265CC=$ac_cv_prog_CC 3266if test -n "$CC"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3268$as_echo "$CC" >&6; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271$as_echo "no" >&6; } 3272fi 3273 3274 3275fi 3276if test -z "$CC"; then 3277 if test -n "$ac_tool_prefix"; then 3278 for ac_prog in cl.exe 3279 do 3280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3281set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283$as_echo_n "checking for $ac_word... " >&6; } 3284if ${ac_cv_prog_CC+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 if test -n "$CC"; then 3288 ac_cv_prog_CC="$CC" # Let the user override the test. 3289else 3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3299 break 2 3300 fi 3301done 3302 done 3303IFS=$as_save_IFS 3304 3305fi 3306fi 3307CC=$ac_cv_prog_CC 3308if test -n "$CC"; then 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3310$as_echo "$CC" >&6; } 3311else 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3313$as_echo "no" >&6; } 3314fi 3315 3316 3317 test -n "$CC" && break 3318 done 3319fi 3320if test -z "$CC"; then 3321 ac_ct_CC=$CC 3322 for ac_prog in cl.exe 3323do 3324 # Extract the first word of "$ac_prog", so it can be a program name with args. 3325set dummy $ac_prog; ac_word=$2 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327$as_echo_n "checking for $ac_word... " >&6; } 3328if ${ac_cv_prog_ac_ct_CC+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 if test -n "$ac_ct_CC"; then 3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3333else 3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3335for as_dir in $PATH 3336do 3337 IFS=$as_save_IFS 3338 test -z "$as_dir" && as_dir=. 3339 for ac_exec_ext in '' $ac_executable_extensions; do 3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3341 ac_cv_prog_ac_ct_CC="$ac_prog" 3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3343 break 2 3344 fi 3345done 3346 done 3347IFS=$as_save_IFS 3348 3349fi 3350fi 3351ac_ct_CC=$ac_cv_prog_ac_ct_CC 3352if test -n "$ac_ct_CC"; then 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3354$as_echo "$ac_ct_CC" >&6; } 3355else 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3357$as_echo "no" >&6; } 3358fi 3359 3360 3361 test -n "$ac_ct_CC" && break 3362done 3363 3364 if test "x$ac_ct_CC" = x; then 3365 CC="" 3366 else 3367 case $cross_compiling:$ac_tool_warned in 3368yes:) 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3371ac_tool_warned=yes ;; 3372esac 3373 CC=$ac_ct_CC 3374 fi 3375fi 3376 3377fi 3378 3379 3380test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3382as_fn_error $? "no acceptable C compiler found in \$PATH 3383See \`config.log' for more details" "$LINENO" 5; } 3384 3385# Provide some information about the compiler. 3386$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3387set X $ac_compile 3388ac_compiler=$2 3389for ac_option in --version -v -V -qversion; do 3390 { { ac_try="$ac_compiler $ac_option >&5" 3391case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3396$as_echo "$ac_try_echo"; } >&5 3397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3398 ac_status=$? 3399 if test -s conftest.err; then 3400 sed '10a\ 3401... rest of stderr output deleted ... 3402 10q' conftest.err >conftest.er1 3403 cat conftest.er1 >&5 3404 fi 3405 rm -f conftest.er1 conftest.err 3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3407 test $ac_status = 0; } 3408done 3409 3410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411/* end confdefs.h. */ 3412 3413int 3414main () 3415{ 3416 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421ac_clean_files_save=$ac_clean_files 3422ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3423# Try to create an executable without -o first, disregard a.out. 3424# It will help us diagnose broken compilers, and finding out an intuition 3425# of exeext. 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3427$as_echo_n "checking whether the C compiler works... " >&6; } 3428ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3429 3430# The possible output files: 3431ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3432 3433ac_rmfiles= 3434for ac_file in $ac_files 3435do 3436 case $ac_file in 3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3438 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3439 esac 3440done 3441rm -f $ac_rmfiles 3442 3443if { { ac_try="$ac_link_default" 3444case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449$as_echo "$ac_try_echo"; } >&5 3450 (eval "$ac_link_default") 2>&5 3451 ac_status=$? 3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3453 test $ac_status = 0; }; then : 3454 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3455# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3456# in a Makefile. We should not override ac_cv_exeext if it was cached, 3457# so that the user can short-circuit this test for compilers unknown to 3458# Autoconf. 3459for ac_file in $ac_files '' 3460do 3461 test -f "$ac_file" || continue 3462 case $ac_file in 3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3464 ;; 3465 [ab].out ) 3466 # We found the default executable, but exeext='' is most 3467 # certainly right. 3468 break;; 3469 *.* ) 3470 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3471 then :; else 3472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3473 fi 3474 # We set ac_cv_exeext here because the later test for it is not 3475 # safe: cross compilers may not add the suffix if given an `-o' 3476 # argument, so we may need to know it at that point already. 3477 # Even if this section looks crufty: it has the advantage of 3478 # actually working. 3479 break;; 3480 * ) 3481 break;; 3482 esac 3483done 3484test "$ac_cv_exeext" = no && ac_cv_exeext= 3485 3486else 3487 ac_file='' 3488fi 3489if test -z "$ac_file"; then : 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3491$as_echo "no" >&6; } 3492$as_echo "$as_me: failed program was:" >&5 3493sed 's/^/| /' conftest.$ac_ext >&5 3494 3495{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3497as_fn_error 77 "C compiler cannot create executables 3498See \`config.log' for more details" "$LINENO" 5; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3501$as_echo "yes" >&6; } 3502fi 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3504$as_echo_n "checking for C compiler default output file name... " >&6; } 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3506$as_echo "$ac_file" >&6; } 3507ac_exeext=$ac_cv_exeext 3508 3509rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3510ac_clean_files=$ac_clean_files_save 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3512$as_echo_n "checking for suffix of executables... " >&6; } 3513if { { ac_try="$ac_link" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_link") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; then : 3524 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3525# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3526# work properly (i.e., refer to `conftest.exe'), while it won't with 3527# `rm'. 3528for ac_file in conftest.exe conftest conftest.*; do 3529 test -f "$ac_file" || continue 3530 case $ac_file in 3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3533 break;; 3534 * ) break;; 3535 esac 3536done 3537else 3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3540as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3541See \`config.log' for more details" "$LINENO" 5; } 3542fi 3543rm -f conftest conftest$ac_cv_exeext 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3545$as_echo "$ac_cv_exeext" >&6; } 3546 3547rm -f conftest.$ac_ext 3548EXEEXT=$ac_cv_exeext 3549ac_exeext=$EXEEXT 3550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551/* end confdefs.h. */ 3552#include <stdio.h> 3553int 3554main () 3555{ 3556FILE *f = fopen ("conftest.out", "w"); 3557 return ferror (f) || fclose (f) != 0; 3558 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563ac_clean_files="$ac_clean_files conftest.out" 3564# Check that the compiler produces executables we can run. If not, either 3565# the compiler is broken, or we cross compile. 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3567$as_echo_n "checking whether we are cross compiling... " >&6; } 3568if test "$cross_compiling" != yes; then 3569 { { ac_try="$ac_link" 3570case "(($ac_try" in 3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3572 *) ac_try_echo=$ac_try;; 3573esac 3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3575$as_echo "$ac_try_echo"; } >&5 3576 (eval "$ac_link") 2>&5 3577 ac_status=$? 3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3579 test $ac_status = 0; } 3580 if { ac_try='./conftest$ac_cv_exeext' 3581 { { case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586$as_echo "$ac_try_echo"; } >&5 3587 (eval "$ac_try") 2>&5 3588 ac_status=$? 3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; }; }; then 3591 cross_compiling=no 3592 else 3593 if test "$cross_compiling" = maybe; then 3594 cross_compiling=yes 3595 else 3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598as_fn_error $? "cannot run C compiled programs. 3599If you meant to cross compile, use \`--host'. 3600See \`config.log' for more details" "$LINENO" 5; } 3601 fi 3602 fi 3603fi 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3605$as_echo "$cross_compiling" >&6; } 3606 3607rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3608ac_clean_files=$ac_clean_files_save 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3610$as_echo_n "checking for suffix of object files... " >&6; } 3611if ${ac_cv_objext+:} false; then : 3612 $as_echo_n "(cached) " >&6 3613else 3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3615/* end confdefs.h. */ 3616 3617int 3618main () 3619{ 3620 3621 ; 3622 return 0; 3623} 3624_ACEOF 3625rm -f conftest.o conftest.obj 3626if { { ac_try="$ac_compile" 3627case "(($ac_try" in 3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3629 *) ac_try_echo=$ac_try;; 3630esac 3631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3632$as_echo "$ac_try_echo"; } >&5 3633 (eval "$ac_compile") 2>&5 3634 ac_status=$? 3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3636 test $ac_status = 0; }; then : 3637 for ac_file in conftest.o conftest.obj conftest.*; do 3638 test -f "$ac_file" || continue; 3639 case $ac_file in 3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3641 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3642 break;; 3643 esac 3644done 3645else 3646 $as_echo "$as_me: failed program was:" >&5 3647sed 's/^/| /' conftest.$ac_ext >&5 3648 3649{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3651as_fn_error $? "cannot compute suffix of object files: cannot compile 3652See \`config.log' for more details" "$LINENO" 5; } 3653fi 3654rm -f conftest.$ac_cv_objext conftest.$ac_ext 3655fi 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3657$as_echo "$ac_cv_objext" >&6; } 3658OBJEXT=$ac_cv_objext 3659ac_objext=$OBJEXT 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3661$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3662if ${ac_cv_c_compiler_gnu+:} false; then : 3663 $as_echo_n "(cached) " >&6 3664else 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668int 3669main () 3670{ 3671#ifndef __GNUC__ 3672 choke me 3673#endif 3674 3675 ; 3676 return 0; 3677} 3678_ACEOF 3679if ac_fn_c_try_compile "$LINENO"; then : 3680 ac_compiler_gnu=yes 3681else 3682 ac_compiler_gnu=no 3683fi 3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3685ac_cv_c_compiler_gnu=$ac_compiler_gnu 3686 3687fi 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3689$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3690if test $ac_compiler_gnu = yes; then 3691 GCC=yes 3692else 3693 GCC= 3694fi 3695ac_test_CFLAGS=${CFLAGS+set} 3696ac_save_CFLAGS=$CFLAGS 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3698$as_echo_n "checking whether $CC accepts -g... " >&6; } 3699if ${ac_cv_prog_cc_g+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701else 3702 ac_save_c_werror_flag=$ac_c_werror_flag 3703 ac_c_werror_flag=yes 3704 ac_cv_prog_cc_g=no 3705 CFLAGS="-g" 3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707/* end confdefs.h. */ 3708 3709int 3710main () 3711{ 3712 3713 ; 3714 return 0; 3715} 3716_ACEOF 3717if ac_fn_c_try_compile "$LINENO"; then : 3718 ac_cv_prog_cc_g=yes 3719else 3720 CFLAGS="" 3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3722/* end confdefs.h. */ 3723 3724int 3725main () 3726{ 3727 3728 ; 3729 return 0; 3730} 3731_ACEOF 3732if ac_fn_c_try_compile "$LINENO"; then : 3733 3734else 3735 ac_c_werror_flag=$ac_save_c_werror_flag 3736 CFLAGS="-g" 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748if ac_fn_c_try_compile "$LINENO"; then : 3749 ac_cv_prog_cc_g=yes 3750fi 3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3752fi 3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3754fi 3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3756 ac_c_werror_flag=$ac_save_c_werror_flag 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3759$as_echo "$ac_cv_prog_cc_g" >&6; } 3760if test "$ac_test_CFLAGS" = set; then 3761 CFLAGS=$ac_save_CFLAGS 3762elif test $ac_cv_prog_cc_g = yes; then 3763 if test "$GCC" = yes; then 3764 CFLAGS="-g -O2" 3765 else 3766 CFLAGS="-g" 3767 fi 3768else 3769 if test "$GCC" = yes; then 3770 CFLAGS="-O2" 3771 else 3772 CFLAGS= 3773 fi 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3776$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3777if ${ac_cv_prog_cc_c89+:} false; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 ac_cv_prog_cc_c89=no 3781ac_save_CC=$CC 3782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3783/* end confdefs.h. */ 3784#include <stdarg.h> 3785#include <stdio.h> 3786struct stat; 3787/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3788struct buf { int x; }; 3789FILE * (*rcsopen) (struct buf *, struct stat *, int); 3790static char *e (p, i) 3791 char **p; 3792 int i; 3793{ 3794 return p[i]; 3795} 3796static char *f (char * (*g) (char **, int), char **p, ...) 3797{ 3798 char *s; 3799 va_list v; 3800 va_start (v,p); 3801 s = g (p, va_arg (v,int)); 3802 va_end (v); 3803 return s; 3804} 3805 3806/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3807 function prototypes and stuff, but not '\xHH' hex character constants. 3808 These don't provoke an error unfortunately, instead are silently treated 3809 as 'x'. The following induces an error, until -std is added to get 3810 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3811 array size at least. It's necessary to write '\x00'==0 to get something 3812 that's true only with -std. */ 3813int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3814 3815/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3816 inside strings and character constants. */ 3817#define FOO(x) 'x' 3818int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3819 3820int test (int i, double x); 3821struct s1 {int (*f) (int a);}; 3822struct s2 {int (*f) (double a);}; 3823int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3824int argc; 3825char **argv; 3826int 3827main () 3828{ 3829return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3830 ; 3831 return 0; 3832} 3833_ACEOF 3834for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3836do 3837 CC="$ac_save_CC $ac_arg" 3838 if ac_fn_c_try_compile "$LINENO"; then : 3839 ac_cv_prog_cc_c89=$ac_arg 3840fi 3841rm -f core conftest.err conftest.$ac_objext 3842 test "x$ac_cv_prog_cc_c89" != "xno" && break 3843done 3844rm -f conftest.$ac_ext 3845CC=$ac_save_CC 3846 3847fi 3848# AC_CACHE_VAL 3849case "x$ac_cv_prog_cc_c89" in 3850 x) 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3852$as_echo "none needed" >&6; } ;; 3853 xno) 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3855$as_echo "unsupported" >&6; } ;; 3856 *) 3857 CC="$CC $ac_cv_prog_cc_c89" 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3859$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3860esac 3861if test "x$ac_cv_prog_cc_c89" != xno; then : 3862 3863fi 3864 3865ac_ext=c 3866ac_cpp='$CPP $CPPFLAGS' 3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3869ac_compiler_gnu=$ac_cv_c_compiler_gnu 3870 3871ac_ext=c 3872ac_cpp='$CPP $CPPFLAGS' 3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3875ac_compiler_gnu=$ac_cv_c_compiler_gnu 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3877$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3878if ${am_cv_prog_cc_c_o+:} false; then : 3879 $as_echo_n "(cached) " >&6 3880else 3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3882/* end confdefs.h. */ 3883 3884int 3885main () 3886{ 3887 3888 ; 3889 return 0; 3890} 3891_ACEOF 3892 # Make sure it works both with $CC and with simple cc. 3893 # Following AC_PROG_CC_C_O, we do the test twice because some 3894 # compilers refuse to overwrite an existing .o file with -o, 3895 # though they will create one. 3896 am_cv_prog_cc_c_o=yes 3897 for am_i in 1 2; do 3898 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3899 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3900 ac_status=$? 3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3902 (exit $ac_status); } \ 3903 && test -f conftest2.$ac_objext; then 3904 : OK 3905 else 3906 am_cv_prog_cc_c_o=no 3907 break 3908 fi 3909 done 3910 rm -f core conftest* 3911 unset am_i 3912fi 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3914$as_echo "$am_cv_prog_cc_c_o" >&6; } 3915if test "$am_cv_prog_cc_c_o" != yes; then 3916 # Losing compiler, so override with the script. 3917 # FIXME: It is wrong to rewrite CC. 3918 # But if we don't then we get into trouble of one sort or another. 3919 # A longer-term fix would be to have automake use am__CC in this case, 3920 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3921 CC="$am_aux_dir/compile $CC" 3922fi 3923ac_ext=c 3924ac_cpp='$CPP $CPPFLAGS' 3925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3927ac_compiler_gnu=$ac_cv_c_compiler_gnu 3928 3929 3930depcc="$CC" am_compiler_list= 3931 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3933$as_echo_n "checking dependency style of $depcc... " >&6; } 3934if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3935 $as_echo_n "(cached) " >&6 3936else 3937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3938 # We make a subdir and do the tests there. Otherwise we can end up 3939 # making bogus files that we don't know about and never remove. For 3940 # instance it was reported that on HP-UX the gcc test will end up 3941 # making a dummy file named 'D' -- because '-MD' means "put the output 3942 # in D". 3943 rm -rf conftest.dir 3944 mkdir conftest.dir 3945 # Copy depcomp to subdir because otherwise we won't find it if we're 3946 # using a relative directory. 3947 cp "$am_depcomp" conftest.dir 3948 cd conftest.dir 3949 # We will build objects and dependencies in a subdirectory because 3950 # it helps to detect inapplicable dependency modes. For instance 3951 # both Tru64's cc and ICC support -MD to output dependencies as a 3952 # side effect of compilation, but ICC will put the dependencies in 3953 # the current directory while Tru64 will put them in the object 3954 # directory. 3955 mkdir sub 3956 3957 am_cv_CC_dependencies_compiler_type=none 3958 if test "$am_compiler_list" = ""; then 3959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3960 fi 3961 am__universal=false 3962 case " $depcc " in #( 3963 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3964 esac 3965 3966 for depmode in $am_compiler_list; do 3967 # Setup a source with many dependencies, because some compilers 3968 # like to wrap large dependency lists on column 80 (with \), and 3969 # we should not choose a depcomp mode which is confused by this. 3970 # 3971 # We need to recreate these files for each test, as the compiler may 3972 # overwrite some of them when testing with obscure command lines. 3973 # This happens at least with the AIX C compiler. 3974 : > sub/conftest.c 3975 for i in 1 2 3 4 5 6; do 3976 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3977 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3978 # Solaris 10 /bin/sh. 3979 echo '/* dummy */' > sub/conftst$i.h 3980 done 3981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3982 3983 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3984 # mode. It turns out that the SunPro C++ compiler does not properly 3985 # handle '-M -o', and we need to detect this. Also, some Intel 3986 # versions had trouble with output in subdirs. 3987 am__obj=sub/conftest.${OBJEXT-o} 3988 am__minus_obj="-o $am__obj" 3989 case $depmode in 3990 gcc) 3991 # This depmode causes a compiler race in universal mode. 3992 test "$am__universal" = false || continue 3993 ;; 3994 nosideeffect) 3995 # After this tag, mechanisms are not by side-effect, so they'll 3996 # only be used when explicitly requested. 3997 if test "x$enable_dependency_tracking" = xyes; then 3998 continue 3999 else 4000 break 4001 fi 4002 ;; 4003 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4004 # This compiler won't grok '-c -o', but also, the minuso test has 4005 # not run yet. These depmodes are late enough in the game, and 4006 # so weak that their functioning should not be impacted. 4007 am__obj=conftest.${OBJEXT-o} 4008 am__minus_obj= 4009 ;; 4010 none) break ;; 4011 esac 4012 if depmode=$depmode \ 4013 source=sub/conftest.c object=$am__obj \ 4014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4015 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4016 >/dev/null 2>conftest.err && 4017 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4019 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4021 # icc doesn't choke on unknown options, it will just issue warnings 4022 # or remarks (even with -Werror). So we grep stderr for any message 4023 # that says an option was ignored or not supported. 4024 # When given -MP, icc 7.0 and 7.1 complain thusly: 4025 # icc: Command line warning: ignoring option '-M'; no argument required 4026 # The diagnosis changed in icc 8.0: 4027 # icc: Command line remark: option '-MP' not supported 4028 if (grep 'ignoring option' conftest.err || 4029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4030 am_cv_CC_dependencies_compiler_type=$depmode 4031 break 4032 fi 4033 fi 4034 done 4035 4036 cd .. 4037 rm -rf conftest.dir 4038else 4039 am_cv_CC_dependencies_compiler_type=none 4040fi 4041 4042fi 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4044$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4045CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4046 4047 if 4048 test "x$enable_dependency_tracking" != xno \ 4049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4050 am__fastdepCC_TRUE= 4051 am__fastdepCC_FALSE='#' 4052else 4053 am__fastdepCC_TRUE='#' 4054 am__fastdepCC_FALSE= 4055fi 4056 4057 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4059$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4060if ${ac_cv_path_SED+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062else 4063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4064 for ac_i in 1 2 3 4 5 6 7; do 4065 ac_script="$ac_script$as_nl$ac_script" 4066 done 4067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4068 { ac_script=; unset ac_script;} 4069 if test -z "$SED"; then 4070 ac_path_SED_found=false 4071 # Loop through the user's path and test for each of PROGNAME-LIST 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073for as_dir in $PATH 4074do 4075 IFS=$as_save_IFS 4076 test -z "$as_dir" && as_dir=. 4077 for ac_prog in sed gsed; do 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4080 as_fn_executable_p "$ac_path_SED" || continue 4081# Check for GNU ac_path_SED and select it if it is found. 4082 # Check for GNU $ac_path_SED 4083case `"$ac_path_SED" --version 2>&1` in 4084*GNU*) 4085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4086*) 4087 ac_count=0 4088 $as_echo_n 0123456789 >"conftest.in" 4089 while : 4090 do 4091 cat "conftest.in" "conftest.in" >"conftest.tmp" 4092 mv "conftest.tmp" "conftest.in" 4093 cp "conftest.in" "conftest.nl" 4094 $as_echo '' >> "conftest.nl" 4095 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4097 as_fn_arith $ac_count + 1 && ac_count=$as_val 4098 if test $ac_count -gt ${ac_path_SED_max-0}; then 4099 # Best one so far, save it but keep looking for a better one 4100 ac_cv_path_SED="$ac_path_SED" 4101 ac_path_SED_max=$ac_count 4102 fi 4103 # 10*(2^10) chars as input seems more than enough 4104 test $ac_count -gt 10 && break 4105 done 4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4107esac 4108 4109 $ac_path_SED_found && break 3 4110 done 4111 done 4112 done 4113IFS=$as_save_IFS 4114 if test -z "$ac_cv_path_SED"; then 4115 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4116 fi 4117else 4118 ac_cv_path_SED=$SED 4119fi 4120 4121fi 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4123$as_echo "$ac_cv_path_SED" >&6; } 4124 SED="$ac_cv_path_SED" 4125 rm -f conftest.sed 4126 4127test -z "$SED" && SED=sed 4128Xsed="$SED -e 1s/^X//" 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4141$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4142if ${ac_cv_path_GREP+:} false; then : 4143 $as_echo_n "(cached) " >&6 4144else 4145 if test -z "$GREP"; then 4146 ac_path_GREP_found=false 4147 # Loop through the user's path and test for each of PROGNAME-LIST 4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4149for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4150do 4151 IFS=$as_save_IFS 4152 test -z "$as_dir" && as_dir=. 4153 for ac_prog in grep ggrep; do 4154 for ac_exec_ext in '' $ac_executable_extensions; do 4155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4156 as_fn_executable_p "$ac_path_GREP" || continue 4157# Check for GNU ac_path_GREP and select it if it is found. 4158 # Check for GNU $ac_path_GREP 4159case `"$ac_path_GREP" --version 2>&1` in 4160*GNU*) 4161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4162*) 4163 ac_count=0 4164 $as_echo_n 0123456789 >"conftest.in" 4165 while : 4166 do 4167 cat "conftest.in" "conftest.in" >"conftest.tmp" 4168 mv "conftest.tmp" "conftest.in" 4169 cp "conftest.in" "conftest.nl" 4170 $as_echo 'GREP' >> "conftest.nl" 4171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4173 as_fn_arith $ac_count + 1 && ac_count=$as_val 4174 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4175 # Best one so far, save it but keep looking for a better one 4176 ac_cv_path_GREP="$ac_path_GREP" 4177 ac_path_GREP_max=$ac_count 4178 fi 4179 # 10*(2^10) chars as input seems more than enough 4180 test $ac_count -gt 10 && break 4181 done 4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4183esac 4184 4185 $ac_path_GREP_found && break 3 4186 done 4187 done 4188 done 4189IFS=$as_save_IFS 4190 if test -z "$ac_cv_path_GREP"; then 4191 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4192 fi 4193else 4194 ac_cv_path_GREP=$GREP 4195fi 4196 4197fi 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4199$as_echo "$ac_cv_path_GREP" >&6; } 4200 GREP="$ac_cv_path_GREP" 4201 4202 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4204$as_echo_n "checking for egrep... " >&6; } 4205if ${ac_cv_path_EGREP+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4209 then ac_cv_path_EGREP="$GREP -E" 4210 else 4211 if test -z "$EGREP"; then 4212 ac_path_EGREP_found=false 4213 # Loop through the user's path and test for each of PROGNAME-LIST 4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4216do 4217 IFS=$as_save_IFS 4218 test -z "$as_dir" && as_dir=. 4219 for ac_prog in egrep; do 4220 for ac_exec_ext in '' $ac_executable_extensions; do 4221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4222 as_fn_executable_p "$ac_path_EGREP" || continue 4223# Check for GNU ac_path_EGREP and select it if it is found. 4224 # Check for GNU $ac_path_EGREP 4225case `"$ac_path_EGREP" --version 2>&1` in 4226*GNU*) 4227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4228*) 4229 ac_count=0 4230 $as_echo_n 0123456789 >"conftest.in" 4231 while : 4232 do 4233 cat "conftest.in" "conftest.in" >"conftest.tmp" 4234 mv "conftest.tmp" "conftest.in" 4235 cp "conftest.in" "conftest.nl" 4236 $as_echo 'EGREP' >> "conftest.nl" 4237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4239 as_fn_arith $ac_count + 1 && ac_count=$as_val 4240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4241 # Best one so far, save it but keep looking for a better one 4242 ac_cv_path_EGREP="$ac_path_EGREP" 4243 ac_path_EGREP_max=$ac_count 4244 fi 4245 # 10*(2^10) chars as input seems more than enough 4246 test $ac_count -gt 10 && break 4247 done 4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4249esac 4250 4251 $ac_path_EGREP_found && break 3 4252 done 4253 done 4254 done 4255IFS=$as_save_IFS 4256 if test -z "$ac_cv_path_EGREP"; then 4257 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4258 fi 4259else 4260 ac_cv_path_EGREP=$EGREP 4261fi 4262 4263 fi 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4266$as_echo "$ac_cv_path_EGREP" >&6; } 4267 EGREP="$ac_cv_path_EGREP" 4268 4269 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4271$as_echo_n "checking for fgrep... " >&6; } 4272if ${ac_cv_path_FGREP+:} false; then : 4273 $as_echo_n "(cached) " >&6 4274else 4275 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4276 then ac_cv_path_FGREP="$GREP -F" 4277 else 4278 if test -z "$FGREP"; then 4279 ac_path_FGREP_found=false 4280 # Loop through the user's path and test for each of PROGNAME-LIST 4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4282for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4283do 4284 IFS=$as_save_IFS 4285 test -z "$as_dir" && as_dir=. 4286 for ac_prog in fgrep; do 4287 for ac_exec_ext in '' $ac_executable_extensions; do 4288 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4289 as_fn_executable_p "$ac_path_FGREP" || continue 4290# Check for GNU ac_path_FGREP and select it if it is found. 4291 # Check for GNU $ac_path_FGREP 4292case `"$ac_path_FGREP" --version 2>&1` in 4293*GNU*) 4294 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4295*) 4296 ac_count=0 4297 $as_echo_n 0123456789 >"conftest.in" 4298 while : 4299 do 4300 cat "conftest.in" "conftest.in" >"conftest.tmp" 4301 mv "conftest.tmp" "conftest.in" 4302 cp "conftest.in" "conftest.nl" 4303 $as_echo 'FGREP' >> "conftest.nl" 4304 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4306 as_fn_arith $ac_count + 1 && ac_count=$as_val 4307 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4308 # Best one so far, save it but keep looking for a better one 4309 ac_cv_path_FGREP="$ac_path_FGREP" 4310 ac_path_FGREP_max=$ac_count 4311 fi 4312 # 10*(2^10) chars as input seems more than enough 4313 test $ac_count -gt 10 && break 4314 done 4315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4316esac 4317 4318 $ac_path_FGREP_found && break 3 4319 done 4320 done 4321 done 4322IFS=$as_save_IFS 4323 if test -z "$ac_cv_path_FGREP"; then 4324 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4325 fi 4326else 4327 ac_cv_path_FGREP=$FGREP 4328fi 4329 4330 fi 4331fi 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4333$as_echo "$ac_cv_path_FGREP" >&6; } 4334 FGREP="$ac_cv_path_FGREP" 4335 4336 4337test -z "$GREP" && GREP=grep 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357# Check whether --with-gnu-ld was given. 4358if test "${with_gnu_ld+set}" = set; then : 4359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4360else 4361 with_gnu_ld=no 4362fi 4363 4364ac_prog=ld 4365if test "$GCC" = yes; then 4366 # Check if gcc -print-prog-name=ld gives a path. 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4368$as_echo_n "checking for ld used by $CC... " >&6; } 4369 case $host in 4370 *-*-mingw*) 4371 # gcc leaves a trailing carriage return which upsets mingw 4372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4373 *) 4374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4375 esac 4376 case $ac_prog in 4377 # Accept absolute paths. 4378 [\\/]* | ?:[\\/]*) 4379 re_direlt='/[^/][^/]*/\.\./' 4380 # Canonicalize the pathname of ld 4381 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4382 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4383 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4384 done 4385 test -z "$LD" && LD="$ac_prog" 4386 ;; 4387 "") 4388 # If it fails, then pretend we aren't using GCC. 4389 ac_prog=ld 4390 ;; 4391 *) 4392 # If it is relative, then search for the first ld in PATH. 4393 with_gnu_ld=unknown 4394 ;; 4395 esac 4396elif test "$with_gnu_ld" = yes; then 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4398$as_echo_n "checking for GNU ld... " >&6; } 4399else 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4401$as_echo_n "checking for non-GNU ld... " >&6; } 4402fi 4403if ${lt_cv_path_LD+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 if test -z "$LD"; then 4407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4408 for ac_dir in $PATH; do 4409 IFS="$lt_save_ifs" 4410 test -z "$ac_dir" && ac_dir=. 4411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4412 lt_cv_path_LD="$ac_dir/$ac_prog" 4413 # Check to see if the program is GNU ld. I'd rather use --version, 4414 # but apparently some variants of GNU ld only accept -v. 4415 # Break only if it was the GNU/non-GNU ld that we prefer. 4416 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4417 *GNU* | *'with BFD'*) 4418 test "$with_gnu_ld" != no && break 4419 ;; 4420 *) 4421 test "$with_gnu_ld" != yes && break 4422 ;; 4423 esac 4424 fi 4425 done 4426 IFS="$lt_save_ifs" 4427else 4428 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4429fi 4430fi 4431 4432LD="$lt_cv_path_LD" 4433if test -n "$LD"; then 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4435$as_echo "$LD" >&6; } 4436else 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4438$as_echo "no" >&6; } 4439fi 4440test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4442$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4443if ${lt_cv_prog_gnu_ld+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445else 4446 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4447case `$LD -v 2>&1 </dev/null` in 4448*GNU* | *'with BFD'*) 4449 lt_cv_prog_gnu_ld=yes 4450 ;; 4451*) 4452 lt_cv_prog_gnu_ld=no 4453 ;; 4454esac 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4457$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4458with_gnu_ld=$lt_cv_prog_gnu_ld 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4469$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4470if ${lt_cv_path_NM+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 if test -n "$NM"; then 4474 # Let the user override the test. 4475 lt_cv_path_NM="$NM" 4476else 4477 lt_nm_to_check="${ac_tool_prefix}nm" 4478 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4479 lt_nm_to_check="$lt_nm_to_check nm" 4480 fi 4481 for lt_tmp_nm in $lt_nm_to_check; do 4482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4483 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4484 IFS="$lt_save_ifs" 4485 test -z "$ac_dir" && ac_dir=. 4486 tmp_nm="$ac_dir/$lt_tmp_nm" 4487 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4488 # Check to see if the nm accepts a BSD-compat flag. 4489 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4490 # nm: unknown option "B" ignored 4491 # Tru64's nm complains that /dev/null is an invalid object file 4492 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4493 */dev/null* | *'Invalid file or object type'*) 4494 lt_cv_path_NM="$tmp_nm -B" 4495 break 4496 ;; 4497 *) 4498 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4499 */dev/null*) 4500 lt_cv_path_NM="$tmp_nm -p" 4501 break 4502 ;; 4503 *) 4504 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4505 continue # so that we can try to find one that supports BSD flags 4506 ;; 4507 esac 4508 ;; 4509 esac 4510 fi 4511 done 4512 IFS="$lt_save_ifs" 4513 done 4514 : ${lt_cv_path_NM=no} 4515fi 4516fi 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4518$as_echo "$lt_cv_path_NM" >&6; } 4519if test "$lt_cv_path_NM" != "no"; then 4520 NM="$lt_cv_path_NM" 4521else 4522 # Didn't find any BSD compatible name lister, look for dumpbin. 4523 if test -n "$DUMPBIN"; then : 4524 # Let the user override the test. 4525 else 4526 if test -n "$ac_tool_prefix"; then 4527 for ac_prog in dumpbin "link -dump" 4528 do 4529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4530set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4532$as_echo_n "checking for $ac_word... " >&6; } 4533if ${ac_cv_prog_DUMPBIN+:} false; then : 4534 $as_echo_n "(cached) " >&6 4535else 4536 if test -n "$DUMPBIN"; then 4537 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4538else 4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4540for as_dir in $PATH 4541do 4542 IFS=$as_save_IFS 4543 test -z "$as_dir" && as_dir=. 4544 for ac_exec_ext in '' $ac_executable_extensions; do 4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4546 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4548 break 2 4549 fi 4550done 4551 done 4552IFS=$as_save_IFS 4553 4554fi 4555fi 4556DUMPBIN=$ac_cv_prog_DUMPBIN 4557if test -n "$DUMPBIN"; then 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4559$as_echo "$DUMPBIN" >&6; } 4560else 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4562$as_echo "no" >&6; } 4563fi 4564 4565 4566 test -n "$DUMPBIN" && break 4567 done 4568fi 4569if test -z "$DUMPBIN"; then 4570 ac_ct_DUMPBIN=$DUMPBIN 4571 for ac_prog in dumpbin "link -dump" 4572do 4573 # Extract the first word of "$ac_prog", so it can be a program name with args. 4574set dummy $ac_prog; ac_word=$2 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4576$as_echo_n "checking for $ac_word... " >&6; } 4577if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 if test -n "$ac_ct_DUMPBIN"; then 4581 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4582else 4583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4590 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4592 break 2 4593 fi 4594done 4595 done 4596IFS=$as_save_IFS 4597 4598fi 4599fi 4600ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4601if test -n "$ac_ct_DUMPBIN"; then 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4603$as_echo "$ac_ct_DUMPBIN" >&6; } 4604else 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4606$as_echo "no" >&6; } 4607fi 4608 4609 4610 test -n "$ac_ct_DUMPBIN" && break 4611done 4612 4613 if test "x$ac_ct_DUMPBIN" = x; then 4614 DUMPBIN=":" 4615 else 4616 case $cross_compiling:$ac_tool_warned in 4617yes:) 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4620ac_tool_warned=yes ;; 4621esac 4622 DUMPBIN=$ac_ct_DUMPBIN 4623 fi 4624fi 4625 4626 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4627 *COFF*) 4628 DUMPBIN="$DUMPBIN -symbols" 4629 ;; 4630 *) 4631 DUMPBIN=: 4632 ;; 4633 esac 4634 fi 4635 4636 if test "$DUMPBIN" != ":"; then 4637 NM="$DUMPBIN" 4638 fi 4639fi 4640test -z "$NM" && NM=nm 4641 4642 4643 4644 4645 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4648$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4649if ${lt_cv_nm_interface+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 lt_cv_nm_interface="BSD nm" 4653 echo "int some_variable = 0;" > conftest.$ac_ext 4654 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4655 (eval "$ac_compile" 2>conftest.err) 4656 cat conftest.err >&5 4657 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4658 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4659 cat conftest.err >&5 4660 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4661 cat conftest.out >&5 4662 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4663 lt_cv_nm_interface="MS dumpbin" 4664 fi 4665 rm -f conftest* 4666fi 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4668$as_echo "$lt_cv_nm_interface" >&6; } 4669 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4671$as_echo_n "checking whether ln -s works... " >&6; } 4672LN_S=$as_ln_s 4673if test "$LN_S" = "ln -s"; then 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4675$as_echo "yes" >&6; } 4676else 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4678$as_echo "no, using $LN_S" >&6; } 4679fi 4680 4681# find the maximum length of command line arguments 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4683$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4684if ${lt_cv_sys_max_cmd_len+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686else 4687 i=0 4688 teststring="ABCD" 4689 4690 case $build_os in 4691 msdosdjgpp*) 4692 # On DJGPP, this test can blow up pretty badly due to problems in libc 4693 # (any single argument exceeding 2000 bytes causes a buffer overrun 4694 # during glob expansion). Even if it were fixed, the result of this 4695 # check would be larger than it should be. 4696 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4697 ;; 4698 4699 gnu*) 4700 # Under GNU Hurd, this test is not required because there is 4701 # no limit to the length of command line arguments. 4702 # Libtool will interpret -1 as no limit whatsoever 4703 lt_cv_sys_max_cmd_len=-1; 4704 ;; 4705 4706 cygwin* | mingw* | cegcc*) 4707 # On Win9x/ME, this test blows up -- it succeeds, but takes 4708 # about 5 minutes as the teststring grows exponentially. 4709 # Worse, since 9x/ME are not pre-emptively multitasking, 4710 # you end up with a "frozen" computer, even though with patience 4711 # the test eventually succeeds (with a max line length of 256k). 4712 # Instead, let's just punt: use the minimum linelength reported by 4713 # all of the supported platforms: 8192 (on NT/2K/XP). 4714 lt_cv_sys_max_cmd_len=8192; 4715 ;; 4716 4717 mint*) 4718 # On MiNT this can take a long time and run out of memory. 4719 lt_cv_sys_max_cmd_len=8192; 4720 ;; 4721 4722 amigaos*) 4723 # On AmigaOS with pdksh, this test takes hours, literally. 4724 # So we just punt and use a minimum line length of 8192. 4725 lt_cv_sys_max_cmd_len=8192; 4726 ;; 4727 4728 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4729 # This has been around since 386BSD, at least. Likely further. 4730 if test -x /sbin/sysctl; then 4731 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4732 elif test -x /usr/sbin/sysctl; then 4733 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4734 else 4735 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4736 fi 4737 # And add a safety zone 4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4740 ;; 4741 4742 interix*) 4743 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4744 lt_cv_sys_max_cmd_len=196608 4745 ;; 4746 4747 os2*) 4748 # The test takes a long time on OS/2. 4749 lt_cv_sys_max_cmd_len=8192 4750 ;; 4751 4752 osf*) 4753 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4754 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4755 # nice to cause kernel panics so lets avoid the loop below. 4756 # First set a reasonable default. 4757 lt_cv_sys_max_cmd_len=16384 4758 # 4759 if test -x /sbin/sysconfig; then 4760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4761 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4762 esac 4763 fi 4764 ;; 4765 sco3.2v5*) 4766 lt_cv_sys_max_cmd_len=102400 4767 ;; 4768 sysv5* | sco5v6* | sysv4.2uw2*) 4769 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4770 if test -n "$kargmax"; then 4771 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4772 else 4773 lt_cv_sys_max_cmd_len=32768 4774 fi 4775 ;; 4776 *) 4777 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4778 if test -n "$lt_cv_sys_max_cmd_len"; then 4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4781 else 4782 # Make teststring a little bigger before we do anything with it. 4783 # a 1K string should be a reasonable start. 4784 for i in 1 2 3 4 5 6 7 8 ; do 4785 teststring=$teststring$teststring 4786 done 4787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4788 # If test is not a shell built-in, we'll probably end up computing a 4789 # maximum length that is only half of the actual maximum length, but 4790 # we can't tell. 4791 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4792 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4793 test $i != 17 # 1/2 MB should be enough 4794 do 4795 i=`expr $i + 1` 4796 teststring=$teststring$teststring 4797 done 4798 # Only check the string length outside the loop. 4799 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4800 teststring= 4801 # Add a significant safety factor because C++ compilers can tack on 4802 # massive amounts of additional arguments before passing them to the 4803 # linker. It appears as though 1/2 is a usable value. 4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4805 fi 4806 ;; 4807 esac 4808 4809fi 4810 4811if test -n $lt_cv_sys_max_cmd_len ; then 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4813$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4814else 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4816$as_echo "none" >&6; } 4817fi 4818max_cmd_len=$lt_cv_sys_max_cmd_len 4819 4820 4821 4822 4823 4824 4825: ${CP="cp -f"} 4826: ${MV="mv -f"} 4827: ${RM="rm -f"} 4828 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4830$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4831# Try some XSI features 4832xsi_shell=no 4833( _lt_dummy="a/b/c" 4834 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4835 = c,a/b,b/c, \ 4836 && eval 'test $(( 1 + 1 )) -eq 2 \ 4837 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4838 && xsi_shell=yes 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4840$as_echo "$xsi_shell" >&6; } 4841 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4844$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4845lt_shell_append=no 4846( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4847 >/dev/null 2>&1 \ 4848 && lt_shell_append=yes 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4850$as_echo "$lt_shell_append" >&6; } 4851 4852 4853if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4854 lt_unset=unset 4855else 4856 lt_unset=false 4857fi 4858 4859 4860 4861 4862 4863# test EBCDIC or ASCII 4864case `echo X|tr X '\101'` in 4865 A) # ASCII based system 4866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4867 lt_SP2NL='tr \040 \012' 4868 lt_NL2SP='tr \015\012 \040\040' 4869 ;; 4870 *) # EBCDIC based system 4871 lt_SP2NL='tr \100 \n' 4872 lt_NL2SP='tr \r\n \100\100' 4873 ;; 4874esac 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4885$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4886if ${lt_cv_to_host_file_cmd+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 case $host in 4890 *-*-mingw* ) 4891 case $build in 4892 *-*-mingw* ) # actually msys 4893 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4894 ;; 4895 *-*-cygwin* ) 4896 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4897 ;; 4898 * ) # otherwise, assume *nix 4899 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4900 ;; 4901 esac 4902 ;; 4903 *-*-cygwin* ) 4904 case $build in 4905 *-*-mingw* ) # actually msys 4906 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4907 ;; 4908 *-*-cygwin* ) 4909 lt_cv_to_host_file_cmd=func_convert_file_noop 4910 ;; 4911 * ) # otherwise, assume *nix 4912 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4913 ;; 4914 esac 4915 ;; 4916 * ) # unhandled hosts (and "normal" native builds) 4917 lt_cv_to_host_file_cmd=func_convert_file_noop 4918 ;; 4919esac 4920 4921fi 4922 4923to_host_file_cmd=$lt_cv_to_host_file_cmd 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4925$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4926 4927 4928 4929 4930 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4932$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4933if ${lt_cv_to_tool_file_cmd+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 #assume ordinary cross tools, or native build. 4937lt_cv_to_tool_file_cmd=func_convert_file_noop 4938case $host in 4939 *-*-mingw* ) 4940 case $build in 4941 *-*-mingw* ) # actually msys 4942 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4943 ;; 4944 esac 4945 ;; 4946esac 4947 4948fi 4949 4950to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4952$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4953 4954 4955 4956 4957 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4959$as_echo_n "checking for $LD option to reload object files... " >&6; } 4960if ${lt_cv_ld_reload_flag+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 lt_cv_ld_reload_flag='-r' 4964fi 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4966$as_echo "$lt_cv_ld_reload_flag" >&6; } 4967reload_flag=$lt_cv_ld_reload_flag 4968case $reload_flag in 4969"" | " "*) ;; 4970*) reload_flag=" $reload_flag" ;; 4971esac 4972reload_cmds='$LD$reload_flag -o $output$reload_objs' 4973case $host_os in 4974 cygwin* | mingw* | pw32* | cegcc*) 4975 if test "$GCC" != yes; then 4976 reload_cmds=false 4977 fi 4978 ;; 4979 darwin*) 4980 if test "$GCC" = yes; then 4981 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4982 else 4983 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4984 fi 4985 ;; 4986esac 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996if test -n "$ac_tool_prefix"; then 4997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4998set dummy ${ac_tool_prefix}objdump; ac_word=$2 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5000$as_echo_n "checking for $ac_word... " >&6; } 5001if ${ac_cv_prog_OBJDUMP+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -n "$OBJDUMP"; then 5005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5006else 5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5008for as_dir in $PATH 5009do 5010 IFS=$as_save_IFS 5011 test -z "$as_dir" && as_dir=. 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5016 break 2 5017 fi 5018done 5019 done 5020IFS=$as_save_IFS 5021 5022fi 5023fi 5024OBJDUMP=$ac_cv_prog_OBJDUMP 5025if test -n "$OBJDUMP"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5027$as_echo "$OBJDUMP" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 5034fi 5035if test -z "$ac_cv_prog_OBJDUMP"; then 5036 ac_ct_OBJDUMP=$OBJDUMP 5037 # Extract the first word of "objdump", so it can be a program name with args. 5038set dummy objdump; ac_word=$2 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$ac_ct_OBJDUMP"; then 5045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5046else 5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5048for as_dir in $PATH 5049do 5050 IFS=$as_save_IFS 5051 test -z "$as_dir" && as_dir=. 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5065if test -n "$ac_ct_OBJDUMP"; then 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5067$as_echo "$ac_ct_OBJDUMP" >&6; } 5068else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070$as_echo "no" >&6; } 5071fi 5072 5073 if test "x$ac_ct_OBJDUMP" = x; then 5074 OBJDUMP="false" 5075 else 5076 case $cross_compiling:$ac_tool_warned in 5077yes:) 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5080ac_tool_warned=yes ;; 5081esac 5082 OBJDUMP=$ac_ct_OBJDUMP 5083 fi 5084else 5085 OBJDUMP="$ac_cv_prog_OBJDUMP" 5086fi 5087 5088test -z "$OBJDUMP" && OBJDUMP=objdump 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5099$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5100if ${lt_cv_deplibs_check_method+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 lt_cv_file_magic_cmd='$MAGIC_CMD' 5104lt_cv_file_magic_test_file= 5105lt_cv_deplibs_check_method='unknown' 5106# Need to set the preceding variable on all platforms that support 5107# interlibrary dependencies. 5108# 'none' -- dependencies not supported. 5109# `unknown' -- same as none, but documents that we really don't know. 5110# 'pass_all' -- all dependencies passed with no checks. 5111# 'test_compile' -- check by making test program. 5112# 'file_magic [[regex]]' -- check by looking for files in library path 5113# which responds to the $file_magic_cmd with a given extended regex. 5114# If you have `file' or equivalent on your system and you're not sure 5115# whether `pass_all' will *always* work, you probably want this one. 5116 5117case $host_os in 5118aix[4-9]*) 5119 lt_cv_deplibs_check_method=pass_all 5120 ;; 5121 5122beos*) 5123 lt_cv_deplibs_check_method=pass_all 5124 ;; 5125 5126bsdi[45]*) 5127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5128 lt_cv_file_magic_cmd='/usr/bin/file -L' 5129 lt_cv_file_magic_test_file=/shlib/libc.so 5130 ;; 5131 5132cygwin*) 5133 # func_win32_libid is a shell function defined in ltmain.sh 5134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5135 lt_cv_file_magic_cmd='func_win32_libid' 5136 ;; 5137 5138mingw* | pw32*) 5139 # Base MSYS/MinGW do not provide the 'file' command needed by 5140 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5141 # unless we find 'file', for example because we are cross-compiling. 5142 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5143 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5145 lt_cv_file_magic_cmd='func_win32_libid' 5146 else 5147 # Keep this pattern in sync with the one in func_win32_libid. 5148 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5149 lt_cv_file_magic_cmd='$OBJDUMP -f' 5150 fi 5151 ;; 5152 5153cegcc*) 5154 # use the weaker test based on 'objdump'. See mingw*. 5155 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5156 lt_cv_file_magic_cmd='$OBJDUMP -f' 5157 ;; 5158 5159darwin* | rhapsody*) 5160 lt_cv_deplibs_check_method=pass_all 5161 ;; 5162 5163freebsd* | dragonfly*) 5164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5165 case $host_cpu in 5166 i*86 ) 5167 # Not sure whether the presence of OpenBSD here was a mistake. 5168 # Let's accept both of them until this is cleared up. 5169 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5170 lt_cv_file_magic_cmd=/usr/bin/file 5171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5172 ;; 5173 esac 5174 else 5175 lt_cv_deplibs_check_method=pass_all 5176 fi 5177 ;; 5178 5179gnu*) 5180 lt_cv_deplibs_check_method=pass_all 5181 ;; 5182 5183haiku*) 5184 lt_cv_deplibs_check_method=pass_all 5185 ;; 5186 5187hpux10.20* | hpux11*) 5188 lt_cv_file_magic_cmd=/usr/bin/file 5189 case $host_cpu in 5190 ia64*) 5191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5192 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5193 ;; 5194 hppa*64*) 5195 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]' 5196 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5197 ;; 5198 *) 5199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5200 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5201 ;; 5202 esac 5203 ;; 5204 5205interix[3-9]*) 5206 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5208 ;; 5209 5210irix5* | irix6* | nonstopux*) 5211 case $LD in 5212 *-32|*"-32 ") libmagic=32-bit;; 5213 *-n32|*"-n32 ") libmagic=N32;; 5214 *-64|*"-64 ") libmagic=64-bit;; 5215 *) libmagic=never-match;; 5216 esac 5217 lt_cv_deplibs_check_method=pass_all 5218 ;; 5219 5220# This must be glibc/ELF. 5221linux* | k*bsd*-gnu | kopensolaris*-gnu) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225netbsd* | netbsdelf*-gnu) 5226 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5228 else 5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5230 fi 5231 ;; 5232 5233newos6*) 5234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5235 lt_cv_file_magic_cmd=/usr/bin/file 5236 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5237 ;; 5238 5239*nto* | *qnx*) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 5243openbsd*) 5244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5246 else 5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5248 fi 5249 ;; 5250 5251osf3* | osf4* | osf5*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255rdos*) 5256 lt_cv_deplibs_check_method=pass_all 5257 ;; 5258 5259solaris*) 5260 lt_cv_deplibs_check_method=pass_all 5261 ;; 5262 5263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5264 lt_cv_deplibs_check_method=pass_all 5265 ;; 5266 5267sysv4 | sysv4.3*) 5268 case $host_vendor in 5269 motorola) 5270 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]' 5271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5272 ;; 5273 ncr) 5274 lt_cv_deplibs_check_method=pass_all 5275 ;; 5276 sequent) 5277 lt_cv_file_magic_cmd='/bin/file' 5278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5279 ;; 5280 sni) 5281 lt_cv_file_magic_cmd='/bin/file' 5282 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5283 lt_cv_file_magic_test_file=/lib/libc.so 5284 ;; 5285 siemens) 5286 lt_cv_deplibs_check_method=pass_all 5287 ;; 5288 pc) 5289 lt_cv_deplibs_check_method=pass_all 5290 ;; 5291 esac 5292 ;; 5293 5294tpf*) 5295 lt_cv_deplibs_check_method=pass_all 5296 ;; 5297esac 5298 5299fi 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5301$as_echo "$lt_cv_deplibs_check_method" >&6; } 5302 5303file_magic_glob= 5304want_nocaseglob=no 5305if test "$build" = "$host"; then 5306 case $host_os in 5307 mingw* | pw32*) 5308 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5309 want_nocaseglob=yes 5310 else 5311 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5312 fi 5313 ;; 5314 esac 5315fi 5316 5317file_magic_cmd=$lt_cv_file_magic_cmd 5318deplibs_check_method=$lt_cv_deplibs_check_method 5319test -z "$deplibs_check_method" && deplibs_check_method=unknown 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342if test -n "$ac_tool_prefix"; then 5343 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5344set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5346$as_echo_n "checking for $ac_word... " >&6; } 5347if ${ac_cv_prog_DLLTOOL+:} false; then : 5348 $as_echo_n "(cached) " >&6 5349else 5350 if test -n "$DLLTOOL"; then 5351 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5352else 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5360 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365 done 5366IFS=$as_save_IFS 5367 5368fi 5369fi 5370DLLTOOL=$ac_cv_prog_DLLTOOL 5371if test -n "$DLLTOOL"; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5373$as_echo "$DLLTOOL" >&6; } 5374else 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376$as_echo "no" >&6; } 5377fi 5378 5379 5380fi 5381if test -z "$ac_cv_prog_DLLTOOL"; then 5382 ac_ct_DLLTOOL=$DLLTOOL 5383 # Extract the first word of "dlltool", so it can be a program name with args. 5384set dummy dlltool; ac_word=$2 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5386$as_echo_n "checking for $ac_word... " >&6; } 5387if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389else 5390 if test -n "$ac_ct_DLLTOOL"; then 5391 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5392else 5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394for as_dir in $PATH 5395do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5400 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5402 break 2 5403 fi 5404done 5405 done 5406IFS=$as_save_IFS 5407 5408fi 5409fi 5410ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5411if test -n "$ac_ct_DLLTOOL"; then 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5413$as_echo "$ac_ct_DLLTOOL" >&6; } 5414else 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5416$as_echo "no" >&6; } 5417fi 5418 5419 if test "x$ac_ct_DLLTOOL" = x; then 5420 DLLTOOL="false" 5421 else 5422 case $cross_compiling:$ac_tool_warned in 5423yes:) 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5426ac_tool_warned=yes ;; 5427esac 5428 DLLTOOL=$ac_ct_DLLTOOL 5429 fi 5430else 5431 DLLTOOL="$ac_cv_prog_DLLTOOL" 5432fi 5433 5434test -z "$DLLTOOL" && DLLTOOL=dlltool 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5446$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5447if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 lt_cv_sharedlib_from_linklib_cmd='unknown' 5451 5452case $host_os in 5453cygwin* | mingw* | pw32* | cegcc*) 5454 # two different shell functions defined in ltmain.sh 5455 # decide which to use based on capabilities of $DLLTOOL 5456 case `$DLLTOOL --help 2>&1` in 5457 *--identify-strict*) 5458 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5459 ;; 5460 *) 5461 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5462 ;; 5463 esac 5464 ;; 5465*) 5466 # fallback: assume linklib IS sharedlib 5467 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5468 ;; 5469esac 5470 5471fi 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5473$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5474sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5475test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5476 5477 5478 5479 5480 5481 5482 5483 5484if test -n "$ac_tool_prefix"; then 5485 for ac_prog in ar 5486 do 5487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5488set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5490$as_echo_n "checking for $ac_word... " >&6; } 5491if ${ac_cv_prog_AR+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 if test -n "$AR"; then 5495 ac_cv_prog_AR="$AR" # Let the user override the test. 5496else 5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498for as_dir in $PATH 5499do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5504 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509 done 5510IFS=$as_save_IFS 5511 5512fi 5513fi 5514AR=$ac_cv_prog_AR 5515if test -n "$AR"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5517$as_echo "$AR" >&6; } 5518else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523 5524 test -n "$AR" && break 5525 done 5526fi 5527if test -z "$AR"; then 5528 ac_ct_AR=$AR 5529 for ac_prog in ar 5530do 5531 # Extract the first word of "$ac_prog", so it can be a program name with args. 5532set dummy $ac_prog; ac_word=$2 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5534$as_echo_n "checking for $ac_word... " >&6; } 5535if ${ac_cv_prog_ac_ct_AR+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 if test -n "$ac_ct_AR"; then 5539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5540else 5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5542for as_dir in $PATH 5543do 5544 IFS=$as_save_IFS 5545 test -z "$as_dir" && as_dir=. 5546 for ac_exec_ext in '' $ac_executable_extensions; do 5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5548 ac_cv_prog_ac_ct_AR="$ac_prog" 5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5550 break 2 5551 fi 5552done 5553 done 5554IFS=$as_save_IFS 5555 5556fi 5557fi 5558ac_ct_AR=$ac_cv_prog_ac_ct_AR 5559if test -n "$ac_ct_AR"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5561$as_echo "$ac_ct_AR" >&6; } 5562else 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5564$as_echo "no" >&6; } 5565fi 5566 5567 5568 test -n "$ac_ct_AR" && break 5569done 5570 5571 if test "x$ac_ct_AR" = x; then 5572 AR="false" 5573 else 5574 case $cross_compiling:$ac_tool_warned in 5575yes:) 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5578ac_tool_warned=yes ;; 5579esac 5580 AR=$ac_ct_AR 5581 fi 5582fi 5583 5584: ${AR=ar} 5585: ${AR_FLAGS=cru} 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5598$as_echo_n "checking for archiver @FILE support... " >&6; } 5599if ${lt_cv_ar_at_file+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 lt_cv_ar_at_file=no 5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5604/* end confdefs.h. */ 5605 5606int 5607main () 5608{ 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614if ac_fn_c_try_compile "$LINENO"; then : 5615 echo conftest.$ac_objext > conftest.lst 5616 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5618 (eval $lt_ar_try) 2>&5 5619 ac_status=$? 5620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5621 test $ac_status = 0; } 5622 if test "$ac_status" -eq 0; then 5623 # Ensure the archiver fails upon bogus file names. 5624 rm -f conftest.$ac_objext libconftest.a 5625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5626 (eval $lt_ar_try) 2>&5 5627 ac_status=$? 5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5629 test $ac_status = 0; } 5630 if test "$ac_status" -ne 0; then 5631 lt_cv_ar_at_file=@ 5632 fi 5633 fi 5634 rm -f conftest.* libconftest.a 5635 5636fi 5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5638 5639fi 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5641$as_echo "$lt_cv_ar_at_file" >&6; } 5642 5643if test "x$lt_cv_ar_at_file" = xno; then 5644 archiver_list_spec= 5645else 5646 archiver_list_spec=$lt_cv_ar_at_file 5647fi 5648 5649 5650 5651 5652 5653 5654 5655if test -n "$ac_tool_prefix"; then 5656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5657set dummy ${ac_tool_prefix}strip; ac_word=$2 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5659$as_echo_n "checking for $ac_word... " >&6; } 5660if ${ac_cv_prog_STRIP+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 if test -n "$STRIP"; then 5664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5665else 5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667for as_dir in $PATH 5668do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5673 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677done 5678 done 5679IFS=$as_save_IFS 5680 5681fi 5682fi 5683STRIP=$ac_cv_prog_STRIP 5684if test -n "$STRIP"; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5686$as_echo "$STRIP" >&6; } 5687else 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5689$as_echo "no" >&6; } 5690fi 5691 5692 5693fi 5694if test -z "$ac_cv_prog_STRIP"; then 5695 ac_ct_STRIP=$STRIP 5696 # Extract the first word of "strip", so it can be a program name with args. 5697set dummy strip; ac_word=$2 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5699$as_echo_n "checking for $ac_word... " >&6; } 5700if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 if test -n "$ac_ct_STRIP"; then 5704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5705else 5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5707for as_dir in $PATH 5708do 5709 IFS=$as_save_IFS 5710 test -z "$as_dir" && as_dir=. 5711 for ac_exec_ext in '' $ac_executable_extensions; do 5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5713 ac_cv_prog_ac_ct_STRIP="strip" 5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5715 break 2 5716 fi 5717done 5718 done 5719IFS=$as_save_IFS 5720 5721fi 5722fi 5723ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5724if test -n "$ac_ct_STRIP"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5726$as_echo "$ac_ct_STRIP" >&6; } 5727else 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5729$as_echo "no" >&6; } 5730fi 5731 5732 if test "x$ac_ct_STRIP" = x; then 5733 STRIP=":" 5734 else 5735 case $cross_compiling:$ac_tool_warned in 5736yes:) 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5739ac_tool_warned=yes ;; 5740esac 5741 STRIP=$ac_ct_STRIP 5742 fi 5743else 5744 STRIP="$ac_cv_prog_STRIP" 5745fi 5746 5747test -z "$STRIP" && STRIP=: 5748 5749 5750 5751 5752 5753 5754if test -n "$ac_tool_prefix"; then 5755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5756set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_RANLIB+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$RANLIB"; then 5763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782RANLIB=$ac_cv_prog_RANLIB 5783if test -n "$RANLIB"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5785$as_echo "$RANLIB" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792fi 5793if test -z "$ac_cv_prog_RANLIB"; then 5794 ac_ct_RANLIB=$RANLIB 5795 # Extract the first word of "ranlib", so it can be a program name with args. 5796set dummy ranlib; ac_word=$2 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5798$as_echo_n "checking for $ac_word... " >&6; } 5799if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 if test -n "$ac_ct_RANLIB"; then 5803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5804else 5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806for as_dir in $PATH 5807do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5812 ac_cv_prog_ac_ct_RANLIB="ranlib" 5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816done 5817 done 5818IFS=$as_save_IFS 5819 5820fi 5821fi 5822ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5823if test -n "$ac_ct_RANLIB"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5825$as_echo "$ac_ct_RANLIB" >&6; } 5826else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5828$as_echo "no" >&6; } 5829fi 5830 5831 if test "x$ac_ct_RANLIB" = x; then 5832 RANLIB=":" 5833 else 5834 case $cross_compiling:$ac_tool_warned in 5835yes:) 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5838ac_tool_warned=yes ;; 5839esac 5840 RANLIB=$ac_ct_RANLIB 5841 fi 5842else 5843 RANLIB="$ac_cv_prog_RANLIB" 5844fi 5845 5846test -z "$RANLIB" && RANLIB=: 5847 5848 5849 5850 5851 5852 5853# Determine commands to create old-style static archives. 5854old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5855old_postinstall_cmds='chmod 644 $oldlib' 5856old_postuninstall_cmds= 5857 5858if test -n "$RANLIB"; then 5859 case $host_os in 5860 openbsd*) 5861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5862 ;; 5863 *) 5864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5865 ;; 5866 esac 5867 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5868fi 5869 5870case $host_os in 5871 darwin*) 5872 lock_old_archive_extraction=yes ;; 5873 *) 5874 lock_old_archive_extraction=no ;; 5875esac 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915# If no C compiler was specified, use CC. 5916LTCC=${LTCC-"$CC"} 5917 5918# If no C compiler flags were specified, use CFLAGS. 5919LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5920 5921# Allow CC to be a program name with arguments. 5922compiler=$CC 5923 5924 5925# Check for command to grab the raw symbol name followed by C symbol from nm. 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5927$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5928if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 5932# These are sane defaults that work on at least a few old systems. 5933# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5934 5935# Character class describing NM global symbol codes. 5936symcode='[BCDEGRST]' 5937 5938# Regexp to match symbols that can be accessed directly from C. 5939sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5940 5941# Define system-specific variables. 5942case $host_os in 5943aix*) 5944 symcode='[BCDT]' 5945 ;; 5946cygwin* | mingw* | pw32* | cegcc*) 5947 symcode='[ABCDGISTW]' 5948 ;; 5949hpux*) 5950 if test "$host_cpu" = ia64; then 5951 symcode='[ABCDEGRST]' 5952 fi 5953 ;; 5954irix* | nonstopux*) 5955 symcode='[BCDEGRST]' 5956 ;; 5957osf*) 5958 symcode='[BCDEGQRST]' 5959 ;; 5960solaris*) 5961 symcode='[BDRT]' 5962 ;; 5963sco3.2v5*) 5964 symcode='[DT]' 5965 ;; 5966sysv4.2uw2*) 5967 symcode='[DT]' 5968 ;; 5969sysv5* | sco5v6* | unixware* | OpenUNIX*) 5970 symcode='[ABDT]' 5971 ;; 5972sysv4) 5973 symcode='[DFNSTU]' 5974 ;; 5975esac 5976 5977# If we're using GNU nm, then use its standard symbol codes. 5978case `$NM -V 2>&1` in 5979*GNU* | *'with BFD'*) 5980 symcode='[ABCDGIRSTW]' ;; 5981esac 5982 5983# Transform an extracted symbol line into a proper C declaration. 5984# Some systems (esp. on ia64) link data and code symbols differently, 5985# so use this general approach. 5986lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5987 5988# Transform an extracted symbol line into symbol name and symbol address 5989lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5990lt_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'" 5991 5992# Handle CRLF in mingw tool chain 5993opt_cr= 5994case $build_os in 5995mingw*) 5996 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5997 ;; 5998esac 5999 6000# Try without a prefix underscore, then with it. 6001for ac_symprfx in "" "_"; do 6002 6003 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6004 symxfrm="\\1 $ac_symprfx\\2 \\2" 6005 6006 # Write the raw and C identifiers. 6007 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6008 # Fake it for dumpbin and say T for any non-static function 6009 # and D for any global variable. 6010 # Also find C++ and __fastcall symbols from MSVC++, 6011 # which start with @ or ?. 6012 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6013" {last_section=section; section=\$ 3};"\ 6014" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6015" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6016" \$ 0!~/External *\|/{next};"\ 6017" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6018" {if(hide[section]) next};"\ 6019" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6020" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6021" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6022" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6023" ' prfx=^$ac_symprfx" 6024 else 6025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6026 fi 6027 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6028 6029 # Check to see that the pipe works correctly. 6030 pipe_works=no 6031 6032 rm -f conftest* 6033 cat > conftest.$ac_ext <<_LT_EOF 6034#ifdef __cplusplus 6035extern "C" { 6036#endif 6037char nm_test_var; 6038void nm_test_func(void); 6039void nm_test_func(void){} 6040#ifdef __cplusplus 6041} 6042#endif 6043int main(){nm_test_var='a';nm_test_func();return(0);} 6044_LT_EOF 6045 6046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6047 (eval $ac_compile) 2>&5 6048 ac_status=$? 6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6050 test $ac_status = 0; }; then 6051 # Now try to grab the symbols. 6052 nlist=conftest.nm 6053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6054 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6055 ac_status=$? 6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6057 test $ac_status = 0; } && test -s "$nlist"; then 6058 # Try sorting and uniquifying the output. 6059 if sort "$nlist" | uniq > "$nlist"T; then 6060 mv -f "$nlist"T "$nlist" 6061 else 6062 rm -f "$nlist"T 6063 fi 6064 6065 # Make sure that we snagged all the symbols we need. 6066 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6067 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6068 cat <<_LT_EOF > conftest.$ac_ext 6069/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6070#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6071/* DATA imports from DLLs on WIN32 con't be const, because runtime 6072 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6073# define LT_DLSYM_CONST 6074#elif defined(__osf__) 6075/* This system does not cope well with relocations in const data. */ 6076# define LT_DLSYM_CONST 6077#else 6078# define LT_DLSYM_CONST const 6079#endif 6080 6081#ifdef __cplusplus 6082extern "C" { 6083#endif 6084 6085_LT_EOF 6086 # Now generate the symbol file. 6087 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6088 6089 cat <<_LT_EOF >> conftest.$ac_ext 6090 6091/* The mapping between symbol names and symbols. */ 6092LT_DLSYM_CONST struct { 6093 const char *name; 6094 void *address; 6095} 6096lt__PROGRAM__LTX_preloaded_symbols[] = 6097{ 6098 { "@PROGRAM@", (void *) 0 }, 6099_LT_EOF 6100 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6101 cat <<\_LT_EOF >> conftest.$ac_ext 6102 {0, (void *) 0} 6103}; 6104 6105/* This works around a problem in FreeBSD linker */ 6106#ifdef FREEBSD_WORKAROUND 6107static const void *lt_preloaded_setup() { 6108 return lt__PROGRAM__LTX_preloaded_symbols; 6109} 6110#endif 6111 6112#ifdef __cplusplus 6113} 6114#endif 6115_LT_EOF 6116 # Now try linking the two files. 6117 mv conftest.$ac_objext conftstm.$ac_objext 6118 lt_globsym_save_LIBS=$LIBS 6119 lt_globsym_save_CFLAGS=$CFLAGS 6120 LIBS="conftstm.$ac_objext" 6121 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6123 (eval $ac_link) 2>&5 6124 ac_status=$? 6125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6126 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6127 pipe_works=yes 6128 fi 6129 LIBS=$lt_globsym_save_LIBS 6130 CFLAGS=$lt_globsym_save_CFLAGS 6131 else 6132 echo "cannot find nm_test_func in $nlist" >&5 6133 fi 6134 else 6135 echo "cannot find nm_test_var in $nlist" >&5 6136 fi 6137 else 6138 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6139 fi 6140 else 6141 echo "$progname: failed program was:" >&5 6142 cat conftest.$ac_ext >&5 6143 fi 6144 rm -rf conftest* conftst* 6145 6146 # Do not use the global_symbol_pipe unless it works. 6147 if test "$pipe_works" = yes; then 6148 break 6149 else 6150 lt_cv_sys_global_symbol_pipe= 6151 fi 6152done 6153 6154fi 6155 6156if test -z "$lt_cv_sys_global_symbol_pipe"; then 6157 lt_cv_sys_global_symbol_to_cdecl= 6158fi 6159if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6161$as_echo "failed" >&6; } 6162else 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6164$as_echo "ok" >&6; } 6165fi 6166 6167# Response file support. 6168if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6169 nm_file_list_spec='@' 6170elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6171 nm_file_list_spec='@' 6172fi 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6201$as_echo_n "checking for sysroot... " >&6; } 6202 6203# Check whether --with-sysroot was given. 6204if test "${with_sysroot+set}" = set; then : 6205 withval=$with_sysroot; 6206else 6207 with_sysroot=no 6208fi 6209 6210 6211lt_sysroot= 6212case ${with_sysroot} in #( 6213 yes) 6214 if test "$GCC" = yes; then 6215 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6216 fi 6217 ;; #( 6218 /*) 6219 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6220 ;; #( 6221 no|'') 6222 ;; #( 6223 *) 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6225$as_echo "${with_sysroot}" >&6; } 6226 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6227 ;; 6228esac 6229 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6231$as_echo "${lt_sysroot:-no}" >&6; } 6232 6233 6234 6235 6236 6237# Check whether --enable-libtool-lock was given. 6238if test "${enable_libtool_lock+set}" = set; then : 6239 enableval=$enable_libtool_lock; 6240fi 6241 6242test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6243 6244# Some flags need to be propagated to the compiler or linker for good 6245# libtool support. 6246case $host in 6247ia64-*-hpux*) 6248 # Find out which ABI we are using. 6249 echo 'int i;' > conftest.$ac_ext 6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6251 (eval $ac_compile) 2>&5 6252 ac_status=$? 6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6254 test $ac_status = 0; }; then 6255 case `/usr/bin/file conftest.$ac_objext` in 6256 *ELF-32*) 6257 HPUX_IA64_MODE="32" 6258 ;; 6259 *ELF-64*) 6260 HPUX_IA64_MODE="64" 6261 ;; 6262 esac 6263 fi 6264 rm -rf conftest* 6265 ;; 6266*-*-irix6*) 6267 # Find out which ABI we are using. 6268 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6270 (eval $ac_compile) 2>&5 6271 ac_status=$? 6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6273 test $ac_status = 0; }; then 6274 if test "$lt_cv_prog_gnu_ld" = yes; then 6275 case `/usr/bin/file conftest.$ac_objext` in 6276 *32-bit*) 6277 LD="${LD-ld} -melf32bsmip" 6278 ;; 6279 *N32*) 6280 LD="${LD-ld} -melf32bmipn32" 6281 ;; 6282 *64-bit*) 6283 LD="${LD-ld} -melf64bmip" 6284 ;; 6285 esac 6286 else 6287 case `/usr/bin/file conftest.$ac_objext` in 6288 *32-bit*) 6289 LD="${LD-ld} -32" 6290 ;; 6291 *N32*) 6292 LD="${LD-ld} -n32" 6293 ;; 6294 *64-bit*) 6295 LD="${LD-ld} -64" 6296 ;; 6297 esac 6298 fi 6299 fi 6300 rm -rf conftest* 6301 ;; 6302 6303x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6304s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6305 # Find out which ABI we are using. 6306 echo 'int i;' > conftest.$ac_ext 6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6308 (eval $ac_compile) 2>&5 6309 ac_status=$? 6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6311 test $ac_status = 0; }; then 6312 case `/usr/bin/file conftest.o` in 6313 *32-bit*) 6314 case $host in 6315 x86_64-*kfreebsd*-gnu) 6316 LD="${LD-ld} -m elf_i386_fbsd" 6317 ;; 6318 x86_64-*linux*) 6319 LD="${LD-ld} -m elf_i386" 6320 ;; 6321 ppc64-*linux*|powerpc64-*linux*) 6322 LD="${LD-ld} -m elf32ppclinux" 6323 ;; 6324 s390x-*linux*) 6325 LD="${LD-ld} -m elf_s390" 6326 ;; 6327 sparc64-*linux*) 6328 LD="${LD-ld} -m elf32_sparc" 6329 ;; 6330 esac 6331 ;; 6332 *64-bit*) 6333 case $host in 6334 x86_64-*kfreebsd*-gnu) 6335 LD="${LD-ld} -m elf_x86_64_fbsd" 6336 ;; 6337 x86_64-*linux*) 6338 LD="${LD-ld} -m elf_x86_64" 6339 ;; 6340 ppc*-*linux*|powerpc*-*linux*) 6341 LD="${LD-ld} -m elf64ppc" 6342 ;; 6343 s390*-*linux*|s390*-*tpf*) 6344 LD="${LD-ld} -m elf64_s390" 6345 ;; 6346 sparc*-*linux*) 6347 LD="${LD-ld} -m elf64_sparc" 6348 ;; 6349 esac 6350 ;; 6351 esac 6352 fi 6353 rm -rf conftest* 6354 ;; 6355 6356*-*-sco3.2v5*) 6357 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6358 SAVE_CFLAGS="$CFLAGS" 6359 CFLAGS="$CFLAGS -belf" 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6361$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6362if ${lt_cv_cc_needs_belf+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364else 6365 ac_ext=c 6366ac_cpp='$CPP $CPPFLAGS' 6367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6369ac_compiler_gnu=$ac_cv_c_compiler_gnu 6370 6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6372/* end confdefs.h. */ 6373 6374int 6375main () 6376{ 6377 6378 ; 6379 return 0; 6380} 6381_ACEOF 6382if ac_fn_c_try_link "$LINENO"; then : 6383 lt_cv_cc_needs_belf=yes 6384else 6385 lt_cv_cc_needs_belf=no 6386fi 6387rm -f core conftest.err conftest.$ac_objext \ 6388 conftest$ac_exeext conftest.$ac_ext 6389 ac_ext=c 6390ac_cpp='$CPP $CPPFLAGS' 6391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6393ac_compiler_gnu=$ac_cv_c_compiler_gnu 6394 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6397$as_echo "$lt_cv_cc_needs_belf" >&6; } 6398 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6399 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6400 CFLAGS="$SAVE_CFLAGS" 6401 fi 6402 ;; 6403*-*solaris*) 6404 # Find out which ABI we are using. 6405 echo 'int i;' > conftest.$ac_ext 6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6410 test $ac_status = 0; }; then 6411 case `/usr/bin/file conftest.o` in 6412 *64-bit*) 6413 case $lt_cv_prog_gnu_ld in 6414 yes*) 6415 case $host in 6416 i?86-*-solaris*) 6417 LD="${LD-ld} -m elf_x86_64" 6418 ;; 6419 sparc*-*-solaris*) 6420 LD="${LD-ld} -m elf64_sparc" 6421 ;; 6422 esac 6423 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6424 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6425 LD="${LD-ld}_sol2" 6426 fi 6427 ;; 6428 *) 6429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6430 LD="${LD-ld} -64" 6431 fi 6432 ;; 6433 esac 6434 ;; 6435 esac 6436 fi 6437 rm -rf conftest* 6438 ;; 6439esac 6440 6441need_locks="$enable_libtool_lock" 6442 6443if test -n "$ac_tool_prefix"; then 6444 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6445set dummy ${ac_tool_prefix}mt; ac_word=$2 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6447$as_echo_n "checking for $ac_word... " >&6; } 6448if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 if test -n "$MANIFEST_TOOL"; then 6452 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6453else 6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455for as_dir in $PATH 6456do 6457 IFS=$as_save_IFS 6458 test -z "$as_dir" && as_dir=. 6459 for ac_exec_ext in '' $ac_executable_extensions; do 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6461 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 break 2 6464 fi 6465done 6466 done 6467IFS=$as_save_IFS 6468 6469fi 6470fi 6471MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6472if test -n "$MANIFEST_TOOL"; then 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6474$as_echo "$MANIFEST_TOOL" >&6; } 6475else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477$as_echo "no" >&6; } 6478fi 6479 6480 6481fi 6482if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6483 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6484 # Extract the first word of "mt", so it can be a program name with args. 6485set dummy mt; ac_word=$2 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6487$as_echo_n "checking for $ac_word... " >&6; } 6488if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 if test -n "$ac_ct_MANIFEST_TOOL"; then 6492 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6493else 6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6495for as_dir in $PATH 6496do 6497 IFS=$as_save_IFS 6498 test -z "$as_dir" && as_dir=. 6499 for ac_exec_ext in '' $ac_executable_extensions; do 6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6501 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6503 break 2 6504 fi 6505done 6506 done 6507IFS=$as_save_IFS 6508 6509fi 6510fi 6511ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6512if test -n "$ac_ct_MANIFEST_TOOL"; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6514$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6515else 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517$as_echo "no" >&6; } 6518fi 6519 6520 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6521 MANIFEST_TOOL=":" 6522 else 6523 case $cross_compiling:$ac_tool_warned in 6524yes:) 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6527ac_tool_warned=yes ;; 6528esac 6529 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6530 fi 6531else 6532 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6533fi 6534 6535test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6537$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6538if ${lt_cv_path_mainfest_tool+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 lt_cv_path_mainfest_tool=no 6542 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6543 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6544 cat conftest.err >&5 6545 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6546 lt_cv_path_mainfest_tool=yes 6547 fi 6548 rm -f conftest* 6549fi 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6551$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6552if test "x$lt_cv_path_mainfest_tool" != xyes; then 6553 MANIFEST_TOOL=: 6554fi 6555 6556 6557 6558 6559 6560 6561 case $host_os in 6562 rhapsody* | darwin*) 6563 if test -n "$ac_tool_prefix"; then 6564 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6565set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6567$as_echo_n "checking for $ac_word... " >&6; } 6568if ${ac_cv_prog_DSYMUTIL+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 if test -n "$DSYMUTIL"; then 6572 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6573else 6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6581 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6583 break 2 6584 fi 6585done 6586 done 6587IFS=$as_save_IFS 6588 6589fi 6590fi 6591DSYMUTIL=$ac_cv_prog_DSYMUTIL 6592if test -n "$DSYMUTIL"; then 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6594$as_echo "$DSYMUTIL" >&6; } 6595else 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6597$as_echo "no" >&6; } 6598fi 6599 6600 6601fi 6602if test -z "$ac_cv_prog_DSYMUTIL"; then 6603 ac_ct_DSYMUTIL=$DSYMUTIL 6604 # Extract the first word of "dsymutil", so it can be a program name with args. 6605set dummy dsymutil; ac_word=$2 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6607$as_echo_n "checking for $ac_word... " >&6; } 6608if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 if test -n "$ac_ct_DSYMUTIL"; then 6612 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 test -z "$as_dir" && as_dir=. 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6621 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625done 6626 done 6627IFS=$as_save_IFS 6628 6629fi 6630fi 6631ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6632if test -n "$ac_ct_DSYMUTIL"; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6634$as_echo "$ac_ct_DSYMUTIL" >&6; } 6635else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637$as_echo "no" >&6; } 6638fi 6639 6640 if test "x$ac_ct_DSYMUTIL" = x; then 6641 DSYMUTIL=":" 6642 else 6643 case $cross_compiling:$ac_tool_warned in 6644yes:) 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6647ac_tool_warned=yes ;; 6648esac 6649 DSYMUTIL=$ac_ct_DSYMUTIL 6650 fi 6651else 6652 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6653fi 6654 6655 if test -n "$ac_tool_prefix"; then 6656 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6657set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6659$as_echo_n "checking for $ac_word... " >&6; } 6660if ${ac_cv_prog_NMEDIT+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 if test -n "$NMEDIT"; then 6664 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6665else 6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6667for as_dir in $PATH 6668do 6669 IFS=$as_save_IFS 6670 test -z "$as_dir" && as_dir=. 6671 for ac_exec_ext in '' $ac_executable_extensions; do 6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6673 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6675 break 2 6676 fi 6677done 6678 done 6679IFS=$as_save_IFS 6680 6681fi 6682fi 6683NMEDIT=$ac_cv_prog_NMEDIT 6684if test -n "$NMEDIT"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6686$as_echo "$NMEDIT" >&6; } 6687else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689$as_echo "no" >&6; } 6690fi 6691 6692 6693fi 6694if test -z "$ac_cv_prog_NMEDIT"; then 6695 ac_ct_NMEDIT=$NMEDIT 6696 # Extract the first word of "nmedit", so it can be a program name with args. 6697set dummy nmedit; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 if test -n "$ac_ct_NMEDIT"; then 6704 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 test -z "$as_dir" && as_dir=. 6711 for ac_exec_ext in '' $ac_executable_extensions; do 6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6713 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6715 break 2 6716 fi 6717done 6718 done 6719IFS=$as_save_IFS 6720 6721fi 6722fi 6723ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6724if test -n "$ac_ct_NMEDIT"; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6726$as_echo "$ac_ct_NMEDIT" >&6; } 6727else 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6729$as_echo "no" >&6; } 6730fi 6731 6732 if test "x$ac_ct_NMEDIT" = x; then 6733 NMEDIT=":" 6734 else 6735 case $cross_compiling:$ac_tool_warned in 6736yes:) 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6739ac_tool_warned=yes ;; 6740esac 6741 NMEDIT=$ac_ct_NMEDIT 6742 fi 6743else 6744 NMEDIT="$ac_cv_prog_NMEDIT" 6745fi 6746 6747 if test -n "$ac_tool_prefix"; then 6748 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6749set dummy ${ac_tool_prefix}lipo; ac_word=$2 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751$as_echo_n "checking for $ac_word... " >&6; } 6752if ${ac_cv_prog_LIPO+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 if test -n "$LIPO"; then 6756 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6757else 6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775LIPO=$ac_cv_prog_LIPO 6776if test -n "$LIPO"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6778$as_echo "$LIPO" >&6; } 6779else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781$as_echo "no" >&6; } 6782fi 6783 6784 6785fi 6786if test -z "$ac_cv_prog_LIPO"; then 6787 ac_ct_LIPO=$LIPO 6788 # Extract the first word of "lipo", so it can be a program name with args. 6789set dummy lipo; ac_word=$2 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791$as_echo_n "checking for $ac_word... " >&6; } 6792if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 if test -n "$ac_ct_LIPO"; then 6796 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6797else 6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_prog_ac_ct_LIPO="lipo" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813fi 6814fi 6815ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6816if test -n "$ac_ct_LIPO"; then 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6818$as_echo "$ac_ct_LIPO" >&6; } 6819else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6821$as_echo "no" >&6; } 6822fi 6823 6824 if test "x$ac_ct_LIPO" = x; then 6825 LIPO=":" 6826 else 6827 case $cross_compiling:$ac_tool_warned in 6828yes:) 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6831ac_tool_warned=yes ;; 6832esac 6833 LIPO=$ac_ct_LIPO 6834 fi 6835else 6836 LIPO="$ac_cv_prog_LIPO" 6837fi 6838 6839 if test -n "$ac_tool_prefix"; then 6840 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6841set dummy ${ac_tool_prefix}otool; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if ${ac_cv_prog_OTOOL+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$OTOOL"; then 6848 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867OTOOL=$ac_cv_prog_OTOOL 6868if test -n "$OTOOL"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6870$as_echo "$OTOOL" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 6877fi 6878if test -z "$ac_cv_prog_OTOOL"; then 6879 ac_ct_OTOOL=$OTOOL 6880 # Extract the first word of "otool", so it can be a program name with args. 6881set dummy otool; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_OTOOL"; then 6888 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6897 ac_cv_prog_ac_ct_OTOOL="otool" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6908if test -n "$ac_ct_OTOOL"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6910$as_echo "$ac_ct_OTOOL" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 if test "x$ac_ct_OTOOL" = x; then 6917 OTOOL=":" 6918 else 6919 case $cross_compiling:$ac_tool_warned in 6920yes:) 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6923ac_tool_warned=yes ;; 6924esac 6925 OTOOL=$ac_ct_OTOOL 6926 fi 6927else 6928 OTOOL="$ac_cv_prog_OTOOL" 6929fi 6930 6931 if test -n "$ac_tool_prefix"; then 6932 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6933set dummy ${ac_tool_prefix}otool64; ac_word=$2 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6935$as_echo_n "checking for $ac_word... " >&6; } 6936if ${ac_cv_prog_OTOOL64+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 if test -n "$OTOOL64"; then 6940 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6941else 6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6949 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi 6958fi 6959OTOOL64=$ac_cv_prog_OTOOL64 6960if test -n "$OTOOL64"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6962$as_echo "$OTOOL64" >&6; } 6963else 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965$as_echo "no" >&6; } 6966fi 6967 6968 6969fi 6970if test -z "$ac_cv_prog_OTOOL64"; then 6971 ac_ct_OTOOL64=$OTOOL64 6972 # Extract the first word of "otool64", so it can be a program name with args. 6973set dummy otool64; ac_word=$2 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6975$as_echo_n "checking for $ac_word... " >&6; } 6976if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 if test -n "$ac_ct_OTOOL64"; then 6980 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6981else 6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6989 ac_cv_prog_ac_ct_OTOOL64="otool64" 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994 done 6995IFS=$as_save_IFS 6996 6997fi 6998fi 6999ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7000if test -n "$ac_ct_OTOOL64"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7002$as_echo "$ac_ct_OTOOL64" >&6; } 7003else 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7005$as_echo "no" >&6; } 7006fi 7007 7008 if test "x$ac_ct_OTOOL64" = x; then 7009 OTOOL64=":" 7010 else 7011 case $cross_compiling:$ac_tool_warned in 7012yes:) 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7015ac_tool_warned=yes ;; 7016esac 7017 OTOOL64=$ac_ct_OTOOL64 7018 fi 7019else 7020 OTOOL64="$ac_cv_prog_OTOOL64" 7021fi 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7050$as_echo_n "checking for -single_module linker flag... " >&6; } 7051if ${lt_cv_apple_cc_single_mod+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 lt_cv_apple_cc_single_mod=no 7055 if test -z "${LT_MULTI_MODULE}"; then 7056 # By default we will add the -single_module flag. You can override 7057 # by either setting the environment variable LT_MULTI_MODULE 7058 # non-empty at configure time, or by adding -multi_module to the 7059 # link flags. 7060 rm -rf libconftest.dylib* 7061 echo "int foo(void){return 1;}" > conftest.c 7062 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7063-dynamiclib -Wl,-single_module conftest.c" >&5 7064 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7065 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7066 _lt_result=$? 7067 # If there is a non-empty error log, and "single_module" 7068 # appears in it, assume the flag caused a linker warning 7069 if test -s conftest.err && $GREP single_module conftest.err; then 7070 cat conftest.err >&5 7071 # Otherwise, if the output was created with a 0 exit code from 7072 # the compiler, it worked. 7073 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7074 lt_cv_apple_cc_single_mod=yes 7075 else 7076 cat conftest.err >&5 7077 fi 7078 rm -rf libconftest.dylib* 7079 rm -f conftest.* 7080 fi 7081fi 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7083$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7084 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7086$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7087if ${lt_cv_ld_exported_symbols_list+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 lt_cv_ld_exported_symbols_list=no 7091 save_LDFLAGS=$LDFLAGS 7092 echo "_main" > conftest.sym 7093 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096 7097int 7098main () 7099{ 7100 7101 ; 7102 return 0; 7103} 7104_ACEOF 7105if ac_fn_c_try_link "$LINENO"; then : 7106 lt_cv_ld_exported_symbols_list=yes 7107else 7108 lt_cv_ld_exported_symbols_list=no 7109fi 7110rm -f core conftest.err conftest.$ac_objext \ 7111 conftest$ac_exeext conftest.$ac_ext 7112 LDFLAGS="$save_LDFLAGS" 7113 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7116$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7117 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7119$as_echo_n "checking for -force_load linker flag... " >&6; } 7120if ${lt_cv_ld_force_load+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 lt_cv_ld_force_load=no 7124 cat > conftest.c << _LT_EOF 7125int forced_loaded() { return 2;} 7126_LT_EOF 7127 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7128 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7129 echo "$AR cru libconftest.a conftest.o" >&5 7130 $AR cru libconftest.a conftest.o 2>&5 7131 echo "$RANLIB libconftest.a" >&5 7132 $RANLIB libconftest.a 2>&5 7133 cat > conftest.c << _LT_EOF 7134int main() { return 0;} 7135_LT_EOF 7136 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7137 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7138 _lt_result=$? 7139 if test -s conftest.err && $GREP force_load conftest.err; then 7140 cat conftest.err >&5 7141 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7142 lt_cv_ld_force_load=yes 7143 else 7144 cat conftest.err >&5 7145 fi 7146 rm -f conftest.err libconftest.a conftest conftest.c 7147 rm -rf conftest.dSYM 7148 7149fi 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7151$as_echo "$lt_cv_ld_force_load" >&6; } 7152 case $host_os in 7153 rhapsody* | darwin1.[012]) 7154 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7155 darwin1.*) 7156 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7157 darwin*) # darwin 5.x on 7158 # if running on 10.5 or later, the deployment target defaults 7159 # to the OS version, if on x86, and 10.4, the deployment 7160 # target defaults to 10.4. Don't you love it? 7161 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7162 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7164 10.[012]*) 7165 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7166 10.*) 7167 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7168 esac 7169 ;; 7170 esac 7171 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7172 _lt_dar_single_mod='$single_module' 7173 fi 7174 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7175 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7176 else 7177 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7178 fi 7179 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7180 _lt_dsymutil='~$DSYMUTIL $lib || :' 7181 else 7182 _lt_dsymutil= 7183 fi 7184 ;; 7185 esac 7186 7187ac_ext=c 7188ac_cpp='$CPP $CPPFLAGS' 7189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7191ac_compiler_gnu=$ac_cv_c_compiler_gnu 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7193$as_echo_n "checking how to run the C preprocessor... " >&6; } 7194# On Suns, sometimes $CPP names a directory. 7195if test -n "$CPP" && test -d "$CPP"; then 7196 CPP= 7197fi 7198if test -z "$CPP"; then 7199 if ${ac_cv_prog_CPP+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 # Double quotes because CPP needs to be expanded 7203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7204 do 7205 ac_preproc_ok=false 7206for ac_c_preproc_warn_flag in '' yes 7207do 7208 # Use a header file that comes with gcc, so configuring glibc 7209 # with a fresh cross-compiler works. 7210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7211 # <limits.h> exists even on freestanding compilers. 7212 # On the NeXT, cc -E runs the code through the compiler's parser, 7213 # not just through cpp. "Syntax error" is here to catch this case. 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216#ifdef __STDC__ 7217# include <limits.h> 7218#else 7219# include <assert.h> 7220#endif 7221 Syntax error 7222_ACEOF 7223if ac_fn_c_try_cpp "$LINENO"; then : 7224 7225else 7226 # Broken: fails on valid input. 7227continue 7228fi 7229rm -f conftest.err conftest.i conftest.$ac_ext 7230 7231 # OK, works on sane cases. Now check whether nonexistent headers 7232 # can be detected and how. 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235#include <ac_nonexistent.h> 7236_ACEOF 7237if ac_fn_c_try_cpp "$LINENO"; then : 7238 # Broken: success on invalid input. 7239continue 7240else 7241 # Passes both tests. 7242ac_preproc_ok=: 7243break 7244fi 7245rm -f conftest.err conftest.i conftest.$ac_ext 7246 7247done 7248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7249rm -f conftest.i conftest.err conftest.$ac_ext 7250if $ac_preproc_ok; then : 7251 break 7252fi 7253 7254 done 7255 ac_cv_prog_CPP=$CPP 7256 7257fi 7258 CPP=$ac_cv_prog_CPP 7259else 7260 ac_cv_prog_CPP=$CPP 7261fi 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7263$as_echo "$CPP" >&6; } 7264ac_preproc_ok=false 7265for ac_c_preproc_warn_flag in '' yes 7266do 7267 # Use a header file that comes with gcc, so configuring glibc 7268 # with a fresh cross-compiler works. 7269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7270 # <limits.h> exists even on freestanding compilers. 7271 # On the NeXT, cc -E runs the code through the compiler's parser, 7272 # not just through cpp. "Syntax error" is here to catch this case. 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7274/* end confdefs.h. */ 7275#ifdef __STDC__ 7276# include <limits.h> 7277#else 7278# include <assert.h> 7279#endif 7280 Syntax error 7281_ACEOF 7282if ac_fn_c_try_cpp "$LINENO"; then : 7283 7284else 7285 # Broken: fails on valid input. 7286continue 7287fi 7288rm -f conftest.err conftest.i conftest.$ac_ext 7289 7290 # OK, works on sane cases. Now check whether nonexistent headers 7291 # can be detected and how. 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294#include <ac_nonexistent.h> 7295_ACEOF 7296if ac_fn_c_try_cpp "$LINENO"; then : 7297 # Broken: success on invalid input. 7298continue 7299else 7300 # Passes both tests. 7301ac_preproc_ok=: 7302break 7303fi 7304rm -f conftest.err conftest.i conftest.$ac_ext 7305 7306done 7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7308rm -f conftest.i conftest.err conftest.$ac_ext 7309if $ac_preproc_ok; then : 7310 7311else 7312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7314as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7315See \`config.log' for more details" "$LINENO" 5; } 7316fi 7317 7318ac_ext=c 7319ac_cpp='$CPP $CPPFLAGS' 7320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7322ac_compiler_gnu=$ac_cv_c_compiler_gnu 7323 7324 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7326$as_echo_n "checking for ANSI C header files... " >&6; } 7327if ${ac_cv_header_stdc+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331/* end confdefs.h. */ 7332#include <stdlib.h> 7333#include <stdarg.h> 7334#include <string.h> 7335#include <float.h> 7336 7337int 7338main () 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 ac_cv_header_stdc=yes 7347else 7348 ac_cv_header_stdc=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351 7352if test $ac_cv_header_stdc = yes; then 7353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356#include <string.h> 7357 7358_ACEOF 7359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7360 $EGREP "memchr" >/dev/null 2>&1; then : 7361 7362else 7363 ac_cv_header_stdc=no 7364fi 7365rm -f conftest* 7366 7367fi 7368 7369if test $ac_cv_header_stdc = yes; then 7370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373#include <stdlib.h> 7374 7375_ACEOF 7376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7377 $EGREP "free" >/dev/null 2>&1; then : 7378 7379else 7380 ac_cv_header_stdc=no 7381fi 7382rm -f conftest* 7383 7384fi 7385 7386if test $ac_cv_header_stdc = yes; then 7387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7388 if test "$cross_compiling" = yes; then : 7389 : 7390else 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393#include <ctype.h> 7394#include <stdlib.h> 7395#if ((' ' & 0x0FF) == 0x020) 7396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7398#else 7399# define ISLOWER(c) \ 7400 (('a' <= (c) && (c) <= 'i') \ 7401 || ('j' <= (c) && (c) <= 'r') \ 7402 || ('s' <= (c) && (c) <= 'z')) 7403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7404#endif 7405 7406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7407int 7408main () 7409{ 7410 int i; 7411 for (i = 0; i < 256; i++) 7412 if (XOR (islower (i), ISLOWER (i)) 7413 || toupper (i) != TOUPPER (i)) 7414 return 2; 7415 return 0; 7416} 7417_ACEOF 7418if ac_fn_c_try_run "$LINENO"; then : 7419 7420else 7421 ac_cv_header_stdc=no 7422fi 7423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7424 conftest.$ac_objext conftest.beam conftest.$ac_ext 7425fi 7426 7427fi 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7430$as_echo "$ac_cv_header_stdc" >&6; } 7431if test $ac_cv_header_stdc = yes; then 7432 7433$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7434 7435fi 7436 7437# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7439 inttypes.h stdint.h unistd.h 7440do : 7441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7442ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7443" 7444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7445 cat >>confdefs.h <<_ACEOF 7446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7447_ACEOF 7448 7449fi 7450 7451done 7452 7453 7454for ac_header in dlfcn.h 7455do : 7456 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7457" 7458if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7459 cat >>confdefs.h <<_ACEOF 7460#define HAVE_DLFCN_H 1 7461_ACEOF 7462 7463fi 7464 7465done 7466 7467 7468 7469 7470 7471# Set options 7472 7473 7474 7475 enable_dlopen=no 7476 7477 7478 enable_win32_dll=no 7479 7480 7481 # Check whether --enable-shared was given. 7482if test "${enable_shared+set}" = set; then : 7483 enableval=$enable_shared; p=${PACKAGE-default} 7484 case $enableval in 7485 yes) enable_shared=yes ;; 7486 no) enable_shared=no ;; 7487 *) 7488 enable_shared=no 7489 # Look at the argument we got. We use all the common list separators. 7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7491 for pkg in $enableval; do 7492 IFS="$lt_save_ifs" 7493 if test "X$pkg" = "X$p"; then 7494 enable_shared=yes 7495 fi 7496 done 7497 IFS="$lt_save_ifs" 7498 ;; 7499 esac 7500else 7501 enable_shared=yes 7502fi 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 # Check whether --enable-static was given. 7513if test "${enable_static+set}" = set; then : 7514 enableval=$enable_static; p=${PACKAGE-default} 7515 case $enableval in 7516 yes) enable_static=yes ;; 7517 no) enable_static=no ;; 7518 *) 7519 enable_static=no 7520 # Look at the argument we got. We use all the common list separators. 7521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7522 for pkg in $enableval; do 7523 IFS="$lt_save_ifs" 7524 if test "X$pkg" = "X$p"; then 7525 enable_static=yes 7526 fi 7527 done 7528 IFS="$lt_save_ifs" 7529 ;; 7530 esac 7531else 7532 enable_static=yes 7533fi 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544# Check whether --with-pic was given. 7545if test "${with_pic+set}" = set; then : 7546 withval=$with_pic; lt_p=${PACKAGE-default} 7547 case $withval in 7548 yes|no) pic_mode=$withval ;; 7549 *) 7550 pic_mode=default 7551 # Look at the argument we got. We use all the common list separators. 7552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7553 for lt_pkg in $withval; do 7554 IFS="$lt_save_ifs" 7555 if test "X$lt_pkg" = "X$lt_p"; then 7556 pic_mode=yes 7557 fi 7558 done 7559 IFS="$lt_save_ifs" 7560 ;; 7561 esac 7562else 7563 pic_mode=default 7564fi 7565 7566 7567test -z "$pic_mode" && pic_mode=default 7568 7569 7570 7571 7572 7573 7574 7575 # Check whether --enable-fast-install was given. 7576if test "${enable_fast_install+set}" = set; then : 7577 enableval=$enable_fast_install; p=${PACKAGE-default} 7578 case $enableval in 7579 yes) enable_fast_install=yes ;; 7580 no) enable_fast_install=no ;; 7581 *) 7582 enable_fast_install=no 7583 # Look at the argument we got. We use all the common list separators. 7584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7585 for pkg in $enableval; do 7586 IFS="$lt_save_ifs" 7587 if test "X$pkg" = "X$p"; then 7588 enable_fast_install=yes 7589 fi 7590 done 7591 IFS="$lt_save_ifs" 7592 ;; 7593 esac 7594else 7595 enable_fast_install=yes 7596fi 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608# This can be used to rebuild libtool when needed 7609LIBTOOL_DEPS="$ltmain" 7610 7611# Always use our own libtool. 7612LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643test -z "$LN_S" && LN_S="ln -s" 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658if test -n "${ZSH_VERSION+set}" ; then 7659 setopt NO_GLOB_SUBST 7660fi 7661 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7663$as_echo_n "checking for objdir... " >&6; } 7664if ${lt_cv_objdir+:} false; then : 7665 $as_echo_n "(cached) " >&6 7666else 7667 rm -f .libs 2>/dev/null 7668mkdir .libs 2>/dev/null 7669if test -d .libs; then 7670 lt_cv_objdir=.libs 7671else 7672 # MS-DOS does not allow filenames that begin with a dot. 7673 lt_cv_objdir=_libs 7674fi 7675rmdir .libs 2>/dev/null 7676fi 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7678$as_echo "$lt_cv_objdir" >&6; } 7679objdir=$lt_cv_objdir 7680 7681 7682 7683 7684 7685cat >>confdefs.h <<_ACEOF 7686#define LT_OBJDIR "$lt_cv_objdir/" 7687_ACEOF 7688 7689 7690 7691 7692case $host_os in 7693aix3*) 7694 # AIX sometimes has problems with the GCC collect2 program. For some 7695 # reason, if we set the COLLECT_NAMES environment variable, the problems 7696 # vanish in a puff of smoke. 7697 if test "X${COLLECT_NAMES+set}" != Xset; then 7698 COLLECT_NAMES= 7699 export COLLECT_NAMES 7700 fi 7701 ;; 7702esac 7703 7704# Global variables: 7705ofile=libtool 7706can_build_shared=yes 7707 7708# All known linkers require a `.a' archive for static linking (except MSVC, 7709# which needs '.lib'). 7710libext=a 7711 7712with_gnu_ld="$lt_cv_prog_gnu_ld" 7713 7714old_CC="$CC" 7715old_CFLAGS="$CFLAGS" 7716 7717# Set sane defaults for various variables 7718test -z "$CC" && CC=cc 7719test -z "$LTCC" && LTCC=$CC 7720test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7721test -z "$LD" && LD=ld 7722test -z "$ac_objext" && ac_objext=o 7723 7724for cc_temp in $compiler""; do 7725 case $cc_temp in 7726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7728 \-*) ;; 7729 *) break;; 7730 esac 7731done 7732cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7733 7734 7735# Only perform the check for file, if the check method requires it 7736test -z "$MAGIC_CMD" && MAGIC_CMD=file 7737case $deplibs_check_method in 7738file_magic*) 7739 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7741$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7742if ${lt_cv_path_MAGIC_CMD+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 case $MAGIC_CMD in 7746[\\/*] | ?:[\\/]*) 7747 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7748 ;; 7749*) 7750 lt_save_MAGIC_CMD="$MAGIC_CMD" 7751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7752 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7753 for ac_dir in $ac_dummy; do 7754 IFS="$lt_save_ifs" 7755 test -z "$ac_dir" && ac_dir=. 7756 if test -f $ac_dir/${ac_tool_prefix}file; then 7757 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7758 if test -n "$file_magic_test_file"; then 7759 case $deplibs_check_method in 7760 "file_magic "*) 7761 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7764 $EGREP "$file_magic_regex" > /dev/null; then 7765 : 7766 else 7767 cat <<_LT_EOF 1>&2 7768 7769*** Warning: the command libtool uses to detect shared libraries, 7770*** $file_magic_cmd, produces output that libtool cannot recognize. 7771*** The result is that libtool may fail to recognize shared libraries 7772*** as such. This will affect the creation of libtool libraries that 7773*** depend on shared libraries, but programs linked with such libtool 7774*** libraries will work regardless of this problem. Nevertheless, you 7775*** may want to report the problem to your system manager and/or to 7776*** bug-libtool@gnu.org 7777 7778_LT_EOF 7779 fi ;; 7780 esac 7781 fi 7782 break 7783 fi 7784 done 7785 IFS="$lt_save_ifs" 7786 MAGIC_CMD="$lt_save_MAGIC_CMD" 7787 ;; 7788esac 7789fi 7790 7791MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7792if test -n "$MAGIC_CMD"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7794$as_echo "$MAGIC_CMD" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799 7800 7801 7802 7803 7804if test -z "$lt_cv_path_MAGIC_CMD"; then 7805 if test -n "$ac_tool_prefix"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7807$as_echo_n "checking for file... " >&6; } 7808if ${lt_cv_path_MAGIC_CMD+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 case $MAGIC_CMD in 7812[\\/*] | ?:[\\/]*) 7813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7814 ;; 7815*) 7816 lt_save_MAGIC_CMD="$MAGIC_CMD" 7817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7818 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7819 for ac_dir in $ac_dummy; do 7820 IFS="$lt_save_ifs" 7821 test -z "$ac_dir" && ac_dir=. 7822 if test -f $ac_dir/file; then 7823 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7824 if test -n "$file_magic_test_file"; then 7825 case $deplibs_check_method in 7826 "file_magic "*) 7827 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7830 $EGREP "$file_magic_regex" > /dev/null; then 7831 : 7832 else 7833 cat <<_LT_EOF 1>&2 7834 7835*** Warning: the command libtool uses to detect shared libraries, 7836*** $file_magic_cmd, produces output that libtool cannot recognize. 7837*** The result is that libtool may fail to recognize shared libraries 7838*** as such. This will affect the creation of libtool libraries that 7839*** depend on shared libraries, but programs linked with such libtool 7840*** libraries will work regardless of this problem. Nevertheless, you 7841*** may want to report the problem to your system manager and/or to 7842*** bug-libtool@gnu.org 7843 7844_LT_EOF 7845 fi ;; 7846 esac 7847 fi 7848 break 7849 fi 7850 done 7851 IFS="$lt_save_ifs" 7852 MAGIC_CMD="$lt_save_MAGIC_CMD" 7853 ;; 7854esac 7855fi 7856 7857MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7858if test -n "$MAGIC_CMD"; then 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7860$as_echo "$MAGIC_CMD" >&6; } 7861else 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7863$as_echo "no" >&6; } 7864fi 7865 7866 7867 else 7868 MAGIC_CMD=: 7869 fi 7870fi 7871 7872 fi 7873 ;; 7874esac 7875 7876# Use C for the default configuration in the libtool script 7877 7878lt_save_CC="$CC" 7879ac_ext=c 7880ac_cpp='$CPP $CPPFLAGS' 7881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7883ac_compiler_gnu=$ac_cv_c_compiler_gnu 7884 7885 7886# Source file extension for C test sources. 7887ac_ext=c 7888 7889# Object file extension for compiled C test sources. 7890objext=o 7891objext=$objext 7892 7893# Code to be used in simple compile tests 7894lt_simple_compile_test_code="int some_variable = 0;" 7895 7896# Code to be used in simple link tests 7897lt_simple_link_test_code='int main(){return(0);}' 7898 7899 7900 7901 7902 7903 7904 7905# If no C compiler was specified, use CC. 7906LTCC=${LTCC-"$CC"} 7907 7908# If no C compiler flags were specified, use CFLAGS. 7909LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7910 7911# Allow CC to be a program name with arguments. 7912compiler=$CC 7913 7914# Save the default compiler, since it gets overwritten when the other 7915# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7916compiler_DEFAULT=$CC 7917 7918# save warnings/boilerplate of simple test code 7919ac_outfile=conftest.$ac_objext 7920echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7921eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7922_lt_compiler_boilerplate=`cat conftest.err` 7923$RM conftest* 7924 7925ac_outfile=conftest.$ac_objext 7926echo "$lt_simple_link_test_code" >conftest.$ac_ext 7927eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7928_lt_linker_boilerplate=`cat conftest.err` 7929$RM -r conftest* 7930 7931 7932if test -n "$compiler"; then 7933 7934lt_prog_compiler_no_builtin_flag= 7935 7936if test "$GCC" = yes; then 7937 case $cc_basename in 7938 nvcc*) 7939 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7940 *) 7941 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7942 esac 7943 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7945$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7946if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 lt_cv_prog_compiler_rtti_exceptions=no 7950 ac_outfile=conftest.$ac_objext 7951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7952 lt_compiler_flag="-fno-rtti -fno-exceptions" 7953 # Insert the option either (1) after the last *FLAGS variable, or 7954 # (2) before a word containing "conftest.", or (3) at the end. 7955 # Note that $ac_compile itself does not contain backslashes and begins 7956 # with a dollar sign (not a hyphen), so the echo should work correctly. 7957 # The option is referenced via a variable to avoid confusing sed. 7958 lt_compile=`echo "$ac_compile" | $SED \ 7959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7961 -e 's:$: $lt_compiler_flag:'` 7962 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7963 (eval "$lt_compile" 2>conftest.err) 7964 ac_status=$? 7965 cat conftest.err >&5 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 if (exit $ac_status) && test -s "$ac_outfile"; then 7968 # The compiler can only warn and ignore the option if not recognized 7969 # So say no if there are warnings other than the usual output. 7970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7973 lt_cv_prog_compiler_rtti_exceptions=yes 7974 fi 7975 fi 7976 $RM conftest* 7977 7978fi 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7980$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7981 7982if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7983 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7984else 7985 : 7986fi 7987 7988fi 7989 7990 7991 7992 7993 7994 7995 lt_prog_compiler_wl= 7996lt_prog_compiler_pic= 7997lt_prog_compiler_static= 7998 7999 8000 if test "$GCC" = yes; then 8001 lt_prog_compiler_wl='-Wl,' 8002 lt_prog_compiler_static='-static' 8003 8004 case $host_os in 8005 aix*) 8006 # All AIX code is PIC. 8007 if test "$host_cpu" = ia64; then 8008 # AIX 5 now supports IA64 processor 8009 lt_prog_compiler_static='-Bstatic' 8010 fi 8011 ;; 8012 8013 amigaos*) 8014 case $host_cpu in 8015 powerpc) 8016 # see comment about AmigaOS4 .so support 8017 lt_prog_compiler_pic='-fPIC' 8018 ;; 8019 m68k) 8020 # FIXME: we need at least 68020 code to build shared libraries, but 8021 # adding the `-m68020' flag to GCC prevents building anything better, 8022 # like `-m68040'. 8023 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8024 ;; 8025 esac 8026 ;; 8027 8028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8029 # PIC is the default for these OSes. 8030 ;; 8031 8032 mingw* | cygwin* | pw32* | os2* | cegcc*) 8033 # This hack is so that the source file can tell whether it is being 8034 # built for inclusion in a dll (and should export symbols for example). 8035 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8036 # (--disable-auto-import) libraries 8037 lt_prog_compiler_pic='-DDLL_EXPORT' 8038 ;; 8039 8040 darwin* | rhapsody*) 8041 # PIC is the default on this platform 8042 # Common symbols not allowed in MH_DYLIB files 8043 lt_prog_compiler_pic='-fno-common' 8044 ;; 8045 8046 haiku*) 8047 # PIC is the default for Haiku. 8048 # The "-static" flag exists, but is broken. 8049 lt_prog_compiler_static= 8050 ;; 8051 8052 hpux*) 8053 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8054 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8055 # sets the default TLS model and affects inlining. 8056 case $host_cpu in 8057 hppa*64*) 8058 # +Z the default 8059 ;; 8060 *) 8061 lt_prog_compiler_pic='-fPIC' 8062 ;; 8063 esac 8064 ;; 8065 8066 interix[3-9]*) 8067 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8068 # Instead, we relocate shared libraries at runtime. 8069 ;; 8070 8071 msdosdjgpp*) 8072 # Just because we use GCC doesn't mean we suddenly get shared libraries 8073 # on systems that don't support them. 8074 lt_prog_compiler_can_build_shared=no 8075 enable_shared=no 8076 ;; 8077 8078 *nto* | *qnx*) 8079 # QNX uses GNU C++, but need to define -shared option too, otherwise 8080 # it will coredump. 8081 lt_prog_compiler_pic='-fPIC -shared' 8082 ;; 8083 8084 sysv4*MP*) 8085 if test -d /usr/nec; then 8086 lt_prog_compiler_pic=-Kconform_pic 8087 fi 8088 ;; 8089 8090 *) 8091 lt_prog_compiler_pic='-fPIC' 8092 ;; 8093 esac 8094 8095 case $cc_basename in 8096 nvcc*) # Cuda Compiler Driver 2.2 8097 lt_prog_compiler_wl='-Xlinker ' 8098 if test -n "$lt_prog_compiler_pic"; then 8099 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8100 fi 8101 ;; 8102 esac 8103 else 8104 # PORTME Check for flag to pass linker flags through the system compiler. 8105 case $host_os in 8106 aix*) 8107 lt_prog_compiler_wl='-Wl,' 8108 if test "$host_cpu" = ia64; then 8109 # AIX 5 now supports IA64 processor 8110 lt_prog_compiler_static='-Bstatic' 8111 else 8112 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8113 fi 8114 ;; 8115 8116 mingw* | cygwin* | pw32* | os2* | cegcc*) 8117 # This hack is so that the source file can tell whether it is being 8118 # built for inclusion in a dll (and should export symbols for example). 8119 lt_prog_compiler_pic='-DDLL_EXPORT' 8120 ;; 8121 8122 hpux9* | hpux10* | hpux11*) 8123 lt_prog_compiler_wl='-Wl,' 8124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8125 # not for PA HP-UX. 8126 case $host_cpu in 8127 hppa*64*|ia64*) 8128 # +Z the default 8129 ;; 8130 *) 8131 lt_prog_compiler_pic='+Z' 8132 ;; 8133 esac 8134 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8135 lt_prog_compiler_static='${wl}-a ${wl}archive' 8136 ;; 8137 8138 irix5* | irix6* | nonstopux*) 8139 lt_prog_compiler_wl='-Wl,' 8140 # PIC (with -KPIC) is the default. 8141 lt_prog_compiler_static='-non_shared' 8142 ;; 8143 8144 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8145 case $cc_basename in 8146 # old Intel for x86_64 which still supported -KPIC. 8147 ecc*) 8148 lt_prog_compiler_wl='-Wl,' 8149 lt_prog_compiler_pic='-KPIC' 8150 lt_prog_compiler_static='-static' 8151 ;; 8152 # icc used to be incompatible with GCC. 8153 # ICC 10 doesn't accept -KPIC any more. 8154 icc* | ifort*) 8155 lt_prog_compiler_wl='-Wl,' 8156 lt_prog_compiler_pic='-fPIC' 8157 lt_prog_compiler_static='-static' 8158 ;; 8159 # Lahey Fortran 8.1. 8160 lf95*) 8161 lt_prog_compiler_wl='-Wl,' 8162 lt_prog_compiler_pic='--shared' 8163 lt_prog_compiler_static='--static' 8164 ;; 8165 nagfor*) 8166 # NAG Fortran compiler 8167 lt_prog_compiler_wl='-Wl,-Wl,,' 8168 lt_prog_compiler_pic='-PIC' 8169 lt_prog_compiler_static='-Bstatic' 8170 ;; 8171 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8172 # Portland Group compilers (*not* the Pentium gcc compiler, 8173 # which looks to be a dead project) 8174 lt_prog_compiler_wl='-Wl,' 8175 lt_prog_compiler_pic='-fpic' 8176 lt_prog_compiler_static='-Bstatic' 8177 ;; 8178 ccc*) 8179 lt_prog_compiler_wl='-Wl,' 8180 # All Alpha code is PIC. 8181 lt_prog_compiler_static='-non_shared' 8182 ;; 8183 xl* | bgxl* | bgf* | mpixl*) 8184 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8185 lt_prog_compiler_wl='-Wl,' 8186 lt_prog_compiler_pic='-qpic' 8187 lt_prog_compiler_static='-qstaticlink' 8188 ;; 8189 *) 8190 case `$CC -V 2>&1 | sed 5q` in 8191 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8192 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8193 lt_prog_compiler_pic='-KPIC' 8194 lt_prog_compiler_static='-Bstatic' 8195 lt_prog_compiler_wl='' 8196 ;; 8197 *Sun\ F* | *Sun*Fortran*) 8198 lt_prog_compiler_pic='-KPIC' 8199 lt_prog_compiler_static='-Bstatic' 8200 lt_prog_compiler_wl='-Qoption ld ' 8201 ;; 8202 *Sun\ C*) 8203 # Sun C 5.9 8204 lt_prog_compiler_pic='-KPIC' 8205 lt_prog_compiler_static='-Bstatic' 8206 lt_prog_compiler_wl='-Wl,' 8207 ;; 8208 *Intel*\ [CF]*Compiler*) 8209 lt_prog_compiler_wl='-Wl,' 8210 lt_prog_compiler_pic='-fPIC' 8211 lt_prog_compiler_static='-static' 8212 ;; 8213 *Portland\ Group*) 8214 lt_prog_compiler_wl='-Wl,' 8215 lt_prog_compiler_pic='-fpic' 8216 lt_prog_compiler_static='-Bstatic' 8217 ;; 8218 esac 8219 ;; 8220 esac 8221 ;; 8222 8223 newsos6) 8224 lt_prog_compiler_pic='-KPIC' 8225 lt_prog_compiler_static='-Bstatic' 8226 ;; 8227 8228 *nto* | *qnx*) 8229 # QNX uses GNU C++, but need to define -shared option too, otherwise 8230 # it will coredump. 8231 lt_prog_compiler_pic='-fPIC -shared' 8232 ;; 8233 8234 osf3* | osf4* | osf5*) 8235 lt_prog_compiler_wl='-Wl,' 8236 # All OSF/1 code is PIC. 8237 lt_prog_compiler_static='-non_shared' 8238 ;; 8239 8240 rdos*) 8241 lt_prog_compiler_static='-non_shared' 8242 ;; 8243 8244 solaris*) 8245 lt_prog_compiler_pic='-KPIC' 8246 lt_prog_compiler_static='-Bstatic' 8247 case $cc_basename in 8248 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8249 lt_prog_compiler_wl='-Qoption ld ';; 8250 *) 8251 lt_prog_compiler_wl='-Wl,';; 8252 esac 8253 ;; 8254 8255 sunos4*) 8256 lt_prog_compiler_wl='-Qoption ld ' 8257 lt_prog_compiler_pic='-PIC' 8258 lt_prog_compiler_static='-Bstatic' 8259 ;; 8260 8261 sysv4 | sysv4.2uw2* | sysv4.3*) 8262 lt_prog_compiler_wl='-Wl,' 8263 lt_prog_compiler_pic='-KPIC' 8264 lt_prog_compiler_static='-Bstatic' 8265 ;; 8266 8267 sysv4*MP*) 8268 if test -d /usr/nec ;then 8269 lt_prog_compiler_pic='-Kconform_pic' 8270 lt_prog_compiler_static='-Bstatic' 8271 fi 8272 ;; 8273 8274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8275 lt_prog_compiler_wl='-Wl,' 8276 lt_prog_compiler_pic='-KPIC' 8277 lt_prog_compiler_static='-Bstatic' 8278 ;; 8279 8280 unicos*) 8281 lt_prog_compiler_wl='-Wl,' 8282 lt_prog_compiler_can_build_shared=no 8283 ;; 8284 8285 uts4*) 8286 lt_prog_compiler_pic='-pic' 8287 lt_prog_compiler_static='-Bstatic' 8288 ;; 8289 8290 *) 8291 lt_prog_compiler_can_build_shared=no 8292 ;; 8293 esac 8294 fi 8295 8296case $host_os in 8297 # For platforms which do not support PIC, -DPIC is meaningless: 8298 *djgpp*) 8299 lt_prog_compiler_pic= 8300 ;; 8301 *) 8302 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8303 ;; 8304esac 8305 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8307$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8308if ${lt_cv_prog_compiler_pic+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8312fi 8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8314$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8315lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8316 8317# 8318# Check to make sure the PIC flag actually works. 8319# 8320if test -n "$lt_prog_compiler_pic"; then 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8322$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8323if ${lt_cv_prog_compiler_pic_works+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 lt_cv_prog_compiler_pic_works=no 8327 ac_outfile=conftest.$ac_objext 8328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8329 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8330 # Insert the option either (1) after the last *FLAGS variable, or 8331 # (2) before a word containing "conftest.", or (3) at the end. 8332 # Note that $ac_compile itself does not contain backslashes and begins 8333 # with a dollar sign (not a hyphen), so the echo should work correctly. 8334 # The option is referenced via a variable to avoid confusing sed. 8335 lt_compile=`echo "$ac_compile" | $SED \ 8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8338 -e 's:$: $lt_compiler_flag:'` 8339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8340 (eval "$lt_compile" 2>conftest.err) 8341 ac_status=$? 8342 cat conftest.err >&5 8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8344 if (exit $ac_status) && test -s "$ac_outfile"; then 8345 # The compiler can only warn and ignore the option if not recognized 8346 # So say no if there are warnings other than the usual output. 8347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8350 lt_cv_prog_compiler_pic_works=yes 8351 fi 8352 fi 8353 $RM conftest* 8354 8355fi 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8357$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8358 8359if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8360 case $lt_prog_compiler_pic in 8361 "" | " "*) ;; 8362 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8363 esac 8364else 8365 lt_prog_compiler_pic= 8366 lt_prog_compiler_can_build_shared=no 8367fi 8368 8369fi 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381# 8382# Check to make sure the static flag actually works. 8383# 8384wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8386$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8387if ${lt_cv_prog_compiler_static_works+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 lt_cv_prog_compiler_static_works=no 8391 save_LDFLAGS="$LDFLAGS" 8392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8393 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8395 # The linker can only warn and ignore the option if not recognized 8396 # So say no if there are warnings 8397 if test -s conftest.err; then 8398 # Append any errors to the config.log. 8399 cat conftest.err 1>&5 8400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8402 if diff conftest.exp conftest.er2 >/dev/null; then 8403 lt_cv_prog_compiler_static_works=yes 8404 fi 8405 else 8406 lt_cv_prog_compiler_static_works=yes 8407 fi 8408 fi 8409 $RM -r conftest* 8410 LDFLAGS="$save_LDFLAGS" 8411 8412fi 8413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8414$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8415 8416if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8417 : 8418else 8419 lt_prog_compiler_static= 8420fi 8421 8422 8423 8424 8425 8426 8427 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8429$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8430if ${lt_cv_prog_compiler_c_o+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 lt_cv_prog_compiler_c_o=no 8434 $RM -r conftest 2>/dev/null 8435 mkdir conftest 8436 cd conftest 8437 mkdir out 8438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8439 8440 lt_compiler_flag="-o out/conftest2.$ac_objext" 8441 # Insert the option either (1) after the last *FLAGS variable, or 8442 # (2) before a word containing "conftest.", or (3) at the end. 8443 # Note that $ac_compile itself does not contain backslashes and begins 8444 # with a dollar sign (not a hyphen), so the echo should work correctly. 8445 lt_compile=`echo "$ac_compile" | $SED \ 8446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8448 -e 's:$: $lt_compiler_flag:'` 8449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8450 (eval "$lt_compile" 2>out/conftest.err) 8451 ac_status=$? 8452 cat out/conftest.err >&5 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8455 then 8456 # The compiler can only warn and ignore the option if not recognized 8457 # So say no if there are warnings 8458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8461 lt_cv_prog_compiler_c_o=yes 8462 fi 8463 fi 8464 chmod u+w . 2>&5 8465 $RM conftest* 8466 # SGI C++ compiler will create directory out/ii_files/ for 8467 # template instantiation 8468 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8469 $RM out/* && rmdir out 8470 cd .. 8471 $RM -r conftest 8472 $RM conftest* 8473 8474fi 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8476$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8477 8478 8479 8480 8481 8482 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8484$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8485if ${lt_cv_prog_compiler_c_o+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 lt_cv_prog_compiler_c_o=no 8489 $RM -r conftest 2>/dev/null 8490 mkdir conftest 8491 cd conftest 8492 mkdir out 8493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8494 8495 lt_compiler_flag="-o out/conftest2.$ac_objext" 8496 # Insert the option either (1) after the last *FLAGS variable, or 8497 # (2) before a word containing "conftest.", or (3) at the end. 8498 # Note that $ac_compile itself does not contain backslashes and begins 8499 # with a dollar sign (not a hyphen), so the echo should work correctly. 8500 lt_compile=`echo "$ac_compile" | $SED \ 8501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8503 -e 's:$: $lt_compiler_flag:'` 8504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8505 (eval "$lt_compile" 2>out/conftest.err) 8506 ac_status=$? 8507 cat out/conftest.err >&5 8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8510 then 8511 # The compiler can only warn and ignore the option if not recognized 8512 # So say no if there are warnings 8513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8516 lt_cv_prog_compiler_c_o=yes 8517 fi 8518 fi 8519 chmod u+w . 2>&5 8520 $RM conftest* 8521 # SGI C++ compiler will create directory out/ii_files/ for 8522 # template instantiation 8523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8524 $RM out/* && rmdir out 8525 cd .. 8526 $RM -r conftest 8527 $RM conftest* 8528 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8531$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8532 8533 8534 8535 8536hard_links="nottested" 8537if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8538 # do not overwrite the value of need_locks provided by the user 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8540$as_echo_n "checking if we can lock with hard links... " >&6; } 8541 hard_links=yes 8542 $RM conftest* 8543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8544 touch conftest.a 8545 ln conftest.a conftest.b 2>&5 || hard_links=no 8546 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8548$as_echo "$hard_links" >&6; } 8549 if test "$hard_links" = no; then 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8551$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8552 need_locks=warn 8553 fi 8554else 8555 need_locks=no 8556fi 8557 8558 8559 8560 8561 8562 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8564$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8565 8566 runpath_var= 8567 allow_undefined_flag= 8568 always_export_symbols=no 8569 archive_cmds= 8570 archive_expsym_cmds= 8571 compiler_needs_object=no 8572 enable_shared_with_static_runtimes=no 8573 export_dynamic_flag_spec= 8574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8575 hardcode_automatic=no 8576 hardcode_direct=no 8577 hardcode_direct_absolute=no 8578 hardcode_libdir_flag_spec= 8579 hardcode_libdir_separator= 8580 hardcode_minus_L=no 8581 hardcode_shlibpath_var=unsupported 8582 inherit_rpath=no 8583 link_all_deplibs=unknown 8584 module_cmds= 8585 module_expsym_cmds= 8586 old_archive_from_new_cmds= 8587 old_archive_from_expsyms_cmds= 8588 thread_safe_flag_spec= 8589 whole_archive_flag_spec= 8590 # include_expsyms should be a list of space-separated symbols to be *always* 8591 # included in the symbol list 8592 include_expsyms= 8593 # exclude_expsyms can be an extended regexp of symbols to exclude 8594 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8595 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8596 # as well as any symbol that contains `d'. 8597 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8599 # platforms (ab)use it in PIC code, but their linkers get confused if 8600 # the symbol is explicitly referenced. Since portable code cannot 8601 # rely on this symbol name, it's probably fine to never include it in 8602 # preloaded symbol tables. 8603 # Exclude shared library initialization/finalization symbols. 8604 extract_expsyms_cmds= 8605 8606 case $host_os in 8607 cygwin* | mingw* | pw32* | cegcc*) 8608 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8609 # When not using gcc, we currently assume that we are using 8610 # Microsoft Visual C++. 8611 if test "$GCC" != yes; then 8612 with_gnu_ld=no 8613 fi 8614 ;; 8615 interix*) 8616 # we just hope/assume this is gcc and not c89 (= MSVC++) 8617 with_gnu_ld=yes 8618 ;; 8619 openbsd*) 8620 with_gnu_ld=no 8621 ;; 8622 linux* | k*bsd*-gnu | gnu*) 8623 link_all_deplibs=no 8624 ;; 8625 esac 8626 8627 ld_shlibs=yes 8628 8629 # On some targets, GNU ld is compatible enough with the native linker 8630 # that we're better off using the native interface for both. 8631 lt_use_gnu_ld_interface=no 8632 if test "$with_gnu_ld" = yes; then 8633 case $host_os in 8634 aix*) 8635 # The AIX port of GNU ld has always aspired to compatibility 8636 # with the native linker. However, as the warning in the GNU ld 8637 # block says, versions before 2.19.5* couldn't really create working 8638 # shared libraries, regardless of the interface used. 8639 case `$LD -v 2>&1` in 8640 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8641 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8642 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8643 *) 8644 lt_use_gnu_ld_interface=yes 8645 ;; 8646 esac 8647 ;; 8648 *) 8649 lt_use_gnu_ld_interface=yes 8650 ;; 8651 esac 8652 fi 8653 8654 if test "$lt_use_gnu_ld_interface" = yes; then 8655 # If archive_cmds runs LD, not CC, wlarc should be empty 8656 wlarc='${wl}' 8657 8658 # Set some defaults for GNU ld with shared library support. These 8659 # are reset later if shared libraries are not supported. Putting them 8660 # here allows them to be overridden if necessary. 8661 runpath_var=LD_RUN_PATH 8662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8663 export_dynamic_flag_spec='${wl}--export-dynamic' 8664 # ancient GNU ld didn't support --whole-archive et. al. 8665 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8666 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8667 else 8668 whole_archive_flag_spec= 8669 fi 8670 supports_anon_versioning=no 8671 case `$LD -v 2>&1` in 8672 *GNU\ gold*) supports_anon_versioning=yes ;; 8673 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8674 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8675 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8676 *\ 2.11.*) ;; # other 2.11 versions 8677 *) supports_anon_versioning=yes ;; 8678 esac 8679 8680 # See if GNU ld supports shared libraries. 8681 case $host_os in 8682 aix[3-9]*) 8683 # On AIX/PPC, the GNU linker is very broken 8684 if test "$host_cpu" != ia64; then 8685 ld_shlibs=no 8686 cat <<_LT_EOF 1>&2 8687 8688*** Warning: the GNU linker, at least up to release 2.19, is reported 8689*** to be unable to reliably create shared libraries on AIX. 8690*** Therefore, libtool is disabling shared libraries support. If you 8691*** really care for shared libraries, you may want to install binutils 8692*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8693*** You will then need to restart the configuration process. 8694 8695_LT_EOF 8696 fi 8697 ;; 8698 8699 amigaos*) 8700 case $host_cpu in 8701 powerpc) 8702 # see comment about AmigaOS4 .so support 8703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8704 archive_expsym_cmds='' 8705 ;; 8706 m68k) 8707 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)' 8708 hardcode_libdir_flag_spec='-L$libdir' 8709 hardcode_minus_L=yes 8710 ;; 8711 esac 8712 ;; 8713 8714 beos*) 8715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8716 allow_undefined_flag=unsupported 8717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8718 # support --undefined. This deserves some investigation. FIXME 8719 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8720 else 8721 ld_shlibs=no 8722 fi 8723 ;; 8724 8725 cygwin* | mingw* | pw32* | cegcc*) 8726 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8727 # as there is no search path for DLLs. 8728 hardcode_libdir_flag_spec='-L$libdir' 8729 export_dynamic_flag_spec='${wl}--export-all-symbols' 8730 allow_undefined_flag=unsupported 8731 always_export_symbols=no 8732 enable_shared_with_static_runtimes=yes 8733 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' 8734 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8735 8736 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8738 # If the export-symbols file already is a .def file (1st line 8739 # is EXPORTS), use it as is; otherwise, prepend... 8740 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8741 cp $export_symbols $output_objdir/$soname.def; 8742 else 8743 echo EXPORTS > $output_objdir/$soname.def; 8744 cat $export_symbols >> $output_objdir/$soname.def; 8745 fi~ 8746 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8747 else 8748 ld_shlibs=no 8749 fi 8750 ;; 8751 8752 haiku*) 8753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8754 link_all_deplibs=yes 8755 ;; 8756 8757 interix[3-9]*) 8758 hardcode_direct=no 8759 hardcode_shlibpath_var=no 8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8761 export_dynamic_flag_spec='${wl}-E' 8762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8763 # Instead, shared libraries are loaded at an image base (0x10000000 by 8764 # default) and relocated if they conflict, which is a slow very memory 8765 # consuming and fragmenting process. To avoid this, we pick a random, 8766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8767 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8769 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' 8770 ;; 8771 8772 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8773 tmp_diet=no 8774 if test "$host_os" = linux-dietlibc; then 8775 case $cc_basename in 8776 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8777 esac 8778 fi 8779 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8780 && test "$tmp_diet" = no 8781 then 8782 tmp_addflag=' $pic_flag' 8783 tmp_sharedflag='-shared' 8784 case $cc_basename,$host_cpu in 8785 pgcc*) # Portland Group C compiler 8786 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' 8787 tmp_addflag=' $pic_flag' 8788 ;; 8789 pgf77* | pgf90* | pgf95* | pgfortran*) 8790 # Portland Group f77 and f90 compilers 8791 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' 8792 tmp_addflag=' $pic_flag -Mnomain' ;; 8793 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8794 tmp_addflag=' -i_dynamic' ;; 8795 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8796 tmp_addflag=' -i_dynamic -nofor_main' ;; 8797 ifc* | ifort*) # Intel Fortran compiler 8798 tmp_addflag=' -nofor_main' ;; 8799 lf95*) # Lahey Fortran 8.1 8800 whole_archive_flag_spec= 8801 tmp_sharedflag='--shared' ;; 8802 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8803 tmp_sharedflag='-qmkshrobj' 8804 tmp_addflag= ;; 8805 nvcc*) # Cuda Compiler Driver 2.2 8806 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' 8807 compiler_needs_object=yes 8808 ;; 8809 esac 8810 case `$CC -V 2>&1 | sed 5q` in 8811 *Sun\ C*) # Sun C 5.9 8812 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' 8813 compiler_needs_object=yes 8814 tmp_sharedflag='-G' ;; 8815 *Sun\ F*) # Sun Fortran 8.3 8816 tmp_sharedflag='-G' ;; 8817 esac 8818 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8819 8820 if test "x$supports_anon_versioning" = xyes; then 8821 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8823 echo "local: *; };" >> $output_objdir/$libname.ver~ 8824 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8825 fi 8826 8827 case $cc_basename in 8828 xlf* | bgf* | bgxlf* | mpixlf*) 8829 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8830 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8832 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8833 if test "x$supports_anon_versioning" = xyes; then 8834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8836 echo "local: *; };" >> $output_objdir/$libname.ver~ 8837 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8838 fi 8839 ;; 8840 esac 8841 else 8842 ld_shlibs=no 8843 fi 8844 ;; 8845 8846 netbsd* | netbsdelf*-gnu) 8847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8848 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8849 wlarc= 8850 else 8851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8852 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8853 fi 8854 ;; 8855 8856 solaris*) 8857 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8858 ld_shlibs=no 8859 cat <<_LT_EOF 1>&2 8860 8861*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8862*** create shared libraries on Solaris systems. Therefore, libtool 8863*** is disabling shared libraries support. We urge you to upgrade GNU 8864*** binutils to release 2.9.1 or newer. Another option is to modify 8865*** your PATH or compiler configuration so that the native linker is 8866*** used, and then restart. 8867 8868_LT_EOF 8869 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8870 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8871 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8872 else 8873 ld_shlibs=no 8874 fi 8875 ;; 8876 8877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8878 case `$LD -v 2>&1` in 8879 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8880 ld_shlibs=no 8881 cat <<_LT_EOF 1>&2 8882 8883*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8884*** reliably create shared libraries on SCO systems. Therefore, libtool 8885*** is disabling shared libraries support. We urge you to upgrade GNU 8886*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8887*** your PATH or compiler configuration so that the native linker is 8888*** used, and then restart. 8889 8890_LT_EOF 8891 ;; 8892 *) 8893 # For security reasons, it is highly recommended that you always 8894 # use absolute paths for naming shared libraries, and exclude the 8895 # DT_RUNPATH tag from executables and libraries. But doing so 8896 # requires that you compile everything twice, which is a pain. 8897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8901 else 8902 ld_shlibs=no 8903 fi 8904 ;; 8905 esac 8906 ;; 8907 8908 sunos4*) 8909 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8910 wlarc= 8911 hardcode_direct=yes 8912 hardcode_shlibpath_var=no 8913 ;; 8914 8915 *) 8916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8919 else 8920 ld_shlibs=no 8921 fi 8922 ;; 8923 esac 8924 8925 if test "$ld_shlibs" = no; then 8926 runpath_var= 8927 hardcode_libdir_flag_spec= 8928 export_dynamic_flag_spec= 8929 whole_archive_flag_spec= 8930 fi 8931 else 8932 # PORTME fill in a description of your system's linker (not GNU ld) 8933 case $host_os in 8934 aix3*) 8935 allow_undefined_flag=unsupported 8936 always_export_symbols=yes 8937 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' 8938 # Note: this linker hardcodes the directories in LIBPATH if there 8939 # are no directories specified by -L. 8940 hardcode_minus_L=yes 8941 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8942 # Neither direct hardcoding nor static linking is supported with a 8943 # broken collect2. 8944 hardcode_direct=unsupported 8945 fi 8946 ;; 8947 8948 aix[4-9]*) 8949 if test "$host_cpu" = ia64; then 8950 # On IA64, the linker does run time linking by default, so we don't 8951 # have to do anything special. 8952 aix_use_runtimelinking=no 8953 exp_sym_flag='-Bexport' 8954 no_entry_flag="" 8955 else 8956 # If we're using GNU nm, then we don't want the "-C" option. 8957 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8958 # Also, AIX nm treats weak defined symbols like other global 8959 # defined symbols, whereas GNU nm marks them as "W". 8960 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8961 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' 8962 else 8963 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' 8964 fi 8965 aix_use_runtimelinking=no 8966 8967 # Test if we are trying to use run time linking or normal 8968 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8969 # need to do runtime linking. 8970 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8971 for ld_flag in $LDFLAGS; do 8972 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8973 aix_use_runtimelinking=yes 8974 break 8975 fi 8976 done 8977 ;; 8978 esac 8979 8980 exp_sym_flag='-bexport' 8981 no_entry_flag='-bnoentry' 8982 fi 8983 8984 # When large executables or shared objects are built, AIX ld can 8985 # have problems creating the table of contents. If linking a library 8986 # or program results in "error TOC overflow" add -mminimal-toc to 8987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8989 8990 archive_cmds='' 8991 hardcode_direct=yes 8992 hardcode_direct_absolute=yes 8993 hardcode_libdir_separator=':' 8994 link_all_deplibs=yes 8995 file_list_spec='${wl}-f,' 8996 8997 if test "$GCC" = yes; then 8998 case $host_os in aix4.[012]|aix4.[012].*) 8999 # We only want to do this on AIX 4.2 and lower, the check 9000 # below for broken collect2 doesn't work under 4.3+ 9001 collect2name=`${CC} -print-prog-name=collect2` 9002 if test -f "$collect2name" && 9003 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9004 then 9005 # We have reworked collect2 9006 : 9007 else 9008 # We have old collect2 9009 hardcode_direct=unsupported 9010 # It fails to find uninstalled libraries when the uninstalled 9011 # path is not listed in the libpath. Setting hardcode_minus_L 9012 # to unsupported forces relinking 9013 hardcode_minus_L=yes 9014 hardcode_libdir_flag_spec='-L$libdir' 9015 hardcode_libdir_separator= 9016 fi 9017 ;; 9018 esac 9019 shared_flag='-shared' 9020 if test "$aix_use_runtimelinking" = yes; then 9021 shared_flag="$shared_flag "'${wl}-G' 9022 fi 9023 link_all_deplibs=no 9024 else 9025 # not using gcc 9026 if test "$host_cpu" = ia64; then 9027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9028 # chokes on -Wl,-G. The following line is correct: 9029 shared_flag='-G' 9030 else 9031 if test "$aix_use_runtimelinking" = yes; then 9032 shared_flag='${wl}-G' 9033 else 9034 shared_flag='${wl}-bM:SRE' 9035 fi 9036 fi 9037 fi 9038 9039 export_dynamic_flag_spec='${wl}-bexpall' 9040 # It seems that -bexpall does not export symbols beginning with 9041 # underscore (_), so it is better to generate a list of symbols to export. 9042 always_export_symbols=yes 9043 if test "$aix_use_runtimelinking" = yes; then 9044 # Warning - without using the other runtime loading flags (-brtl), 9045 # -berok will link without error, but may produce a broken library. 9046 allow_undefined_flag='-berok' 9047 # Determine the default libpath from the value encoded in an 9048 # empty executable. 9049 if test "${lt_cv_aix_libpath+set}" = set; then 9050 aix_libpath=$lt_cv_aix_libpath 9051else 9052 if ${lt_cv_aix_libpath_+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9056/* end confdefs.h. */ 9057 9058int 9059main () 9060{ 9061 9062 ; 9063 return 0; 9064} 9065_ACEOF 9066if ac_fn_c_try_link "$LINENO"; then : 9067 9068 lt_aix_libpath_sed=' 9069 /Import File Strings/,/^$/ { 9070 /^0/ { 9071 s/^0 *\([^ ]*\) *$/\1/ 9072 p 9073 } 9074 }' 9075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9076 # Check for a 64-bit object if we didn't find anything. 9077 if test -z "$lt_cv_aix_libpath_"; then 9078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9079 fi 9080fi 9081rm -f core conftest.err conftest.$ac_objext \ 9082 conftest$ac_exeext conftest.$ac_ext 9083 if test -z "$lt_cv_aix_libpath_"; then 9084 lt_cv_aix_libpath_="/usr/lib:/lib" 9085 fi 9086 9087fi 9088 9089 aix_libpath=$lt_cv_aix_libpath_ 9090fi 9091 9092 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9093 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" 9094 else 9095 if test "$host_cpu" = ia64; then 9096 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9097 allow_undefined_flag="-z nodefs" 9098 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" 9099 else 9100 # Determine the default libpath from the value encoded in an 9101 # empty executable. 9102 if test "${lt_cv_aix_libpath+set}" = set; then 9103 aix_libpath=$lt_cv_aix_libpath 9104else 9105 if ${lt_cv_aix_libpath_+:} false; then : 9106 $as_echo_n "(cached) " >&6 9107else 9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9109/* end confdefs.h. */ 9110 9111int 9112main () 9113{ 9114 9115 ; 9116 return 0; 9117} 9118_ACEOF 9119if ac_fn_c_try_link "$LINENO"; then : 9120 9121 lt_aix_libpath_sed=' 9122 /Import File Strings/,/^$/ { 9123 /^0/ { 9124 s/^0 *\([^ ]*\) *$/\1/ 9125 p 9126 } 9127 }' 9128 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9129 # Check for a 64-bit object if we didn't find anything. 9130 if test -z "$lt_cv_aix_libpath_"; then 9131 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9132 fi 9133fi 9134rm -f core conftest.err conftest.$ac_objext \ 9135 conftest$ac_exeext conftest.$ac_ext 9136 if test -z "$lt_cv_aix_libpath_"; then 9137 lt_cv_aix_libpath_="/usr/lib:/lib" 9138 fi 9139 9140fi 9141 9142 aix_libpath=$lt_cv_aix_libpath_ 9143fi 9144 9145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9146 # Warning - without using the other run time loading flags, 9147 # -berok will link without error, but may produce a broken library. 9148 no_undefined_flag=' ${wl}-bernotok' 9149 allow_undefined_flag=' ${wl}-berok' 9150 if test "$with_gnu_ld" = yes; then 9151 # We only use this code for GNU lds that support --whole-archive. 9152 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9153 else 9154 # Exported symbols can be pulled into shared objects from archives 9155 whole_archive_flag_spec='$convenience' 9156 fi 9157 archive_cmds_need_lc=yes 9158 # This is similar to how AIX traditionally builds its shared libraries. 9159 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' 9160 fi 9161 fi 9162 ;; 9163 9164 amigaos*) 9165 case $host_cpu in 9166 powerpc) 9167 # see comment about AmigaOS4 .so support 9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9169 archive_expsym_cmds='' 9170 ;; 9171 m68k) 9172 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)' 9173 hardcode_libdir_flag_spec='-L$libdir' 9174 hardcode_minus_L=yes 9175 ;; 9176 esac 9177 ;; 9178 9179 bsdi[45]*) 9180 export_dynamic_flag_spec=-rdynamic 9181 ;; 9182 9183 cygwin* | mingw* | pw32* | cegcc*) 9184 # When not using gcc, we currently assume that we are using 9185 # Microsoft Visual C++. 9186 # hardcode_libdir_flag_spec is actually meaningless, as there is 9187 # no search path for DLLs. 9188 case $cc_basename in 9189 cl*) 9190 # Native MSVC 9191 hardcode_libdir_flag_spec=' ' 9192 allow_undefined_flag=unsupported 9193 always_export_symbols=yes 9194 file_list_spec='@' 9195 # Tell ltmain to make .lib files, not .a files. 9196 libext=lib 9197 # Tell ltmain to make .dll files, not .so files. 9198 shrext_cmds=".dll" 9199 # FIXME: Setting linknames here is a bad hack. 9200 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9201 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9202 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9203 else 9204 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9205 fi~ 9206 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9207 linknames=' 9208 # The linker will not automatically build a static lib if we build a DLL. 9209 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9210 enable_shared_with_static_runtimes=yes 9211 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9213 # Don't use ranlib 9214 old_postinstall_cmds='chmod 644 $oldlib' 9215 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9216 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9217 case $lt_outputfile in 9218 *.exe|*.EXE) ;; 9219 *) 9220 lt_outputfile="$lt_outputfile.exe" 9221 lt_tool_outputfile="$lt_tool_outputfile.exe" 9222 ;; 9223 esac~ 9224 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9225 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9226 $RM "$lt_outputfile.manifest"; 9227 fi' 9228 ;; 9229 *) 9230 # Assume MSVC wrapper 9231 hardcode_libdir_flag_spec=' ' 9232 allow_undefined_flag=unsupported 9233 # Tell ltmain to make .lib files, not .a files. 9234 libext=lib 9235 # Tell ltmain to make .dll files, not .so files. 9236 shrext_cmds=".dll" 9237 # FIXME: Setting linknames here is a bad hack. 9238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9239 # The linker will automatically build a .lib file if we build a DLL. 9240 old_archive_from_new_cmds='true' 9241 # FIXME: Should let the user specify the lib program. 9242 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9243 enable_shared_with_static_runtimes=yes 9244 ;; 9245 esac 9246 ;; 9247 9248 darwin* | rhapsody*) 9249 9250 9251 archive_cmds_need_lc=no 9252 hardcode_direct=no 9253 hardcode_automatic=yes 9254 hardcode_shlibpath_var=unsupported 9255 if test "$lt_cv_ld_force_load" = "yes"; then 9256 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\"`' 9257 9258 else 9259 whole_archive_flag_spec='' 9260 fi 9261 link_all_deplibs=yes 9262 allow_undefined_flag="$_lt_dar_allow_undefined" 9263 case $cc_basename in 9264 ifort*) _lt_dar_can_shared=yes ;; 9265 *) _lt_dar_can_shared=$GCC ;; 9266 esac 9267 if test "$_lt_dar_can_shared" = "yes"; then 9268 output_verbose_link_cmd=func_echo_all 9269 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9270 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9271 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}" 9272 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}" 9273 9274 else 9275 ld_shlibs=no 9276 fi 9277 9278 ;; 9279 9280 dgux*) 9281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9282 hardcode_libdir_flag_spec='-L$libdir' 9283 hardcode_shlibpath_var=no 9284 ;; 9285 9286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9287 # support. Future versions do this automatically, but an explicit c++rt0.o 9288 # does not break anything, and helps significantly (at the cost of a little 9289 # extra space). 9290 freebsd2.2*) 9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9292 hardcode_libdir_flag_spec='-R$libdir' 9293 hardcode_direct=yes 9294 hardcode_shlibpath_var=no 9295 ;; 9296 9297 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9298 freebsd2.*) 9299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9300 hardcode_direct=yes 9301 hardcode_minus_L=yes 9302 hardcode_shlibpath_var=no 9303 ;; 9304 9305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9306 freebsd* | dragonfly*) 9307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9308 hardcode_libdir_flag_spec='-R$libdir' 9309 hardcode_direct=yes 9310 hardcode_shlibpath_var=no 9311 ;; 9312 9313 hpux9*) 9314 if test "$GCC" = yes; then 9315 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' 9316 else 9317 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' 9318 fi 9319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9320 hardcode_libdir_separator=: 9321 hardcode_direct=yes 9322 9323 # hardcode_minus_L: Not really in the search PATH, 9324 # but as the default location of the library. 9325 hardcode_minus_L=yes 9326 export_dynamic_flag_spec='${wl}-E' 9327 ;; 9328 9329 hpux10*) 9330 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9332 else 9333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9334 fi 9335 if test "$with_gnu_ld" = no; then 9336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9337 hardcode_libdir_separator=: 9338 hardcode_direct=yes 9339 hardcode_direct_absolute=yes 9340 export_dynamic_flag_spec='${wl}-E' 9341 # hardcode_minus_L: Not really in the search PATH, 9342 # but as the default location of the library. 9343 hardcode_minus_L=yes 9344 fi 9345 ;; 9346 9347 hpux11*) 9348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9349 case $host_cpu in 9350 hppa*64*) 9351 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9352 ;; 9353 ia64*) 9354 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9355 ;; 9356 *) 9357 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9358 ;; 9359 esac 9360 else 9361 case $host_cpu in 9362 hppa*64*) 9363 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9364 ;; 9365 ia64*) 9366 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9367 ;; 9368 *) 9369 9370 # Older versions of the 11.00 compiler do not understand -b yet 9371 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9373$as_echo_n "checking if $CC understands -b... " >&6; } 9374if ${lt_cv_prog_compiler__b+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376else 9377 lt_cv_prog_compiler__b=no 9378 save_LDFLAGS="$LDFLAGS" 9379 LDFLAGS="$LDFLAGS -b" 9380 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9382 # The linker can only warn and ignore the option if not recognized 9383 # So say no if there are warnings 9384 if test -s conftest.err; then 9385 # Append any errors to the config.log. 9386 cat conftest.err 1>&5 9387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9389 if diff conftest.exp conftest.er2 >/dev/null; then 9390 lt_cv_prog_compiler__b=yes 9391 fi 9392 else 9393 lt_cv_prog_compiler__b=yes 9394 fi 9395 fi 9396 $RM -r conftest* 9397 LDFLAGS="$save_LDFLAGS" 9398 9399fi 9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9401$as_echo "$lt_cv_prog_compiler__b" >&6; } 9402 9403if test x"$lt_cv_prog_compiler__b" = xyes; then 9404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9405else 9406 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9407fi 9408 9409 ;; 9410 esac 9411 fi 9412 if test "$with_gnu_ld" = no; then 9413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9414 hardcode_libdir_separator=: 9415 9416 case $host_cpu in 9417 hppa*64*|ia64*) 9418 hardcode_direct=no 9419 hardcode_shlibpath_var=no 9420 ;; 9421 *) 9422 hardcode_direct=yes 9423 hardcode_direct_absolute=yes 9424 export_dynamic_flag_spec='${wl}-E' 9425 9426 # hardcode_minus_L: Not really in the search PATH, 9427 # but as the default location of the library. 9428 hardcode_minus_L=yes 9429 ;; 9430 esac 9431 fi 9432 ;; 9433 9434 irix5* | irix6* | nonstopux*) 9435 if test "$GCC" = yes; then 9436 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' 9437 # Try to use the -exported_symbol ld option, if it does not 9438 # work, assume that -exports_file does not work either and 9439 # implicitly export all symbols. 9440 # This should be the same for all languages, so no per-tag cache variable. 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9442$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9443if ${lt_cv_irix_exported_symbol+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 save_LDFLAGS="$LDFLAGS" 9447 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449/* end confdefs.h. */ 9450int foo (void) { return 0; } 9451_ACEOF 9452if ac_fn_c_try_link "$LINENO"; then : 9453 lt_cv_irix_exported_symbol=yes 9454else 9455 lt_cv_irix_exported_symbol=no 9456fi 9457rm -f core conftest.err conftest.$ac_objext \ 9458 conftest$ac_exeext conftest.$ac_ext 9459 LDFLAGS="$save_LDFLAGS" 9460fi 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9462$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9463 if test "$lt_cv_irix_exported_symbol" = yes; then 9464 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' 9465 fi 9466 else 9467 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' 9468 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' 9469 fi 9470 archive_cmds_need_lc='no' 9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9472 hardcode_libdir_separator=: 9473 inherit_rpath=yes 9474 link_all_deplibs=yes 9475 ;; 9476 9477 netbsd* | netbsdelf*-gnu) 9478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9480 else 9481 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9482 fi 9483 hardcode_libdir_flag_spec='-R$libdir' 9484 hardcode_direct=yes 9485 hardcode_shlibpath_var=no 9486 ;; 9487 9488 newsos6) 9489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9490 hardcode_direct=yes 9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9492 hardcode_libdir_separator=: 9493 hardcode_shlibpath_var=no 9494 ;; 9495 9496 *nto* | *qnx*) 9497 ;; 9498 9499 openbsd*) 9500 if test -f /usr/libexec/ld.so; then 9501 hardcode_direct=yes 9502 hardcode_shlibpath_var=no 9503 hardcode_direct_absolute=yes 9504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9506 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9508 export_dynamic_flag_spec='${wl}-E' 9509 else 9510 case $host_os in 9511 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9513 hardcode_libdir_flag_spec='-R$libdir' 9514 ;; 9515 *) 9516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9518 ;; 9519 esac 9520 fi 9521 else 9522 ld_shlibs=no 9523 fi 9524 ;; 9525 9526 os2*) 9527 hardcode_libdir_flag_spec='-L$libdir' 9528 hardcode_minus_L=yes 9529 allow_undefined_flag=unsupported 9530 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' 9531 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9532 ;; 9533 9534 osf3*) 9535 if test "$GCC" = yes; then 9536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9537 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' 9538 else 9539 allow_undefined_flag=' -expect_unresolved \*' 9540 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' 9541 fi 9542 archive_cmds_need_lc='no' 9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9544 hardcode_libdir_separator=: 9545 ;; 9546 9547 osf4* | osf5*) # as osf3* with the addition of -msym flag 9548 if test "$GCC" = yes; then 9549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9550 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' 9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9552 else 9553 allow_undefined_flag=' -expect_unresolved \*' 9554 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' 9555 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~ 9556 $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' 9557 9558 # Both c and cxx compiler support -rpath directly 9559 hardcode_libdir_flag_spec='-rpath $libdir' 9560 fi 9561 archive_cmds_need_lc='no' 9562 hardcode_libdir_separator=: 9563 ;; 9564 9565 solaris*) 9566 no_undefined_flag=' -z defs' 9567 if test "$GCC" = yes; then 9568 wlarc='${wl}' 9569 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9571 $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' 9572 else 9573 case `$CC -V 2>&1` in 9574 *"Compilers 5.0"*) 9575 wlarc='' 9576 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9578 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9579 ;; 9580 *) 9581 wlarc='${wl}' 9582 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9584 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9585 ;; 9586 esac 9587 fi 9588 hardcode_libdir_flag_spec='-R$libdir' 9589 hardcode_shlibpath_var=no 9590 case $host_os in 9591 solaris2.[0-5] | solaris2.[0-5].*) ;; 9592 *) 9593 # The compiler driver will combine and reorder linker options, 9594 # but understands `-z linker_flag'. GCC discards it without `$wl', 9595 # but is careful enough not to reorder. 9596 # Supported since Solaris 2.6 (maybe 2.5.1?) 9597 if test "$GCC" = yes; then 9598 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9599 else 9600 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9601 fi 9602 ;; 9603 esac 9604 link_all_deplibs=yes 9605 ;; 9606 9607 sunos4*) 9608 if test "x$host_vendor" = xsequent; then 9609 # Use $CC to link under sequent, because it throws in some extra .o 9610 # files that make .init and .fini sections work. 9611 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9612 else 9613 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9614 fi 9615 hardcode_libdir_flag_spec='-L$libdir' 9616 hardcode_direct=yes 9617 hardcode_minus_L=yes 9618 hardcode_shlibpath_var=no 9619 ;; 9620 9621 sysv4) 9622 case $host_vendor in 9623 sni) 9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9625 hardcode_direct=yes # is this really true??? 9626 ;; 9627 siemens) 9628 ## LD is ld it makes a PLAMLIB 9629 ## CC just makes a GrossModule. 9630 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9631 reload_cmds='$CC -r -o $output$reload_objs' 9632 hardcode_direct=no 9633 ;; 9634 motorola) 9635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9636 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9637 ;; 9638 esac 9639 runpath_var='LD_RUN_PATH' 9640 hardcode_shlibpath_var=no 9641 ;; 9642 9643 sysv4.3*) 9644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9645 hardcode_shlibpath_var=no 9646 export_dynamic_flag_spec='-Bexport' 9647 ;; 9648 9649 sysv4*MP*) 9650 if test -d /usr/nec; then 9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9652 hardcode_shlibpath_var=no 9653 runpath_var=LD_RUN_PATH 9654 hardcode_runpath_var=yes 9655 ld_shlibs=yes 9656 fi 9657 ;; 9658 9659 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9660 no_undefined_flag='${wl}-z,text' 9661 archive_cmds_need_lc=no 9662 hardcode_shlibpath_var=no 9663 runpath_var='LD_RUN_PATH' 9664 9665 if test "$GCC" = yes; then 9666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9668 else 9669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9671 fi 9672 ;; 9673 9674 sysv5* | sco3.2v5* | sco5v6*) 9675 # Note: We can NOT use -z defs as we might desire, because we do not 9676 # link with -lc, and that would cause any symbols used from libc to 9677 # always be unresolved, which means just about no library would 9678 # ever link correctly. If we're not using GNU ld we use -z text 9679 # though, which does catch some bad symbols but isn't as heavy-handed 9680 # as -z defs. 9681 no_undefined_flag='${wl}-z,text' 9682 allow_undefined_flag='${wl}-z,nodefs' 9683 archive_cmds_need_lc=no 9684 hardcode_shlibpath_var=no 9685 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9686 hardcode_libdir_separator=':' 9687 link_all_deplibs=yes 9688 export_dynamic_flag_spec='${wl}-Bexport' 9689 runpath_var='LD_RUN_PATH' 9690 9691 if test "$GCC" = yes; then 9692 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9694 else 9695 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9697 fi 9698 ;; 9699 9700 uts4*) 9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9702 hardcode_libdir_flag_spec='-L$libdir' 9703 hardcode_shlibpath_var=no 9704 ;; 9705 9706 *) 9707 ld_shlibs=no 9708 ;; 9709 esac 9710 9711 if test x$host_vendor = xsni; then 9712 case $host in 9713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9714 export_dynamic_flag_spec='${wl}-Blargedynsym' 9715 ;; 9716 esac 9717 fi 9718 fi 9719 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9721$as_echo "$ld_shlibs" >&6; } 9722test "$ld_shlibs" = no && can_build_shared=no 9723 9724with_gnu_ld=$with_gnu_ld 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740# 9741# Do we need to explicitly link libc? 9742# 9743case "x$archive_cmds_need_lc" in 9744x|xyes) 9745 # Assume -lc should be added 9746 archive_cmds_need_lc=yes 9747 9748 if test "$enable_shared" = yes && test "$GCC" = yes; then 9749 case $archive_cmds in 9750 *'~'*) 9751 # FIXME: we may have to deal with multi-command sequences. 9752 ;; 9753 '$CC '*) 9754 # Test whether the compiler implicitly links with -lc since on some 9755 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9756 # to ld, don't add -lc before -lgcc. 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9758$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9759if ${lt_cv_archive_cmds_need_lc+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 $RM conftest* 9763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9764 9765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9766 (eval $ac_compile) 2>&5 9767 ac_status=$? 9768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9769 test $ac_status = 0; } 2>conftest.err; then 9770 soname=conftest 9771 lib=conftest 9772 libobjs=conftest.$ac_objext 9773 deplibs= 9774 wl=$lt_prog_compiler_wl 9775 pic_flag=$lt_prog_compiler_pic 9776 compiler_flags=-v 9777 linker_flags=-v 9778 verstring= 9779 output_objdir=. 9780 libname=conftest 9781 lt_save_allow_undefined_flag=$allow_undefined_flag 9782 allow_undefined_flag= 9783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9784 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9785 ac_status=$? 9786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9787 test $ac_status = 0; } 9788 then 9789 lt_cv_archive_cmds_need_lc=no 9790 else 9791 lt_cv_archive_cmds_need_lc=yes 9792 fi 9793 allow_undefined_flag=$lt_save_allow_undefined_flag 9794 else 9795 cat conftest.err 1>&5 9796 fi 9797 $RM conftest* 9798 9799fi 9800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9801$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9802 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9803 ;; 9804 esac 9805 fi 9806 ;; 9807esac 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9961$as_echo_n "checking dynamic linker characteristics... " >&6; } 9962 9963if test "$GCC" = yes; then 9964 case $host_os in 9965 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9966 *) lt_awk_arg="/^libraries:/" ;; 9967 esac 9968 case $host_os in 9969 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9970 *) lt_sed_strip_eq="s,=/,/,g" ;; 9971 esac 9972 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9973 case $lt_search_path_spec in 9974 *\;*) 9975 # if the path contains ";" then we assume it to be the separator 9976 # otherwise default to the standard path separator (i.e. ":") - it is 9977 # assumed that no part of a normal pathname contains ";" but that should 9978 # okay in the real world where ";" in dirpaths is itself problematic. 9979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9980 ;; 9981 *) 9982 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9983 ;; 9984 esac 9985 # Ok, now we have the path, separated by spaces, we can step through it 9986 # and add multilib dir if necessary. 9987 lt_tmp_lt_search_path_spec= 9988 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9989 for lt_sys_path in $lt_search_path_spec; do 9990 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9992 else 9993 test -d "$lt_sys_path" && \ 9994 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9995 fi 9996 done 9997 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9998BEGIN {RS=" "; FS="/|\n";} { 9999 lt_foo=""; 10000 lt_count=0; 10001 for (lt_i = NF; lt_i > 0; lt_i--) { 10002 if ($lt_i != "" && $lt_i != ".") { 10003 if ($lt_i == "..") { 10004 lt_count++; 10005 } else { 10006 if (lt_count == 0) { 10007 lt_foo="/" $lt_i lt_foo; 10008 } else { 10009 lt_count--; 10010 } 10011 } 10012 } 10013 } 10014 if (lt_foo != "") { lt_freq[lt_foo]++; } 10015 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10016}'` 10017 # AWK program above erroneously prepends '/' to C:/dos/paths 10018 # for these hosts. 10019 case $host_os in 10020 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10021 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10022 esac 10023 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10024else 10025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10026fi 10027library_names_spec= 10028libname_spec='lib$name' 10029soname_spec= 10030shrext_cmds=".so" 10031postinstall_cmds= 10032postuninstall_cmds= 10033finish_cmds= 10034finish_eval= 10035shlibpath_var= 10036shlibpath_overrides_runpath=unknown 10037version_type=none 10038dynamic_linker="$host_os ld.so" 10039sys_lib_dlsearch_path_spec="/lib /usr/lib" 10040need_lib_prefix=unknown 10041hardcode_into_libs=no 10042 10043# when you set need_version to no, make sure it does not cause -set_version 10044# flags to be left without arguments 10045need_version=unknown 10046 10047case $host_os in 10048aix3*) 10049 version_type=linux # correct to gnu/linux during the next big refactor 10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10051 shlibpath_var=LIBPATH 10052 10053 # AIX 3 has no versioning support, so we append a major version to the name. 10054 soname_spec='${libname}${release}${shared_ext}$major' 10055 ;; 10056 10057aix[4-9]*) 10058 version_type=linux # correct to gnu/linux during the next big refactor 10059 need_lib_prefix=no 10060 need_version=no 10061 hardcode_into_libs=yes 10062 if test "$host_cpu" = ia64; then 10063 # AIX 5 supports IA64 10064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10065 shlibpath_var=LD_LIBRARY_PATH 10066 else 10067 # With GCC up to 2.95.x, collect2 would create an import file 10068 # for dependence libraries. The import file would start with 10069 # the line `#! .'. This would cause the generated library to 10070 # depend on `.', always an invalid library. This was fixed in 10071 # development snapshots of GCC prior to 3.0. 10072 case $host_os in 10073 aix4 | aix4.[01] | aix4.[01].*) 10074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10075 echo ' yes ' 10076 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10077 : 10078 else 10079 can_build_shared=no 10080 fi 10081 ;; 10082 esac 10083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10084 # soname into executable. Probably we can add versioning support to 10085 # collect2, so additional links can be useful in future. 10086 if test "$aix_use_runtimelinking" = yes; then 10087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10088 # instead of lib<name>.a to let people know that these are not 10089 # typical AIX shared libraries. 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 else 10092 # We preserve .a as extension for shared libraries through AIX4.2 10093 # and later when we are not doing run time linking. 10094 library_names_spec='${libname}${release}.a $libname.a' 10095 soname_spec='${libname}${release}${shared_ext}$major' 10096 fi 10097 shlibpath_var=LIBPATH 10098 fi 10099 ;; 10100 10101amigaos*) 10102 case $host_cpu in 10103 powerpc) 10104 # Since July 2007 AmigaOS4 officially supports .so libraries. 10105 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10107 ;; 10108 m68k) 10109 library_names_spec='$libname.ixlibrary $libname.a' 10110 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10111 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' 10112 ;; 10113 esac 10114 ;; 10115 10116beos*) 10117 library_names_spec='${libname}${shared_ext}' 10118 dynamic_linker="$host_os ld.so" 10119 shlibpath_var=LIBRARY_PATH 10120 ;; 10121 10122bsdi[45]*) 10123 version_type=linux # correct to gnu/linux during the next big refactor 10124 need_version=no 10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10126 soname_spec='${libname}${release}${shared_ext}$major' 10127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10128 shlibpath_var=LD_LIBRARY_PATH 10129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10130 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10131 # the default ld.so.conf also contains /usr/contrib/lib and 10132 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10133 # libtool to hard-code these into programs 10134 ;; 10135 10136cygwin* | mingw* | pw32* | cegcc*) 10137 version_type=windows 10138 shrext_cmds=".dll" 10139 need_version=no 10140 need_lib_prefix=no 10141 10142 case $GCC,$cc_basename in 10143 yes,*) 10144 # gcc 10145 library_names_spec='$libname.dll.a' 10146 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10147 postinstall_cmds='base_file=`basename \${file}`~ 10148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10149 dldir=$destdir/`dirname \$dlpath`~ 10150 test -d \$dldir || mkdir -p \$dldir~ 10151 $install_prog $dir/$dlname \$dldir/$dlname~ 10152 chmod a+x \$dldir/$dlname~ 10153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10155 fi' 10156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10157 dlpath=$dir/\$dldll~ 10158 $RM \$dlpath' 10159 shlibpath_overrides_runpath=yes 10160 10161 case $host_os in 10162 cygwin*) 10163 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10165 10166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10167 ;; 10168 mingw* | cegcc*) 10169 # MinGW DLLs use traditional 'lib' prefix 10170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10171 ;; 10172 pw32*) 10173 # pw32 DLLs use 'pw' prefix rather than 'lib' 10174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10175 ;; 10176 esac 10177 dynamic_linker='Win32 ld.exe' 10178 ;; 10179 10180 *,cl*) 10181 # Native MSVC 10182 libname_spec='$name' 10183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10184 library_names_spec='${libname}.dll.lib' 10185 10186 case $build_os in 10187 mingw*) 10188 sys_lib_search_path_spec= 10189 lt_save_ifs=$IFS 10190 IFS=';' 10191 for lt_path in $LIB 10192 do 10193 IFS=$lt_save_ifs 10194 # Let DOS variable expansion print the short 8.3 style file name. 10195 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10196 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10197 done 10198 IFS=$lt_save_ifs 10199 # Convert to MSYS style. 10200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10201 ;; 10202 cygwin*) 10203 # Convert to unix form, then to dos form, then back to unix form 10204 # but this time dos style (no spaces!) so that the unix form looks 10205 # like /cygdrive/c/PROGRA~1:/cygdr... 10206 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10207 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10208 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10209 ;; 10210 *) 10211 sys_lib_search_path_spec="$LIB" 10212 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10213 # It is most probably a Windows format PATH. 10214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10215 else 10216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10217 fi 10218 # FIXME: find the short name or the path components, as spaces are 10219 # common. (e.g. "Program Files" -> "PROGRA~1") 10220 ;; 10221 esac 10222 10223 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10224 postinstall_cmds='base_file=`basename \${file}`~ 10225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10226 dldir=$destdir/`dirname \$dlpath`~ 10227 test -d \$dldir || mkdir -p \$dldir~ 10228 $install_prog $dir/$dlname \$dldir/$dlname' 10229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10230 dlpath=$dir/\$dldll~ 10231 $RM \$dlpath' 10232 shlibpath_overrides_runpath=yes 10233 dynamic_linker='Win32 link.exe' 10234 ;; 10235 10236 *) 10237 # Assume MSVC wrapper 10238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10239 dynamic_linker='Win32 ld.exe' 10240 ;; 10241 esac 10242 # FIXME: first we should search . and the directory the executable is in 10243 shlibpath_var=PATH 10244 ;; 10245 10246darwin* | rhapsody*) 10247 dynamic_linker="$host_os dyld" 10248 version_type=darwin 10249 need_lib_prefix=no 10250 need_version=no 10251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10252 soname_spec='${libname}${release}${major}$shared_ext' 10253 shlibpath_overrides_runpath=yes 10254 shlibpath_var=DYLD_LIBRARY_PATH 10255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10256 10257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10259 ;; 10260 10261dgux*) 10262 version_type=linux # correct to gnu/linux during the next big refactor 10263 need_lib_prefix=no 10264 need_version=no 10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10266 soname_spec='${libname}${release}${shared_ext}$major' 10267 shlibpath_var=LD_LIBRARY_PATH 10268 ;; 10269 10270freebsd* | dragonfly*) 10271 # DragonFly does not have aout. When/if they implement a new 10272 # versioning mechanism, adjust this. 10273 if test -x /usr/bin/objformat; then 10274 objformat=`/usr/bin/objformat` 10275 else 10276 case $host_os in 10277 freebsd[23].*) objformat=aout ;; 10278 *) objformat=elf ;; 10279 esac 10280 fi 10281 version_type=freebsd-$objformat 10282 case $version_type in 10283 freebsd-elf*) 10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10285 need_version=no 10286 need_lib_prefix=no 10287 ;; 10288 freebsd-*) 10289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10290 need_version=yes 10291 ;; 10292 esac 10293 shlibpath_var=LD_LIBRARY_PATH 10294 case $host_os in 10295 freebsd2.*) 10296 shlibpath_overrides_runpath=yes 10297 ;; 10298 freebsd3.[01]* | freebsdelf3.[01]*) 10299 shlibpath_overrides_runpath=yes 10300 hardcode_into_libs=yes 10301 ;; 10302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10304 shlibpath_overrides_runpath=no 10305 hardcode_into_libs=yes 10306 ;; 10307 *) # from 4.6 on, and DragonFly 10308 shlibpath_overrides_runpath=yes 10309 hardcode_into_libs=yes 10310 ;; 10311 esac 10312 ;; 10313 10314gnu*) 10315 version_type=linux # correct to gnu/linux during the next big refactor 10316 need_lib_prefix=no 10317 need_version=no 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10319 soname_spec='${libname}${release}${shared_ext}$major' 10320 shlibpath_var=LD_LIBRARY_PATH 10321 shlibpath_overrides_runpath=no 10322 hardcode_into_libs=yes 10323 ;; 10324 10325haiku*) 10326 version_type=linux # correct to gnu/linux during the next big refactor 10327 need_lib_prefix=no 10328 need_version=no 10329 dynamic_linker="$host_os runtime_loader" 10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10331 soname_spec='${libname}${release}${shared_ext}$major' 10332 shlibpath_var=LIBRARY_PATH 10333 shlibpath_overrides_runpath=yes 10334 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10335 hardcode_into_libs=yes 10336 ;; 10337 10338hpux9* | hpux10* | hpux11*) 10339 # Give a soname corresponding to the major version so that dld.sl refuses to 10340 # link against other versions. 10341 version_type=sunos 10342 need_lib_prefix=no 10343 need_version=no 10344 case $host_cpu in 10345 ia64*) 10346 shrext_cmds='.so' 10347 hardcode_into_libs=yes 10348 dynamic_linker="$host_os dld.so" 10349 shlibpath_var=LD_LIBRARY_PATH 10350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10352 soname_spec='${libname}${release}${shared_ext}$major' 10353 if test "X$HPUX_IA64_MODE" = X32; then 10354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10355 else 10356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10357 fi 10358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10359 ;; 10360 hppa*64*) 10361 shrext_cmds='.sl' 10362 hardcode_into_libs=yes 10363 dynamic_linker="$host_os dld.sl" 10364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10367 soname_spec='${libname}${release}${shared_ext}$major' 10368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10370 ;; 10371 *) 10372 shrext_cmds='.sl' 10373 dynamic_linker="$host_os dld.sl" 10374 shlibpath_var=SHLIB_PATH 10375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 ;; 10379 esac 10380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10381 postinstall_cmds='chmod 555 $lib' 10382 # or fails outright, so override atomically: 10383 install_override_mode=555 10384 ;; 10385 10386interix[3-9]*) 10387 version_type=linux # correct to gnu/linux during the next big refactor 10388 need_lib_prefix=no 10389 need_version=no 10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10391 soname_spec='${libname}${release}${shared_ext}$major' 10392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10393 shlibpath_var=LD_LIBRARY_PATH 10394 shlibpath_overrides_runpath=no 10395 hardcode_into_libs=yes 10396 ;; 10397 10398irix5* | irix6* | nonstopux*) 10399 case $host_os in 10400 nonstopux*) version_type=nonstopux ;; 10401 *) 10402 if test "$lt_cv_prog_gnu_ld" = yes; then 10403 version_type=linux # correct to gnu/linux during the next big refactor 10404 else 10405 version_type=irix 10406 fi ;; 10407 esac 10408 need_lib_prefix=no 10409 need_version=no 10410 soname_spec='${libname}${release}${shared_ext}$major' 10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10412 case $host_os in 10413 irix5* | nonstopux*) 10414 libsuff= shlibsuff= 10415 ;; 10416 *) 10417 case $LD in # libtool.m4 will add one of these switches to LD 10418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10419 libsuff= shlibsuff= libmagic=32-bit;; 10420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10421 libsuff=32 shlibsuff=N32 libmagic=N32;; 10422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10423 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10424 *) libsuff= shlibsuff= libmagic=never-match;; 10425 esac 10426 ;; 10427 esac 10428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10429 shlibpath_overrides_runpath=no 10430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10432 hardcode_into_libs=yes 10433 ;; 10434 10435# No shared lib support for Linux oldld, aout, or coff. 10436linux*oldld* | linux*aout* | linux*coff*) 10437 dynamic_linker=no 10438 ;; 10439 10440# This must be glibc/ELF. 10441linux* | k*bsd*-gnu | kopensolaris*-gnu) 10442 version_type=linux # correct to gnu/linux during the next big refactor 10443 need_lib_prefix=no 10444 need_version=no 10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10446 soname_spec='${libname}${release}${shared_ext}$major' 10447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10448 shlibpath_var=LD_LIBRARY_PATH 10449 shlibpath_overrides_runpath=no 10450 10451 # Some binutils ld are patched to set DT_RUNPATH 10452 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10453 $as_echo_n "(cached) " >&6 10454else 10455 lt_cv_shlibpath_overrides_runpath=no 10456 save_LDFLAGS=$LDFLAGS 10457 save_libdir=$libdir 10458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10461/* end confdefs.h. */ 10462 10463int 10464main () 10465{ 10466 10467 ; 10468 return 0; 10469} 10470_ACEOF 10471if ac_fn_c_try_link "$LINENO"; then : 10472 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10473 lt_cv_shlibpath_overrides_runpath=yes 10474fi 10475fi 10476rm -f core conftest.err conftest.$ac_objext \ 10477 conftest$ac_exeext conftest.$ac_ext 10478 LDFLAGS=$save_LDFLAGS 10479 libdir=$save_libdir 10480 10481fi 10482 10483 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10484 10485 # This implies no fast_install, which is unacceptable. 10486 # Some rework will be needed to allow for fast_install 10487 # before this can be enabled. 10488 hardcode_into_libs=yes 10489 10490 # Append ld.so.conf contents to the search path 10491 if test -f /etc/ld.so.conf; then 10492 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' ' '` 10493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10494 fi 10495 10496 # We used to test for /lib/ld.so.1 and disable shared libraries on 10497 # powerpc, because MkLinux only supported shared libraries with the 10498 # GNU dynamic linker. Since this was broken with cross compilers, 10499 # most powerpc-linux boxes support dynamic linking these days and 10500 # people can always --disable-shared, the test was removed, and we 10501 # assume the GNU/Linux dynamic linker is in use. 10502 dynamic_linker='GNU/Linux ld.so' 10503 ;; 10504 10505netbsdelf*-gnu) 10506 version_type=linux 10507 need_lib_prefix=no 10508 need_version=no 10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10510 soname_spec='${libname}${release}${shared_ext}$major' 10511 shlibpath_var=LD_LIBRARY_PATH 10512 shlibpath_overrides_runpath=no 10513 hardcode_into_libs=yes 10514 dynamic_linker='NetBSD ld.elf_so' 10515 ;; 10516 10517netbsd*) 10518 version_type=sunos 10519 need_lib_prefix=no 10520 need_version=no 10521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10524 dynamic_linker='NetBSD (a.out) ld.so' 10525 else 10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10527 soname_spec='${libname}${release}${shared_ext}$major' 10528 dynamic_linker='NetBSD ld.elf_so' 10529 fi 10530 shlibpath_var=LD_LIBRARY_PATH 10531 shlibpath_overrides_runpath=yes 10532 hardcode_into_libs=yes 10533 ;; 10534 10535newsos6) 10536 version_type=linux # correct to gnu/linux during the next big refactor 10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10538 shlibpath_var=LD_LIBRARY_PATH 10539 shlibpath_overrides_runpath=yes 10540 ;; 10541 10542*nto* | *qnx*) 10543 version_type=qnx 10544 need_lib_prefix=no 10545 need_version=no 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10547 soname_spec='${libname}${release}${shared_ext}$major' 10548 shlibpath_var=LD_LIBRARY_PATH 10549 shlibpath_overrides_runpath=no 10550 hardcode_into_libs=yes 10551 dynamic_linker='ldqnx.so' 10552 ;; 10553 10554openbsd*) 10555 version_type=sunos 10556 sys_lib_dlsearch_path_spec="/usr/lib" 10557 need_lib_prefix=no 10558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10559 case $host_os in 10560 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10561 *) need_version=no ;; 10562 esac 10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10565 shlibpath_var=LD_LIBRARY_PATH 10566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10567 case $host_os in 10568 openbsd2.[89] | openbsd2.[89].*) 10569 shlibpath_overrides_runpath=no 10570 ;; 10571 *) 10572 shlibpath_overrides_runpath=yes 10573 ;; 10574 esac 10575 else 10576 shlibpath_overrides_runpath=yes 10577 fi 10578 ;; 10579 10580os2*) 10581 libname_spec='$name' 10582 shrext_cmds=".dll" 10583 need_lib_prefix=no 10584 library_names_spec='$libname${shared_ext} $libname.a' 10585 dynamic_linker='OS/2 ld.exe' 10586 shlibpath_var=LIBPATH 10587 ;; 10588 10589osf3* | osf4* | osf5*) 10590 version_type=osf 10591 need_lib_prefix=no 10592 need_version=no 10593 soname_spec='${libname}${release}${shared_ext}$major' 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10595 shlibpath_var=LD_LIBRARY_PATH 10596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10598 ;; 10599 10600rdos*) 10601 dynamic_linker=no 10602 ;; 10603 10604solaris*) 10605 version_type=linux # correct to gnu/linux during the next big refactor 10606 need_lib_prefix=no 10607 need_version=no 10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10609 soname_spec='${libname}${release}${shared_ext}$major' 10610 shlibpath_var=LD_LIBRARY_PATH 10611 shlibpath_overrides_runpath=yes 10612 hardcode_into_libs=yes 10613 # ldd complains unless libraries are executable 10614 postinstall_cmds='chmod +x $lib' 10615 ;; 10616 10617sunos4*) 10618 version_type=sunos 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10621 shlibpath_var=LD_LIBRARY_PATH 10622 shlibpath_overrides_runpath=yes 10623 if test "$with_gnu_ld" = yes; then 10624 need_lib_prefix=no 10625 fi 10626 need_version=yes 10627 ;; 10628 10629sysv4 | sysv4.3*) 10630 version_type=linux # correct to gnu/linux during the next big refactor 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10632 soname_spec='${libname}${release}${shared_ext}$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 case $host_vendor in 10635 sni) 10636 shlibpath_overrides_runpath=no 10637 need_lib_prefix=no 10638 runpath_var=LD_RUN_PATH 10639 ;; 10640 siemens) 10641 need_lib_prefix=no 10642 ;; 10643 motorola) 10644 need_lib_prefix=no 10645 need_version=no 10646 shlibpath_overrides_runpath=no 10647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10648 ;; 10649 esac 10650 ;; 10651 10652sysv4*MP*) 10653 if test -d /usr/nec ;then 10654 version_type=linux # correct to gnu/linux during the next big refactor 10655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10656 soname_spec='$libname${shared_ext}.$major' 10657 shlibpath_var=LD_LIBRARY_PATH 10658 fi 10659 ;; 10660 10661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10662 version_type=freebsd-elf 10663 need_lib_prefix=no 10664 need_version=no 10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10666 soname_spec='${libname}${release}${shared_ext}$major' 10667 shlibpath_var=LD_LIBRARY_PATH 10668 shlibpath_overrides_runpath=yes 10669 hardcode_into_libs=yes 10670 if test "$with_gnu_ld" = yes; then 10671 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10672 else 10673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10674 case $host_os in 10675 sco3.2v5*) 10676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10677 ;; 10678 esac 10679 fi 10680 sys_lib_dlsearch_path_spec='/usr/lib' 10681 ;; 10682 10683tpf*) 10684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10685 version_type=linux # correct to gnu/linux during the next big refactor 10686 need_lib_prefix=no 10687 need_version=no 10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10689 shlibpath_var=LD_LIBRARY_PATH 10690 shlibpath_overrides_runpath=no 10691 hardcode_into_libs=yes 10692 ;; 10693 10694uts4*) 10695 version_type=linux # correct to gnu/linux during the next big refactor 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 soname_spec='${libname}${release}${shared_ext}$major' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 ;; 10700 10701*) 10702 dynamic_linker=no 10703 ;; 10704esac 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10706$as_echo "$dynamic_linker" >&6; } 10707test "$dynamic_linker" = no && can_build_shared=no 10708 10709variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10710if test "$GCC" = yes; then 10711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10712fi 10713 10714if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10715 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10716fi 10717if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10718 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10719fi 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10813$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10814hardcode_action= 10815if test -n "$hardcode_libdir_flag_spec" || 10816 test -n "$runpath_var" || 10817 test "X$hardcode_automatic" = "Xyes" ; then 10818 10819 # We can hardcode non-existent directories. 10820 if test "$hardcode_direct" != no && 10821 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10822 # have to relink, otherwise we might link with an installed library 10823 # when we should be linking with a yet-to-be-installed one 10824 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10825 test "$hardcode_minus_L" != no; then 10826 # Linking always hardcodes the temporary library directory. 10827 hardcode_action=relink 10828 else 10829 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10830 hardcode_action=immediate 10831 fi 10832else 10833 # We cannot hardcode anything, or else we can only hardcode existing 10834 # directories. 10835 hardcode_action=unsupported 10836fi 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10838$as_echo "$hardcode_action" >&6; } 10839 10840if test "$hardcode_action" = relink || 10841 test "$inherit_rpath" = yes; then 10842 # Fast installation is not supported 10843 enable_fast_install=no 10844elif test "$shlibpath_overrides_runpath" = yes || 10845 test "$enable_shared" = no; then 10846 # Fast installation is not necessary 10847 enable_fast_install=needless 10848fi 10849 10850 10851 10852 10853 10854 10855 if test "x$enable_dlopen" != xyes; then 10856 enable_dlopen=unknown 10857 enable_dlopen_self=unknown 10858 enable_dlopen_self_static=unknown 10859else 10860 lt_cv_dlopen=no 10861 lt_cv_dlopen_libs= 10862 10863 case $host_os in 10864 beos*) 10865 lt_cv_dlopen="load_add_on" 10866 lt_cv_dlopen_libs= 10867 lt_cv_dlopen_self=yes 10868 ;; 10869 10870 mingw* | pw32* | cegcc*) 10871 lt_cv_dlopen="LoadLibrary" 10872 lt_cv_dlopen_libs= 10873 ;; 10874 10875 cygwin*) 10876 lt_cv_dlopen="dlopen" 10877 lt_cv_dlopen_libs= 10878 ;; 10879 10880 darwin*) 10881 # if libdl is installed we need to link against it 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10883$as_echo_n "checking for dlopen in -ldl... " >&6; } 10884if ${ac_cv_lib_dl_dlopen+:} false; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 ac_check_lib_save_LIBS=$LIBS 10888LIBS="-ldl $LIBS" 10889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10890/* end confdefs.h. */ 10891 10892/* Override any GCC internal prototype to avoid an error. 10893 Use char because int might match the return type of a GCC 10894 builtin and then its argument prototype would still apply. */ 10895#ifdef __cplusplus 10896extern "C" 10897#endif 10898char dlopen (); 10899int 10900main () 10901{ 10902return dlopen (); 10903 ; 10904 return 0; 10905} 10906_ACEOF 10907if ac_fn_c_try_link "$LINENO"; then : 10908 ac_cv_lib_dl_dlopen=yes 10909else 10910 ac_cv_lib_dl_dlopen=no 10911fi 10912rm -f core conftest.err conftest.$ac_objext \ 10913 conftest$ac_exeext conftest.$ac_ext 10914LIBS=$ac_check_lib_save_LIBS 10915fi 10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10917$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10918if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10920else 10921 10922 lt_cv_dlopen="dyld" 10923 lt_cv_dlopen_libs= 10924 lt_cv_dlopen_self=yes 10925 10926fi 10927 10928 ;; 10929 10930 *) 10931 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10932if test "x$ac_cv_func_shl_load" = xyes; then : 10933 lt_cv_dlopen="shl_load" 10934else 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10936$as_echo_n "checking for shl_load in -ldld... " >&6; } 10937if ${ac_cv_lib_dld_shl_load+:} false; then : 10938 $as_echo_n "(cached) " >&6 10939else 10940 ac_check_lib_save_LIBS=$LIBS 10941LIBS="-ldld $LIBS" 10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943/* end confdefs.h. */ 10944 10945/* Override any GCC internal prototype to avoid an error. 10946 Use char because int might match the return type of a GCC 10947 builtin and then its argument prototype would still apply. */ 10948#ifdef __cplusplus 10949extern "C" 10950#endif 10951char shl_load (); 10952int 10953main () 10954{ 10955return shl_load (); 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960if ac_fn_c_try_link "$LINENO"; then : 10961 ac_cv_lib_dld_shl_load=yes 10962else 10963 ac_cv_lib_dld_shl_load=no 10964fi 10965rm -f core conftest.err conftest.$ac_objext \ 10966 conftest$ac_exeext conftest.$ac_ext 10967LIBS=$ac_check_lib_save_LIBS 10968fi 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10970$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10971if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10972 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10973else 10974 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10975if test "x$ac_cv_func_dlopen" = xyes; then : 10976 lt_cv_dlopen="dlopen" 10977else 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10979$as_echo_n "checking for dlopen in -ldl... " >&6; } 10980if ${ac_cv_lib_dl_dlopen+:} false; then : 10981 $as_echo_n "(cached) " >&6 10982else 10983 ac_check_lib_save_LIBS=$LIBS 10984LIBS="-ldl $LIBS" 10985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988/* Override any GCC internal prototype to avoid an error. 10989 Use char because int might match the return type of a GCC 10990 builtin and then its argument prototype would still apply. */ 10991#ifdef __cplusplus 10992extern "C" 10993#endif 10994char dlopen (); 10995int 10996main () 10997{ 10998return dlopen (); 10999 ; 11000 return 0; 11001} 11002_ACEOF 11003if ac_fn_c_try_link "$LINENO"; then : 11004 ac_cv_lib_dl_dlopen=yes 11005else 11006 ac_cv_lib_dl_dlopen=no 11007fi 11008rm -f core conftest.err conftest.$ac_objext \ 11009 conftest$ac_exeext conftest.$ac_ext 11010LIBS=$ac_check_lib_save_LIBS 11011fi 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11013$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11014if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11016else 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11018$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11019if ${ac_cv_lib_svld_dlopen+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 ac_check_lib_save_LIBS=$LIBS 11023LIBS="-lsvld $LIBS" 11024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026 11027/* Override any GCC internal prototype to avoid an error. 11028 Use char because int might match the return type of a GCC 11029 builtin and then its argument prototype would still apply. */ 11030#ifdef __cplusplus 11031extern "C" 11032#endif 11033char dlopen (); 11034int 11035main () 11036{ 11037return dlopen (); 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO"; then : 11043 ac_cv_lib_svld_dlopen=yes 11044else 11045 ac_cv_lib_svld_dlopen=no 11046fi 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049LIBS=$ac_check_lib_save_LIBS 11050fi 11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11052$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11053if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11055else 11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11057$as_echo_n "checking for dld_link in -ldld... " >&6; } 11058if ${ac_cv_lib_dld_dld_link+:} false; then : 11059 $as_echo_n "(cached) " >&6 11060else 11061 ac_check_lib_save_LIBS=$LIBS 11062LIBS="-ldld $LIBS" 11063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064/* end confdefs.h. */ 11065 11066/* Override any GCC internal prototype to avoid an error. 11067 Use char because int might match the return type of a GCC 11068 builtin and then its argument prototype would still apply. */ 11069#ifdef __cplusplus 11070extern "C" 11071#endif 11072char dld_link (); 11073int 11074main () 11075{ 11076return dld_link (); 11077 ; 11078 return 0; 11079} 11080_ACEOF 11081if ac_fn_c_try_link "$LINENO"; then : 11082 ac_cv_lib_dld_dld_link=yes 11083else 11084 ac_cv_lib_dld_dld_link=no 11085fi 11086rm -f core conftest.err conftest.$ac_objext \ 11087 conftest$ac_exeext conftest.$ac_ext 11088LIBS=$ac_check_lib_save_LIBS 11089fi 11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11091$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11092if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11093 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11094fi 11095 11096 11097fi 11098 11099 11100fi 11101 11102 11103fi 11104 11105 11106fi 11107 11108 11109fi 11110 11111 ;; 11112 esac 11113 11114 if test "x$lt_cv_dlopen" != xno; then 11115 enable_dlopen=yes 11116 else 11117 enable_dlopen=no 11118 fi 11119 11120 case $lt_cv_dlopen in 11121 dlopen) 11122 save_CPPFLAGS="$CPPFLAGS" 11123 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11124 11125 save_LDFLAGS="$LDFLAGS" 11126 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11127 11128 save_LIBS="$LIBS" 11129 LIBS="$lt_cv_dlopen_libs $LIBS" 11130 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11132$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11133if ${lt_cv_dlopen_self+:} false; then : 11134 $as_echo_n "(cached) " >&6 11135else 11136 if test "$cross_compiling" = yes; then : 11137 lt_cv_dlopen_self=cross 11138else 11139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11140 lt_status=$lt_dlunknown 11141 cat > conftest.$ac_ext <<_LT_EOF 11142#line $LINENO "configure" 11143#include "confdefs.h" 11144 11145#if HAVE_DLFCN_H 11146#include <dlfcn.h> 11147#endif 11148 11149#include <stdio.h> 11150 11151#ifdef RTLD_GLOBAL 11152# define LT_DLGLOBAL RTLD_GLOBAL 11153#else 11154# ifdef DL_GLOBAL 11155# define LT_DLGLOBAL DL_GLOBAL 11156# else 11157# define LT_DLGLOBAL 0 11158# endif 11159#endif 11160 11161/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11162 find out it does not work in some platform. */ 11163#ifndef LT_DLLAZY_OR_NOW 11164# ifdef RTLD_LAZY 11165# define LT_DLLAZY_OR_NOW RTLD_LAZY 11166# else 11167# ifdef DL_LAZY 11168# define LT_DLLAZY_OR_NOW DL_LAZY 11169# else 11170# ifdef RTLD_NOW 11171# define LT_DLLAZY_OR_NOW RTLD_NOW 11172# else 11173# ifdef DL_NOW 11174# define LT_DLLAZY_OR_NOW DL_NOW 11175# else 11176# define LT_DLLAZY_OR_NOW 0 11177# endif 11178# endif 11179# endif 11180# endif 11181#endif 11182 11183/* When -fvisbility=hidden is used, assume the code has been annotated 11184 correspondingly for the symbols needed. */ 11185#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11186int fnord () __attribute__((visibility("default"))); 11187#endif 11188 11189int fnord () { return 42; } 11190int main () 11191{ 11192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11193 int status = $lt_dlunknown; 11194 11195 if (self) 11196 { 11197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11198 else 11199 { 11200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11201 else puts (dlerror ()); 11202 } 11203 /* dlclose (self); */ 11204 } 11205 else 11206 puts (dlerror ()); 11207 11208 return status; 11209} 11210_LT_EOF 11211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11212 (eval $ac_link) 2>&5 11213 ac_status=$? 11214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11215 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11216 (./conftest; exit; ) >&5 2>/dev/null 11217 lt_status=$? 11218 case x$lt_status in 11219 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11220 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11221 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11222 esac 11223 else : 11224 # compilation failed 11225 lt_cv_dlopen_self=no 11226 fi 11227fi 11228rm -fr conftest* 11229 11230 11231fi 11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11233$as_echo "$lt_cv_dlopen_self" >&6; } 11234 11235 if test "x$lt_cv_dlopen_self" = xyes; then 11236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11238$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11239if ${lt_cv_dlopen_self_static+:} false; then : 11240 $as_echo_n "(cached) " >&6 11241else 11242 if test "$cross_compiling" = yes; then : 11243 lt_cv_dlopen_self_static=cross 11244else 11245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11246 lt_status=$lt_dlunknown 11247 cat > conftest.$ac_ext <<_LT_EOF 11248#line $LINENO "configure" 11249#include "confdefs.h" 11250 11251#if HAVE_DLFCN_H 11252#include <dlfcn.h> 11253#endif 11254 11255#include <stdio.h> 11256 11257#ifdef RTLD_GLOBAL 11258# define LT_DLGLOBAL RTLD_GLOBAL 11259#else 11260# ifdef DL_GLOBAL 11261# define LT_DLGLOBAL DL_GLOBAL 11262# else 11263# define LT_DLGLOBAL 0 11264# endif 11265#endif 11266 11267/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11268 find out it does not work in some platform. */ 11269#ifndef LT_DLLAZY_OR_NOW 11270# ifdef RTLD_LAZY 11271# define LT_DLLAZY_OR_NOW RTLD_LAZY 11272# else 11273# ifdef DL_LAZY 11274# define LT_DLLAZY_OR_NOW DL_LAZY 11275# else 11276# ifdef RTLD_NOW 11277# define LT_DLLAZY_OR_NOW RTLD_NOW 11278# else 11279# ifdef DL_NOW 11280# define LT_DLLAZY_OR_NOW DL_NOW 11281# else 11282# define LT_DLLAZY_OR_NOW 0 11283# endif 11284# endif 11285# endif 11286# endif 11287#endif 11288 11289/* When -fvisbility=hidden is used, assume the code has been annotated 11290 correspondingly for the symbols needed. */ 11291#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11292int fnord () __attribute__((visibility("default"))); 11293#endif 11294 11295int fnord () { return 42; } 11296int main () 11297{ 11298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11299 int status = $lt_dlunknown; 11300 11301 if (self) 11302 { 11303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11304 else 11305 { 11306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11307 else puts (dlerror ()); 11308 } 11309 /* dlclose (self); */ 11310 } 11311 else 11312 puts (dlerror ()); 11313 11314 return status; 11315} 11316_LT_EOF 11317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11318 (eval $ac_link) 2>&5 11319 ac_status=$? 11320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11321 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11322 (./conftest; exit; ) >&5 2>/dev/null 11323 lt_status=$? 11324 case x$lt_status in 11325 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11326 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11327 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11328 esac 11329 else : 11330 # compilation failed 11331 lt_cv_dlopen_self_static=no 11332 fi 11333fi 11334rm -fr conftest* 11335 11336 11337fi 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11339$as_echo "$lt_cv_dlopen_self_static" >&6; } 11340 fi 11341 11342 CPPFLAGS="$save_CPPFLAGS" 11343 LDFLAGS="$save_LDFLAGS" 11344 LIBS="$save_LIBS" 11345 ;; 11346 esac 11347 11348 case $lt_cv_dlopen_self in 11349 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11350 *) enable_dlopen_self=unknown ;; 11351 esac 11352 11353 case $lt_cv_dlopen_self_static in 11354 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11355 *) enable_dlopen_self_static=unknown ;; 11356 esac 11357fi 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375striplib= 11376old_striplib= 11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11378$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11379if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11380 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11381 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11383$as_echo "yes" >&6; } 11384else 11385# FIXME - insert some real tests, host_os isn't really good enough 11386 case $host_os in 11387 darwin*) 11388 if test -n "$STRIP" ; then 11389 striplib="$STRIP -x" 11390 old_striplib="$STRIP -S" 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11392$as_echo "yes" >&6; } 11393 else 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11395$as_echo "no" >&6; } 11396 fi 11397 ;; 11398 *) 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11400$as_echo "no" >&6; } 11401 ;; 11402 esac 11403fi 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 # Report which library types will actually be built 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11418$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11420$as_echo "$can_build_shared" >&6; } 11421 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11423$as_echo_n "checking whether to build shared libraries... " >&6; } 11424 test "$can_build_shared" = "no" && enable_shared=no 11425 11426 # On AIX, shared libraries and static libraries use the same namespace, and 11427 # are all built from PIC. 11428 case $host_os in 11429 aix3*) 11430 test "$enable_shared" = yes && enable_static=no 11431 if test -n "$RANLIB"; then 11432 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11433 postinstall_cmds='$RANLIB $lib' 11434 fi 11435 ;; 11436 11437 aix[4-9]*) 11438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11439 test "$enable_shared" = yes && enable_static=no 11440 fi 11441 ;; 11442 esac 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11444$as_echo "$enable_shared" >&6; } 11445 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11447$as_echo_n "checking whether to build static libraries... " >&6; } 11448 # Make sure either enable_shared or enable_static is yes. 11449 test "$enable_shared" = yes || enable_static=yes 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11451$as_echo "$enable_static" >&6; } 11452 11453 11454 11455 11456fi 11457ac_ext=c 11458ac_cpp='$CPP $CPPFLAGS' 11459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11461ac_compiler_gnu=$ac_cv_c_compiler_gnu 11462 11463CC="$lt_save_CC" 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 ac_config_commands="$ac_config_commands libtool" 11480 11481 11482 11483 11484# Only expand once: 11485 11486 11487 11488# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11501$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11502if ${ac_cv_prog_cc_c99+:} false; then : 11503 $as_echo_n "(cached) " >&6 11504else 11505 ac_cv_prog_cc_c99=no 11506ac_save_CC=$CC 11507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11508/* end confdefs.h. */ 11509#include <stdarg.h> 11510#include <stdbool.h> 11511#include <stdlib.h> 11512#include <wchar.h> 11513#include <stdio.h> 11514 11515// Check varargs macros. These examples are taken from C99 6.10.3.5. 11516#define debug(...) fprintf (stderr, __VA_ARGS__) 11517#define showlist(...) puts (#__VA_ARGS__) 11518#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11519static void 11520test_varargs_macros (void) 11521{ 11522 int x = 1234; 11523 int y = 5678; 11524 debug ("Flag"); 11525 debug ("X = %d\n", x); 11526 showlist (The first, second, and third items.); 11527 report (x>y, "x is %d but y is %d", x, y); 11528} 11529 11530// Check long long types. 11531#define BIG64 18446744073709551615ull 11532#define BIG32 4294967295ul 11533#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11534#if !BIG_OK 11535 your preprocessor is broken; 11536#endif 11537#if BIG_OK 11538#else 11539 your preprocessor is broken; 11540#endif 11541static long long int bignum = -9223372036854775807LL; 11542static unsigned long long int ubignum = BIG64; 11543 11544struct incomplete_array 11545{ 11546 int datasize; 11547 double data[]; 11548}; 11549 11550struct named_init { 11551 int number; 11552 const wchar_t *name; 11553 double average; 11554}; 11555 11556typedef const char *ccp; 11557 11558static inline int 11559test_restrict (ccp restrict text) 11560{ 11561 // See if C++-style comments work. 11562 // Iterate through items via the restricted pointer. 11563 // Also check for declarations in for loops. 11564 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11565 continue; 11566 return 0; 11567} 11568 11569// Check varargs and va_copy. 11570static void 11571test_varargs (const char *format, ...) 11572{ 11573 va_list args; 11574 va_start (args, format); 11575 va_list args_copy; 11576 va_copy (args_copy, args); 11577 11578 const char *str; 11579 int number; 11580 float fnumber; 11581 11582 while (*format) 11583 { 11584 switch (*format++) 11585 { 11586 case 's': // string 11587 str = va_arg (args_copy, const char *); 11588 break; 11589 case 'd': // int 11590 number = va_arg (args_copy, int); 11591 break; 11592 case 'f': // float 11593 fnumber = va_arg (args_copy, double); 11594 break; 11595 default: 11596 break; 11597 } 11598 } 11599 va_end (args_copy); 11600 va_end (args); 11601} 11602 11603int 11604main () 11605{ 11606 11607 // Check bool. 11608 _Bool success = false; 11609 11610 // Check restrict. 11611 if (test_restrict ("String literal") == 0) 11612 success = true; 11613 char *restrict newvar = "Another string"; 11614 11615 // Check varargs. 11616 test_varargs ("s, d' f .", "string", 65, 34.234); 11617 test_varargs_macros (); 11618 11619 // Check flexible array members. 11620 struct incomplete_array *ia = 11621 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11622 ia->datasize = 10; 11623 for (int i = 0; i < ia->datasize; ++i) 11624 ia->data[i] = i * 1.234; 11625 11626 // Check named initializers. 11627 struct named_init ni = { 11628 .number = 34, 11629 .name = L"Test wide string", 11630 .average = 543.34343, 11631 }; 11632 11633 ni.number = 58; 11634 11635 int dynamic_array[ni.number]; 11636 dynamic_array[ni.number - 1] = 543; 11637 11638 // work around unused variable warnings 11639 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11640 || dynamic_array[ni.number - 1] != 543); 11641 11642 ; 11643 return 0; 11644} 11645_ACEOF 11646for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11647do 11648 CC="$ac_save_CC $ac_arg" 11649 if ac_fn_c_try_compile "$LINENO"; then : 11650 ac_cv_prog_cc_c99=$ac_arg 11651fi 11652rm -f core conftest.err conftest.$ac_objext 11653 test "x$ac_cv_prog_cc_c99" != "xno" && break 11654done 11655rm -f conftest.$ac_ext 11656CC=$ac_save_CC 11657 11658fi 11659# AC_CACHE_VAL 11660case "x$ac_cv_prog_cc_c99" in 11661 x) 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11663$as_echo "none needed" >&6; } ;; 11664 xno) 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11666$as_echo "unsupported" >&6; } ;; 11667 *) 11668 CC="$CC $ac_cv_prog_cc_c99" 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11670$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11671esac 11672if test "x$ac_cv_prog_cc_c99" != xno; then : 11673 11674fi 11675 11676 11677 11678 11679 11680 11681ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11682if test "x$ac_cv_have_decl___clang__" = xyes; then : 11683 CLANGCC="yes" 11684else 11685 CLANGCC="no" 11686fi 11687 11688ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11689if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11690 INTELCC="yes" 11691else 11692 INTELCC="no" 11693fi 11694 11695ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11696if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11697 SUNCC="yes" 11698else 11699 SUNCC="no" 11700fi 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11711 if test -n "$ac_tool_prefix"; then 11712 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11713set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11715$as_echo_n "checking for $ac_word... " >&6; } 11716if ${ac_cv_path_PKG_CONFIG+:} false; then : 11717 $as_echo_n "(cached) " >&6 11718else 11719 case $PKG_CONFIG in 11720 [\\/]* | ?:[\\/]*) 11721 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11722 ;; 11723 *) 11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11725for as_dir in $PATH 11726do 11727 IFS=$as_save_IFS 11728 test -z "$as_dir" && as_dir=. 11729 for ac_exec_ext in '' $ac_executable_extensions; do 11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11731 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11733 break 2 11734 fi 11735done 11736 done 11737IFS=$as_save_IFS 11738 11739 ;; 11740esac 11741fi 11742PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11743if test -n "$PKG_CONFIG"; then 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11745$as_echo "$PKG_CONFIG" >&6; } 11746else 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11748$as_echo "no" >&6; } 11749fi 11750 11751 11752fi 11753if test -z "$ac_cv_path_PKG_CONFIG"; then 11754 ac_pt_PKG_CONFIG=$PKG_CONFIG 11755 # Extract the first word of "pkg-config", so it can be a program name with args. 11756set dummy pkg-config; ac_word=$2 11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11758$as_echo_n "checking for $ac_word... " >&6; } 11759if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11760 $as_echo_n "(cached) " >&6 11761else 11762 case $ac_pt_PKG_CONFIG in 11763 [\\/]* | ?:[\\/]*) 11764 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11765 ;; 11766 *) 11767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11768for as_dir in $PATH 11769do 11770 IFS=$as_save_IFS 11771 test -z "$as_dir" && as_dir=. 11772 for ac_exec_ext in '' $ac_executable_extensions; do 11773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11774 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11776 break 2 11777 fi 11778done 11779 done 11780IFS=$as_save_IFS 11781 11782 ;; 11783esac 11784fi 11785ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11786if test -n "$ac_pt_PKG_CONFIG"; then 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11788$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11789else 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11791$as_echo "no" >&6; } 11792fi 11793 11794 if test "x$ac_pt_PKG_CONFIG" = x; then 11795 PKG_CONFIG="" 11796 else 11797 case $cross_compiling:$ac_tool_warned in 11798yes:) 11799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11801ac_tool_warned=yes ;; 11802esac 11803 PKG_CONFIG=$ac_pt_PKG_CONFIG 11804 fi 11805else 11806 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11807fi 11808 11809fi 11810if test -n "$PKG_CONFIG"; then 11811 _pkg_min_version=0.9.0 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11813$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11814 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11816$as_echo "yes" >&6; } 11817 else 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11819$as_echo "no" >&6; } 11820 PKG_CONFIG="" 11821 fi 11822fi 11823 11824 11825 11826 11827 11828# Check whether --enable-selective-werror was given. 11829if test "${enable_selective_werror+set}" = set; then : 11830 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11831else 11832 SELECTIVE_WERROR=yes 11833fi 11834 11835 11836 11837 11838 11839# -v is too short to test reliably with XORG_TESTSET_CFLAG 11840if test "x$SUNCC" = "xyes"; then 11841 BASE_CFLAGS="-v" 11842else 11843 BASE_CFLAGS="" 11844fi 11845 11846# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860xorg_testset_save_CFLAGS="$CFLAGS" 11861 11862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11870/* end confdefs.h. */ 11871int i; 11872_ACEOF 11873if ac_fn_c_try_compile "$LINENO"; then : 11874 xorg_cv_cc_flag_unknown_warning_option=yes 11875else 11876 xorg_cv_cc_flag_unknown_warning_option=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11879fi 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11883 CFLAGS="$xorg_testset_save_CFLAGS" 11884fi 11885 11886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11889 fi 11890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11897/* end confdefs.h. */ 11898int i; 11899_ACEOF 11900if ac_fn_c_try_compile "$LINENO"; then : 11901 xorg_cv_cc_flag_unused_command_line_argument=yes 11902else 11903 xorg_cv_cc_flag_unused_command_line_argument=no 11904fi 11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11906fi 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11910 CFLAGS="$xorg_testset_save_CFLAGS" 11911fi 11912 11913found="no" 11914 11915 if test $found = "no" ; then 11916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11918 fi 11919 11920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11922 fi 11923 11924 CFLAGS="$CFLAGS -Wall" 11925 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11927$as_echo_n "checking if $CC supports -Wall... " >&6; } 11928 cacheid=xorg_cv_cc_flag__Wall 11929 if eval \${$cacheid+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11933/* end confdefs.h. */ 11934int i; 11935int 11936main () 11937{ 11938 11939 ; 11940 return 0; 11941} 11942_ACEOF 11943if ac_fn_c_try_link "$LINENO"; then : 11944 eval $cacheid=yes 11945else 11946 eval $cacheid=no 11947fi 11948rm -f core conftest.err conftest.$ac_objext \ 11949 conftest$ac_exeext conftest.$ac_ext 11950fi 11951 11952 11953 CFLAGS="$xorg_testset_save_CFLAGS" 11954 11955 eval supported=\$$cacheid 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11957$as_echo "$supported" >&6; } 11958 if test "$supported" = "yes" ; then 11959 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11960 found="yes" 11961 fi 11962 fi 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978xorg_testset_save_CFLAGS="$CFLAGS" 11979 11980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11985 $as_echo_n "(cached) " >&6 11986else 11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11988/* end confdefs.h. */ 11989int i; 11990_ACEOF 11991if ac_fn_c_try_compile "$LINENO"; then : 11992 xorg_cv_cc_flag_unknown_warning_option=yes 11993else 11994 xorg_cv_cc_flag_unknown_warning_option=no 11995fi 11996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11997fi 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12001 CFLAGS="$xorg_testset_save_CFLAGS" 12002fi 12003 12004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12007 fi 12008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12012 $as_echo_n "(cached) " >&6 12013else 12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12015/* end confdefs.h. */ 12016int i; 12017_ACEOF 12018if ac_fn_c_try_compile "$LINENO"; then : 12019 xorg_cv_cc_flag_unused_command_line_argument=yes 12020else 12021 xorg_cv_cc_flag_unused_command_line_argument=no 12022fi 12023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12024fi 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12028 CFLAGS="$xorg_testset_save_CFLAGS" 12029fi 12030 12031found="no" 12032 12033 if test $found = "no" ; then 12034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12036 fi 12037 12038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12040 fi 12041 12042 CFLAGS="$CFLAGS -Wpointer-arith" 12043 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12045$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12046 cacheid=xorg_cv_cc_flag__Wpointer_arith 12047 if eval \${$cacheid+:} false; then : 12048 $as_echo_n "(cached) " >&6 12049else 12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052int i; 12053int 12054main () 12055{ 12056 12057 ; 12058 return 0; 12059} 12060_ACEOF 12061if ac_fn_c_try_link "$LINENO"; then : 12062 eval $cacheid=yes 12063else 12064 eval $cacheid=no 12065fi 12066rm -f core conftest.err conftest.$ac_objext \ 12067 conftest$ac_exeext conftest.$ac_ext 12068fi 12069 12070 12071 CFLAGS="$xorg_testset_save_CFLAGS" 12072 12073 eval supported=\$$cacheid 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12075$as_echo "$supported" >&6; } 12076 if test "$supported" = "yes" ; then 12077 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12078 found="yes" 12079 fi 12080 fi 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096xorg_testset_save_CFLAGS="$CFLAGS" 12097 12098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12106/* end confdefs.h. */ 12107int i; 12108_ACEOF 12109if ac_fn_c_try_compile "$LINENO"; then : 12110 xorg_cv_cc_flag_unknown_warning_option=yes 12111else 12112 xorg_cv_cc_flag_unknown_warning_option=no 12113fi 12114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12115fi 12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12119 CFLAGS="$xorg_testset_save_CFLAGS" 12120fi 12121 12122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12125 fi 12126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12130 $as_echo_n "(cached) " >&6 12131else 12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12133/* end confdefs.h. */ 12134int i; 12135_ACEOF 12136if ac_fn_c_try_compile "$LINENO"; then : 12137 xorg_cv_cc_flag_unused_command_line_argument=yes 12138else 12139 xorg_cv_cc_flag_unused_command_line_argument=no 12140fi 12141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12142fi 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12146 CFLAGS="$xorg_testset_save_CFLAGS" 12147fi 12148 12149found="no" 12150 12151 if test $found = "no" ; then 12152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12154 fi 12155 12156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12158 fi 12159 12160 CFLAGS="$CFLAGS -Wmissing-declarations" 12161 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12163$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12164 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12165 if eval \${$cacheid+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167else 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170int i; 12171int 12172main () 12173{ 12174 12175 ; 12176 return 0; 12177} 12178_ACEOF 12179if ac_fn_c_try_link "$LINENO"; then : 12180 eval $cacheid=yes 12181else 12182 eval $cacheid=no 12183fi 12184rm -f core conftest.err conftest.$ac_objext \ 12185 conftest$ac_exeext conftest.$ac_ext 12186fi 12187 12188 12189 CFLAGS="$xorg_testset_save_CFLAGS" 12190 12191 eval supported=\$$cacheid 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12193$as_echo "$supported" >&6; } 12194 if test "$supported" = "yes" ; then 12195 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12196 found="yes" 12197 fi 12198 fi 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214xorg_testset_save_CFLAGS="$CFLAGS" 12215 12216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222else 12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224/* end confdefs.h. */ 12225int i; 12226_ACEOF 12227if ac_fn_c_try_compile "$LINENO"; then : 12228 xorg_cv_cc_flag_unknown_warning_option=yes 12229else 12230 xorg_cv_cc_flag_unknown_warning_option=no 12231fi 12232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12233fi 12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12237 CFLAGS="$xorg_testset_save_CFLAGS" 12238fi 12239 12240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12243 fi 12244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249else 12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12251/* end confdefs.h. */ 12252int i; 12253_ACEOF 12254if ac_fn_c_try_compile "$LINENO"; then : 12255 xorg_cv_cc_flag_unused_command_line_argument=yes 12256else 12257 xorg_cv_cc_flag_unused_command_line_argument=no 12258fi 12259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12260fi 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12264 CFLAGS="$xorg_testset_save_CFLAGS" 12265fi 12266 12267found="no" 12268 12269 if test $found = "no" ; then 12270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12272 fi 12273 12274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12276 fi 12277 12278 CFLAGS="$CFLAGS -Wformat=2" 12279 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12281$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12282 cacheid=xorg_cv_cc_flag__Wformat_2 12283 if eval \${$cacheid+:} false; then : 12284 $as_echo_n "(cached) " >&6 12285else 12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288int i; 12289int 12290main () 12291{ 12292 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_link "$LINENO"; then : 12298 eval $cacheid=yes 12299else 12300 eval $cacheid=no 12301fi 12302rm -f core conftest.err conftest.$ac_objext \ 12303 conftest$ac_exeext conftest.$ac_ext 12304fi 12305 12306 12307 CFLAGS="$xorg_testset_save_CFLAGS" 12308 12309 eval supported=\$$cacheid 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12311$as_echo "$supported" >&6; } 12312 if test "$supported" = "yes" ; then 12313 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12314 found="yes" 12315 fi 12316 fi 12317 12318 if test $found = "no" ; then 12319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12321 fi 12322 12323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12325 fi 12326 12327 CFLAGS="$CFLAGS -Wformat" 12328 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12330$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12331 cacheid=xorg_cv_cc_flag__Wformat 12332 if eval \${$cacheid+:} false; then : 12333 $as_echo_n "(cached) " >&6 12334else 12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12336/* end confdefs.h. */ 12337int i; 12338int 12339main () 12340{ 12341 12342 ; 12343 return 0; 12344} 12345_ACEOF 12346if ac_fn_c_try_link "$LINENO"; then : 12347 eval $cacheid=yes 12348else 12349 eval $cacheid=no 12350fi 12351rm -f core conftest.err conftest.$ac_objext \ 12352 conftest$ac_exeext conftest.$ac_ext 12353fi 12354 12355 12356 CFLAGS="$xorg_testset_save_CFLAGS" 12357 12358 eval supported=\$$cacheid 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12360$as_echo "$supported" >&6; } 12361 if test "$supported" = "yes" ; then 12362 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12363 found="yes" 12364 fi 12365 fi 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383xorg_testset_save_CFLAGS="$CFLAGS" 12384 12385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394int i; 12395_ACEOF 12396if ac_fn_c_try_compile "$LINENO"; then : 12397 xorg_cv_cc_flag_unknown_warning_option=yes 12398else 12399 xorg_cv_cc_flag_unknown_warning_option=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12402fi 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12406 CFLAGS="$xorg_testset_save_CFLAGS" 12407fi 12408 12409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12412 fi 12413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12417 $as_echo_n "(cached) " >&6 12418else 12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12420/* end confdefs.h. */ 12421int i; 12422_ACEOF 12423if ac_fn_c_try_compile "$LINENO"; then : 12424 xorg_cv_cc_flag_unused_command_line_argument=yes 12425else 12426 xorg_cv_cc_flag_unused_command_line_argument=no 12427fi 12428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12429fi 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12433 CFLAGS="$xorg_testset_save_CFLAGS" 12434fi 12435 12436found="no" 12437 12438 if test $found = "no" ; then 12439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12441 fi 12442 12443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12445 fi 12446 12447 CFLAGS="$CFLAGS -Wstrict-prototypes" 12448 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12450$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12451 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12452 if eval \${$cacheid+:} false; then : 12453 $as_echo_n "(cached) " >&6 12454else 12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12456/* end confdefs.h. */ 12457int i; 12458int 12459main () 12460{ 12461 12462 ; 12463 return 0; 12464} 12465_ACEOF 12466if ac_fn_c_try_link "$LINENO"; then : 12467 eval $cacheid=yes 12468else 12469 eval $cacheid=no 12470fi 12471rm -f core conftest.err conftest.$ac_objext \ 12472 conftest$ac_exeext conftest.$ac_ext 12473fi 12474 12475 12476 CFLAGS="$xorg_testset_save_CFLAGS" 12477 12478 eval supported=\$$cacheid 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12480$as_echo "$supported" >&6; } 12481 if test "$supported" = "yes" ; then 12482 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12483 found="yes" 12484 fi 12485 fi 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501xorg_testset_save_CFLAGS="$CFLAGS" 12502 12503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12511/* end confdefs.h. */ 12512int i; 12513_ACEOF 12514if ac_fn_c_try_compile "$LINENO"; then : 12515 xorg_cv_cc_flag_unknown_warning_option=yes 12516else 12517 xorg_cv_cc_flag_unknown_warning_option=no 12518fi 12519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12520fi 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12524 CFLAGS="$xorg_testset_save_CFLAGS" 12525fi 12526 12527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12530 fi 12531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12535 $as_echo_n "(cached) " >&6 12536else 12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12538/* end confdefs.h. */ 12539int i; 12540_ACEOF 12541if ac_fn_c_try_compile "$LINENO"; then : 12542 xorg_cv_cc_flag_unused_command_line_argument=yes 12543else 12544 xorg_cv_cc_flag_unused_command_line_argument=no 12545fi 12546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12547fi 12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12551 CFLAGS="$xorg_testset_save_CFLAGS" 12552fi 12553 12554found="no" 12555 12556 if test $found = "no" ; then 12557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12559 fi 12560 12561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12563 fi 12564 12565 CFLAGS="$CFLAGS -Wmissing-prototypes" 12566 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12568$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12569 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12570 if eval \${$cacheid+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572else 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574/* end confdefs.h. */ 12575int i; 12576int 12577main () 12578{ 12579 12580 ; 12581 return 0; 12582} 12583_ACEOF 12584if ac_fn_c_try_link "$LINENO"; then : 12585 eval $cacheid=yes 12586else 12587 eval $cacheid=no 12588fi 12589rm -f core conftest.err conftest.$ac_objext \ 12590 conftest$ac_exeext conftest.$ac_ext 12591fi 12592 12593 12594 CFLAGS="$xorg_testset_save_CFLAGS" 12595 12596 eval supported=\$$cacheid 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12598$as_echo "$supported" >&6; } 12599 if test "$supported" = "yes" ; then 12600 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12601 found="yes" 12602 fi 12603 fi 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619xorg_testset_save_CFLAGS="$CFLAGS" 12620 12621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12626 $as_echo_n "(cached) " >&6 12627else 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630int i; 12631_ACEOF 12632if ac_fn_c_try_compile "$LINENO"; then : 12633 xorg_cv_cc_flag_unknown_warning_option=yes 12634else 12635 xorg_cv_cc_flag_unknown_warning_option=no 12636fi 12637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12638fi 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12642 CFLAGS="$xorg_testset_save_CFLAGS" 12643fi 12644 12645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12648 fi 12649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12656/* end confdefs.h. */ 12657int i; 12658_ACEOF 12659if ac_fn_c_try_compile "$LINENO"; then : 12660 xorg_cv_cc_flag_unused_command_line_argument=yes 12661else 12662 xorg_cv_cc_flag_unused_command_line_argument=no 12663fi 12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12665fi 12666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12669 CFLAGS="$xorg_testset_save_CFLAGS" 12670fi 12671 12672found="no" 12673 12674 if test $found = "no" ; then 12675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12677 fi 12678 12679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12681 fi 12682 12683 CFLAGS="$CFLAGS -Wnested-externs" 12684 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12686$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12687 cacheid=xorg_cv_cc_flag__Wnested_externs 12688 if eval \${$cacheid+:} false; then : 12689 $as_echo_n "(cached) " >&6 12690else 12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692/* end confdefs.h. */ 12693int i; 12694int 12695main () 12696{ 12697 12698 ; 12699 return 0; 12700} 12701_ACEOF 12702if ac_fn_c_try_link "$LINENO"; then : 12703 eval $cacheid=yes 12704else 12705 eval $cacheid=no 12706fi 12707rm -f core conftest.err conftest.$ac_objext \ 12708 conftest$ac_exeext conftest.$ac_ext 12709fi 12710 12711 12712 CFLAGS="$xorg_testset_save_CFLAGS" 12713 12714 eval supported=\$$cacheid 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12716$as_echo "$supported" >&6; } 12717 if test "$supported" = "yes" ; then 12718 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12719 found="yes" 12720 fi 12721 fi 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737xorg_testset_save_CFLAGS="$CFLAGS" 12738 12739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12744 $as_echo_n "(cached) " >&6 12745else 12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12747/* end confdefs.h. */ 12748int i; 12749_ACEOF 12750if ac_fn_c_try_compile "$LINENO"; then : 12751 xorg_cv_cc_flag_unknown_warning_option=yes 12752else 12753 xorg_cv_cc_flag_unknown_warning_option=no 12754fi 12755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12756fi 12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12760 CFLAGS="$xorg_testset_save_CFLAGS" 12761fi 12762 12763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12766 fi 12767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12771 $as_echo_n "(cached) " >&6 12772else 12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12774/* end confdefs.h. */ 12775int i; 12776_ACEOF 12777if ac_fn_c_try_compile "$LINENO"; then : 12778 xorg_cv_cc_flag_unused_command_line_argument=yes 12779else 12780 xorg_cv_cc_flag_unused_command_line_argument=no 12781fi 12782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12783fi 12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12787 CFLAGS="$xorg_testset_save_CFLAGS" 12788fi 12789 12790found="no" 12791 12792 if test $found = "no" ; then 12793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12795 fi 12796 12797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12799 fi 12800 12801 CFLAGS="$CFLAGS -Wbad-function-cast" 12802 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12804$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12805 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12806 if eval \${$cacheid+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808else 12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12810/* end confdefs.h. */ 12811int i; 12812int 12813main () 12814{ 12815 12816 ; 12817 return 0; 12818} 12819_ACEOF 12820if ac_fn_c_try_link "$LINENO"; then : 12821 eval $cacheid=yes 12822else 12823 eval $cacheid=no 12824fi 12825rm -f core conftest.err conftest.$ac_objext \ 12826 conftest$ac_exeext conftest.$ac_ext 12827fi 12828 12829 12830 CFLAGS="$xorg_testset_save_CFLAGS" 12831 12832 eval supported=\$$cacheid 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12834$as_echo "$supported" >&6; } 12835 if test "$supported" = "yes" ; then 12836 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12837 found="yes" 12838 fi 12839 fi 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855xorg_testset_save_CFLAGS="$CFLAGS" 12856 12857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12862 $as_echo_n "(cached) " >&6 12863else 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865/* end confdefs.h. */ 12866int i; 12867_ACEOF 12868if ac_fn_c_try_compile "$LINENO"; then : 12869 xorg_cv_cc_flag_unknown_warning_option=yes 12870else 12871 xorg_cv_cc_flag_unknown_warning_option=no 12872fi 12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12878 CFLAGS="$xorg_testset_save_CFLAGS" 12879fi 12880 12881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12884 fi 12885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12892/* end confdefs.h. */ 12893int i; 12894_ACEOF 12895if ac_fn_c_try_compile "$LINENO"; then : 12896 xorg_cv_cc_flag_unused_command_line_argument=yes 12897else 12898 xorg_cv_cc_flag_unused_command_line_argument=no 12899fi 12900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12901fi 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12905 CFLAGS="$xorg_testset_save_CFLAGS" 12906fi 12907 12908found="no" 12909 12910 if test $found = "no" ; then 12911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12913 fi 12914 12915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12917 fi 12918 12919 CFLAGS="$CFLAGS -Wold-style-definition" 12920 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12922$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12923 cacheid=xorg_cv_cc_flag__Wold_style_definition 12924 if eval \${$cacheid+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12928/* end confdefs.h. */ 12929int i; 12930int 12931main () 12932{ 12933 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938if ac_fn_c_try_link "$LINENO"; then : 12939 eval $cacheid=yes 12940else 12941 eval $cacheid=no 12942fi 12943rm -f core conftest.err conftest.$ac_objext \ 12944 conftest$ac_exeext conftest.$ac_ext 12945fi 12946 12947 12948 CFLAGS="$xorg_testset_save_CFLAGS" 12949 12950 eval supported=\$$cacheid 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12952$as_echo "$supported" >&6; } 12953 if test "$supported" = "yes" ; then 12954 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12955 found="yes" 12956 fi 12957 fi 12958 12959 if test $found = "no" ; then 12960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12962 fi 12963 12964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12966 fi 12967 12968 CFLAGS="$CFLAGS -fd" 12969 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 12971$as_echo_n "checking if $CC supports -fd... " >&6; } 12972 cacheid=xorg_cv_cc_flag__fd 12973 if eval \${$cacheid+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975else 12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12977/* end confdefs.h. */ 12978int i; 12979int 12980main () 12981{ 12982 12983 ; 12984 return 0; 12985} 12986_ACEOF 12987if ac_fn_c_try_link "$LINENO"; then : 12988 eval $cacheid=yes 12989else 12990 eval $cacheid=no 12991fi 12992rm -f core conftest.err conftest.$ac_objext \ 12993 conftest$ac_exeext conftest.$ac_ext 12994fi 12995 12996 12997 CFLAGS="$xorg_testset_save_CFLAGS" 12998 12999 eval supported=\$$cacheid 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13001$as_echo "$supported" >&6; } 13002 if test "$supported" = "yes" ; then 13003 BASE_CFLAGS="$BASE_CFLAGS -fd" 13004 found="yes" 13005 fi 13006 fi 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022xorg_testset_save_CFLAGS="$CFLAGS" 13023 13024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13029 $as_echo_n "(cached) " >&6 13030else 13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13032/* end confdefs.h. */ 13033int i; 13034_ACEOF 13035if ac_fn_c_try_compile "$LINENO"; then : 13036 xorg_cv_cc_flag_unknown_warning_option=yes 13037else 13038 xorg_cv_cc_flag_unknown_warning_option=no 13039fi 13040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13041fi 13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13045 CFLAGS="$xorg_testset_save_CFLAGS" 13046fi 13047 13048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13051 fi 13052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13056 $as_echo_n "(cached) " >&6 13057else 13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13059/* end confdefs.h. */ 13060int i; 13061_ACEOF 13062if ac_fn_c_try_compile "$LINENO"; then : 13063 xorg_cv_cc_flag_unused_command_line_argument=yes 13064else 13065 xorg_cv_cc_flag_unused_command_line_argument=no 13066fi 13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13068fi 13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13072 CFLAGS="$xorg_testset_save_CFLAGS" 13073fi 13074 13075found="no" 13076 13077 if test $found = "no" ; then 13078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13080 fi 13081 13082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13084 fi 13085 13086 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13087 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13089$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13090 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13091 if eval \${$cacheid+:} false; then : 13092 $as_echo_n "(cached) " >&6 13093else 13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13095/* end confdefs.h. */ 13096int i; 13097int 13098main () 13099{ 13100 13101 ; 13102 return 0; 13103} 13104_ACEOF 13105if ac_fn_c_try_link "$LINENO"; then : 13106 eval $cacheid=yes 13107else 13108 eval $cacheid=no 13109fi 13110rm -f core conftest.err conftest.$ac_objext \ 13111 conftest$ac_exeext conftest.$ac_ext 13112fi 13113 13114 13115 CFLAGS="$xorg_testset_save_CFLAGS" 13116 13117 eval supported=\$$cacheid 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13119$as_echo "$supported" >&6; } 13120 if test "$supported" = "yes" ; then 13121 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13122 found="yes" 13123 fi 13124 fi 13125 13126 13127 13128 13129 13130# This chunk adds additional warnings that could catch undesired effects. 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144xorg_testset_save_CFLAGS="$CFLAGS" 13145 13146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13151 $as_echo_n "(cached) " >&6 13152else 13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13154/* end confdefs.h. */ 13155int i; 13156_ACEOF 13157if ac_fn_c_try_compile "$LINENO"; then : 13158 xorg_cv_cc_flag_unknown_warning_option=yes 13159else 13160 xorg_cv_cc_flag_unknown_warning_option=no 13161fi 13162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13163fi 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13167 CFLAGS="$xorg_testset_save_CFLAGS" 13168fi 13169 13170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13173 fi 13174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13178 $as_echo_n "(cached) " >&6 13179else 13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13181/* end confdefs.h. */ 13182int i; 13183_ACEOF 13184if ac_fn_c_try_compile "$LINENO"; then : 13185 xorg_cv_cc_flag_unused_command_line_argument=yes 13186else 13187 xorg_cv_cc_flag_unused_command_line_argument=no 13188fi 13189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13190fi 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13194 CFLAGS="$xorg_testset_save_CFLAGS" 13195fi 13196 13197found="no" 13198 13199 if test $found = "no" ; then 13200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13202 fi 13203 13204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13206 fi 13207 13208 CFLAGS="$CFLAGS -Wunused" 13209 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13211$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13212 cacheid=xorg_cv_cc_flag__Wunused 13213 if eval \${$cacheid+:} false; then : 13214 $as_echo_n "(cached) " >&6 13215else 13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13217/* end confdefs.h. */ 13218int i; 13219int 13220main () 13221{ 13222 13223 ; 13224 return 0; 13225} 13226_ACEOF 13227if ac_fn_c_try_link "$LINENO"; then : 13228 eval $cacheid=yes 13229else 13230 eval $cacheid=no 13231fi 13232rm -f core conftest.err conftest.$ac_objext \ 13233 conftest$ac_exeext conftest.$ac_ext 13234fi 13235 13236 13237 CFLAGS="$xorg_testset_save_CFLAGS" 13238 13239 eval supported=\$$cacheid 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13241$as_echo "$supported" >&6; } 13242 if test "$supported" = "yes" ; then 13243 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13244 found="yes" 13245 fi 13246 fi 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262xorg_testset_save_CFLAGS="$CFLAGS" 13263 13264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13269 $as_echo_n "(cached) " >&6 13270else 13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13272/* end confdefs.h. */ 13273int i; 13274_ACEOF 13275if ac_fn_c_try_compile "$LINENO"; then : 13276 xorg_cv_cc_flag_unknown_warning_option=yes 13277else 13278 xorg_cv_cc_flag_unknown_warning_option=no 13279fi 13280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13281fi 13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13285 CFLAGS="$xorg_testset_save_CFLAGS" 13286fi 13287 13288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13291 fi 13292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13296 $as_echo_n "(cached) " >&6 13297else 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300int i; 13301_ACEOF 13302if ac_fn_c_try_compile "$LINENO"; then : 13303 xorg_cv_cc_flag_unused_command_line_argument=yes 13304else 13305 xorg_cv_cc_flag_unused_command_line_argument=no 13306fi 13307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13308fi 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13312 CFLAGS="$xorg_testset_save_CFLAGS" 13313fi 13314 13315found="no" 13316 13317 if test $found = "no" ; then 13318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13320 fi 13321 13322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13324 fi 13325 13326 CFLAGS="$CFLAGS -Wuninitialized" 13327 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13329$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13330 cacheid=xorg_cv_cc_flag__Wuninitialized 13331 if eval \${$cacheid+:} false; then : 13332 $as_echo_n "(cached) " >&6 13333else 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336int i; 13337int 13338main () 13339{ 13340 13341 ; 13342 return 0; 13343} 13344_ACEOF 13345if ac_fn_c_try_link "$LINENO"; then : 13346 eval $cacheid=yes 13347else 13348 eval $cacheid=no 13349fi 13350rm -f core conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext conftest.$ac_ext 13352fi 13353 13354 13355 CFLAGS="$xorg_testset_save_CFLAGS" 13356 13357 eval supported=\$$cacheid 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13359$as_echo "$supported" >&6; } 13360 if test "$supported" = "yes" ; then 13361 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13362 found="yes" 13363 fi 13364 fi 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380xorg_testset_save_CFLAGS="$CFLAGS" 13381 13382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388else 13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13390/* end confdefs.h. */ 13391int i; 13392_ACEOF 13393if ac_fn_c_try_compile "$LINENO"; then : 13394 xorg_cv_cc_flag_unknown_warning_option=yes 13395else 13396 xorg_cv_cc_flag_unknown_warning_option=no 13397fi 13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13399fi 13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13403 CFLAGS="$xorg_testset_save_CFLAGS" 13404fi 13405 13406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13409 fi 13410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13417/* end confdefs.h. */ 13418int i; 13419_ACEOF 13420if ac_fn_c_try_compile "$LINENO"; then : 13421 xorg_cv_cc_flag_unused_command_line_argument=yes 13422else 13423 xorg_cv_cc_flag_unused_command_line_argument=no 13424fi 13425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13426fi 13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13430 CFLAGS="$xorg_testset_save_CFLAGS" 13431fi 13432 13433found="no" 13434 13435 if test $found = "no" ; then 13436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13438 fi 13439 13440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13442 fi 13443 13444 CFLAGS="$CFLAGS -Wshadow" 13445 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13447$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13448 cacheid=xorg_cv_cc_flag__Wshadow 13449 if eval \${$cacheid+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451else 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453/* end confdefs.h. */ 13454int i; 13455int 13456main () 13457{ 13458 13459 ; 13460 return 0; 13461} 13462_ACEOF 13463if ac_fn_c_try_link "$LINENO"; then : 13464 eval $cacheid=yes 13465else 13466 eval $cacheid=no 13467fi 13468rm -f core conftest.err conftest.$ac_objext \ 13469 conftest$ac_exeext conftest.$ac_ext 13470fi 13471 13472 13473 CFLAGS="$xorg_testset_save_CFLAGS" 13474 13475 eval supported=\$$cacheid 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13477$as_echo "$supported" >&6; } 13478 if test "$supported" = "yes" ; then 13479 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13480 found="yes" 13481 fi 13482 fi 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498xorg_testset_save_CFLAGS="$CFLAGS" 13499 13500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506else 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13508/* end confdefs.h. */ 13509int i; 13510_ACEOF 13511if ac_fn_c_try_compile "$LINENO"; then : 13512 xorg_cv_cc_flag_unknown_warning_option=yes 13513else 13514 xorg_cv_cc_flag_unknown_warning_option=no 13515fi 13516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13517fi 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13521 CFLAGS="$xorg_testset_save_CFLAGS" 13522fi 13523 13524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13527 fi 13528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13532 $as_echo_n "(cached) " >&6 13533else 13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13535/* end confdefs.h. */ 13536int i; 13537_ACEOF 13538if ac_fn_c_try_compile "$LINENO"; then : 13539 xorg_cv_cc_flag_unused_command_line_argument=yes 13540else 13541 xorg_cv_cc_flag_unused_command_line_argument=no 13542fi 13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13544fi 13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13548 CFLAGS="$xorg_testset_save_CFLAGS" 13549fi 13550 13551found="no" 13552 13553 if test $found = "no" ; then 13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13556 fi 13557 13558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13560 fi 13561 13562 CFLAGS="$CFLAGS -Wmissing-noreturn" 13563 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13565$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13566 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13567 if eval \${$cacheid+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572int i; 13573int 13574main () 13575{ 13576 13577 ; 13578 return 0; 13579} 13580_ACEOF 13581if ac_fn_c_try_link "$LINENO"; then : 13582 eval $cacheid=yes 13583else 13584 eval $cacheid=no 13585fi 13586rm -f core conftest.err conftest.$ac_objext \ 13587 conftest$ac_exeext conftest.$ac_ext 13588fi 13589 13590 13591 CFLAGS="$xorg_testset_save_CFLAGS" 13592 13593 eval supported=\$$cacheid 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13595$as_echo "$supported" >&6; } 13596 if test "$supported" = "yes" ; then 13597 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13598 found="yes" 13599 fi 13600 fi 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616xorg_testset_save_CFLAGS="$CFLAGS" 13617 13618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624else 13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13626/* end confdefs.h. */ 13627int i; 13628_ACEOF 13629if ac_fn_c_try_compile "$LINENO"; then : 13630 xorg_cv_cc_flag_unknown_warning_option=yes 13631else 13632 xorg_cv_cc_flag_unknown_warning_option=no 13633fi 13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13635fi 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13639 CFLAGS="$xorg_testset_save_CFLAGS" 13640fi 13641 13642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13645 fi 13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13653/* end confdefs.h. */ 13654int i; 13655_ACEOF 13656if ac_fn_c_try_compile "$LINENO"; then : 13657 xorg_cv_cc_flag_unused_command_line_argument=yes 13658else 13659 xorg_cv_cc_flag_unused_command_line_argument=no 13660fi 13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13662fi 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13666 CFLAGS="$xorg_testset_save_CFLAGS" 13667fi 13668 13669found="no" 13670 13671 if test $found = "no" ; then 13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 fi 13675 13676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13678 fi 13679 13680 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13681 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13683$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13684 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13685 if eval \${$cacheid+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690int i; 13691int 13692main () 13693{ 13694 13695 ; 13696 return 0; 13697} 13698_ACEOF 13699if ac_fn_c_try_link "$LINENO"; then : 13700 eval $cacheid=yes 13701else 13702 eval $cacheid=no 13703fi 13704rm -f core conftest.err conftest.$ac_objext \ 13705 conftest$ac_exeext conftest.$ac_ext 13706fi 13707 13708 13709 CFLAGS="$xorg_testset_save_CFLAGS" 13710 13711 eval supported=\$$cacheid 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13713$as_echo "$supported" >&6; } 13714 if test "$supported" = "yes" ; then 13715 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13716 found="yes" 13717 fi 13718 fi 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734xorg_testset_save_CFLAGS="$CFLAGS" 13735 13736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13741 $as_echo_n "(cached) " >&6 13742else 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745int i; 13746_ACEOF 13747if ac_fn_c_try_compile "$LINENO"; then : 13748 xorg_cv_cc_flag_unknown_warning_option=yes 13749else 13750 xorg_cv_cc_flag_unknown_warning_option=no 13751fi 13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13753fi 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13757 CFLAGS="$xorg_testset_save_CFLAGS" 13758fi 13759 13760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13763 fi 13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13768 $as_echo_n "(cached) " >&6 13769else 13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771/* end confdefs.h. */ 13772int i; 13773_ACEOF 13774if ac_fn_c_try_compile "$LINENO"; then : 13775 xorg_cv_cc_flag_unused_command_line_argument=yes 13776else 13777 xorg_cv_cc_flag_unused_command_line_argument=no 13778fi 13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13780fi 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13784 CFLAGS="$xorg_testset_save_CFLAGS" 13785fi 13786 13787found="no" 13788 13789 if test $found = "no" ; then 13790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13792 fi 13793 13794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13796 fi 13797 13798 CFLAGS="$CFLAGS -Wredundant-decls" 13799 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13801$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13802 cacheid=xorg_cv_cc_flag__Wredundant_decls 13803 if eval \${$cacheid+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808int i; 13809int 13810main () 13811{ 13812 13813 ; 13814 return 0; 13815} 13816_ACEOF 13817if ac_fn_c_try_link "$LINENO"; then : 13818 eval $cacheid=yes 13819else 13820 eval $cacheid=no 13821fi 13822rm -f core conftest.err conftest.$ac_objext \ 13823 conftest$ac_exeext conftest.$ac_ext 13824fi 13825 13826 13827 CFLAGS="$xorg_testset_save_CFLAGS" 13828 13829 eval supported=\$$cacheid 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13831$as_echo "$supported" >&6; } 13832 if test "$supported" = "yes" ; then 13833 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13834 found="yes" 13835 fi 13836 fi 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852xorg_testset_save_CFLAGS="$CFLAGS" 13853 13854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862/* end confdefs.h. */ 13863int i; 13864_ACEOF 13865if ac_fn_c_try_compile "$LINENO"; then : 13866 xorg_cv_cc_flag_unknown_warning_option=yes 13867else 13868 xorg_cv_cc_flag_unknown_warning_option=no 13869fi 13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13871fi 13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876fi 13877 13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887else 13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13889/* end confdefs.h. */ 13890int i; 13891_ACEOF 13892if ac_fn_c_try_compile "$LINENO"; then : 13893 xorg_cv_cc_flag_unused_command_line_argument=yes 13894else 13895 xorg_cv_cc_flag_unused_command_line_argument=no 13896fi 13897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13898fi 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13902 CFLAGS="$xorg_testset_save_CFLAGS" 13903fi 13904 13905found="no" 13906 13907 if test $found = "no" ; then 13908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13910 fi 13911 13912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13914 fi 13915 13916 CFLAGS="$CFLAGS -Wlogical-op" 13917 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 13919$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 13920 cacheid=xorg_cv_cc_flag__Wlogical_op 13921 if eval \${$cacheid+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926int i; 13927int 13928main () 13929{ 13930 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_c_try_link "$LINENO"; then : 13936 eval $cacheid=yes 13937else 13938 eval $cacheid=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext \ 13941 conftest$ac_exeext conftest.$ac_ext 13942fi 13943 13944 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946 13947 eval supported=\$$cacheid 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13949$as_echo "$supported" >&6; } 13950 if test "$supported" = "yes" ; then 13951 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 13952 found="yes" 13953 fi 13954 fi 13955 13956 13957 13958# These are currently disabled because they are noisy. They will be enabled 13959# in the future once the codebase is sufficiently modernized to silence 13960# them. For now, I don't want them to drown out the other warnings. 13961# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13962# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13963# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 13964 13965# Turn some warnings into errors, so we don't accidently get successful builds 13966# when there are problems that should be fixed. 13967 13968if test "x$SELECTIVE_WERROR" = "xyes" ; then 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982xorg_testset_save_CFLAGS="$CFLAGS" 13983 13984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13989 $as_echo_n "(cached) " >&6 13990else 13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13992/* end confdefs.h. */ 13993int i; 13994_ACEOF 13995if ac_fn_c_try_compile "$LINENO"; then : 13996 xorg_cv_cc_flag_unknown_warning_option=yes 13997else 13998 xorg_cv_cc_flag_unknown_warning_option=no 13999fi 14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14001fi 14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14005 CFLAGS="$xorg_testset_save_CFLAGS" 14006fi 14007 14008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14011 fi 14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017else 14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14019/* end confdefs.h. */ 14020int i; 14021_ACEOF 14022if ac_fn_c_try_compile "$LINENO"; then : 14023 xorg_cv_cc_flag_unused_command_line_argument=yes 14024else 14025 xorg_cv_cc_flag_unused_command_line_argument=no 14026fi 14027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14028fi 14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14032 CFLAGS="$xorg_testset_save_CFLAGS" 14033fi 14034 14035found="no" 14036 14037 if test $found = "no" ; then 14038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14040 fi 14041 14042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14044 fi 14045 14046 CFLAGS="$CFLAGS -Werror=implicit" 14047 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14049$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14050 cacheid=xorg_cv_cc_flag__Werror_implicit 14051 if eval \${$cacheid+:} false; then : 14052 $as_echo_n "(cached) " >&6 14053else 14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14055/* end confdefs.h. */ 14056int i; 14057int 14058main () 14059{ 14060 14061 ; 14062 return 0; 14063} 14064_ACEOF 14065if ac_fn_c_try_link "$LINENO"; then : 14066 eval $cacheid=yes 14067else 14068 eval $cacheid=no 14069fi 14070rm -f core conftest.err conftest.$ac_objext \ 14071 conftest$ac_exeext conftest.$ac_ext 14072fi 14073 14074 14075 CFLAGS="$xorg_testset_save_CFLAGS" 14076 14077 eval supported=\$$cacheid 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14079$as_echo "$supported" >&6; } 14080 if test "$supported" = "yes" ; then 14081 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14082 found="yes" 14083 fi 14084 fi 14085 14086 if test $found = "no" ; then 14087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14089 fi 14090 14091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14093 fi 14094 14095 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14096 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14098$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14099 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14100 if eval \${$cacheid+:} false; then : 14101 $as_echo_n "(cached) " >&6 14102else 14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14104/* end confdefs.h. */ 14105int i; 14106int 14107main () 14108{ 14109 14110 ; 14111 return 0; 14112} 14113_ACEOF 14114if ac_fn_c_try_link "$LINENO"; then : 14115 eval $cacheid=yes 14116else 14117 eval $cacheid=no 14118fi 14119rm -f core conftest.err conftest.$ac_objext \ 14120 conftest$ac_exeext conftest.$ac_ext 14121fi 14122 14123 14124 CFLAGS="$xorg_testset_save_CFLAGS" 14125 14126 eval supported=\$$cacheid 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14128$as_echo "$supported" >&6; } 14129 if test "$supported" = "yes" ; then 14130 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14131 found="yes" 14132 fi 14133 fi 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149xorg_testset_save_CFLAGS="$CFLAGS" 14150 14151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14156 $as_echo_n "(cached) " >&6 14157else 14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14159/* end confdefs.h. */ 14160int i; 14161_ACEOF 14162if ac_fn_c_try_compile "$LINENO"; then : 14163 xorg_cv_cc_flag_unknown_warning_option=yes 14164else 14165 xorg_cv_cc_flag_unknown_warning_option=no 14166fi 14167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14168fi 14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14172 CFLAGS="$xorg_testset_save_CFLAGS" 14173fi 14174 14175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14178 fi 14179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14183 $as_echo_n "(cached) " >&6 14184else 14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14186/* end confdefs.h. */ 14187int i; 14188_ACEOF 14189if ac_fn_c_try_compile "$LINENO"; then : 14190 xorg_cv_cc_flag_unused_command_line_argument=yes 14191else 14192 xorg_cv_cc_flag_unused_command_line_argument=no 14193fi 14194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14195fi 14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14199 CFLAGS="$xorg_testset_save_CFLAGS" 14200fi 14201 14202found="no" 14203 14204 if test $found = "no" ; then 14205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14207 fi 14208 14209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14211 fi 14212 14213 CFLAGS="$CFLAGS -Werror=nonnull" 14214 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14216$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14217 cacheid=xorg_cv_cc_flag__Werror_nonnull 14218 if eval \${$cacheid+:} false; then : 14219 $as_echo_n "(cached) " >&6 14220else 14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14222/* end confdefs.h. */ 14223int i; 14224int 14225main () 14226{ 14227 14228 ; 14229 return 0; 14230} 14231_ACEOF 14232if ac_fn_c_try_link "$LINENO"; then : 14233 eval $cacheid=yes 14234else 14235 eval $cacheid=no 14236fi 14237rm -f core conftest.err conftest.$ac_objext \ 14238 conftest$ac_exeext conftest.$ac_ext 14239fi 14240 14241 14242 CFLAGS="$xorg_testset_save_CFLAGS" 14243 14244 eval supported=\$$cacheid 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14246$as_echo "$supported" >&6; } 14247 if test "$supported" = "yes" ; then 14248 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14249 found="yes" 14250 fi 14251 fi 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267xorg_testset_save_CFLAGS="$CFLAGS" 14268 14269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14274 $as_echo_n "(cached) " >&6 14275else 14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14277/* end confdefs.h. */ 14278int i; 14279_ACEOF 14280if ac_fn_c_try_compile "$LINENO"; then : 14281 xorg_cv_cc_flag_unknown_warning_option=yes 14282else 14283 xorg_cv_cc_flag_unknown_warning_option=no 14284fi 14285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14286fi 14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14290 CFLAGS="$xorg_testset_save_CFLAGS" 14291fi 14292 14293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14296 fi 14297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304/* end confdefs.h. */ 14305int i; 14306_ACEOF 14307if ac_fn_c_try_compile "$LINENO"; then : 14308 xorg_cv_cc_flag_unused_command_line_argument=yes 14309else 14310 xorg_cv_cc_flag_unused_command_line_argument=no 14311fi 14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14313fi 14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14317 CFLAGS="$xorg_testset_save_CFLAGS" 14318fi 14319 14320found="no" 14321 14322 if test $found = "no" ; then 14323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14325 fi 14326 14327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14329 fi 14330 14331 CFLAGS="$CFLAGS -Werror=init-self" 14332 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14334$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14335 cacheid=xorg_cv_cc_flag__Werror_init_self 14336 if eval \${$cacheid+:} false; then : 14337 $as_echo_n "(cached) " >&6 14338else 14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14340/* end confdefs.h. */ 14341int i; 14342int 14343main () 14344{ 14345 14346 ; 14347 return 0; 14348} 14349_ACEOF 14350if ac_fn_c_try_link "$LINENO"; then : 14351 eval $cacheid=yes 14352else 14353 eval $cacheid=no 14354fi 14355rm -f core conftest.err conftest.$ac_objext \ 14356 conftest$ac_exeext conftest.$ac_ext 14357fi 14358 14359 14360 CFLAGS="$xorg_testset_save_CFLAGS" 14361 14362 eval supported=\$$cacheid 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14364$as_echo "$supported" >&6; } 14365 if test "$supported" = "yes" ; then 14366 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14367 found="yes" 14368 fi 14369 fi 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385xorg_testset_save_CFLAGS="$CFLAGS" 14386 14387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14392 $as_echo_n "(cached) " >&6 14393else 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396int i; 14397_ACEOF 14398if ac_fn_c_try_compile "$LINENO"; then : 14399 xorg_cv_cc_flag_unknown_warning_option=yes 14400else 14401 xorg_cv_cc_flag_unknown_warning_option=no 14402fi 14403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14404fi 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14408 CFLAGS="$xorg_testset_save_CFLAGS" 14409fi 14410 14411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14414 fi 14415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14419 $as_echo_n "(cached) " >&6 14420else 14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14422/* end confdefs.h. */ 14423int i; 14424_ACEOF 14425if ac_fn_c_try_compile "$LINENO"; then : 14426 xorg_cv_cc_flag_unused_command_line_argument=yes 14427else 14428 xorg_cv_cc_flag_unused_command_line_argument=no 14429fi 14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14431fi 14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14435 CFLAGS="$xorg_testset_save_CFLAGS" 14436fi 14437 14438found="no" 14439 14440 if test $found = "no" ; then 14441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14443 fi 14444 14445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14447 fi 14448 14449 CFLAGS="$CFLAGS -Werror=main" 14450 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14452$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14453 cacheid=xorg_cv_cc_flag__Werror_main 14454 if eval \${$cacheid+:} false; then : 14455 $as_echo_n "(cached) " >&6 14456else 14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14458/* end confdefs.h. */ 14459int i; 14460int 14461main () 14462{ 14463 14464 ; 14465 return 0; 14466} 14467_ACEOF 14468if ac_fn_c_try_link "$LINENO"; then : 14469 eval $cacheid=yes 14470else 14471 eval $cacheid=no 14472fi 14473rm -f core conftest.err conftest.$ac_objext \ 14474 conftest$ac_exeext conftest.$ac_ext 14475fi 14476 14477 14478 CFLAGS="$xorg_testset_save_CFLAGS" 14479 14480 eval supported=\$$cacheid 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14482$as_echo "$supported" >&6; } 14483 if test "$supported" = "yes" ; then 14484 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14485 found="yes" 14486 fi 14487 fi 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503xorg_testset_save_CFLAGS="$CFLAGS" 14504 14505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14510 $as_echo_n "(cached) " >&6 14511else 14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14513/* end confdefs.h. */ 14514int i; 14515_ACEOF 14516if ac_fn_c_try_compile "$LINENO"; then : 14517 xorg_cv_cc_flag_unknown_warning_option=yes 14518else 14519 xorg_cv_cc_flag_unknown_warning_option=no 14520fi 14521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14522fi 14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14526 CFLAGS="$xorg_testset_save_CFLAGS" 14527fi 14528 14529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14532 fi 14533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540/* end confdefs.h. */ 14541int i; 14542_ACEOF 14543if ac_fn_c_try_compile "$LINENO"; then : 14544 xorg_cv_cc_flag_unused_command_line_argument=yes 14545else 14546 xorg_cv_cc_flag_unused_command_line_argument=no 14547fi 14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14549fi 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14553 CFLAGS="$xorg_testset_save_CFLAGS" 14554fi 14555 14556found="no" 14557 14558 if test $found = "no" ; then 14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14561 fi 14562 14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 fi 14566 14567 CFLAGS="$CFLAGS -Werror=missing-braces" 14568 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14570$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14571 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14572 if eval \${$cacheid+:} false; then : 14573 $as_echo_n "(cached) " >&6 14574else 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14576/* end confdefs.h. */ 14577int i; 14578int 14579main () 14580{ 14581 14582 ; 14583 return 0; 14584} 14585_ACEOF 14586if ac_fn_c_try_link "$LINENO"; then : 14587 eval $cacheid=yes 14588else 14589 eval $cacheid=no 14590fi 14591rm -f core conftest.err conftest.$ac_objext \ 14592 conftest$ac_exeext conftest.$ac_ext 14593fi 14594 14595 14596 CFLAGS="$xorg_testset_save_CFLAGS" 14597 14598 eval supported=\$$cacheid 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14600$as_echo "$supported" >&6; } 14601 if test "$supported" = "yes" ; then 14602 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14603 found="yes" 14604 fi 14605 fi 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621xorg_testset_save_CFLAGS="$CFLAGS" 14622 14623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14628 $as_echo_n "(cached) " >&6 14629else 14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14631/* end confdefs.h. */ 14632int i; 14633_ACEOF 14634if ac_fn_c_try_compile "$LINENO"; then : 14635 xorg_cv_cc_flag_unknown_warning_option=yes 14636else 14637 xorg_cv_cc_flag_unknown_warning_option=no 14638fi 14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14640fi 14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645fi 14646 14647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14650 fi 14651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14655 $as_echo_n "(cached) " >&6 14656else 14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659int i; 14660_ACEOF 14661if ac_fn_c_try_compile "$LINENO"; then : 14662 xorg_cv_cc_flag_unused_command_line_argument=yes 14663else 14664 xorg_cv_cc_flag_unused_command_line_argument=no 14665fi 14666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14667fi 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14671 CFLAGS="$xorg_testset_save_CFLAGS" 14672fi 14673 14674found="no" 14675 14676 if test $found = "no" ; then 14677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14679 fi 14680 14681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14683 fi 14684 14685 CFLAGS="$CFLAGS -Werror=sequence-point" 14686 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14688$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14689 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14690 if eval \${$cacheid+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692else 14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695int i; 14696int 14697main () 14698{ 14699 14700 ; 14701 return 0; 14702} 14703_ACEOF 14704if ac_fn_c_try_link "$LINENO"; then : 14705 eval $cacheid=yes 14706else 14707 eval $cacheid=no 14708fi 14709rm -f core conftest.err conftest.$ac_objext \ 14710 conftest$ac_exeext conftest.$ac_ext 14711fi 14712 14713 14714 CFLAGS="$xorg_testset_save_CFLAGS" 14715 14716 eval supported=\$$cacheid 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14718$as_echo "$supported" >&6; } 14719 if test "$supported" = "yes" ; then 14720 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14721 found="yes" 14722 fi 14723 fi 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739xorg_testset_save_CFLAGS="$CFLAGS" 14740 14741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14749/* end confdefs.h. */ 14750int i; 14751_ACEOF 14752if ac_fn_c_try_compile "$LINENO"; then : 14753 xorg_cv_cc_flag_unknown_warning_option=yes 14754else 14755 xorg_cv_cc_flag_unknown_warning_option=no 14756fi 14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14758fi 14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14762 CFLAGS="$xorg_testset_save_CFLAGS" 14763fi 14764 14765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14768 fi 14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14773 $as_echo_n "(cached) " >&6 14774else 14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14776/* end confdefs.h. */ 14777int i; 14778_ACEOF 14779if ac_fn_c_try_compile "$LINENO"; then : 14780 xorg_cv_cc_flag_unused_command_line_argument=yes 14781else 14782 xorg_cv_cc_flag_unused_command_line_argument=no 14783fi 14784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14785fi 14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14789 CFLAGS="$xorg_testset_save_CFLAGS" 14790fi 14791 14792found="no" 14793 14794 if test $found = "no" ; then 14795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14797 fi 14798 14799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14801 fi 14802 14803 CFLAGS="$CFLAGS -Werror=return-type" 14804 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14806$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14807 cacheid=xorg_cv_cc_flag__Werror_return_type 14808 if eval \${$cacheid+:} false; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812/* end confdefs.h. */ 14813int i; 14814int 14815main () 14816{ 14817 14818 ; 14819 return 0; 14820} 14821_ACEOF 14822if ac_fn_c_try_link "$LINENO"; then : 14823 eval $cacheid=yes 14824else 14825 eval $cacheid=no 14826fi 14827rm -f core conftest.err conftest.$ac_objext \ 14828 conftest$ac_exeext conftest.$ac_ext 14829fi 14830 14831 14832 CFLAGS="$xorg_testset_save_CFLAGS" 14833 14834 eval supported=\$$cacheid 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14836$as_echo "$supported" >&6; } 14837 if test "$supported" = "yes" ; then 14838 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14839 found="yes" 14840 fi 14841 fi 14842 14843 if test $found = "no" ; then 14844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 fi 14847 14848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14850 fi 14851 14852 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14853 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14855$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14856 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14857 if eval \${$cacheid+:} false; then : 14858 $as_echo_n "(cached) " >&6 14859else 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14861/* end confdefs.h. */ 14862int i; 14863int 14864main () 14865{ 14866 14867 ; 14868 return 0; 14869} 14870_ACEOF 14871if ac_fn_c_try_link "$LINENO"; then : 14872 eval $cacheid=yes 14873else 14874 eval $cacheid=no 14875fi 14876rm -f core conftest.err conftest.$ac_objext \ 14877 conftest$ac_exeext conftest.$ac_ext 14878fi 14879 14880 14881 CFLAGS="$xorg_testset_save_CFLAGS" 14882 14883 eval supported=\$$cacheid 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14885$as_echo "$supported" >&6; } 14886 if test "$supported" = "yes" ; then 14887 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14888 found="yes" 14889 fi 14890 fi 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906xorg_testset_save_CFLAGS="$CFLAGS" 14907 14908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14913 $as_echo_n "(cached) " >&6 14914else 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917int i; 14918_ACEOF 14919if ac_fn_c_try_compile "$LINENO"; then : 14920 xorg_cv_cc_flag_unknown_warning_option=yes 14921else 14922 xorg_cv_cc_flag_unknown_warning_option=no 14923fi 14924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14925fi 14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14929 CFLAGS="$xorg_testset_save_CFLAGS" 14930fi 14931 14932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14935 fi 14936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14940 $as_echo_n "(cached) " >&6 14941else 14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944int i; 14945_ACEOF 14946if ac_fn_c_try_compile "$LINENO"; then : 14947 xorg_cv_cc_flag_unused_command_line_argument=yes 14948else 14949 xorg_cv_cc_flag_unused_command_line_argument=no 14950fi 14951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14952fi 14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14956 CFLAGS="$xorg_testset_save_CFLAGS" 14957fi 14958 14959found="no" 14960 14961 if test $found = "no" ; then 14962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14964 fi 14965 14966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14968 fi 14969 14970 CFLAGS="$CFLAGS -Werror=trigraphs" 14971 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14973$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14974 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14975 if eval \${$cacheid+:} false; then : 14976 $as_echo_n "(cached) " >&6 14977else 14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14979/* end confdefs.h. */ 14980int i; 14981int 14982main () 14983{ 14984 14985 ; 14986 return 0; 14987} 14988_ACEOF 14989if ac_fn_c_try_link "$LINENO"; then : 14990 eval $cacheid=yes 14991else 14992 eval $cacheid=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext \ 14995 conftest$ac_exeext conftest.$ac_ext 14996fi 14997 14998 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000 15001 eval supported=\$$cacheid 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15003$as_echo "$supported" >&6; } 15004 if test "$supported" = "yes" ; then 15005 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15006 found="yes" 15007 fi 15008 fi 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024xorg_testset_save_CFLAGS="$CFLAGS" 15025 15026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15031 $as_echo_n "(cached) " >&6 15032else 15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15034/* end confdefs.h. */ 15035int i; 15036_ACEOF 15037if ac_fn_c_try_compile "$LINENO"; then : 15038 xorg_cv_cc_flag_unknown_warning_option=yes 15039else 15040 xorg_cv_cc_flag_unknown_warning_option=no 15041fi 15042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15043fi 15044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15047 CFLAGS="$xorg_testset_save_CFLAGS" 15048fi 15049 15050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15053 fi 15054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15058 $as_echo_n "(cached) " >&6 15059else 15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15061/* end confdefs.h. */ 15062int i; 15063_ACEOF 15064if ac_fn_c_try_compile "$LINENO"; then : 15065 xorg_cv_cc_flag_unused_command_line_argument=yes 15066else 15067 xorg_cv_cc_flag_unused_command_line_argument=no 15068fi 15069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15070fi 15071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15074 CFLAGS="$xorg_testset_save_CFLAGS" 15075fi 15076 15077found="no" 15078 15079 if test $found = "no" ; then 15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15082 fi 15083 15084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15086 fi 15087 15088 CFLAGS="$CFLAGS -Werror=array-bounds" 15089 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15091$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15092 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15093 if eval \${$cacheid+:} false; then : 15094 $as_echo_n "(cached) " >&6 15095else 15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15097/* end confdefs.h. */ 15098int i; 15099int 15100main () 15101{ 15102 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107if ac_fn_c_try_link "$LINENO"; then : 15108 eval $cacheid=yes 15109else 15110 eval $cacheid=no 15111fi 15112rm -f core conftest.err conftest.$ac_objext \ 15113 conftest$ac_exeext conftest.$ac_ext 15114fi 15115 15116 15117 CFLAGS="$xorg_testset_save_CFLAGS" 15118 15119 eval supported=\$$cacheid 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15121$as_echo "$supported" >&6; } 15122 if test "$supported" = "yes" ; then 15123 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15124 found="yes" 15125 fi 15126 fi 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142xorg_testset_save_CFLAGS="$CFLAGS" 15143 15144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15149 $as_echo_n "(cached) " >&6 15150else 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15152/* end confdefs.h. */ 15153int i; 15154_ACEOF 15155if ac_fn_c_try_compile "$LINENO"; then : 15156 xorg_cv_cc_flag_unknown_warning_option=yes 15157else 15158 xorg_cv_cc_flag_unknown_warning_option=no 15159fi 15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15161fi 15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15165 CFLAGS="$xorg_testset_save_CFLAGS" 15166fi 15167 15168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15171 fi 15172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180int i; 15181_ACEOF 15182if ac_fn_c_try_compile "$LINENO"; then : 15183 xorg_cv_cc_flag_unused_command_line_argument=yes 15184else 15185 xorg_cv_cc_flag_unused_command_line_argument=no 15186fi 15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15188fi 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15192 CFLAGS="$xorg_testset_save_CFLAGS" 15193fi 15194 15195found="no" 15196 15197 if test $found = "no" ; then 15198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15200 fi 15201 15202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15204 fi 15205 15206 CFLAGS="$CFLAGS -Werror=write-strings" 15207 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15209$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15210 cacheid=xorg_cv_cc_flag__Werror_write_strings 15211 if eval \${$cacheid+:} false; then : 15212 $as_echo_n "(cached) " >&6 15213else 15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15215/* end confdefs.h. */ 15216int i; 15217int 15218main () 15219{ 15220 15221 ; 15222 return 0; 15223} 15224_ACEOF 15225if ac_fn_c_try_link "$LINENO"; then : 15226 eval $cacheid=yes 15227else 15228 eval $cacheid=no 15229fi 15230rm -f core conftest.err conftest.$ac_objext \ 15231 conftest$ac_exeext conftest.$ac_ext 15232fi 15233 15234 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236 15237 eval supported=\$$cacheid 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15239$as_echo "$supported" >&6; } 15240 if test "$supported" = "yes" ; then 15241 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15242 found="yes" 15243 fi 15244 fi 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260xorg_testset_save_CFLAGS="$CFLAGS" 15261 15262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15267 $as_echo_n "(cached) " >&6 15268else 15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15270/* end confdefs.h. */ 15271int i; 15272_ACEOF 15273if ac_fn_c_try_compile "$LINENO"; then : 15274 xorg_cv_cc_flag_unknown_warning_option=yes 15275else 15276 xorg_cv_cc_flag_unknown_warning_option=no 15277fi 15278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15279fi 15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15283 CFLAGS="$xorg_testset_save_CFLAGS" 15284fi 15285 15286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15289 fi 15290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15294 $as_echo_n "(cached) " >&6 15295else 15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15297/* end confdefs.h. */ 15298int i; 15299_ACEOF 15300if ac_fn_c_try_compile "$LINENO"; then : 15301 xorg_cv_cc_flag_unused_command_line_argument=yes 15302else 15303 xorg_cv_cc_flag_unused_command_line_argument=no 15304fi 15305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15306fi 15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15310 CFLAGS="$xorg_testset_save_CFLAGS" 15311fi 15312 15313found="no" 15314 15315 if test $found = "no" ; then 15316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15318 fi 15319 15320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15322 fi 15323 15324 CFLAGS="$CFLAGS -Werror=address" 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15327$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15328 cacheid=xorg_cv_cc_flag__Werror_address 15329 if eval \${$cacheid+:} false; then : 15330 $as_echo_n "(cached) " >&6 15331else 15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333/* end confdefs.h. */ 15334int i; 15335int 15336main () 15337{ 15338 15339 ; 15340 return 0; 15341} 15342_ACEOF 15343if ac_fn_c_try_link "$LINENO"; then : 15344 eval $cacheid=yes 15345else 15346 eval $cacheid=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext \ 15349 conftest$ac_exeext conftest.$ac_ext 15350fi 15351 15352 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354 15355 eval supported=\$$cacheid 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15357$as_echo "$supported" >&6; } 15358 if test "$supported" = "yes" ; then 15359 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15360 found="yes" 15361 fi 15362 fi 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378xorg_testset_save_CFLAGS="$CFLAGS" 15379 15380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389int i; 15390_ACEOF 15391if ac_fn_c_try_compile "$LINENO"; then : 15392 xorg_cv_cc_flag_unknown_warning_option=yes 15393else 15394 xorg_cv_cc_flag_unknown_warning_option=no 15395fi 15396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15397fi 15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15401 CFLAGS="$xorg_testset_save_CFLAGS" 15402fi 15403 15404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15407 fi 15408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15412 $as_echo_n "(cached) " >&6 15413else 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416int i; 15417_ACEOF 15418if ac_fn_c_try_compile "$LINENO"; then : 15419 xorg_cv_cc_flag_unused_command_line_argument=yes 15420else 15421 xorg_cv_cc_flag_unused_command_line_argument=no 15422fi 15423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15424fi 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15428 CFLAGS="$xorg_testset_save_CFLAGS" 15429fi 15430 15431found="no" 15432 15433 if test $found = "no" ; then 15434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15436 fi 15437 15438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15440 fi 15441 15442 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15443 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15445$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15446 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15447 if eval \${$cacheid+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452int i; 15453int 15454main () 15455{ 15456 15457 ; 15458 return 0; 15459} 15460_ACEOF 15461if ac_fn_c_try_link "$LINENO"; then : 15462 eval $cacheid=yes 15463else 15464 eval $cacheid=no 15465fi 15466rm -f core conftest.err conftest.$ac_objext \ 15467 conftest$ac_exeext conftest.$ac_ext 15468fi 15469 15470 15471 CFLAGS="$xorg_testset_save_CFLAGS" 15472 15473 eval supported=\$$cacheid 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15475$as_echo "$supported" >&6; } 15476 if test "$supported" = "yes" ; then 15477 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15478 found="yes" 15479 fi 15480 fi 15481 15482 if test $found = "no" ; then 15483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15485 fi 15486 15487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15489 fi 15490 15491 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15492 15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15494$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15495 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15496 if eval \${$cacheid+:} false; then : 15497 $as_echo_n "(cached) " >&6 15498else 15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15500/* end confdefs.h. */ 15501int i; 15502int 15503main () 15504{ 15505 15506 ; 15507 return 0; 15508} 15509_ACEOF 15510if ac_fn_c_try_link "$LINENO"; then : 15511 eval $cacheid=yes 15512else 15513 eval $cacheid=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext \ 15516 conftest$ac_exeext conftest.$ac_ext 15517fi 15518 15519 15520 CFLAGS="$xorg_testset_save_CFLAGS" 15521 15522 eval supported=\$$cacheid 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15524$as_echo "$supported" >&6; } 15525 if test "$supported" = "yes" ; then 15526 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15527 found="yes" 15528 fi 15529 fi 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545xorg_testset_save_CFLAGS="$CFLAGS" 15546 15547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15552 $as_echo_n "(cached) " >&6 15553else 15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15555/* end confdefs.h. */ 15556int i; 15557_ACEOF 15558if ac_fn_c_try_compile "$LINENO"; then : 15559 xorg_cv_cc_flag_unknown_warning_option=yes 15560else 15561 xorg_cv_cc_flag_unknown_warning_option=no 15562fi 15563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15564fi 15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15568 CFLAGS="$xorg_testset_save_CFLAGS" 15569fi 15570 15571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15574 fi 15575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15579 $as_echo_n "(cached) " >&6 15580else 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583int i; 15584_ACEOF 15585if ac_fn_c_try_compile "$LINENO"; then : 15586 xorg_cv_cc_flag_unused_command_line_argument=yes 15587else 15588 xorg_cv_cc_flag_unused_command_line_argument=no 15589fi 15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15591fi 15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15595 CFLAGS="$xorg_testset_save_CFLAGS" 15596fi 15597 15598found="no" 15599 15600 if test $found = "no" ; then 15601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15603 fi 15604 15605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15607 fi 15608 15609 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15610 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15612$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15613 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15614 if eval \${$cacheid+:} false; then : 15615 $as_echo_n "(cached) " >&6 15616else 15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618/* end confdefs.h. */ 15619int i; 15620int 15621main () 15622{ 15623 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628if ac_fn_c_try_link "$LINENO"; then : 15629 eval $cacheid=yes 15630else 15631 eval $cacheid=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext \ 15634 conftest$ac_exeext conftest.$ac_ext 15635fi 15636 15637 15638 CFLAGS="$xorg_testset_save_CFLAGS" 15639 15640 eval supported=\$$cacheid 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15642$as_echo "$supported" >&6; } 15643 if test "$supported" = "yes" ; then 15644 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15645 found="yes" 15646 fi 15647 fi 15648 15649 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15650else 15651{ $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 15652$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;} 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666xorg_testset_save_CFLAGS="$CFLAGS" 15667 15668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15673 $as_echo_n "(cached) " >&6 15674else 15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15676/* end confdefs.h. */ 15677int i; 15678_ACEOF 15679if ac_fn_c_try_compile "$LINENO"; then : 15680 xorg_cv_cc_flag_unknown_warning_option=yes 15681else 15682 xorg_cv_cc_flag_unknown_warning_option=no 15683fi 15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15685fi 15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15689 CFLAGS="$xorg_testset_save_CFLAGS" 15690fi 15691 15692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15695 fi 15696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15700 $as_echo_n "(cached) " >&6 15701else 15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15703/* end confdefs.h. */ 15704int i; 15705_ACEOF 15706if ac_fn_c_try_compile "$LINENO"; then : 15707 xorg_cv_cc_flag_unused_command_line_argument=yes 15708else 15709 xorg_cv_cc_flag_unused_command_line_argument=no 15710fi 15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15712fi 15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15716 CFLAGS="$xorg_testset_save_CFLAGS" 15717fi 15718 15719found="no" 15720 15721 if test $found = "no" ; then 15722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15724 fi 15725 15726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15728 fi 15729 15730 CFLAGS="$CFLAGS -Wimplicit" 15731 15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15733$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15734 cacheid=xorg_cv_cc_flag__Wimplicit 15735 if eval \${$cacheid+:} false; then : 15736 $as_echo_n "(cached) " >&6 15737else 15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15739/* end confdefs.h. */ 15740int i; 15741int 15742main () 15743{ 15744 15745 ; 15746 return 0; 15747} 15748_ACEOF 15749if ac_fn_c_try_link "$LINENO"; then : 15750 eval $cacheid=yes 15751else 15752 eval $cacheid=no 15753fi 15754rm -f core conftest.err conftest.$ac_objext \ 15755 conftest$ac_exeext conftest.$ac_ext 15756fi 15757 15758 15759 CFLAGS="$xorg_testset_save_CFLAGS" 15760 15761 eval supported=\$$cacheid 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15763$as_echo "$supported" >&6; } 15764 if test "$supported" = "yes" ; then 15765 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15766 found="yes" 15767 fi 15768 fi 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784xorg_testset_save_CFLAGS="$CFLAGS" 15785 15786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15791 $as_echo_n "(cached) " >&6 15792else 15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15794/* end confdefs.h. */ 15795int i; 15796_ACEOF 15797if ac_fn_c_try_compile "$LINENO"; then : 15798 xorg_cv_cc_flag_unknown_warning_option=yes 15799else 15800 xorg_cv_cc_flag_unknown_warning_option=no 15801fi 15802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15803fi 15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15807 CFLAGS="$xorg_testset_save_CFLAGS" 15808fi 15809 15810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 fi 15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15818 $as_echo_n "(cached) " >&6 15819else 15820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15821/* end confdefs.h. */ 15822int i; 15823_ACEOF 15824if ac_fn_c_try_compile "$LINENO"; then : 15825 xorg_cv_cc_flag_unused_command_line_argument=yes 15826else 15827 xorg_cv_cc_flag_unused_command_line_argument=no 15828fi 15829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15830fi 15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15834 CFLAGS="$xorg_testset_save_CFLAGS" 15835fi 15836 15837found="no" 15838 15839 if test $found = "no" ; then 15840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 fi 15843 15844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15846 fi 15847 15848 CFLAGS="$CFLAGS -Wnonnull" 15849 15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15851$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15852 cacheid=xorg_cv_cc_flag__Wnonnull 15853 if eval \${$cacheid+:} false; then : 15854 $as_echo_n "(cached) " >&6 15855else 15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15857/* end confdefs.h. */ 15858int i; 15859int 15860main () 15861{ 15862 15863 ; 15864 return 0; 15865} 15866_ACEOF 15867if ac_fn_c_try_link "$LINENO"; then : 15868 eval $cacheid=yes 15869else 15870 eval $cacheid=no 15871fi 15872rm -f core conftest.err conftest.$ac_objext \ 15873 conftest$ac_exeext conftest.$ac_ext 15874fi 15875 15876 15877 CFLAGS="$xorg_testset_save_CFLAGS" 15878 15879 eval supported=\$$cacheid 15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15881$as_echo "$supported" >&6; } 15882 if test "$supported" = "yes" ; then 15883 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15884 found="yes" 15885 fi 15886 fi 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902xorg_testset_save_CFLAGS="$CFLAGS" 15903 15904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15909 $as_echo_n "(cached) " >&6 15910else 15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913int i; 15914_ACEOF 15915if ac_fn_c_try_compile "$LINENO"; then : 15916 xorg_cv_cc_flag_unknown_warning_option=yes 15917else 15918 xorg_cv_cc_flag_unknown_warning_option=no 15919fi 15920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15921fi 15922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15925 CFLAGS="$xorg_testset_save_CFLAGS" 15926fi 15927 15928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15931 fi 15932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15936 $as_echo_n "(cached) " >&6 15937else 15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15939/* end confdefs.h. */ 15940int i; 15941_ACEOF 15942if ac_fn_c_try_compile "$LINENO"; then : 15943 xorg_cv_cc_flag_unused_command_line_argument=yes 15944else 15945 xorg_cv_cc_flag_unused_command_line_argument=no 15946fi 15947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15948fi 15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15952 CFLAGS="$xorg_testset_save_CFLAGS" 15953fi 15954 15955found="no" 15956 15957 if test $found = "no" ; then 15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15960 fi 15961 15962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15964 fi 15965 15966 CFLAGS="$CFLAGS -Winit-self" 15967 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15969$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15970 cacheid=xorg_cv_cc_flag__Winit_self 15971 if eval \${$cacheid+:} false; then : 15972 $as_echo_n "(cached) " >&6 15973else 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976int i; 15977int 15978main () 15979{ 15980 15981 ; 15982 return 0; 15983} 15984_ACEOF 15985if ac_fn_c_try_link "$LINENO"; then : 15986 eval $cacheid=yes 15987else 15988 eval $cacheid=no 15989fi 15990rm -f core conftest.err conftest.$ac_objext \ 15991 conftest$ac_exeext conftest.$ac_ext 15992fi 15993 15994 15995 CFLAGS="$xorg_testset_save_CFLAGS" 15996 15997 eval supported=\$$cacheid 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15999$as_echo "$supported" >&6; } 16000 if test "$supported" = "yes" ; then 16001 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16002 found="yes" 16003 fi 16004 fi 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020xorg_testset_save_CFLAGS="$CFLAGS" 16021 16022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16027 $as_echo_n "(cached) " >&6 16028else 16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16030/* end confdefs.h. */ 16031int i; 16032_ACEOF 16033if ac_fn_c_try_compile "$LINENO"; then : 16034 xorg_cv_cc_flag_unknown_warning_option=yes 16035else 16036 xorg_cv_cc_flag_unknown_warning_option=no 16037fi 16038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16039fi 16040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16043 CFLAGS="$xorg_testset_save_CFLAGS" 16044fi 16045 16046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16049 fi 16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16054 $as_echo_n "(cached) " >&6 16055else 16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16057/* end confdefs.h. */ 16058int i; 16059_ACEOF 16060if ac_fn_c_try_compile "$LINENO"; then : 16061 xorg_cv_cc_flag_unused_command_line_argument=yes 16062else 16063 xorg_cv_cc_flag_unused_command_line_argument=no 16064fi 16065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16066fi 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16070 CFLAGS="$xorg_testset_save_CFLAGS" 16071fi 16072 16073found="no" 16074 16075 if test $found = "no" ; then 16076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16078 fi 16079 16080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16082 fi 16083 16084 CFLAGS="$CFLAGS -Wmain" 16085 16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16087$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16088 cacheid=xorg_cv_cc_flag__Wmain 16089 if eval \${$cacheid+:} false; then : 16090 $as_echo_n "(cached) " >&6 16091else 16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16093/* end confdefs.h. */ 16094int i; 16095int 16096main () 16097{ 16098 16099 ; 16100 return 0; 16101} 16102_ACEOF 16103if ac_fn_c_try_link "$LINENO"; then : 16104 eval $cacheid=yes 16105else 16106 eval $cacheid=no 16107fi 16108rm -f core conftest.err conftest.$ac_objext \ 16109 conftest$ac_exeext conftest.$ac_ext 16110fi 16111 16112 16113 CFLAGS="$xorg_testset_save_CFLAGS" 16114 16115 eval supported=\$$cacheid 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16117$as_echo "$supported" >&6; } 16118 if test "$supported" = "yes" ; then 16119 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16120 found="yes" 16121 fi 16122 fi 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138xorg_testset_save_CFLAGS="$CFLAGS" 16139 16140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16145 $as_echo_n "(cached) " >&6 16146else 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148/* end confdefs.h. */ 16149int i; 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO"; then : 16152 xorg_cv_cc_flag_unknown_warning_option=yes 16153else 16154 xorg_cv_cc_flag_unknown_warning_option=no 16155fi 16156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16157fi 16158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16161 CFLAGS="$xorg_testset_save_CFLAGS" 16162fi 16163 16164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16167 fi 16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16172 $as_echo_n "(cached) " >&6 16173else 16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16175/* end confdefs.h. */ 16176int i; 16177_ACEOF 16178if ac_fn_c_try_compile "$LINENO"; then : 16179 xorg_cv_cc_flag_unused_command_line_argument=yes 16180else 16181 xorg_cv_cc_flag_unused_command_line_argument=no 16182fi 16183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16184fi 16185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189fi 16190 16191found="no" 16192 16193 if test $found = "no" ; then 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 fi 16197 16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 fi 16201 16202 CFLAGS="$CFLAGS -Wmissing-braces" 16203 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16205$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16206 cacheid=xorg_cv_cc_flag__Wmissing_braces 16207 if eval \${$cacheid+:} false; then : 16208 $as_echo_n "(cached) " >&6 16209else 16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16211/* end confdefs.h. */ 16212int i; 16213int 16214main () 16215{ 16216 16217 ; 16218 return 0; 16219} 16220_ACEOF 16221if ac_fn_c_try_link "$LINENO"; then : 16222 eval $cacheid=yes 16223else 16224 eval $cacheid=no 16225fi 16226rm -f core conftest.err conftest.$ac_objext \ 16227 conftest$ac_exeext conftest.$ac_ext 16228fi 16229 16230 16231 CFLAGS="$xorg_testset_save_CFLAGS" 16232 16233 eval supported=\$$cacheid 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16235$as_echo "$supported" >&6; } 16236 if test "$supported" = "yes" ; then 16237 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16238 found="yes" 16239 fi 16240 fi 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256xorg_testset_save_CFLAGS="$CFLAGS" 16257 16258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16263 $as_echo_n "(cached) " >&6 16264else 16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267int i; 16268_ACEOF 16269if ac_fn_c_try_compile "$LINENO"; then : 16270 xorg_cv_cc_flag_unknown_warning_option=yes 16271else 16272 xorg_cv_cc_flag_unknown_warning_option=no 16273fi 16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16275fi 16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16279 CFLAGS="$xorg_testset_save_CFLAGS" 16280fi 16281 16282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16285 fi 16286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16290 $as_echo_n "(cached) " >&6 16291else 16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16293/* end confdefs.h. */ 16294int i; 16295_ACEOF 16296if ac_fn_c_try_compile "$LINENO"; then : 16297 xorg_cv_cc_flag_unused_command_line_argument=yes 16298else 16299 xorg_cv_cc_flag_unused_command_line_argument=no 16300fi 16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16302fi 16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16306 CFLAGS="$xorg_testset_save_CFLAGS" 16307fi 16308 16309found="no" 16310 16311 if test $found = "no" ; then 16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16314 fi 16315 16316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16318 fi 16319 16320 CFLAGS="$CFLAGS -Wsequence-point" 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16323$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16324 cacheid=xorg_cv_cc_flag__Wsequence_point 16325 if eval \${$cacheid+:} false; then : 16326 $as_echo_n "(cached) " >&6 16327else 16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16329/* end confdefs.h. */ 16330int i; 16331int 16332main () 16333{ 16334 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339if ac_fn_c_try_link "$LINENO"; then : 16340 eval $cacheid=yes 16341else 16342 eval $cacheid=no 16343fi 16344rm -f core conftest.err conftest.$ac_objext \ 16345 conftest$ac_exeext conftest.$ac_ext 16346fi 16347 16348 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350 16351 eval supported=\$$cacheid 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16353$as_echo "$supported" >&6; } 16354 if test "$supported" = "yes" ; then 16355 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16356 found="yes" 16357 fi 16358 fi 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374xorg_testset_save_CFLAGS="$CFLAGS" 16375 16376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16381 $as_echo_n "(cached) " >&6 16382else 16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384/* end confdefs.h. */ 16385int i; 16386_ACEOF 16387if ac_fn_c_try_compile "$LINENO"; then : 16388 xorg_cv_cc_flag_unknown_warning_option=yes 16389else 16390 xorg_cv_cc_flag_unknown_warning_option=no 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16393fi 16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398fi 16399 16400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16403 fi 16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16408 $as_echo_n "(cached) " >&6 16409else 16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411/* end confdefs.h. */ 16412int i; 16413_ACEOF 16414if ac_fn_c_try_compile "$LINENO"; then : 16415 xorg_cv_cc_flag_unused_command_line_argument=yes 16416else 16417 xorg_cv_cc_flag_unused_command_line_argument=no 16418fi 16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16420fi 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16424 CFLAGS="$xorg_testset_save_CFLAGS" 16425fi 16426 16427found="no" 16428 16429 if test $found = "no" ; then 16430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16432 fi 16433 16434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16436 fi 16437 16438 CFLAGS="$CFLAGS -Wreturn-type" 16439 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16441$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16442 cacheid=xorg_cv_cc_flag__Wreturn_type 16443 if eval \${$cacheid+:} false; then : 16444 $as_echo_n "(cached) " >&6 16445else 16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16447/* end confdefs.h. */ 16448int i; 16449int 16450main () 16451{ 16452 16453 ; 16454 return 0; 16455} 16456_ACEOF 16457if ac_fn_c_try_link "$LINENO"; then : 16458 eval $cacheid=yes 16459else 16460 eval $cacheid=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext \ 16463 conftest$ac_exeext conftest.$ac_ext 16464fi 16465 16466 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468 16469 eval supported=\$$cacheid 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16471$as_echo "$supported" >&6; } 16472 if test "$supported" = "yes" ; then 16473 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16474 found="yes" 16475 fi 16476 fi 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492xorg_testset_save_CFLAGS="$CFLAGS" 16493 16494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16499 $as_echo_n "(cached) " >&6 16500else 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503int i; 16504_ACEOF 16505if ac_fn_c_try_compile "$LINENO"; then : 16506 xorg_cv_cc_flag_unknown_warning_option=yes 16507else 16508 xorg_cv_cc_flag_unknown_warning_option=no 16509fi 16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16511fi 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16515 CFLAGS="$xorg_testset_save_CFLAGS" 16516fi 16517 16518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16521 fi 16522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16526 $as_echo_n "(cached) " >&6 16527else 16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16529/* end confdefs.h. */ 16530int i; 16531_ACEOF 16532if ac_fn_c_try_compile "$LINENO"; then : 16533 xorg_cv_cc_flag_unused_command_line_argument=yes 16534else 16535 xorg_cv_cc_flag_unused_command_line_argument=no 16536fi 16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16538fi 16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543fi 16544 16545found="no" 16546 16547 if test $found = "no" ; then 16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16550 fi 16551 16552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16554 fi 16555 16556 CFLAGS="$CFLAGS -Wtrigraphs" 16557 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16559$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16560 cacheid=xorg_cv_cc_flag__Wtrigraphs 16561 if eval \${$cacheid+:} false; then : 16562 $as_echo_n "(cached) " >&6 16563else 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565/* end confdefs.h. */ 16566int i; 16567int 16568main () 16569{ 16570 16571 ; 16572 return 0; 16573} 16574_ACEOF 16575if ac_fn_c_try_link "$LINENO"; then : 16576 eval $cacheid=yes 16577else 16578 eval $cacheid=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext \ 16581 conftest$ac_exeext conftest.$ac_ext 16582fi 16583 16584 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586 16587 eval supported=\$$cacheid 16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16589$as_echo "$supported" >&6; } 16590 if test "$supported" = "yes" ; then 16591 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16592 found="yes" 16593 fi 16594 fi 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610xorg_testset_save_CFLAGS="$CFLAGS" 16611 16612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622_ACEOF 16623if ac_fn_c_try_compile "$LINENO"; then : 16624 xorg_cv_cc_flag_unknown_warning_option=yes 16625else 16626 xorg_cv_cc_flag_unknown_warning_option=no 16627fi 16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16629fi 16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16633 CFLAGS="$xorg_testset_save_CFLAGS" 16634fi 16635 16636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16639 fi 16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16644 $as_echo_n "(cached) " >&6 16645else 16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16647/* end confdefs.h. */ 16648int i; 16649_ACEOF 16650if ac_fn_c_try_compile "$LINENO"; then : 16651 xorg_cv_cc_flag_unused_command_line_argument=yes 16652else 16653 xorg_cv_cc_flag_unused_command_line_argument=no 16654fi 16655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16656fi 16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16660 CFLAGS="$xorg_testset_save_CFLAGS" 16661fi 16662 16663found="no" 16664 16665 if test $found = "no" ; then 16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16668 fi 16669 16670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16672 fi 16673 16674 CFLAGS="$CFLAGS -Warray-bounds" 16675 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16677$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16678 cacheid=xorg_cv_cc_flag__Warray_bounds 16679 if eval \${$cacheid+:} false; then : 16680 $as_echo_n "(cached) " >&6 16681else 16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684int i; 16685int 16686main () 16687{ 16688 16689 ; 16690 return 0; 16691} 16692_ACEOF 16693if ac_fn_c_try_link "$LINENO"; then : 16694 eval $cacheid=yes 16695else 16696 eval $cacheid=no 16697fi 16698rm -f core conftest.err conftest.$ac_objext \ 16699 conftest$ac_exeext conftest.$ac_ext 16700fi 16701 16702 16703 CFLAGS="$xorg_testset_save_CFLAGS" 16704 16705 eval supported=\$$cacheid 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16707$as_echo "$supported" >&6; } 16708 if test "$supported" = "yes" ; then 16709 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16710 found="yes" 16711 fi 16712 fi 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728xorg_testset_save_CFLAGS="$CFLAGS" 16729 16730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16735 $as_echo_n "(cached) " >&6 16736else 16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16738/* end confdefs.h. */ 16739int i; 16740_ACEOF 16741if ac_fn_c_try_compile "$LINENO"; then : 16742 xorg_cv_cc_flag_unknown_warning_option=yes 16743else 16744 xorg_cv_cc_flag_unknown_warning_option=no 16745fi 16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16747fi 16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16751 CFLAGS="$xorg_testset_save_CFLAGS" 16752fi 16753 16754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16757 fi 16758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16762 $as_echo_n "(cached) " >&6 16763else 16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766int i; 16767_ACEOF 16768if ac_fn_c_try_compile "$LINENO"; then : 16769 xorg_cv_cc_flag_unused_command_line_argument=yes 16770else 16771 xorg_cv_cc_flag_unused_command_line_argument=no 16772fi 16773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16774fi 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16778 CFLAGS="$xorg_testset_save_CFLAGS" 16779fi 16780 16781found="no" 16782 16783 if test $found = "no" ; then 16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16786 fi 16787 16788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16790 fi 16791 16792 CFLAGS="$CFLAGS -Wwrite-strings" 16793 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16795$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16796 cacheid=xorg_cv_cc_flag__Wwrite_strings 16797 if eval \${$cacheid+:} false; then : 16798 $as_echo_n "(cached) " >&6 16799else 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802int i; 16803int 16804main () 16805{ 16806 16807 ; 16808 return 0; 16809} 16810_ACEOF 16811if ac_fn_c_try_link "$LINENO"; then : 16812 eval $cacheid=yes 16813else 16814 eval $cacheid=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext \ 16817 conftest$ac_exeext conftest.$ac_ext 16818fi 16819 16820 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822 16823 eval supported=\$$cacheid 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16825$as_echo "$supported" >&6; } 16826 if test "$supported" = "yes" ; then 16827 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16828 found="yes" 16829 fi 16830 fi 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846xorg_testset_save_CFLAGS="$CFLAGS" 16847 16848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16853 $as_echo_n "(cached) " >&6 16854else 16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857int i; 16858_ACEOF 16859if ac_fn_c_try_compile "$LINENO"; then : 16860 xorg_cv_cc_flag_unknown_warning_option=yes 16861else 16862 xorg_cv_cc_flag_unknown_warning_option=no 16863fi 16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16865fi 16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16869 CFLAGS="$xorg_testset_save_CFLAGS" 16870fi 16871 16872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16875 fi 16876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16880 $as_echo_n "(cached) " >&6 16881else 16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16883/* end confdefs.h. */ 16884int i; 16885_ACEOF 16886if ac_fn_c_try_compile "$LINENO"; then : 16887 xorg_cv_cc_flag_unused_command_line_argument=yes 16888else 16889 xorg_cv_cc_flag_unused_command_line_argument=no 16890fi 16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16892fi 16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16896 CFLAGS="$xorg_testset_save_CFLAGS" 16897fi 16898 16899found="no" 16900 16901 if test $found = "no" ; then 16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16904 fi 16905 16906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16908 fi 16909 16910 CFLAGS="$CFLAGS -Waddress" 16911 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16913$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16914 cacheid=xorg_cv_cc_flag__Waddress 16915 if eval \${$cacheid+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920int i; 16921int 16922main () 16923{ 16924 16925 ; 16926 return 0; 16927} 16928_ACEOF 16929if ac_fn_c_try_link "$LINENO"; then : 16930 eval $cacheid=yes 16931else 16932 eval $cacheid=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext \ 16935 conftest$ac_exeext conftest.$ac_ext 16936fi 16937 16938 16939 CFLAGS="$xorg_testset_save_CFLAGS" 16940 16941 eval supported=\$$cacheid 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16943$as_echo "$supported" >&6; } 16944 if test "$supported" = "yes" ; then 16945 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16946 found="yes" 16947 fi 16948 fi 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964xorg_testset_save_CFLAGS="$CFLAGS" 16965 16966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16971 $as_echo_n "(cached) " >&6 16972else 16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16974/* end confdefs.h. */ 16975int i; 16976_ACEOF 16977if ac_fn_c_try_compile "$LINENO"; then : 16978 xorg_cv_cc_flag_unknown_warning_option=yes 16979else 16980 xorg_cv_cc_flag_unknown_warning_option=no 16981fi 16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16983fi 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16987 CFLAGS="$xorg_testset_save_CFLAGS" 16988fi 16989 16990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16993 fi 16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16998 $as_echo_n "(cached) " >&6 16999else 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002int i; 17003_ACEOF 17004if ac_fn_c_try_compile "$LINENO"; then : 17005 xorg_cv_cc_flag_unused_command_line_argument=yes 17006else 17007 xorg_cv_cc_flag_unused_command_line_argument=no 17008fi 17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17010fi 17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17014 CFLAGS="$xorg_testset_save_CFLAGS" 17015fi 17016 17017found="no" 17018 17019 if test $found = "no" ; then 17020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17022 fi 17023 17024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17026 fi 17027 17028 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17029 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17031$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17032 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17033 if eval \${$cacheid+:} false; then : 17034 $as_echo_n "(cached) " >&6 17035else 17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037/* end confdefs.h. */ 17038int i; 17039int 17040main () 17041{ 17042 17043 ; 17044 return 0; 17045} 17046_ACEOF 17047if ac_fn_c_try_link "$LINENO"; then : 17048 eval $cacheid=yes 17049else 17050 eval $cacheid=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext \ 17053 conftest$ac_exeext conftest.$ac_ext 17054fi 17055 17056 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058 17059 eval supported=\$$cacheid 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17061$as_echo "$supported" >&6; } 17062 if test "$supported" = "yes" ; then 17063 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17064 found="yes" 17065 fi 17066 fi 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082xorg_testset_save_CFLAGS="$CFLAGS" 17083 17084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17089 $as_echo_n "(cached) " >&6 17090else 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093int i; 17094_ACEOF 17095if ac_fn_c_try_compile "$LINENO"; then : 17096 xorg_cv_cc_flag_unknown_warning_option=yes 17097else 17098 xorg_cv_cc_flag_unknown_warning_option=no 17099fi 17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17101fi 17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17105 CFLAGS="$xorg_testset_save_CFLAGS" 17106fi 17107 17108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 fi 17112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17116 $as_echo_n "(cached) " >&6 17117else 17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17119/* end confdefs.h. */ 17120int i; 17121_ACEOF 17122if ac_fn_c_try_compile "$LINENO"; then : 17123 xorg_cv_cc_flag_unused_command_line_argument=yes 17124else 17125 xorg_cv_cc_flag_unused_command_line_argument=no 17126fi 17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17128fi 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17132 CFLAGS="$xorg_testset_save_CFLAGS" 17133fi 17134 17135found="no" 17136 17137 if test $found = "no" ; then 17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17140 fi 17141 17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17144 fi 17145 17146 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17147 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17149$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17150 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17151 if eval \${$cacheid+:} false; then : 17152 $as_echo_n "(cached) " >&6 17153else 17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17155/* end confdefs.h. */ 17156int i; 17157int 17158main () 17159{ 17160 17161 ; 17162 return 0; 17163} 17164_ACEOF 17165if ac_fn_c_try_link "$LINENO"; then : 17166 eval $cacheid=yes 17167else 17168 eval $cacheid=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext \ 17171 conftest$ac_exeext conftest.$ac_ext 17172fi 17173 17174 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176 17177 eval supported=\$$cacheid 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17179$as_echo "$supported" >&6; } 17180 if test "$supported" = "yes" ; then 17181 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17182 found="yes" 17183 fi 17184 fi 17185 17186 17187fi 17188 17189 17190 17191 17192 17193 17194 17195 CWARNFLAGS="$BASE_CFLAGS" 17196 if test "x$GCC" = xyes ; then 17197 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17198 fi 17199 17200 17201 17202 17203 17204 17205 17206 17207# Check whether --enable-strict-compilation was given. 17208if test "${enable_strict_compilation+set}" = set; then : 17209 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17210else 17211 STRICT_COMPILE=no 17212fi 17213 17214 17215 17216 17217 17218 17219STRICT_CFLAGS="" 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233xorg_testset_save_CFLAGS="$CFLAGS" 17234 17235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17240 $as_echo_n "(cached) " >&6 17241else 17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17243/* end confdefs.h. */ 17244int i; 17245_ACEOF 17246if ac_fn_c_try_compile "$LINENO"; then : 17247 xorg_cv_cc_flag_unknown_warning_option=yes 17248else 17249 xorg_cv_cc_flag_unknown_warning_option=no 17250fi 17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17252fi 17253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17256 CFLAGS="$xorg_testset_save_CFLAGS" 17257fi 17258 17259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17262 fi 17263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17267 $as_echo_n "(cached) " >&6 17268else 17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17270/* end confdefs.h. */ 17271int i; 17272_ACEOF 17273if ac_fn_c_try_compile "$LINENO"; then : 17274 xorg_cv_cc_flag_unused_command_line_argument=yes 17275else 17276 xorg_cv_cc_flag_unused_command_line_argument=no 17277fi 17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17279fi 17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17283 CFLAGS="$xorg_testset_save_CFLAGS" 17284fi 17285 17286found="no" 17287 17288 if test $found = "no" ; then 17289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17291 fi 17292 17293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17295 fi 17296 17297 CFLAGS="$CFLAGS -pedantic" 17298 17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17300$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17301 cacheid=xorg_cv_cc_flag__pedantic 17302 if eval \${$cacheid+:} false; then : 17303 $as_echo_n "(cached) " >&6 17304else 17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17306/* end confdefs.h. */ 17307int i; 17308int 17309main () 17310{ 17311 17312 ; 17313 return 0; 17314} 17315_ACEOF 17316if ac_fn_c_try_link "$LINENO"; then : 17317 eval $cacheid=yes 17318else 17319 eval $cacheid=no 17320fi 17321rm -f core conftest.err conftest.$ac_objext \ 17322 conftest$ac_exeext conftest.$ac_ext 17323fi 17324 17325 17326 CFLAGS="$xorg_testset_save_CFLAGS" 17327 17328 eval supported=\$$cacheid 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17330$as_echo "$supported" >&6; } 17331 if test "$supported" = "yes" ; then 17332 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17333 found="yes" 17334 fi 17335 fi 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351xorg_testset_save_CFLAGS="$CFLAGS" 17352 17353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17358 $as_echo_n "(cached) " >&6 17359else 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362int i; 17363_ACEOF 17364if ac_fn_c_try_compile "$LINENO"; then : 17365 xorg_cv_cc_flag_unknown_warning_option=yes 17366else 17367 xorg_cv_cc_flag_unknown_warning_option=no 17368fi 17369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17370fi 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17374 CFLAGS="$xorg_testset_save_CFLAGS" 17375fi 17376 17377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17380 fi 17381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17385 $as_echo_n "(cached) " >&6 17386else 17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17388/* end confdefs.h. */ 17389int i; 17390_ACEOF 17391if ac_fn_c_try_compile "$LINENO"; then : 17392 xorg_cv_cc_flag_unused_command_line_argument=yes 17393else 17394 xorg_cv_cc_flag_unused_command_line_argument=no 17395fi 17396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17397fi 17398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17401 CFLAGS="$xorg_testset_save_CFLAGS" 17402fi 17403 17404found="no" 17405 17406 if test $found = "no" ; then 17407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17409 fi 17410 17411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17413 fi 17414 17415 CFLAGS="$CFLAGS -Werror" 17416 17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17418$as_echo_n "checking if $CC supports -Werror... " >&6; } 17419 cacheid=xorg_cv_cc_flag__Werror 17420 if eval \${$cacheid+:} false; then : 17421 $as_echo_n "(cached) " >&6 17422else 17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17424/* end confdefs.h. */ 17425int i; 17426int 17427main () 17428{ 17429 17430 ; 17431 return 0; 17432} 17433_ACEOF 17434if ac_fn_c_try_link "$LINENO"; then : 17435 eval $cacheid=yes 17436else 17437 eval $cacheid=no 17438fi 17439rm -f core conftest.err conftest.$ac_objext \ 17440 conftest$ac_exeext conftest.$ac_ext 17441fi 17442 17443 17444 CFLAGS="$xorg_testset_save_CFLAGS" 17445 17446 eval supported=\$$cacheid 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17448$as_echo "$supported" >&6; } 17449 if test "$supported" = "yes" ; then 17450 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17451 found="yes" 17452 fi 17453 fi 17454 17455 if test $found = "no" ; then 17456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17458 fi 17459 17460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17462 fi 17463 17464 CFLAGS="$CFLAGS -errwarn" 17465 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17467$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17468 cacheid=xorg_cv_cc_flag__errwarn 17469 if eval \${$cacheid+:} false; then : 17470 $as_echo_n "(cached) " >&6 17471else 17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17473/* end confdefs.h. */ 17474int i; 17475int 17476main () 17477{ 17478 17479 ; 17480 return 0; 17481} 17482_ACEOF 17483if ac_fn_c_try_link "$LINENO"; then : 17484 eval $cacheid=yes 17485else 17486 eval $cacheid=no 17487fi 17488rm -f core conftest.err conftest.$ac_objext \ 17489 conftest$ac_exeext conftest.$ac_ext 17490fi 17491 17492 17493 CFLAGS="$xorg_testset_save_CFLAGS" 17494 17495 eval supported=\$$cacheid 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17497$as_echo "$supported" >&6; } 17498 if test "$supported" = "yes" ; then 17499 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17500 found="yes" 17501 fi 17502 fi 17503 17504 17505 17506# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17507# activate it with -Werror, so we add it here explicitly. 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521xorg_testset_save_CFLAGS="$CFLAGS" 17522 17523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17528 $as_echo_n "(cached) " >&6 17529else 17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17531/* end confdefs.h. */ 17532int i; 17533_ACEOF 17534if ac_fn_c_try_compile "$LINENO"; then : 17535 xorg_cv_cc_flag_unknown_warning_option=yes 17536else 17537 xorg_cv_cc_flag_unknown_warning_option=no 17538fi 17539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17540fi 17541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17544 CFLAGS="$xorg_testset_save_CFLAGS" 17545fi 17546 17547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17550 fi 17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17555 $as_echo_n "(cached) " >&6 17556else 17557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17558/* end confdefs.h. */ 17559int i; 17560_ACEOF 17561if ac_fn_c_try_compile "$LINENO"; then : 17562 xorg_cv_cc_flag_unused_command_line_argument=yes 17563else 17564 xorg_cv_cc_flag_unused_command_line_argument=no 17565fi 17566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17567fi 17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17571 CFLAGS="$xorg_testset_save_CFLAGS" 17572fi 17573 17574found="no" 17575 17576 if test $found = "no" ; then 17577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17579 fi 17580 17581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17583 fi 17584 17585 CFLAGS="$CFLAGS -Werror=attributes" 17586 17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17588$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17589 cacheid=xorg_cv_cc_flag__Werror_attributes 17590 if eval \${$cacheid+:} false; then : 17591 $as_echo_n "(cached) " >&6 17592else 17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17594/* end confdefs.h. */ 17595int i; 17596int 17597main () 17598{ 17599 17600 ; 17601 return 0; 17602} 17603_ACEOF 17604if ac_fn_c_try_link "$LINENO"; then : 17605 eval $cacheid=yes 17606else 17607 eval $cacheid=no 17608fi 17609rm -f core conftest.err conftest.$ac_objext \ 17610 conftest$ac_exeext conftest.$ac_ext 17611fi 17612 17613 17614 CFLAGS="$xorg_testset_save_CFLAGS" 17615 17616 eval supported=\$$cacheid 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17618$as_echo "$supported" >&6; } 17619 if test "$supported" = "yes" ; then 17620 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17621 found="yes" 17622 fi 17623 fi 17624 17625 17626 17627if test "x$STRICT_COMPILE" = "xyes"; then 17628 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17629 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17630fi 17631 17632 17633 17634 17635 17636 17637cat >>confdefs.h <<_ACEOF 17638#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17639_ACEOF 17640 17641 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17642 if test "x$PVM" = "x"; then 17643 PVM="0" 17644 fi 17645 17646cat >>confdefs.h <<_ACEOF 17647#define PACKAGE_VERSION_MINOR $PVM 17648_ACEOF 17649 17650 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17651 if test "x$PVP" = "x"; then 17652 PVP="0" 17653 fi 17654 17655cat >>confdefs.h <<_ACEOF 17656#define PACKAGE_VERSION_PATCHLEVEL $PVP 17657_ACEOF 17658 17659 17660 17661CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17662mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17663|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17664echo 'git directory not found: installing possibly empty changelog.' >&2)" 17665 17666 17667 17668 17669macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17670INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17671mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17672|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17673echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17674 17675 17676 17677 17678 17679 17680if test x$APP_MAN_SUFFIX = x ; then 17681 APP_MAN_SUFFIX=1 17682fi 17683if test x$APP_MAN_DIR = x ; then 17684 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17685fi 17686 17687if test x$LIB_MAN_SUFFIX = x ; then 17688 LIB_MAN_SUFFIX=3 17689fi 17690if test x$LIB_MAN_DIR = x ; then 17691 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17692fi 17693 17694if test x$FILE_MAN_SUFFIX = x ; then 17695 case $host_os in 17696 solaris*) FILE_MAN_SUFFIX=4 ;; 17697 *) FILE_MAN_SUFFIX=5 ;; 17698 esac 17699fi 17700if test x$FILE_MAN_DIR = x ; then 17701 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17702fi 17703 17704if test x$MISC_MAN_SUFFIX = x ; then 17705 case $host_os in 17706 solaris*) MISC_MAN_SUFFIX=5 ;; 17707 *) MISC_MAN_SUFFIX=7 ;; 17708 esac 17709fi 17710if test x$MISC_MAN_DIR = x ; then 17711 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17712fi 17713 17714if test x$DRIVER_MAN_SUFFIX = x ; then 17715 case $host_os in 17716 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17717 *) DRIVER_MAN_SUFFIX=4 ;; 17718 esac 17719fi 17720if test x$DRIVER_MAN_DIR = x ; then 17721 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17722fi 17723 17724if test x$ADMIN_MAN_SUFFIX = x ; then 17725 case $host_os in 17726 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17727 *) ADMIN_MAN_SUFFIX=8 ;; 17728 esac 17729fi 17730if test x$ADMIN_MAN_DIR = x ; then 17731 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17732fi 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748XORG_MAN_PAGE="X Version 11" 17749 17750MAN_SUBSTS="\ 17751 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17752 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17753 -e 's|__xservername__|Xorg|g' \ 17754 -e 's|__xconfigfile__|xorg.conf|g' \ 17755 -e 's|__projectroot__|\$(prefix)|g' \ 17756 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17757 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17758 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17759 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17760 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17761 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17762 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17763 17764 17765 17766# Check whether --enable-silent-rules was given. 17767if test "${enable_silent_rules+set}" = set; then : 17768 enableval=$enable_silent_rules; 17769fi 17770 17771case $enable_silent_rules in # ((( 17772 yes) AM_DEFAULT_VERBOSITY=0;; 17773 no) AM_DEFAULT_VERBOSITY=1;; 17774 *) AM_DEFAULT_VERBOSITY=0;; 17775esac 17776am_make=${MAKE-make} 17777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17778$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17779if ${am_cv_make_support_nested_variables+:} false; then : 17780 $as_echo_n "(cached) " >&6 17781else 17782 if $as_echo 'TRUE=$(BAR$(V)) 17783BAR0=false 17784BAR1=true 17785V=1 17786am__doit: 17787 @$(TRUE) 17788.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17789 am_cv_make_support_nested_variables=yes 17790else 17791 am_cv_make_support_nested_variables=no 17792fi 17793fi 17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17795$as_echo "$am_cv_make_support_nested_variables" >&6; } 17796if test $am_cv_make_support_nested_variables = yes; then 17797 AM_V='$(V)' 17798 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17799else 17800 AM_V=$AM_DEFAULT_VERBOSITY 17801 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17802fi 17803AM_BACKSLASH='\' 17804 17805 17806 17807# Check presentext configuration, strip extra digits from package version to 17808# find the required protocol version 17809PRESENTEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 17810 17811 17812# Obtain compiler/linker options for depedencies 17813 17814pkg_failed=no 17815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENTEXT" >&5 17816$as_echo_n "checking for PRESENTEXT... " >&6; } 17817 17818if test -n "$PRESENTEXT_CFLAGS"; then 17819 pkg_cv_PRESENTEXT_CFLAGS="$PRESENTEXT_CFLAGS" 17820 elif test -n "$PKG_CONFIG"; then 17821 if test -n "$PKG_CONFIG" && \ 17822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto presentproto >= \$PRESENTEXT_VERSION xextproto x11\""; } >&5 17823 ($PKG_CONFIG --exists --print-errors "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11") 2>&5 17824 ac_status=$? 17825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17826 test $ac_status = 0; }; then 17827 pkg_cv_PRESENTEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11" 2>/dev/null` 17828 test "x$?" != "x0" && pkg_failed=yes 17829else 17830 pkg_failed=yes 17831fi 17832 else 17833 pkg_failed=untried 17834fi 17835if test -n "$PRESENTEXT_LIBS"; then 17836 pkg_cv_PRESENTEXT_LIBS="$PRESENTEXT_LIBS" 17837 elif test -n "$PKG_CONFIG"; then 17838 if test -n "$PKG_CONFIG" && \ 17839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto presentproto >= \$PRESENTEXT_VERSION xextproto x11\""; } >&5 17840 ($PKG_CONFIG --exists --print-errors "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11") 2>&5 17841 ac_status=$? 17842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17843 test $ac_status = 0; }; then 17844 pkg_cv_PRESENTEXT_LIBS=`$PKG_CONFIG --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11" 2>/dev/null` 17845 test "x$?" != "x0" && pkg_failed=yes 17846else 17847 pkg_failed=yes 17848fi 17849 else 17850 pkg_failed=untried 17851fi 17852 17853 17854 17855if test $pkg_failed = yes; then 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17857$as_echo "no" >&6; } 17858 17859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17860 _pkg_short_errors_supported=yes 17861else 17862 _pkg_short_errors_supported=no 17863fi 17864 if test $_pkg_short_errors_supported = yes; then 17865 PRESENTEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11" 2>&1` 17866 else 17867 PRESENTEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11" 2>&1` 17868 fi 17869 # Put the nasty error message in config.log where it belongs 17870 echo "$PRESENTEXT_PKG_ERRORS" >&5 17871 17872 as_fn_error $? "Package requirements (xproto presentproto >= $PRESENTEXT_VERSION xextproto x11) were not met: 17873 17874$PRESENTEXT_PKG_ERRORS 17875 17876Consider adjusting the PKG_CONFIG_PATH environment variable if you 17877installed software in a non-standard prefix. 17878 17879Alternatively, you may set the environment variables PRESENTEXT_CFLAGS 17880and PRESENTEXT_LIBS to avoid the need to call pkg-config. 17881See the pkg-config man page for more details." "$LINENO" 5 17882elif test $pkg_failed = untried; then 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17884$as_echo "no" >&6; } 17885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17887as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17888is in your PATH or set the PKG_CONFIG environment variable to the full 17889path to pkg-config. 17890 17891Alternatively, you may set the environment variables PRESENTEXT_CFLAGS 17892and PRESENTEXT_LIBS to avoid the need to call pkg-config. 17893See the pkg-config man page for more details. 17894 17895To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17896See \`config.log' for more details" "$LINENO" 5; } 17897else 17898 PRESENTEXT_CFLAGS=$pkg_cv_PRESENTEXT_CFLAGS 17899 PRESENTEXT_LIBS=$pkg_cv_PRESENTEXT_LIBS 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17901$as_echo "yes" >&6; } 17902 17903fi 17904 17905ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xpresent.pc" 17906 17907cat >confcache <<\_ACEOF 17908# This file is a shell script that caches the results of configure 17909# tests run on this system so they can be shared between configure 17910# scripts and configure runs, see configure's option --config-cache. 17911# It is not useful on other systems. If it contains results you don't 17912# want to keep, you may remove or edit it. 17913# 17914# config.status only pays attention to the cache file if you give it 17915# the --recheck option to rerun configure. 17916# 17917# `ac_cv_env_foo' variables (set or unset) will be overridden when 17918# loading this file, other *unset* `ac_cv_foo' will be assigned the 17919# following values. 17920 17921_ACEOF 17922 17923# The following way of writing the cache mishandles newlines in values, 17924# but we know of no workaround that is simple, portable, and efficient. 17925# So, we kill variables containing newlines. 17926# Ultrix sh set writes to stderr and can't be redirected directly, 17927# and sets the high bit in the cache file unless we assign to the vars. 17928( 17929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17930 eval ac_val=\$$ac_var 17931 case $ac_val in #( 17932 *${as_nl}*) 17933 case $ac_var in #( 17934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17935$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17936 esac 17937 case $ac_var in #( 17938 _ | IFS | as_nl) ;; #( 17939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17940 *) { eval $ac_var=; unset $ac_var;} ;; 17941 esac ;; 17942 esac 17943 done 17944 17945 (set) 2>&1 | 17946 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17947 *${as_nl}ac_space=\ *) 17948 # `set' does not quote correctly, so add quotes: double-quote 17949 # substitution turns \\\\ into \\, and sed turns \\ into \. 17950 sed -n \ 17951 "s/'/'\\\\''/g; 17952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17953 ;; #( 17954 *) 17955 # `set' quotes correctly as required by POSIX, so do not add quotes. 17956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17957 ;; 17958 esac | 17959 sort 17960) | 17961 sed ' 17962 /^ac_cv_env_/b end 17963 t clear 17964 :clear 17965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17966 t end 17967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17968 :end' >>confcache 17969if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17970 if test -w "$cache_file"; then 17971 if test "x$cache_file" != "x/dev/null"; then 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17973$as_echo "$as_me: updating cache $cache_file" >&6;} 17974 if test ! -f "$cache_file" || test -h "$cache_file"; then 17975 cat confcache >"$cache_file" 17976 else 17977 case $cache_file in #( 17978 */* | ?:*) 17979 mv -f confcache "$cache_file"$$ && 17980 mv -f "$cache_file"$$ "$cache_file" ;; #( 17981 *) 17982 mv -f confcache "$cache_file" ;; 17983 esac 17984 fi 17985 fi 17986 else 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17988$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17989 fi 17990fi 17991rm -f confcache 17992 17993test "x$prefix" = xNONE && prefix=$ac_default_prefix 17994# Let make expand exec_prefix. 17995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17996 17997DEFS=-DHAVE_CONFIG_H 17998 17999ac_libobjs= 18000ac_ltlibobjs= 18001U= 18002for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18003 # 1. Remove the extension, and $U if already installed. 18004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18007 # will be set to the directory where LIBOBJS objects are built. 18008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18010done 18011LIBOBJS=$ac_libobjs 18012 18013LTLIBOBJS=$ac_ltlibobjs 18014 18015 18016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18017$as_echo_n "checking that generated files are newer than configure... " >&6; } 18018 if test -n "$am_sleep_pid"; then 18019 # Hide warnings about reused PIDs. 18020 wait $am_sleep_pid 2>/dev/null 18021 fi 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18023$as_echo "done" >&6; } 18024 if test -n "$EXEEXT"; then 18025 am__EXEEXT_TRUE= 18026 am__EXEEXT_FALSE='#' 18027else 18028 am__EXEEXT_TRUE='#' 18029 am__EXEEXT_FALSE= 18030fi 18031 18032if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18033 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18034Usually this means the macro was only invoked conditionally." "$LINENO" 5 18035fi 18036if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18037 as_fn_error $? "conditional \"AMDEP\" was never defined. 18038Usually this means the macro was only invoked conditionally." "$LINENO" 5 18039fi 18040if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18041 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18042Usually this means the macro was only invoked conditionally." "$LINENO" 5 18043fi 18044 18045: "${CONFIG_STATUS=./config.status}" 18046ac_write_fail=0 18047ac_clean_files_save=$ac_clean_files 18048ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18049{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18050$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18051as_write_fail=0 18052cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18053#! $SHELL 18054# Generated by $as_me. 18055# Run this file to recreate the current configuration. 18056# Compiler output produced by configure, useful for debugging 18057# configure, is in config.log if it exists. 18058 18059debug=false 18060ac_cs_recheck=false 18061ac_cs_silent=false 18062 18063SHELL=\${CONFIG_SHELL-$SHELL} 18064export SHELL 18065_ASEOF 18066cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18067## -------------------- ## 18068## M4sh Initialization. ## 18069## -------------------- ## 18070 18071# Be more Bourne compatible 18072DUALCASE=1; export DUALCASE # for MKS sh 18073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18074 emulate sh 18075 NULLCMD=: 18076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18077 # is contrary to our usage. Disable this feature. 18078 alias -g '${1+"$@"}'='"$@"' 18079 setopt NO_GLOB_SUBST 18080else 18081 case `(set -o) 2>/dev/null` in #( 18082 *posix*) : 18083 set -o posix ;; #( 18084 *) : 18085 ;; 18086esac 18087fi 18088 18089 18090as_nl=' 18091' 18092export as_nl 18093# Printing a long string crashes Solaris 7 /usr/bin/printf. 18094as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18097# Prefer a ksh shell builtin over an external printf program on Solaris, 18098# but without wasting forks for bash or zsh. 18099if test -z "$BASH_VERSION$ZSH_VERSION" \ 18100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18101 as_echo='print -r --' 18102 as_echo_n='print -rn --' 18103elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18104 as_echo='printf %s\n' 18105 as_echo_n='printf %s' 18106else 18107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18108 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18109 as_echo_n='/usr/ucb/echo -n' 18110 else 18111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18112 as_echo_n_body='eval 18113 arg=$1; 18114 case $arg in #( 18115 *"$as_nl"*) 18116 expr "X$arg" : "X\\(.*\\)$as_nl"; 18117 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18118 esac; 18119 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18120 ' 18121 export as_echo_n_body 18122 as_echo_n='sh -c $as_echo_n_body as_echo' 18123 fi 18124 export as_echo_body 18125 as_echo='sh -c $as_echo_body as_echo' 18126fi 18127 18128# The user is always right. 18129if test "${PATH_SEPARATOR+set}" != set; then 18130 PATH_SEPARATOR=: 18131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18133 PATH_SEPARATOR=';' 18134 } 18135fi 18136 18137 18138# IFS 18139# We need space, tab and new line, in precisely that order. Quoting is 18140# there to prevent editors from complaining about space-tab. 18141# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18142# splitting by setting IFS to empty value.) 18143IFS=" "" $as_nl" 18144 18145# Find who we are. Look in the path if we contain no directory separator. 18146as_myself= 18147case $0 in #(( 18148 *[\\/]* ) as_myself=$0 ;; 18149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18150for as_dir in $PATH 18151do 18152 IFS=$as_save_IFS 18153 test -z "$as_dir" && as_dir=. 18154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18155 done 18156IFS=$as_save_IFS 18157 18158 ;; 18159esac 18160# We did not find ourselves, most probably we were run as `sh COMMAND' 18161# in which case we are not to be found in the path. 18162if test "x$as_myself" = x; then 18163 as_myself=$0 18164fi 18165if test ! -f "$as_myself"; then 18166 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18167 exit 1 18168fi 18169 18170# Unset variables that we do not need and which cause bugs (e.g. in 18171# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18172# suppresses any "Segmentation fault" message there. '((' could 18173# trigger a bug in pdksh 5.2.14. 18174for as_var in BASH_ENV ENV MAIL MAILPATH 18175do eval test x\${$as_var+set} = xset \ 18176 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18177done 18178PS1='$ ' 18179PS2='> ' 18180PS4='+ ' 18181 18182# NLS nuisances. 18183LC_ALL=C 18184export LC_ALL 18185LANGUAGE=C 18186export LANGUAGE 18187 18188# CDPATH. 18189(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18190 18191 18192# as_fn_error STATUS ERROR [LINENO LOG_FD] 18193# ---------------------------------------- 18194# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18195# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18196# script with STATUS, using 1 if that was 0. 18197as_fn_error () 18198{ 18199 as_status=$1; test $as_status -eq 0 && as_status=1 18200 if test "$4"; then 18201 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18202 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18203 fi 18204 $as_echo "$as_me: error: $2" >&2 18205 as_fn_exit $as_status 18206} # as_fn_error 18207 18208 18209# as_fn_set_status STATUS 18210# ----------------------- 18211# Set $? to STATUS, without forking. 18212as_fn_set_status () 18213{ 18214 return $1 18215} # as_fn_set_status 18216 18217# as_fn_exit STATUS 18218# ----------------- 18219# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18220as_fn_exit () 18221{ 18222 set +e 18223 as_fn_set_status $1 18224 exit $1 18225} # as_fn_exit 18226 18227# as_fn_unset VAR 18228# --------------- 18229# Portably unset VAR. 18230as_fn_unset () 18231{ 18232 { eval $1=; unset $1;} 18233} 18234as_unset=as_fn_unset 18235# as_fn_append VAR VALUE 18236# ---------------------- 18237# Append the text in VALUE to the end of the definition contained in VAR. Take 18238# advantage of any shell optimizations that allow amortized linear growth over 18239# repeated appends, instead of the typical quadratic growth present in naive 18240# implementations. 18241if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18242 eval 'as_fn_append () 18243 { 18244 eval $1+=\$2 18245 }' 18246else 18247 as_fn_append () 18248 { 18249 eval $1=\$$1\$2 18250 } 18251fi # as_fn_append 18252 18253# as_fn_arith ARG... 18254# ------------------ 18255# Perform arithmetic evaluation on the ARGs, and store the result in the 18256# global $as_val. Take advantage of shells that can avoid forks. The arguments 18257# must be portable across $(()) and expr. 18258if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18259 eval 'as_fn_arith () 18260 { 18261 as_val=$(( $* )) 18262 }' 18263else 18264 as_fn_arith () 18265 { 18266 as_val=`expr "$@" || test $? -eq 1` 18267 } 18268fi # as_fn_arith 18269 18270 18271if expr a : '\(a\)' >/dev/null 2>&1 && 18272 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18273 as_expr=expr 18274else 18275 as_expr=false 18276fi 18277 18278if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18279 as_basename=basename 18280else 18281 as_basename=false 18282fi 18283 18284if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18285 as_dirname=dirname 18286else 18287 as_dirname=false 18288fi 18289 18290as_me=`$as_basename -- "$0" || 18291$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18292 X"$0" : 'X\(//\)$' \| \ 18293 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18294$as_echo X/"$0" | 18295 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18296 s//\1/ 18297 q 18298 } 18299 /^X\/\(\/\/\)$/{ 18300 s//\1/ 18301 q 18302 } 18303 /^X\/\(\/\).*/{ 18304 s//\1/ 18305 q 18306 } 18307 s/.*/./; q'` 18308 18309# Avoid depending upon Character Ranges. 18310as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18311as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18312as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18313as_cr_digits='0123456789' 18314as_cr_alnum=$as_cr_Letters$as_cr_digits 18315 18316ECHO_C= ECHO_N= ECHO_T= 18317case `echo -n x` in #((((( 18318-n*) 18319 case `echo 'xy\c'` in 18320 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18321 xy) ECHO_C='\c';; 18322 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18323 ECHO_T=' ';; 18324 esac;; 18325*) 18326 ECHO_N='-n';; 18327esac 18328 18329rm -f conf$$ conf$$.exe conf$$.file 18330if test -d conf$$.dir; then 18331 rm -f conf$$.dir/conf$$.file 18332else 18333 rm -f conf$$.dir 18334 mkdir conf$$.dir 2>/dev/null 18335fi 18336if (echo >conf$$.file) 2>/dev/null; then 18337 if ln -s conf$$.file conf$$ 2>/dev/null; then 18338 as_ln_s='ln -s' 18339 # ... but there are two gotchas: 18340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18342 # In both cases, we have to default to `cp -pR'. 18343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18344 as_ln_s='cp -pR' 18345 elif ln conf$$.file conf$$ 2>/dev/null; then 18346 as_ln_s=ln 18347 else 18348 as_ln_s='cp -pR' 18349 fi 18350else 18351 as_ln_s='cp -pR' 18352fi 18353rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18354rmdir conf$$.dir 2>/dev/null 18355 18356 18357# as_fn_mkdir_p 18358# ------------- 18359# Create "$as_dir" as a directory, including parents if necessary. 18360as_fn_mkdir_p () 18361{ 18362 18363 case $as_dir in #( 18364 -*) as_dir=./$as_dir;; 18365 esac 18366 test -d "$as_dir" || eval $as_mkdir_p || { 18367 as_dirs= 18368 while :; do 18369 case $as_dir in #( 18370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18371 *) as_qdir=$as_dir;; 18372 esac 18373 as_dirs="'$as_qdir' $as_dirs" 18374 as_dir=`$as_dirname -- "$as_dir" || 18375$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18376 X"$as_dir" : 'X\(//\)[^/]' \| \ 18377 X"$as_dir" : 'X\(//\)$' \| \ 18378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18379$as_echo X"$as_dir" | 18380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18381 s//\1/ 18382 q 18383 } 18384 /^X\(\/\/\)[^/].*/{ 18385 s//\1/ 18386 q 18387 } 18388 /^X\(\/\/\)$/{ 18389 s//\1/ 18390 q 18391 } 18392 /^X\(\/\).*/{ 18393 s//\1/ 18394 q 18395 } 18396 s/.*/./; q'` 18397 test -d "$as_dir" && break 18398 done 18399 test -z "$as_dirs" || eval "mkdir $as_dirs" 18400 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18401 18402 18403} # as_fn_mkdir_p 18404if mkdir -p . 2>/dev/null; then 18405 as_mkdir_p='mkdir -p "$as_dir"' 18406else 18407 test -d ./-p && rmdir ./-p 18408 as_mkdir_p=false 18409fi 18410 18411 18412# as_fn_executable_p FILE 18413# ----------------------- 18414# Test if FILE is an executable regular file. 18415as_fn_executable_p () 18416{ 18417 test -f "$1" && test -x "$1" 18418} # as_fn_executable_p 18419as_test_x='test -x' 18420as_executable_p=as_fn_executable_p 18421 18422# Sed expression to map a string onto a valid CPP name. 18423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18424 18425# Sed expression to map a string onto a valid variable name. 18426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18427 18428 18429exec 6>&1 18430## ----------------------------------- ## 18431## Main body of $CONFIG_STATUS script. ## 18432## ----------------------------------- ## 18433_ASEOF 18434test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18435 18436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18437# Save the log message, to keep $0 and so on meaningful, and to 18438# report actual input values of CONFIG_FILES etc. instead of their 18439# values after options handling. 18440ac_log=" 18441This file was extended by libXpresent $as_me 1.0.0, which was 18442generated by GNU Autoconf 2.69. Invocation command line was 18443 18444 CONFIG_FILES = $CONFIG_FILES 18445 CONFIG_HEADERS = $CONFIG_HEADERS 18446 CONFIG_LINKS = $CONFIG_LINKS 18447 CONFIG_COMMANDS = $CONFIG_COMMANDS 18448 $ $0 $@ 18449 18450on `(hostname || uname -n) 2>/dev/null | sed 1q` 18451" 18452 18453_ACEOF 18454 18455case $ac_config_files in *" 18456"*) set x $ac_config_files; shift; ac_config_files=$*;; 18457esac 18458 18459case $ac_config_headers in *" 18460"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18461esac 18462 18463 18464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18465# Files that config.status was made for. 18466config_files="$ac_config_files" 18467config_headers="$ac_config_headers" 18468config_commands="$ac_config_commands" 18469 18470_ACEOF 18471 18472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18473ac_cs_usage="\ 18474\`$as_me' instantiates files and other configuration actions 18475from templates according to the current configuration. Unless the files 18476and actions are specified as TAGs, all are instantiated by default. 18477 18478Usage: $0 [OPTION]... [TAG]... 18479 18480 -h, --help print this help, then exit 18481 -V, --version print version number and configuration settings, then exit 18482 --config print configuration, then exit 18483 -q, --quiet, --silent 18484 do not print progress messages 18485 -d, --debug don't remove temporary files 18486 --recheck update $as_me by reconfiguring in the same conditions 18487 --file=FILE[:TEMPLATE] 18488 instantiate the configuration file FILE 18489 --header=FILE[:TEMPLATE] 18490 instantiate the configuration header FILE 18491 18492Configuration files: 18493$config_files 18494 18495Configuration headers: 18496$config_headers 18497 18498Configuration commands: 18499$config_commands 18500 18501Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18502 18503_ACEOF 18504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18505ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18506ac_cs_version="\\ 18507libXpresent config.status 1.0.0 18508configured by $0, generated by GNU Autoconf 2.69, 18509 with options \\"\$ac_cs_config\\" 18510 18511Copyright (C) 2012 Free Software Foundation, Inc. 18512This config.status script is free software; the Free Software Foundation 18513gives unlimited permission to copy, distribute and modify it." 18514 18515ac_pwd='$ac_pwd' 18516srcdir='$srcdir' 18517INSTALL='$INSTALL' 18518MKDIR_P='$MKDIR_P' 18519AWK='$AWK' 18520test -n "\$AWK" || AWK=awk 18521_ACEOF 18522 18523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18524# The default lists apply if the user does not specify any file. 18525ac_need_defaults=: 18526while test $# != 0 18527do 18528 case $1 in 18529 --*=?*) 18530 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18532 ac_shift=: 18533 ;; 18534 --*=) 18535 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18536 ac_optarg= 18537 ac_shift=: 18538 ;; 18539 *) 18540 ac_option=$1 18541 ac_optarg=$2 18542 ac_shift=shift 18543 ;; 18544 esac 18545 18546 case $ac_option in 18547 # Handling of the options. 18548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18549 ac_cs_recheck=: ;; 18550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18551 $as_echo "$ac_cs_version"; exit ;; 18552 --config | --confi | --conf | --con | --co | --c ) 18553 $as_echo "$ac_cs_config"; exit ;; 18554 --debug | --debu | --deb | --de | --d | -d ) 18555 debug=: ;; 18556 --file | --fil | --fi | --f ) 18557 $ac_shift 18558 case $ac_optarg in 18559 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18560 '') as_fn_error $? "missing file argument" ;; 18561 esac 18562 as_fn_append CONFIG_FILES " '$ac_optarg'" 18563 ac_need_defaults=false;; 18564 --header | --heade | --head | --hea ) 18565 $ac_shift 18566 case $ac_optarg in 18567 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18568 esac 18569 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18570 ac_need_defaults=false;; 18571 --he | --h) 18572 # Conflict between --help and --header 18573 as_fn_error $? "ambiguous option: \`$1' 18574Try \`$0 --help' for more information.";; 18575 --help | --hel | -h ) 18576 $as_echo "$ac_cs_usage"; exit ;; 18577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18578 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18579 ac_cs_silent=: ;; 18580 18581 # This is an error. 18582 -*) as_fn_error $? "unrecognized option: \`$1' 18583Try \`$0 --help' for more information." ;; 18584 18585 *) as_fn_append ac_config_targets " $1" 18586 ac_need_defaults=false ;; 18587 18588 esac 18589 shift 18590done 18591 18592ac_configure_extra_args= 18593 18594if $ac_cs_silent; then 18595 exec 6>/dev/null 18596 ac_configure_extra_args="$ac_configure_extra_args --silent" 18597fi 18598 18599_ACEOF 18600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18601if \$ac_cs_recheck; then 18602 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18603 shift 18604 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18605 CONFIG_SHELL='$SHELL' 18606 export CONFIG_SHELL 18607 exec "\$@" 18608fi 18609 18610_ACEOF 18611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18612exec 5>>config.log 18613{ 18614 echo 18615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18616## Running $as_me. ## 18617_ASBOX 18618 $as_echo "$ac_log" 18619} >&5 18620 18621_ACEOF 18622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18623# 18624# INIT-COMMANDS 18625# 18626AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18627 18628 18629# The HP-UX ksh and POSIX shell print the target directory to stdout 18630# if CDPATH is set. 18631(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18632 18633sed_quote_subst='$sed_quote_subst' 18634double_quote_subst='$double_quote_subst' 18635delay_variable_subst='$delay_variable_subst' 18636macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18637macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18638enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18639enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18640pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18641enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18642SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18643ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18644PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18645host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18646host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18647host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18648build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18649build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18650build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18651SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18652Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18653GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18654EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18655FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18656LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18657NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18658LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18659max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18660ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18661exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18662lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18663lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18664lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18665lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18666lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18667reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18668reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18669OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18670deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18671file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18672file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18673want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18674DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18675sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18676AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18677AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18678archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18679STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18680RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18681old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18682old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18683old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18684lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18685CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18686CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18687compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18688GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18689lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18690lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18691lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18692lt_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"`' 18693nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18694lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18695objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18696MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18697lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18698lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18699lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18700lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18701lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18702need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18703MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18704DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18705NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18706LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18707OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18708OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18709libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18710shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18711extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18712archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18713enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18714export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18715whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18716compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18717old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18718old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18719archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18720archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18721module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18722module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18723with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18724allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18725no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18726hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18727hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18728hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18729hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18730hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18731hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18732hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18733inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18734link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18735always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18736export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18737exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18738include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18739prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18740postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18741file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18742variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18743need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18744need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18745version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18746runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18747shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18748shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18749libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18750library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18751soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18752install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18753postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18754postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18755finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18756finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18757hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18758sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18759sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18760hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18761enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18762enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18763enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18764old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18765striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18766 18767LTCC='$LTCC' 18768LTCFLAGS='$LTCFLAGS' 18769compiler='$compiler_DEFAULT' 18770 18771# A function that is used when there is no print builtin or printf. 18772func_fallback_echo () 18773{ 18774 eval 'cat <<_LTECHO_EOF 18775\$1 18776_LTECHO_EOF' 18777} 18778 18779# Quote evaled strings. 18780for var in SHELL \ 18781ECHO \ 18782PATH_SEPARATOR \ 18783SED \ 18784GREP \ 18785EGREP \ 18786FGREP \ 18787LD \ 18788NM \ 18789LN_S \ 18790lt_SP2NL \ 18791lt_NL2SP \ 18792reload_flag \ 18793OBJDUMP \ 18794deplibs_check_method \ 18795file_magic_cmd \ 18796file_magic_glob \ 18797want_nocaseglob \ 18798DLLTOOL \ 18799sharedlib_from_linklib_cmd \ 18800AR \ 18801AR_FLAGS \ 18802archiver_list_spec \ 18803STRIP \ 18804RANLIB \ 18805CC \ 18806CFLAGS \ 18807compiler \ 18808lt_cv_sys_global_symbol_pipe \ 18809lt_cv_sys_global_symbol_to_cdecl \ 18810lt_cv_sys_global_symbol_to_c_name_address \ 18811lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18812nm_file_list_spec \ 18813lt_prog_compiler_no_builtin_flag \ 18814lt_prog_compiler_pic \ 18815lt_prog_compiler_wl \ 18816lt_prog_compiler_static \ 18817lt_cv_prog_compiler_c_o \ 18818need_locks \ 18819MANIFEST_TOOL \ 18820DSYMUTIL \ 18821NMEDIT \ 18822LIPO \ 18823OTOOL \ 18824OTOOL64 \ 18825shrext_cmds \ 18826export_dynamic_flag_spec \ 18827whole_archive_flag_spec \ 18828compiler_needs_object \ 18829with_gnu_ld \ 18830allow_undefined_flag \ 18831no_undefined_flag \ 18832hardcode_libdir_flag_spec \ 18833hardcode_libdir_separator \ 18834exclude_expsyms \ 18835include_expsyms \ 18836file_list_spec \ 18837variables_saved_for_relink \ 18838libname_spec \ 18839library_names_spec \ 18840soname_spec \ 18841install_override_mode \ 18842finish_eval \ 18843old_striplib \ 18844striplib; do 18845 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18846 *[\\\\\\\`\\"\\\$]*) 18847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18848 ;; 18849 *) 18850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18851 ;; 18852 esac 18853done 18854 18855# Double-quote double-evaled strings. 18856for var in reload_cmds \ 18857old_postinstall_cmds \ 18858old_postuninstall_cmds \ 18859old_archive_cmds \ 18860extract_expsyms_cmds \ 18861old_archive_from_new_cmds \ 18862old_archive_from_expsyms_cmds \ 18863archive_cmds \ 18864archive_expsym_cmds \ 18865module_cmds \ 18866module_expsym_cmds \ 18867export_symbols_cmds \ 18868prelink_cmds \ 18869postlink_cmds \ 18870postinstall_cmds \ 18871postuninstall_cmds \ 18872finish_cmds \ 18873sys_lib_search_path_spec \ 18874sys_lib_dlsearch_path_spec; do 18875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18876 *[\\\\\\\`\\"\\\$]*) 18877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18878 ;; 18879 *) 18880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18881 ;; 18882 esac 18883done 18884 18885ac_aux_dir='$ac_aux_dir' 18886xsi_shell='$xsi_shell' 18887lt_shell_append='$lt_shell_append' 18888 18889# See if we are running on zsh, and set the options which allow our 18890# commands through without removal of \ escapes INIT. 18891if test -n "\${ZSH_VERSION+set}" ; then 18892 setopt NO_GLOB_SUBST 18893fi 18894 18895 18896 PACKAGE='$PACKAGE' 18897 VERSION='$VERSION' 18898 TIMESTAMP='$TIMESTAMP' 18899 RM='$RM' 18900 ofile='$ofile' 18901 18902 18903 18904 18905_ACEOF 18906 18907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18908 18909# Handling of arguments. 18910for ac_config_target in $ac_config_targets 18911do 18912 case $ac_config_target in 18913 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18914 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18915 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18917 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18918 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18919 "xpresent.pc") CONFIG_FILES="$CONFIG_FILES xpresent.pc" ;; 18920 18921 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18922 esac 18923done 18924 18925 18926# If the user did not use the arguments to specify the items to instantiate, 18927# then the envvar interface is used. Set only those that are not. 18928# We use the long form for the default assignment because of an extremely 18929# bizarre bug on SunOS 4.1.3. 18930if $ac_need_defaults; then 18931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18934fi 18935 18936# Have a temporary directory for convenience. Make it in the build tree 18937# simply because there is no reason against having it here, and in addition, 18938# creating and moving files from /tmp can sometimes cause problems. 18939# Hook for its removal unless debugging. 18940# Note that there is a small window in which the directory will not be cleaned: 18941# after its creation but before its name has been assigned to `$tmp'. 18942$debug || 18943{ 18944 tmp= ac_tmp= 18945 trap 'exit_status=$? 18946 : "${ac_tmp:=$tmp}" 18947 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18948' 0 18949 trap 'as_fn_exit 1' 1 2 13 15 18950} 18951# Create a (secure) tmp directory for tmp files. 18952 18953{ 18954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18955 test -d "$tmp" 18956} || 18957{ 18958 tmp=./conf$$-$RANDOM 18959 (umask 077 && mkdir "$tmp") 18960} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18961ac_tmp=$tmp 18962 18963# Set up the scripts for CONFIG_FILES section. 18964# No need to generate them if there are no CONFIG_FILES. 18965# This happens for instance with `./config.status config.h'. 18966if test -n "$CONFIG_FILES"; then 18967 18968 18969ac_cr=`echo X | tr X '\015'` 18970# On cygwin, bash can eat \r inside `` if the user requested igncr. 18971# But we know of no other shell where ac_cr would be empty at this 18972# point, so we can use a bashism as a fallback. 18973if test "x$ac_cr" = x; then 18974 eval ac_cr=\$\'\\r\' 18975fi 18976ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18977if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18978 ac_cs_awk_cr='\\r' 18979else 18980 ac_cs_awk_cr=$ac_cr 18981fi 18982 18983echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18984_ACEOF 18985 18986 18987{ 18988 echo "cat >conf$$subs.awk <<_ACEOF" && 18989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18990 echo "_ACEOF" 18991} >conf$$subs.sh || 18992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18993ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18994ac_delim='%!_!# ' 18995for ac_last_try in false false false false false :; do 18996 . ./conf$$subs.sh || 18997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18998 18999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19000 if test $ac_delim_n = $ac_delim_num; then 19001 break 19002 elif $ac_last_try; then 19003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19004 else 19005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19006 fi 19007done 19008rm -f conf$$subs.sh 19009 19010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19011cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19012_ACEOF 19013sed -n ' 19014h 19015s/^/S["/; s/!.*/"]=/ 19016p 19017g 19018s/^[^!]*!// 19019:repl 19020t repl 19021s/'"$ac_delim"'$// 19022t delim 19023:nl 19024h 19025s/\(.\{148\}\)..*/\1/ 19026t more1 19027s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19028p 19029n 19030b repl 19031:more1 19032s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19033p 19034g 19035s/.\{148\}// 19036t nl 19037:delim 19038h 19039s/\(.\{148\}\)..*/\1/ 19040t more2 19041s/["\\]/\\&/g; s/^/"/; s/$/"/ 19042p 19043b 19044:more2 19045s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19046p 19047g 19048s/.\{148\}// 19049t delim 19050' <conf$$subs.awk | sed ' 19051/^[^""]/{ 19052 N 19053 s/\n// 19054} 19055' >>$CONFIG_STATUS || ac_write_fail=1 19056rm -f conf$$subs.awk 19057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19058_ACAWK 19059cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19060 for (key in S) S_is_set[key] = 1 19061 FS = "" 19062 19063} 19064{ 19065 line = $ 0 19066 nfields = split(line, field, "@") 19067 substed = 0 19068 len = length(field[1]) 19069 for (i = 2; i < nfields; i++) { 19070 key = field[i] 19071 keylen = length(key) 19072 if (S_is_set[key]) { 19073 value = S[key] 19074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19075 len += length(value) + length(field[++i]) 19076 substed = 1 19077 } else 19078 len += 1 + keylen 19079 } 19080 19081 print line 19082} 19083 19084_ACAWK 19085_ACEOF 19086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19087if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19088 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19089else 19090 cat 19091fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19092 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19093_ACEOF 19094 19095# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19096# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19097# trailing colons and then remove the whole line if VPATH becomes empty 19098# (actually we leave an empty line to preserve line numbers). 19099if test "x$srcdir" = x.; then 19100 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19101h 19102s/// 19103s/^/:/ 19104s/[ ]*$/:/ 19105s/:\$(srcdir):/:/g 19106s/:\${srcdir}:/:/g 19107s/:@srcdir@:/:/g 19108s/^:*// 19109s/:*$// 19110x 19111s/\(=[ ]*\).*/\1/ 19112G 19113s/\n// 19114s/^[^=]*=[ ]*$// 19115}' 19116fi 19117 19118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19119fi # test -n "$CONFIG_FILES" 19120 19121# Set up the scripts for CONFIG_HEADERS section. 19122# No need to generate them if there are no CONFIG_HEADERS. 19123# This happens for instance with `./config.status Makefile'. 19124if test -n "$CONFIG_HEADERS"; then 19125cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19126BEGIN { 19127_ACEOF 19128 19129# Transform confdefs.h into an awk script `defines.awk', embedded as 19130# here-document in config.status, that substitutes the proper values into 19131# config.h.in to produce config.h. 19132 19133# Create a delimiter string that does not exist in confdefs.h, to ease 19134# handling of long lines. 19135ac_delim='%!_!# ' 19136for ac_last_try in false false :; do 19137 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19138 if test -z "$ac_tt"; then 19139 break 19140 elif $ac_last_try; then 19141 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19142 else 19143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19144 fi 19145done 19146 19147# For the awk script, D is an array of macro values keyed by name, 19148# likewise P contains macro parameters if any. Preserve backslash 19149# newline sequences. 19150 19151ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19152sed -n ' 19153s/.\{148\}/&'"$ac_delim"'/g 19154t rset 19155:rset 19156s/^[ ]*#[ ]*define[ ][ ]*/ / 19157t def 19158d 19159:def 19160s/\\$// 19161t bsnl 19162s/["\\]/\\&/g 19163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19164D["\1"]=" \3"/p 19165s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19166d 19167:bsnl 19168s/["\\]/\\&/g 19169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19170D["\1"]=" \3\\\\\\n"\\/p 19171t cont 19172s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19173t cont 19174d 19175:cont 19176n 19177s/.\{148\}/&'"$ac_delim"'/g 19178t clear 19179:clear 19180s/\\$// 19181t bsnlc 19182s/["\\]/\\&/g; s/^/"/; s/$/"/p 19183d 19184:bsnlc 19185s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19186b cont 19187' <confdefs.h | sed ' 19188s/'"$ac_delim"'/"\\\ 19189"/g' >>$CONFIG_STATUS || ac_write_fail=1 19190 19191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19192 for (key in D) D_is_set[key] = 1 19193 FS = "" 19194} 19195/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19196 line = \$ 0 19197 split(line, arg, " ") 19198 if (arg[1] == "#") { 19199 defundef = arg[2] 19200 mac1 = arg[3] 19201 } else { 19202 defundef = substr(arg[1], 2) 19203 mac1 = arg[2] 19204 } 19205 split(mac1, mac2, "(") #) 19206 macro = mac2[1] 19207 prefix = substr(line, 1, index(line, defundef) - 1) 19208 if (D_is_set[macro]) { 19209 # Preserve the white space surrounding the "#". 19210 print prefix "define", macro P[macro] D[macro] 19211 next 19212 } else { 19213 # Replace #undef with comments. This is necessary, for example, 19214 # in the case of _POSIX_SOURCE, which is predefined and required 19215 # on some systems where configure will not decide to define it. 19216 if (defundef == "undef") { 19217 print "/*", prefix defundef, macro, "*/" 19218 next 19219 } 19220 } 19221} 19222{ print } 19223_ACAWK 19224_ACEOF 19225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19226 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19227fi # test -n "$CONFIG_HEADERS" 19228 19229 19230eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19231shift 19232for ac_tag 19233do 19234 case $ac_tag in 19235 :[FHLC]) ac_mode=$ac_tag; continue;; 19236 esac 19237 case $ac_mode$ac_tag in 19238 :[FHL]*:*);; 19239 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19240 :[FH]-) ac_tag=-:-;; 19241 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19242 esac 19243 ac_save_IFS=$IFS 19244 IFS=: 19245 set x $ac_tag 19246 IFS=$ac_save_IFS 19247 shift 19248 ac_file=$1 19249 shift 19250 19251 case $ac_mode in 19252 :L) ac_source=$1;; 19253 :[FH]) 19254 ac_file_inputs= 19255 for ac_f 19256 do 19257 case $ac_f in 19258 -) ac_f="$ac_tmp/stdin";; 19259 *) # Look for the file first in the build tree, then in the source tree 19260 # (if the path is not absolute). The absolute path cannot be DOS-style, 19261 # because $ac_f cannot contain `:'. 19262 test -f "$ac_f" || 19263 case $ac_f in 19264 [\\/$]*) false;; 19265 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19266 esac || 19267 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19268 esac 19269 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19270 as_fn_append ac_file_inputs " '$ac_f'" 19271 done 19272 19273 # Let's still pretend it is `configure' which instantiates (i.e., don't 19274 # use $as_me), people would be surprised to read: 19275 # /* config.h. Generated by config.status. */ 19276 configure_input='Generated from '` 19277 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19278 `' by configure.' 19279 if test x"$ac_file" != x-; then 19280 configure_input="$ac_file. $configure_input" 19281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19282$as_echo "$as_me: creating $ac_file" >&6;} 19283 fi 19284 # Neutralize special characters interpreted by sed in replacement strings. 19285 case $configure_input in #( 19286 *\&* | *\|* | *\\* ) 19287 ac_sed_conf_input=`$as_echo "$configure_input" | 19288 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19289 *) ac_sed_conf_input=$configure_input;; 19290 esac 19291 19292 case $ac_tag in 19293 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19295 esac 19296 ;; 19297 esac 19298 19299 ac_dir=`$as_dirname -- "$ac_file" || 19300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19301 X"$ac_file" : 'X\(//\)[^/]' \| \ 19302 X"$ac_file" : 'X\(//\)$' \| \ 19303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19304$as_echo X"$ac_file" | 19305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19306 s//\1/ 19307 q 19308 } 19309 /^X\(\/\/\)[^/].*/{ 19310 s//\1/ 19311 q 19312 } 19313 /^X\(\/\/\)$/{ 19314 s//\1/ 19315 q 19316 } 19317 /^X\(\/\).*/{ 19318 s//\1/ 19319 q 19320 } 19321 s/.*/./; q'` 19322 as_dir="$ac_dir"; as_fn_mkdir_p 19323 ac_builddir=. 19324 19325case "$ac_dir" in 19326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19327*) 19328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19329 # A ".." for each directory in $ac_dir_suffix. 19330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19331 case $ac_top_builddir_sub in 19332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19334 esac ;; 19335esac 19336ac_abs_top_builddir=$ac_pwd 19337ac_abs_builddir=$ac_pwd$ac_dir_suffix 19338# for backward compatibility: 19339ac_top_builddir=$ac_top_build_prefix 19340 19341case $srcdir in 19342 .) # We are building in place. 19343 ac_srcdir=. 19344 ac_top_srcdir=$ac_top_builddir_sub 19345 ac_abs_top_srcdir=$ac_pwd ;; 19346 [\\/]* | ?:[\\/]* ) # Absolute name. 19347 ac_srcdir=$srcdir$ac_dir_suffix; 19348 ac_top_srcdir=$srcdir 19349 ac_abs_top_srcdir=$srcdir ;; 19350 *) # Relative name. 19351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19352 ac_top_srcdir=$ac_top_build_prefix$srcdir 19353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19354esac 19355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19356 19357 19358 case $ac_mode in 19359 :F) 19360 # 19361 # CONFIG_FILE 19362 # 19363 19364 case $INSTALL in 19365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19367 esac 19368 ac_MKDIR_P=$MKDIR_P 19369 case $MKDIR_P in 19370 [\\/$]* | ?:[\\/]* ) ;; 19371 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19372 esac 19373_ACEOF 19374 19375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19376# If the template does not know about datarootdir, expand it. 19377# FIXME: This hack should be removed a few years after 2.60. 19378ac_datarootdir_hack=; ac_datarootdir_seen= 19379ac_sed_dataroot=' 19380/datarootdir/ { 19381 p 19382 q 19383} 19384/@datadir@/p 19385/@docdir@/p 19386/@infodir@/p 19387/@localedir@/p 19388/@mandir@/p' 19389case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19390*datarootdir*) ac_datarootdir_seen=yes;; 19391*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19393$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19394_ACEOF 19395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19396 ac_datarootdir_hack=' 19397 s&@datadir@&$datadir&g 19398 s&@docdir@&$docdir&g 19399 s&@infodir@&$infodir&g 19400 s&@localedir@&$localedir&g 19401 s&@mandir@&$mandir&g 19402 s&\\\${datarootdir}&$datarootdir&g' ;; 19403esac 19404_ACEOF 19405 19406# Neutralize VPATH when `$srcdir' = `.'. 19407# Shell code in configure.ac might set extrasub. 19408# FIXME: do we really want to maintain this feature? 19409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19410ac_sed_extra="$ac_vpsub 19411$extrasub 19412_ACEOF 19413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19414:t 19415/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19416s|@configure_input@|$ac_sed_conf_input|;t t 19417s&@top_builddir@&$ac_top_builddir_sub&;t t 19418s&@top_build_prefix@&$ac_top_build_prefix&;t t 19419s&@srcdir@&$ac_srcdir&;t t 19420s&@abs_srcdir@&$ac_abs_srcdir&;t t 19421s&@top_srcdir@&$ac_top_srcdir&;t t 19422s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19423s&@builddir@&$ac_builddir&;t t 19424s&@abs_builddir@&$ac_abs_builddir&;t t 19425s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19426s&@INSTALL@&$ac_INSTALL&;t t 19427s&@MKDIR_P@&$ac_MKDIR_P&;t t 19428$ac_datarootdir_hack 19429" 19430eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19431 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19432 19433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19434 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19436 "$ac_tmp/out"`; test -z "$ac_out"; } && 19437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19438which seems to be undefined. Please make sure it is defined" >&5 19439$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19440which seems to be undefined. Please make sure it is defined" >&2;} 19441 19442 rm -f "$ac_tmp/stdin" 19443 case $ac_file in 19444 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19445 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19446 esac \ 19447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19448 ;; 19449 :H) 19450 # 19451 # CONFIG_HEADER 19452 # 19453 if test x"$ac_file" != x-; then 19454 { 19455 $as_echo "/* $configure_input */" \ 19456 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19457 } >"$ac_tmp/config.h" \ 19458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19459 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19461$as_echo "$as_me: $ac_file is unchanged" >&6;} 19462 else 19463 rm -f "$ac_file" 19464 mv "$ac_tmp/config.h" "$ac_file" \ 19465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19466 fi 19467 else 19468 $as_echo "/* $configure_input */" \ 19469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19470 || as_fn_error $? "could not create -" "$LINENO" 5 19471 fi 19472# Compute "$ac_file"'s index in $config_headers. 19473_am_arg="$ac_file" 19474_am_stamp_count=1 19475for _am_header in $config_headers :; do 19476 case $_am_header in 19477 $_am_arg | $_am_arg:* ) 19478 break ;; 19479 * ) 19480 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19481 esac 19482done 19483echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19484$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19485 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19486 X"$_am_arg" : 'X\(//\)$' \| \ 19487 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19488$as_echo X"$_am_arg" | 19489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19490 s//\1/ 19491 q 19492 } 19493 /^X\(\/\/\)[^/].*/{ 19494 s//\1/ 19495 q 19496 } 19497 /^X\(\/\/\)$/{ 19498 s//\1/ 19499 q 19500 } 19501 /^X\(\/\).*/{ 19502 s//\1/ 19503 q 19504 } 19505 s/.*/./; q'`/stamp-h$_am_stamp_count 19506 ;; 19507 19508 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19509$as_echo "$as_me: executing $ac_file commands" >&6;} 19510 ;; 19511 esac 19512 19513 19514 case $ac_file$ac_mode in 19515 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19516 # Older Autoconf quotes --file arguments for eval, but not when files 19517 # are listed without --file. Let's play safe and only enable the eval 19518 # if we detect the quoting. 19519 case $CONFIG_FILES in 19520 *\'*) eval set x "$CONFIG_FILES" ;; 19521 *) set x $CONFIG_FILES ;; 19522 esac 19523 shift 19524 for mf 19525 do 19526 # Strip MF so we end up with the name of the file. 19527 mf=`echo "$mf" | sed -e 's/:.*$//'` 19528 # Check whether this is an Automake generated Makefile or not. 19529 # We used to match only the files named 'Makefile.in', but 19530 # some people rename them; so instead we look at the file content. 19531 # Grep'ing the first line is not enough: some people post-process 19532 # each Makefile.in and add a new line on top of each file to say so. 19533 # Grep'ing the whole file is not good either: AIX grep has a line 19534 # limit of 2048, but all sed's we know have understand at least 4000. 19535 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19536 dirpart=`$as_dirname -- "$mf" || 19537$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19538 X"$mf" : 'X\(//\)[^/]' \| \ 19539 X"$mf" : 'X\(//\)$' \| \ 19540 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19541$as_echo X"$mf" | 19542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19543 s//\1/ 19544 q 19545 } 19546 /^X\(\/\/\)[^/].*/{ 19547 s//\1/ 19548 q 19549 } 19550 /^X\(\/\/\)$/{ 19551 s//\1/ 19552 q 19553 } 19554 /^X\(\/\).*/{ 19555 s//\1/ 19556 q 19557 } 19558 s/.*/./; q'` 19559 else 19560 continue 19561 fi 19562 # Extract the definition of DEPDIR, am__include, and am__quote 19563 # from the Makefile without running 'make'. 19564 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19565 test -z "$DEPDIR" && continue 19566 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19567 test -z "$am__include" && continue 19568 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19569 # Find all dependency output files, they are included files with 19570 # $(DEPDIR) in their names. We invoke sed twice because it is the 19571 # simplest approach to changing $(DEPDIR) to its actual value in the 19572 # expansion. 19573 for file in `sed -n " 19574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19576 # Make sure the directory exists. 19577 test -f "$dirpart/$file" && continue 19578 fdir=`$as_dirname -- "$file" || 19579$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19580 X"$file" : 'X\(//\)[^/]' \| \ 19581 X"$file" : 'X\(//\)$' \| \ 19582 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19583$as_echo X"$file" | 19584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19585 s//\1/ 19586 q 19587 } 19588 /^X\(\/\/\)[^/].*/{ 19589 s//\1/ 19590 q 19591 } 19592 /^X\(\/\/\)$/{ 19593 s//\1/ 19594 q 19595 } 19596 /^X\(\/\).*/{ 19597 s//\1/ 19598 q 19599 } 19600 s/.*/./; q'` 19601 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19602 # echo "creating $dirpart/$file" 19603 echo '# dummy' > "$dirpart/$file" 19604 done 19605 done 19606} 19607 ;; 19608 "libtool":C) 19609 19610 # See if we are running on zsh, and set the options which allow our 19611 # commands through without removal of \ escapes. 19612 if test -n "${ZSH_VERSION+set}" ; then 19613 setopt NO_GLOB_SUBST 19614 fi 19615 19616 cfgfile="${ofile}T" 19617 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19618 $RM "$cfgfile" 19619 19620 cat <<_LT_EOF >> "$cfgfile" 19621#! $SHELL 19622 19623# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19624# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19625# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19626# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19627# 19628# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19629# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19630# Foundation, Inc. 19631# Written by Gordon Matzigkeit, 1996 19632# 19633# This file is part of GNU Libtool. 19634# 19635# GNU Libtool is free software; you can redistribute it and/or 19636# modify it under the terms of the GNU General Public License as 19637# published by the Free Software Foundation; either version 2 of 19638# the License, or (at your option) any later version. 19639# 19640# As a special exception to the GNU General Public License, 19641# if you distribute this file as part of a program or library that 19642# is built using GNU Libtool, you may include this file under the 19643# same distribution terms that you use for the rest of that program. 19644# 19645# GNU Libtool is distributed in the hope that it will be useful, 19646# but WITHOUT ANY WARRANTY; without even the implied warranty of 19647# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19648# GNU General Public License for more details. 19649# 19650# You should have received a copy of the GNU General Public License 19651# along with GNU Libtool; see the file COPYING. If not, a copy 19652# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19653# obtained by writing to the Free Software Foundation, Inc., 19654# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19655 19656 19657# The names of the tagged configurations supported by this script. 19658available_tags="" 19659 19660# ### BEGIN LIBTOOL CONFIG 19661 19662# Which release of libtool.m4 was used? 19663macro_version=$macro_version 19664macro_revision=$macro_revision 19665 19666# Whether or not to build shared libraries. 19667build_libtool_libs=$enable_shared 19668 19669# Whether or not to build static libraries. 19670build_old_libs=$enable_static 19671 19672# What type of objects to build. 19673pic_mode=$pic_mode 19674 19675# Whether or not to optimize for fast installation. 19676fast_install=$enable_fast_install 19677 19678# Shell to use when invoking shell scripts. 19679SHELL=$lt_SHELL 19680 19681# An echo program that protects backslashes. 19682ECHO=$lt_ECHO 19683 19684# The PATH separator for the build system. 19685PATH_SEPARATOR=$lt_PATH_SEPARATOR 19686 19687# The host system. 19688host_alias=$host_alias 19689host=$host 19690host_os=$host_os 19691 19692# The build system. 19693build_alias=$build_alias 19694build=$build 19695build_os=$build_os 19696 19697# A sed program that does not truncate output. 19698SED=$lt_SED 19699 19700# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19701Xsed="\$SED -e 1s/^X//" 19702 19703# A grep program that handles long lines. 19704GREP=$lt_GREP 19705 19706# An ERE matcher. 19707EGREP=$lt_EGREP 19708 19709# A literal string matcher. 19710FGREP=$lt_FGREP 19711 19712# A BSD- or MS-compatible name lister. 19713NM=$lt_NM 19714 19715# Whether we need soft or hard links. 19716LN_S=$lt_LN_S 19717 19718# What is the maximum length of a command? 19719max_cmd_len=$max_cmd_len 19720 19721# Object file suffix (normally "o"). 19722objext=$ac_objext 19723 19724# Executable file suffix (normally ""). 19725exeext=$exeext 19726 19727# whether the shell understands "unset". 19728lt_unset=$lt_unset 19729 19730# turn spaces into newlines. 19731SP2NL=$lt_lt_SP2NL 19732 19733# turn newlines into spaces. 19734NL2SP=$lt_lt_NL2SP 19735 19736# convert \$build file names to \$host format. 19737to_host_file_cmd=$lt_cv_to_host_file_cmd 19738 19739# convert \$build files to toolchain format. 19740to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19741 19742# An object symbol dumper. 19743OBJDUMP=$lt_OBJDUMP 19744 19745# Method to check whether dependent libraries are shared objects. 19746deplibs_check_method=$lt_deplibs_check_method 19747 19748# Command to use when deplibs_check_method = "file_magic". 19749file_magic_cmd=$lt_file_magic_cmd 19750 19751# How to find potential files when deplibs_check_method = "file_magic". 19752file_magic_glob=$lt_file_magic_glob 19753 19754# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19755want_nocaseglob=$lt_want_nocaseglob 19756 19757# DLL creation program. 19758DLLTOOL=$lt_DLLTOOL 19759 19760# Command to associate shared and link libraries. 19761sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19762 19763# The archiver. 19764AR=$lt_AR 19765 19766# Flags to create an archive. 19767AR_FLAGS=$lt_AR_FLAGS 19768 19769# How to feed a file listing to the archiver. 19770archiver_list_spec=$lt_archiver_list_spec 19771 19772# A symbol stripping program. 19773STRIP=$lt_STRIP 19774 19775# Commands used to install an old-style archive. 19776RANLIB=$lt_RANLIB 19777old_postinstall_cmds=$lt_old_postinstall_cmds 19778old_postuninstall_cmds=$lt_old_postuninstall_cmds 19779 19780# Whether to use a lock for old archive extraction. 19781lock_old_archive_extraction=$lock_old_archive_extraction 19782 19783# A C compiler. 19784LTCC=$lt_CC 19785 19786# LTCC compiler flags. 19787LTCFLAGS=$lt_CFLAGS 19788 19789# Take the output of nm and produce a listing of raw symbols and C names. 19790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19791 19792# Transform the output of nm in a proper C declaration. 19793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19794 19795# Transform the output of nm in a C name address pair. 19796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19797 19798# Transform the output of nm in a C name address pair when lib prefix is needed. 19799global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19800 19801# Specify filename containing input files for \$NM. 19802nm_file_list_spec=$lt_nm_file_list_spec 19803 19804# The root where to search for dependent libraries,and in which our libraries should be installed. 19805lt_sysroot=$lt_sysroot 19806 19807# The name of the directory that contains temporary libtool files. 19808objdir=$objdir 19809 19810# Used to examine libraries when file_magic_cmd begins with "file". 19811MAGIC_CMD=$MAGIC_CMD 19812 19813# Must we lock files when doing compilation? 19814need_locks=$lt_need_locks 19815 19816# Manifest tool. 19817MANIFEST_TOOL=$lt_MANIFEST_TOOL 19818 19819# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19820DSYMUTIL=$lt_DSYMUTIL 19821 19822# Tool to change global to local symbols on Mac OS X. 19823NMEDIT=$lt_NMEDIT 19824 19825# Tool to manipulate fat objects and archives on Mac OS X. 19826LIPO=$lt_LIPO 19827 19828# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19829OTOOL=$lt_OTOOL 19830 19831# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19832OTOOL64=$lt_OTOOL64 19833 19834# Old archive suffix (normally "a"). 19835libext=$libext 19836 19837# Shared library suffix (normally ".so"). 19838shrext_cmds=$lt_shrext_cmds 19839 19840# The commands to extract the exported symbol list from a shared archive. 19841extract_expsyms_cmds=$lt_extract_expsyms_cmds 19842 19843# Variables whose values should be saved in libtool wrapper scripts and 19844# restored at link time. 19845variables_saved_for_relink=$lt_variables_saved_for_relink 19846 19847# Do we need the "lib" prefix for modules? 19848need_lib_prefix=$need_lib_prefix 19849 19850# Do we need a version for libraries? 19851need_version=$need_version 19852 19853# Library versioning type. 19854version_type=$version_type 19855 19856# Shared library runtime path variable. 19857runpath_var=$runpath_var 19858 19859# Shared library path variable. 19860shlibpath_var=$shlibpath_var 19861 19862# Is shlibpath searched before the hard-coded library search path? 19863shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19864 19865# Format of library name prefix. 19866libname_spec=$lt_libname_spec 19867 19868# List of archive names. First name is the real one, the rest are links. 19869# The last name is the one that the linker finds with -lNAME 19870library_names_spec=$lt_library_names_spec 19871 19872# The coded name of the library, if different from the real name. 19873soname_spec=$lt_soname_spec 19874 19875# Permission mode override for installation of shared libraries. 19876install_override_mode=$lt_install_override_mode 19877 19878# Command to use after installation of a shared archive. 19879postinstall_cmds=$lt_postinstall_cmds 19880 19881# Command to use after uninstallation of a shared archive. 19882postuninstall_cmds=$lt_postuninstall_cmds 19883 19884# Commands used to finish a libtool library installation in a directory. 19885finish_cmds=$lt_finish_cmds 19886 19887# As "finish_cmds", except a single script fragment to be evaled but 19888# not shown. 19889finish_eval=$lt_finish_eval 19890 19891# Whether we should hardcode library paths into libraries. 19892hardcode_into_libs=$hardcode_into_libs 19893 19894# Compile-time system search path for libraries. 19895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19896 19897# Run-time system search path for libraries. 19898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19899 19900# Whether dlopen is supported. 19901dlopen_support=$enable_dlopen 19902 19903# Whether dlopen of programs is supported. 19904dlopen_self=$enable_dlopen_self 19905 19906# Whether dlopen of statically linked programs is supported. 19907dlopen_self_static=$enable_dlopen_self_static 19908 19909# Commands to strip libraries. 19910old_striplib=$lt_old_striplib 19911striplib=$lt_striplib 19912 19913 19914# The linker used to build libraries. 19915LD=$lt_LD 19916 19917# How to create reloadable object files. 19918reload_flag=$lt_reload_flag 19919reload_cmds=$lt_reload_cmds 19920 19921# Commands used to build an old-style archive. 19922old_archive_cmds=$lt_old_archive_cmds 19923 19924# A language specific compiler. 19925CC=$lt_compiler 19926 19927# Is the compiler the GNU compiler? 19928with_gcc=$GCC 19929 19930# Compiler flag to turn off builtin functions. 19931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19932 19933# Additional compiler flags for building library objects. 19934pic_flag=$lt_lt_prog_compiler_pic 19935 19936# How to pass a linker flag through the compiler. 19937wl=$lt_lt_prog_compiler_wl 19938 19939# Compiler flag to prevent dynamic linking. 19940link_static_flag=$lt_lt_prog_compiler_static 19941 19942# Does compiler simultaneously support -c and -o options? 19943compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19944 19945# Whether or not to add -lc for building shared libraries. 19946build_libtool_need_lc=$archive_cmds_need_lc 19947 19948# Whether or not to disallow shared libs when runtime libs are static. 19949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19950 19951# Compiler flag to allow reflexive dlopens. 19952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19953 19954# Compiler flag to generate shared objects directly from archives. 19955whole_archive_flag_spec=$lt_whole_archive_flag_spec 19956 19957# Whether the compiler copes with passing no objects directly. 19958compiler_needs_object=$lt_compiler_needs_object 19959 19960# Create an old-style archive from a shared archive. 19961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19962 19963# Create a temporary old-style archive to link instead of a shared archive. 19964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19965 19966# Commands used to build a shared archive. 19967archive_cmds=$lt_archive_cmds 19968archive_expsym_cmds=$lt_archive_expsym_cmds 19969 19970# Commands used to build a loadable module if different from building 19971# a shared archive. 19972module_cmds=$lt_module_cmds 19973module_expsym_cmds=$lt_module_expsym_cmds 19974 19975# Whether we are building with GNU ld or not. 19976with_gnu_ld=$lt_with_gnu_ld 19977 19978# Flag that allows shared libraries with undefined symbols to be built. 19979allow_undefined_flag=$lt_allow_undefined_flag 19980 19981# Flag that enforces no undefined symbols. 19982no_undefined_flag=$lt_no_undefined_flag 19983 19984# Flag to hardcode \$libdir into a binary during linking. 19985# This must work even if \$libdir does not exist 19986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19987 19988# Whether we need a single "-rpath" flag with a separated argument. 19989hardcode_libdir_separator=$lt_hardcode_libdir_separator 19990 19991# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19992# DIR into the resulting binary. 19993hardcode_direct=$hardcode_direct 19994 19995# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19996# DIR into the resulting binary and the resulting library dependency is 19997# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19998# library is relocated. 19999hardcode_direct_absolute=$hardcode_direct_absolute 20000 20001# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20002# into the resulting binary. 20003hardcode_minus_L=$hardcode_minus_L 20004 20005# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20006# into the resulting binary. 20007hardcode_shlibpath_var=$hardcode_shlibpath_var 20008 20009# Set to "yes" if building a shared library automatically hardcodes DIR 20010# into the library and all subsequent libraries and executables linked 20011# against it. 20012hardcode_automatic=$hardcode_automatic 20013 20014# Set to yes if linker adds runtime paths of dependent libraries 20015# to runtime path list. 20016inherit_rpath=$inherit_rpath 20017 20018# Whether libtool must link a program against all its dependency libraries. 20019link_all_deplibs=$link_all_deplibs 20020 20021# Set to "yes" if exported symbols are required. 20022always_export_symbols=$always_export_symbols 20023 20024# The commands to list exported symbols. 20025export_symbols_cmds=$lt_export_symbols_cmds 20026 20027# Symbols that should not be listed in the preloaded symbols. 20028exclude_expsyms=$lt_exclude_expsyms 20029 20030# Symbols that must always be exported. 20031include_expsyms=$lt_include_expsyms 20032 20033# Commands necessary for linking programs (against libraries) with templates. 20034prelink_cmds=$lt_prelink_cmds 20035 20036# Commands necessary for finishing linking programs. 20037postlink_cmds=$lt_postlink_cmds 20038 20039# Specify filename containing input files. 20040file_list_spec=$lt_file_list_spec 20041 20042# How to hardcode a shared library path into an executable. 20043hardcode_action=$hardcode_action 20044 20045# ### END LIBTOOL CONFIG 20046 20047_LT_EOF 20048 20049 case $host_os in 20050 aix3*) 20051 cat <<\_LT_EOF >> "$cfgfile" 20052# AIX sometimes has problems with the GCC collect2 program. For some 20053# reason, if we set the COLLECT_NAMES environment variable, the problems 20054# vanish in a puff of smoke. 20055if test "X${COLLECT_NAMES+set}" != Xset; then 20056 COLLECT_NAMES= 20057 export COLLECT_NAMES 20058fi 20059_LT_EOF 20060 ;; 20061 esac 20062 20063 20064ltmain="$ac_aux_dir/ltmain.sh" 20065 20066 20067 # We use sed instead of cat because bash on DJGPP gets confused if 20068 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20069 # text mode, it properly converts lines to CR/LF. This bash problem 20070 # is reportedly fixed, but why not run on old versions too? 20071 sed '$q' "$ltmain" >> "$cfgfile" \ 20072 || (rm -f "$cfgfile"; exit 1) 20073 20074 if test x"$xsi_shell" = xyes; then 20075 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20076func_dirname ()\ 20077{\ 20078\ case ${1} in\ 20079\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20080\ * ) func_dirname_result="${3}" ;;\ 20081\ esac\ 20082} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20083 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20085test 0 -eq $? || _lt_function_replace_fail=: 20086 20087 20088 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20089func_basename ()\ 20090{\ 20091\ func_basename_result="${1##*/}"\ 20092} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20093 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20095test 0 -eq $? || _lt_function_replace_fail=: 20096 20097 20098 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20099func_dirname_and_basename ()\ 20100{\ 20101\ case ${1} in\ 20102\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20103\ * ) func_dirname_result="${3}" ;;\ 20104\ esac\ 20105\ func_basename_result="${1##*/}"\ 20106} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20107 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20109test 0 -eq $? || _lt_function_replace_fail=: 20110 20111 20112 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20113func_stripname ()\ 20114{\ 20115\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20116\ # positional parameters, so assign one to ordinary parameter first.\ 20117\ func_stripname_result=${3}\ 20118\ func_stripname_result=${func_stripname_result#"${1}"}\ 20119\ func_stripname_result=${func_stripname_result%"${2}"}\ 20120} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20121 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20123test 0 -eq $? || _lt_function_replace_fail=: 20124 20125 20126 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20127func_split_long_opt ()\ 20128{\ 20129\ func_split_long_opt_name=${1%%=*}\ 20130\ func_split_long_opt_arg=${1#*=}\ 20131} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20132 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20134test 0 -eq $? || _lt_function_replace_fail=: 20135 20136 20137 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20138func_split_short_opt ()\ 20139{\ 20140\ func_split_short_opt_arg=${1#??}\ 20141\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20142} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20143 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20145test 0 -eq $? || _lt_function_replace_fail=: 20146 20147 20148 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20149func_lo2o ()\ 20150{\ 20151\ case ${1} in\ 20152\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20153\ *) func_lo2o_result=${1} ;;\ 20154\ esac\ 20155} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20156 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20158test 0 -eq $? || _lt_function_replace_fail=: 20159 20160 20161 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20162func_xform ()\ 20163{\ 20164 func_xform_result=${1%.*}.lo\ 20165} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20166 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20168test 0 -eq $? || _lt_function_replace_fail=: 20169 20170 20171 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20172func_arith ()\ 20173{\ 20174 func_arith_result=$(( $* ))\ 20175} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20176 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20178test 0 -eq $? || _lt_function_replace_fail=: 20179 20180 20181 sed -e '/^func_len ()$/,/^} # func_len /c\ 20182func_len ()\ 20183{\ 20184 func_len_result=${#1}\ 20185} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20186 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20188test 0 -eq $? || _lt_function_replace_fail=: 20189 20190fi 20191 20192if test x"$lt_shell_append" = xyes; then 20193 sed -e '/^func_append ()$/,/^} # func_append /c\ 20194func_append ()\ 20195{\ 20196 eval "${1}+=\\${2}"\ 20197} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20198 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20200test 0 -eq $? || _lt_function_replace_fail=: 20201 20202 20203 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20204func_append_quoted ()\ 20205{\ 20206\ func_quote_for_eval "${2}"\ 20207\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20208} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20209 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20211test 0 -eq $? || _lt_function_replace_fail=: 20212 20213 20214 # Save a `func_append' function call where possible by direct use of '+=' 20215 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20216 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20218 test 0 -eq $? || _lt_function_replace_fail=: 20219else 20220 # Save a `func_append' function call even when '+=' is not available 20221 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20222 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20224 test 0 -eq $? || _lt_function_replace_fail=: 20225fi 20226 20227if test x"$_lt_function_replace_fail" = x":"; then 20228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20229$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20230fi 20231 20232 20233 mv -f "$cfgfile" "$ofile" || 20234 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20235 chmod +x "$ofile" 20236 20237 ;; 20238 20239 esac 20240done # for ac_tag 20241 20242 20243as_fn_exit 0 20244_ACEOF 20245ac_clean_files=$ac_clean_files_save 20246 20247test $ac_write_fail = 0 || 20248 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20249 20250 20251# configure is writing to config.log, and then calls config.status. 20252# config.status does its own redirection, appending to config.log. 20253# Unfortunately, on DOS this fails, as config.log is still kept open 20254# by configure, so config.status won't be able to write to it; its 20255# output is simply discarded. So we exec the FD to /dev/null, 20256# effectively closing config.log, so it can be properly (re)opened and 20257# appended to by config.status. When coming back to configure, we 20258# need to make the FD available again. 20259if test "$no_create" != yes; then 20260 ac_cs_success=: 20261 ac_config_status_args= 20262 test "$silent" = yes && 20263 ac_config_status_args="$ac_config_status_args --quiet" 20264 exec 5>/dev/null 20265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20266 exec 5>>config.log 20267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20268 # would make configure fail if this is the last instruction. 20269 $ac_cs_success || as_fn_exit 1 20270fi 20271if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20273$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20274fi 20275 20276