configure revision ac92798b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXpm 3.5.11. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libXpm' 573PACKAGE_TARNAME='libXpm' 574PACKAGE_VERSION='3.5.11' 575PACKAGE_STRING='libXpm 3.5.11' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620USE_GETTEXT_FALSE 621USE_GETTEXT_TRUE 622LOCALEDIR 623BUILD_SXPM_FALSE 624BUILD_SXPM_TRUE 625SXPM_LIBS 626SXPM_CFLAGS 627XPM_LIBS 628XPM_CFLAGS 629MAN_SUBSTS 630XORG_MAN_PAGE 631ADMIN_MAN_DIR 632DRIVER_MAN_DIR 633MISC_MAN_DIR 634FILE_MAN_DIR 635LIB_MAN_DIR 636APP_MAN_DIR 637ADMIN_MAN_SUFFIX 638DRIVER_MAN_SUFFIX 639MISC_MAN_SUFFIX 640FILE_MAN_SUFFIX 641LIB_MAN_SUFFIX 642APP_MAN_SUFFIX 643INSTALL_CMD 644PKG_CONFIG 645CHANGELOG_CMD 646STRICT_CFLAGS 647CWARNFLAGS 648BASE_CFLAGS 649CPP 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__quote 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695LIBTOOL 696AM_BACKSLASH 697AM_DEFAULT_VERBOSITY 698AM_DEFAULT_V 699AM_V 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_silent_rules 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769enable_dependency_tracking 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_selective_werror 774enable_strict_compilation 775with_localedir 776enable_stat_zfile 777' 778 ac_precious_vars='build_alias 779host_alias 780target_alias 781CC 782CFLAGS 783LDFLAGS 784LIBS 785CPPFLAGS 786CPP 787PKG_CONFIG 788XPM_CFLAGS 789XPM_LIBS 790SXPM_CFLAGS 791SXPM_LIBS' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1083 ac_prev=sbindir ;; 1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1085 | --sbi=* | --sb=*) 1086 sbindir=$ac_optarg ;; 1087 1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1090 | --sharedst | --shareds | --shared | --share | --shar \ 1091 | --sha | --sh) 1092 ac_prev=sharedstatedir ;; 1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1096 | --sha=* | --sh=*) 1097 sharedstatedir=$ac_optarg ;; 1098 1099 -site | --site | --sit) 1100 ac_prev=site ;; 1101 -site=* | --site=* | --sit=*) 1102 site=$ac_optarg ;; 1103 1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1105 ac_prev=srcdir ;; 1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1107 srcdir=$ac_optarg ;; 1108 1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1110 | --syscon | --sysco | --sysc | --sys | --sy) 1111 ac_prev=sysconfdir ;; 1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1114 sysconfdir=$ac_optarg ;; 1115 1116 -target | --target | --targe | --targ | --tar | --ta | --t) 1117 ac_prev=target_alias ;; 1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1119 target_alias=$ac_optarg ;; 1120 1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1122 verbose=yes ;; 1123 1124 -version | --version | --versio | --versi | --vers | -V) 1125 ac_init_version=: ;; 1126 1127 -with-* | --with-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=no ;; 1158 1159 --x) 1160 # Obsolete; use --with-x. 1161 with_x=yes ;; 1162 1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1164 | --x-incl | --x-inc | --x-in | --x-i) 1165 ac_prev=x_includes ;; 1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1168 x_includes=$ac_optarg ;; 1169 1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1172 ac_prev=x_libraries ;; 1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1175 x_libraries=$ac_optarg ;; 1176 1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1178Try \`$0 --help' for more information" 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 case $ac_envvar in #( 1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1187 esac 1188 eval $ac_envvar=\$ac_optarg 1189 export $ac_envvar ;; 1190 1191 *) 1192 # FIXME: should be removed in autoconf 3.0. 1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1197 ;; 1198 1199 esac 1200done 1201 1202if test -n "$ac_prev"; then 1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1204 as_fn_error $? "missing argument to $ac_option" 1205fi 1206 1207if test -n "$ac_unrecognized_opts"; then 1208 case $enable_option_checking in 1209 no) ;; 1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1212 esac 1213fi 1214 1215# Check all directory arguments for consistency. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 # Remove trailing slashes. 1223 case $ac_val in 1224 */ ) 1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1226 eval $ac_var=\$ac_val;; 1227 esac 1228 # Be sure to have absolute directory names. 1229 case $ac_val in 1230 [\\/$]* | ?:[\\/]* ) continue;; 1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1232 esac 1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1248 If a cross compiler is detected then cross compile mode will be used" >&2 1249 elif test "x$build_alias" != "x$host_alias"; then 1250 cross_compiling=yes 1251 fi 1252fi 1253 1254ac_tool_prefix= 1255test -n "$host_alias" && ac_tool_prefix=$host_alias- 1256 1257test "$silent" = yes && exec 6>/dev/null 1258 1259 1260ac_pwd=`pwd` && test -n "$ac_pwd" && 1261ac_ls_di=`ls -di .` && 1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1263 as_fn_error $? "working directory cannot be determined" 1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1265 as_fn_error $? "pwd does not report name of working directory" 1266 1267 1268# Find the source files, if location was not specified. 1269if test -z "$srcdir"; then 1270 ac_srcdir_defaulted=yes 1271 # Try the directory containing this script, then the parent directory. 1272 ac_confdir=`$as_dirname -- "$as_myself" || 1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274 X"$as_myself" : 'X\(//\)[^/]' \| \ 1275 X"$as_myself" : 'X\(//\)$' \| \ 1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1277$as_echo X"$as_myself" | 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)[^/].*/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\).*/{ 1291 s//\1/ 1292 q 1293 } 1294 s/.*/./; q'` 1295 srcdir=$ac_confdir 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 srcdir=.. 1298 fi 1299else 1300 ac_srcdir_defaulted=no 1301fi 1302if test ! -r "$srcdir/$ac_unique_file"; then 1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1305fi 1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1307ac_abs_confdir=`( 1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1309 pwd)` 1310# When building in place, set srcdir=. 1311if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313fi 1314# Remove unnecessary trailing slashes from srcdir. 1315# Double slashes in file names in object file debugging info 1316# mess up M-x gdb in Emacs. 1317case $srcdir in 1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319esac 1320for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325done 1326 1327# 1328# Report the --help message. 1329# 1330if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334\`configure' configures libXpm 3.5.11 to adapt to many kinds of systems. 1335 1336Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341Defaults for the options are specified in brackets. 1342 1343Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking ...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360By default, \`make install' will install all the files in 1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363for instance \`--prefix=\$HOME'. 1364 1365For better control, use the options below. 1366 1367Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387_ACEOF 1388 1389 cat <<\_ACEOF 1390 1391Program names: 1392 --program-prefix=PREFIX prepend PREFIX to installed program names 1393 --program-suffix=SUFFIX append SUFFIX to installed program names 1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1395 1396System types: 1397 --build=BUILD configure for building on BUILD [guessed] 1398 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1399_ACEOF 1400fi 1401 1402if test -n "$ac_init_help"; then 1403 case $ac_init_help in 1404 short | recursive ) echo "Configuration of libXpm 3.5.11:";; 1405 esac 1406 cat <<\_ACEOF 1407 1408Optional Features: 1409 --disable-option-checking ignore unrecognized --enable/--with options 1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1412 --enable-silent-rules less verbose build output (undo: "make V=1") 1413 --disable-silent-rules verbose build output (undo: "make V=0") 1414 --enable-shared[=PKGS] build shared libraries [default=yes] 1415 --enable-static[=PKGS] build static libraries [default=yes] 1416 --enable-fast-install[=PKGS] 1417 optimize for fast installation [default=yes] 1418 --enable-dependency-tracking 1419 do not reject slow dependency extractors 1420 --disable-dependency-tracking 1421 speeds up one-time build 1422 --disable-libtool-lock avoid locking (might break parallel builds) 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 --enable-stat-zfile Search for files with .Z & .gz extensions 1430 automatically [default=yes] 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1438 --with-sysroot=DIR Search for dependent libraries within DIR 1439 (or the compiler's sysroot if not specified). 1440 --with-localedir=<path> Path to install message files in (default: 1441 datadir/locale) 1442 1443Some influential environment variables: 1444 CC C compiler command 1445 CFLAGS C compiler flags 1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1447 nonstandard directory <lib dir> 1448 LIBS libraries to pass to the linker, e.g. -l<library> 1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1450 you have headers in a nonstandard directory <include dir> 1451 CPP C preprocessor 1452 PKG_CONFIG path to pkg-config utility 1453 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1454 XPM_LIBS linker flags for XPM, overriding pkg-config 1455 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config 1456 SXPM_LIBS linker flags for SXPM, overriding pkg-config 1457 1458Use these variables to override the choices made by `configure' or to help 1459it to find libraries and programs with nonstandard names/locations. 1460 1461Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1462_ACEOF 1463ac_status=$? 1464fi 1465 1466if test "$ac_init_help" = "recursive"; then 1467 # If there are subdirs, report their specific --help. 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1469 test -d "$ac_dir" || 1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1471 continue 1472 ac_builddir=. 1473 1474case "$ac_dir" in 1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476*) 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1478 # A ".." for each directory in $ac_dir_suffix. 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1480 case $ac_top_builddir_sub in 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1483 esac ;; 1484esac 1485ac_abs_top_builddir=$ac_pwd 1486ac_abs_builddir=$ac_pwd$ac_dir_suffix 1487# for backward compatibility: 1488ac_top_builddir=$ac_top_build_prefix 1489 1490case $srcdir in 1491 .) # We are building in place. 1492 ac_srcdir=. 1493 ac_top_srcdir=$ac_top_builddir_sub 1494 ac_abs_top_srcdir=$ac_pwd ;; 1495 [\\/]* | ?:[\\/]* ) # Absolute name. 1496 ac_srcdir=$srcdir$ac_dir_suffix; 1497 ac_top_srcdir=$srcdir 1498 ac_abs_top_srcdir=$srcdir ;; 1499 *) # Relative name. 1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1501 ac_top_srcdir=$ac_top_build_prefix$srcdir 1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1503esac 1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1505 1506 cd "$ac_dir" || { ac_status=$?; continue; } 1507 # Check for guested configure. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524libXpm configure 3.5.11 1525generated by GNU Autoconf 2.68 1526 1527Copyright (C) 2010 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551$as_echo "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext; then : 1564 ac_retval=0 1565else 1566 $as_echo "$as_me: failed program was:" >&5 1567sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 1570fi 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_c_try_compile 1575 1576# ac_fn_c_try_link LINENO 1577# ----------------------- 1578# Try to link conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_link () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext conftest$ac_exeext 1583 if { { ac_try="$ac_link" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_link") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest$ac_exeext && { 1602 test "$cross_compiling" = yes || 1603 $as_test_x conftest$ac_exeext 1604 }; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1614 # interfere with the next link command; also delete a directory that is 1615 # left behind by Apple's compiler. We do this before executing the actions. 1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_link 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630$as_echo_n "checking for $2... " >&6; } 1631if eval \${$3+:} false; then : 1632 $as_echo_n "(cached) " >&6 1633else 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 eval "$3=yes" 1641else 1642 eval "$3=no" 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_header_compile 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_run LINENO 1691# ---------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1693# that executables *can* be run. 1694ac_fn_c_try_run () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1708 { { case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_try") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; }; }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: program exited with status $ac_status" >&5 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=$ac_status 1725fi 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_run 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (); below. 1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1752 <limits.h> exists even on freestanding compilers. */ 1753 1754#ifdef __STDC__ 1755# include <limits.h> 1756#else 1757# include <assert.h> 1758#endif 1759 1760#undef $2 1761 1762/* Override any GCC internal prototype to avoid an error. 1763 Use char because int might match the return type of a GCC 1764 builtin and then its argument prototype would still apply. */ 1765#ifdef __cplusplus 1766extern "C" 1767#endif 1768char $2 (); 1769/* The GNU C library defines this for functions which it implements 1770 to always fail with ENOSYS. Some functions are actually named 1771 something starting with __ and the normal name is an alias. */ 1772#if defined __stub_$2 || defined __stub___$2 1773choke me 1774#endif 1775 1776int 1777main () 1778{ 1779return $2 (); 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784if ac_fn_c_try_link "$LINENO"; then : 1785 eval "$3=yes" 1786else 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext \ 1790 conftest$ac_exeext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_func 1798 1799# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1800# --------------------------------------------- 1801# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1802# accordingly. 1803ac_fn_c_check_decl () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 as_decl_name=`echo $2|sed 's/ *(.*//'` 1807 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1809$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816int 1817main () 1818{ 1819#ifndef $as_decl_name 1820#ifdef __cplusplus 1821 (void) $as_decl_use; 1822#else 1823 (void) $as_decl_name; 1824#endif 1825#endif 1826 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 eval "$3=yes" 1833else 1834 eval "$3=no" 1835fi 1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1837fi 1838eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840$as_echo "$ac_res" >&6; } 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843} # ac_fn_c_check_decl 1844cat >config.log <<_ACEOF 1845This file contains any messages produced by compilers while 1846running configure, to aid debugging if configure makes a mistake. 1847 1848It was created by libXpm $as_me 3.5.11, which was 1849generated by GNU Autoconf 2.68. Invocation command line was 1850 1851 $ $0 $@ 1852 1853_ACEOF 1854exec 5>>config.log 1855{ 1856cat <<_ASUNAME 1857## --------- ## 1858## Platform. ## 1859## --------- ## 1860 1861hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1862uname -m = `(uname -m) 2>/dev/null || echo unknown` 1863uname -r = `(uname -r) 2>/dev/null || echo unknown` 1864uname -s = `(uname -s) 2>/dev/null || echo unknown` 1865uname -v = `(uname -v) 2>/dev/null || echo unknown` 1866 1867/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1868/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1869 1870/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1871/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1872/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1873/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1874/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1875/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1876/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1877 1878_ASUNAME 1879 1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1881for as_dir in $PATH 1882do 1883 IFS=$as_save_IFS 1884 test -z "$as_dir" && as_dir=. 1885 $as_echo "PATH: $as_dir" 1886 done 1887IFS=$as_save_IFS 1888 1889} >&5 1890 1891cat >&5 <<_ACEOF 1892 1893 1894## ----------- ## 1895## Core tests. ## 1896## ----------- ## 1897 1898_ACEOF 1899 1900 1901# Keep a trace of the command line. 1902# Strip out --no-create and --no-recursion so they do not pile up. 1903# Strip out --silent because we don't want to record it for future runs. 1904# Also quote any args containing shell meta-characters. 1905# Make two passes to allow for proper duplicate-argument suppression. 1906ac_configure_args= 1907ac_configure_args0= 1908ac_configure_args1= 1909ac_must_keep_next=false 1910for ac_pass in 1 2 1911do 1912 for ac_arg 1913 do 1914 case $ac_arg in 1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1917 | -silent | --silent | --silen | --sile | --sil) 1918 continue ;; 1919 *\'*) 1920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1921 esac 1922 case $ac_pass in 1923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1924 2) 1925 as_fn_append ac_configure_args1 " '$ac_arg'" 1926 if test $ac_must_keep_next = true; then 1927 ac_must_keep_next=false # Got value, back to normal. 1928 else 1929 case $ac_arg in 1930 *=* | --config-cache | -C | -disable-* | --disable-* \ 1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1933 | -with-* | --with-* | -without-* | --without-* | --x) 1934 case "$ac_configure_args0 " in 1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1936 esac 1937 ;; 1938 -* ) ac_must_keep_next=true ;; 1939 esac 1940 fi 1941 as_fn_append ac_configure_args " '$ac_arg'" 1942 ;; 1943 esac 1944 done 1945done 1946{ ac_configure_args0=; unset ac_configure_args0;} 1947{ ac_configure_args1=; unset ac_configure_args1;} 1948 1949# When interrupted or exit'd, cleanup temporary files, and complete 1950# config.log. We remove comments because anyway the quotes in there 1951# would cause problems or look ugly. 1952# WARNING: Use '\'' to represent an apostrophe within the trap. 1953# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1954trap 'exit_status=$? 1955 # Save into config.log some information that might help in debugging. 1956 { 1957 echo 1958 1959 $as_echo "## ---------------- ## 1960## Cache variables. ## 1961## ---------------- ##" 1962 echo 1963 # The following way of writing the cache mishandles newlines in values, 1964( 1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in #( 1968 *${as_nl}*) 1969 case $ac_var in #( 1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1971$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1972 esac 1973 case $ac_var in #( 1974 _ | IFS | as_nl) ;; #( 1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1976 *) { eval $ac_var=; unset $ac_var;} ;; 1977 esac ;; 1978 esac 1979 done 1980 (set) 2>&1 | 1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1982 *${as_nl}ac_space=\ *) 1983 sed -n \ 1984 "s/'\''/'\''\\\\'\'''\''/g; 1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1986 ;; #( 1987 *) 1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1989 ;; 1990 esac | 1991 sort 1992) 1993 echo 1994 1995 $as_echo "## ----------------- ## 1996## Output variables. ## 1997## ----------------- ##" 1998 echo 1999 for ac_var in $ac_subst_vars 2000 do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in 2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2004 esac 2005 $as_echo "$ac_var='\''$ac_val'\''" 2006 done | sort 2007 echo 2008 2009 if test -n "$ac_subst_files"; then 2010 $as_echo "## ------------------- ## 2011## File substitutions. ## 2012## ------------------- ##" 2013 echo 2014 for ac_var in $ac_subst_files 2015 do 2016 eval ac_val=\$$ac_var 2017 case $ac_val in 2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2019 esac 2020 $as_echo "$ac_var='\''$ac_val'\''" 2021 done | sort 2022 echo 2023 fi 2024 2025 if test -s confdefs.h; then 2026 $as_echo "## ----------- ## 2027## confdefs.h. ## 2028## ----------- ##" 2029 echo 2030 cat confdefs.h 2031 echo 2032 fi 2033 test "$ac_signal" != 0 && 2034 $as_echo "$as_me: caught signal $ac_signal" 2035 $as_echo "$as_me: exit $exit_status" 2036 } >&5 2037 rm -f core *.core core.conftest.* && 2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2039 exit $exit_status 2040' 0 2041for ac_signal in 1 2 13 15; do 2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2043done 2044ac_signal=0 2045 2046# confdefs.h avoids OS command line length limits that DEFS can exceed. 2047rm -f -r conftest* confdefs.h 2048 2049$as_echo "/* confdefs.h */" > confdefs.h 2050 2051# Predefined preprocessor variables. 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_NAME "$PACKAGE_NAME" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_VERSION "$PACKAGE_VERSION" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_STRING "$PACKAGE_STRING" 2067_ACEOF 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_URL "$PACKAGE_URL" 2075_ACEOF 2076 2077 2078# Let the site file select an alternate cache file if it wants to. 2079# Prefer an explicitly selected file to automatically selected ones. 2080ac_site_file1=NONE 2081ac_site_file2=NONE 2082if test -n "$CONFIG_SITE"; then 2083 # We do not want a PATH search for config.site. 2084 case $CONFIG_SITE in #(( 2085 -*) ac_site_file1=./$CONFIG_SITE;; 2086 */*) ac_site_file1=$CONFIG_SITE;; 2087 *) ac_site_file1=./$CONFIG_SITE;; 2088 esac 2089elif test "x$prefix" != xNONE; then 2090 ac_site_file1=$prefix/share/config.site 2091 ac_site_file2=$prefix/etc/config.site 2092else 2093 ac_site_file1=$ac_default_prefix/share/config.site 2094 ac_site_file2=$ac_default_prefix/etc/config.site 2095fi 2096for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2097do 2098 test "x$ac_site_file" = xNONE && continue 2099 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2101$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2102 sed 's/^/| /' "$ac_site_file" >&5 2103 . "$ac_site_file" \ 2104 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2106as_fn_error $? "failed to load site script $ac_site_file 2107See \`config.log' for more details" "$LINENO" 5; } 2108 fi 2109done 2110 2111if test -r "$cache_file"; then 2112 # Some versions of bash will fail to source /dev/null (special files 2113 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2116$as_echo "$as_me: loading cache $cache_file" >&6;} 2117 case $cache_file in 2118 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2119 *) . "./$cache_file";; 2120 esac 2121 fi 2122else 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2124$as_echo "$as_me: creating cache $cache_file" >&6;} 2125 >$cache_file 2126fi 2127 2128# Check that the precious variables saved in the cache have kept the same 2129# value. 2130ac_cache_corrupted=false 2131for ac_var in $ac_precious_vars; do 2132 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2133 eval ac_new_set=\$ac_env_${ac_var}_set 2134 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2135 eval ac_new_val=\$ac_env_${ac_var}_value 2136 case $ac_old_set,$ac_new_set in 2137 set,) 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2139$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2140 ac_cache_corrupted=: ;; 2141 ,set) 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2143$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2144 ac_cache_corrupted=: ;; 2145 ,);; 2146 *) 2147 if test "x$ac_old_val" != "x$ac_new_val"; then 2148 # differences in whitespace do not lead to failure. 2149 ac_old_val_w=`echo x $ac_old_val` 2150 ac_new_val_w=`echo x $ac_new_val` 2151 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2153$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2154 ac_cache_corrupted=: 2155 else 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2157$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2158 eval $ac_var=\$ac_old_val 2159 fi 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2161$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2163$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2164 fi;; 2165 esac 2166 # Pass precious variables to config.status. 2167 if test "$ac_new_set" = set; then 2168 case $ac_new_val in 2169 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2170 *) ac_arg=$ac_var=$ac_new_val ;; 2171 esac 2172 case " $ac_configure_args " in 2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2174 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2175 esac 2176 fi 2177done 2178if $ac_cache_corrupted; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2182$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2183 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2184fi 2185## -------------------- ## 2186## Main body of script. ## 2187## -------------------- ## 2188 2189ac_ext=c 2190ac_cpp='$CPP $CPPFLAGS' 2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2193ac_compiler_gnu=$ac_cv_c_compiler_gnu 2194 2195 2196 2197ac_config_headers="$ac_config_headers config.h" 2198 2199 2200 2201# Initialize Automake 2202am__api_version='1.14' 2203 2204ac_aux_dir= 2205for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2206 if test -f "$ac_dir/install-sh"; then 2207 ac_aux_dir=$ac_dir 2208 ac_install_sh="$ac_aux_dir/install-sh -c" 2209 break 2210 elif test -f "$ac_dir/install.sh"; then 2211 ac_aux_dir=$ac_dir 2212 ac_install_sh="$ac_aux_dir/install.sh -c" 2213 break 2214 elif test -f "$ac_dir/shtool"; then 2215 ac_aux_dir=$ac_dir 2216 ac_install_sh="$ac_aux_dir/shtool install -c" 2217 break 2218 fi 2219done 2220if test -z "$ac_aux_dir"; then 2221 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2222fi 2223 2224# These three variables are undocumented and unsupported, 2225# and are intended to be withdrawn in a future Autoconf release. 2226# They can cause serious problems if a builder's source tree is in a directory 2227# whose full name contains unusual characters. 2228ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2229ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2230ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2231 2232 2233# Find a good install program. We prefer a C program (faster), 2234# so one script is as good as another. But avoid the broken or 2235# incompatible versions: 2236# SysV /etc/install, /usr/sbin/install 2237# SunOS /usr/etc/install 2238# IRIX /sbin/install 2239# AIX /bin/install 2240# AmigaOS /C/install, which installs bootblocks on floppy discs 2241# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2242# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2243# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2244# OS/2's system install, which has a completely different semantic 2245# ./install, which can be erroneously created by make from ./install.sh. 2246# Reject install programs that cannot install multiple files. 2247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2248$as_echo_n "checking for a BSD-compatible install... " >&6; } 2249if test -z "$INSTALL"; then 2250if ${ac_cv_path_install+:} false; then : 2251 $as_echo_n "(cached) " >&6 2252else 2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254for as_dir in $PATH 2255do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 # Account for people who put trailing slashes in PATH elements. 2259case $as_dir/ in #(( 2260 ./ | .// | /[cC]/* | \ 2261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2263 /usr/ucb/* ) ;; 2264 *) 2265 # OSF1 and SCO ODT 3.0 have their own names for install. 2266 # Don't use installbsd from OSF since it installs stuff as root 2267 # by default. 2268 for ac_prog in ginstall scoinst install; do 2269 for ac_exec_ext in '' $ac_executable_extensions; do 2270 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2271 if test $ac_prog = install && 2272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2273 # AIX install. It has an incompatible calling convention. 2274 : 2275 elif test $ac_prog = install && 2276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2277 # program-specific install script used by HP pwplus--don't use. 2278 : 2279 else 2280 rm -rf conftest.one conftest.two conftest.dir 2281 echo one > conftest.one 2282 echo two > conftest.two 2283 mkdir conftest.dir 2284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2285 test -s conftest.one && test -s conftest.two && 2286 test -s conftest.dir/conftest.one && 2287 test -s conftest.dir/conftest.two 2288 then 2289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2290 break 3 2291 fi 2292 fi 2293 fi 2294 done 2295 done 2296 ;; 2297esac 2298 2299 done 2300IFS=$as_save_IFS 2301 2302rm -rf conftest.one conftest.two conftest.dir 2303 2304fi 2305 if test "${ac_cv_path_install+set}" = set; then 2306 INSTALL=$ac_cv_path_install 2307 else 2308 # As a last resort, use the slow shell script. Don't cache a 2309 # value for INSTALL within a source directory, because that will 2310 # break other packages using the cache if that directory is 2311 # removed, or if the value is a relative name. 2312 INSTALL=$ac_install_sh 2313 fi 2314fi 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2316$as_echo "$INSTALL" >&6; } 2317 2318# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2319# It thinks the first close brace ends the variable substitution. 2320test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2321 2322test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2323 2324test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2325 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2327$as_echo_n "checking whether build environment is sane... " >&6; } 2328# Reject unsafe characters in $srcdir or the absolute working directory 2329# name. Accept space and tab only in the latter. 2330am_lf=' 2331' 2332case `pwd` in 2333 *[\\\"\#\$\&\'\`$am_lf]*) 2334 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2335esac 2336case $srcdir in 2337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2338 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2339esac 2340 2341# Do 'set' in a subshell so we don't clobber the current shell's 2342# arguments. Must try -L first in case configure is actually a 2343# symlink; some systems play weird games with the mod time of symlinks 2344# (eg FreeBSD returns the mod time of the symlink's containing 2345# directory). 2346if ( 2347 am_has_slept=no 2348 for am_try in 1 2; do 2349 echo "timestamp, slept: $am_has_slept" > conftest.file 2350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2351 if test "$*" = "X"; then 2352 # -L didn't work. 2353 set X `ls -t "$srcdir/configure" conftest.file` 2354 fi 2355 if test "$*" != "X $srcdir/configure conftest.file" \ 2356 && test "$*" != "X conftest.file $srcdir/configure"; then 2357 2358 # If neither matched, then we have a broken ls. This can happen 2359 # if, for instance, CONFIG_SHELL is bash and it inherits a 2360 # broken ls alias from the environment. This has actually 2361 # happened. Such a system could not be considered "sane". 2362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2363 alias in your environment" "$LINENO" 5 2364 fi 2365 if test "$2" = conftest.file || test $am_try -eq 2; then 2366 break 2367 fi 2368 # Just in case. 2369 sleep 1 2370 am_has_slept=yes 2371 done 2372 test "$2" = conftest.file 2373 ) 2374then 2375 # Ok. 2376 : 2377else 2378 as_fn_error $? "newly created file is older than distributed files! 2379Check your system clock" "$LINENO" 5 2380fi 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2382$as_echo "yes" >&6; } 2383# If we didn't sleep, we still need to ensure time stamps of config.status and 2384# generated files are strictly newer. 2385am_sleep_pid= 2386if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2387 ( sleep 1 ) & 2388 am_sleep_pid=$! 2389fi 2390 2391rm -f conftest.file 2392 2393test "$program_prefix" != NONE && 2394 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2395# Use a double $ so make ignores it. 2396test "$program_suffix" != NONE && 2397 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2398# Double any \ or $. 2399# By default was `s,x,x', remove it if useless. 2400ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2401program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2402 2403# expand $ac_aux_dir to an absolute path 2404am_aux_dir=`cd $ac_aux_dir && pwd` 2405 2406if test x"${MISSING+set}" != xset; then 2407 case $am_aux_dir in 2408 *\ * | *\ *) 2409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2410 *) 2411 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2412 esac 2413fi 2414# Use eval to expand $SHELL 2415if eval "$MISSING --is-lightweight"; then 2416 am_missing_run="$MISSING " 2417else 2418 am_missing_run= 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2420$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2421fi 2422 2423if test x"${install_sh}" != xset; then 2424 case $am_aux_dir in 2425 *\ * | *\ *) 2426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2427 *) 2428 install_sh="\${SHELL} $am_aux_dir/install-sh" 2429 esac 2430fi 2431 2432# Installed binaries are usually stripped using 'strip' when the user 2433# run "make install-strip". However 'strip' might not be the right 2434# tool to use in cross-compilation environments, therefore Automake 2435# will honor the 'STRIP' environment variable to overrule this program. 2436if test "$cross_compiling" != no; then 2437 if test -n "$ac_tool_prefix"; then 2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2439set dummy ${ac_tool_prefix}strip; ac_word=$2 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2441$as_echo_n "checking for $ac_word... " >&6; } 2442if ${ac_cv_prog_STRIP+:} false; then : 2443 $as_echo_n "(cached) " >&6 2444else 2445 if test -n "$STRIP"; then 2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2447else 2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2457 break 2 2458 fi 2459done 2460 done 2461IFS=$as_save_IFS 2462 2463fi 2464fi 2465STRIP=$ac_cv_prog_STRIP 2466if test -n "$STRIP"; then 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2468$as_echo "$STRIP" >&6; } 2469else 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2471$as_echo "no" >&6; } 2472fi 2473 2474 2475fi 2476if test -z "$ac_cv_prog_STRIP"; then 2477 ac_ct_STRIP=$STRIP 2478 # Extract the first word of "strip", so it can be a program name with args. 2479set dummy strip; ac_word=$2 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2481$as_echo_n "checking for $ac_word... " >&6; } 2482if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2483 $as_echo_n "(cached) " >&6 2484else 2485 if test -n "$ac_ct_STRIP"; then 2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2487else 2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH 2490do 2491 IFS=$as_save_IFS 2492 test -z "$as_dir" && as_dir=. 2493 for ac_exec_ext in '' $ac_executable_extensions; do 2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2495 ac_cv_prog_ac_ct_STRIP="strip" 2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2497 break 2 2498 fi 2499done 2500 done 2501IFS=$as_save_IFS 2502 2503fi 2504fi 2505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2506if test -n "$ac_ct_STRIP"; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2508$as_echo "$ac_ct_STRIP" >&6; } 2509else 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2511$as_echo "no" >&6; } 2512fi 2513 2514 if test "x$ac_ct_STRIP" = x; then 2515 STRIP=":" 2516 else 2517 case $cross_compiling:$ac_tool_warned in 2518yes:) 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2521ac_tool_warned=yes ;; 2522esac 2523 STRIP=$ac_ct_STRIP 2524 fi 2525else 2526 STRIP="$ac_cv_prog_STRIP" 2527fi 2528 2529fi 2530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2531 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2533$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2534if test -z "$MKDIR_P"; then 2535 if ${ac_cv_path_mkdir+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_prog in mkdir gmkdir; do 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2547 'mkdir (GNU coreutils) '* | \ 2548 'mkdir (coreutils) '* | \ 2549 'mkdir (fileutils) '4.1*) 2550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2551 break 3;; 2552 esac 2553 done 2554 done 2555 done 2556IFS=$as_save_IFS 2557 2558fi 2559 2560 test -d ./--version && rmdir ./--version 2561 if test "${ac_cv_path_mkdir+set}" = set; then 2562 MKDIR_P="$ac_cv_path_mkdir -p" 2563 else 2564 # As a last resort, use the slow shell script. Don't cache a 2565 # value for MKDIR_P within a source directory, because that will 2566 # break other packages using the cache if that directory is 2567 # removed, or if the value is a relative name. 2568 MKDIR_P="$ac_install_sh -d" 2569 fi 2570fi 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2572$as_echo "$MKDIR_P" >&6; } 2573 2574for ac_prog in gawk mawk nawk awk 2575do 2576 # Extract the first word of "$ac_prog", so it can be a program name with args. 2577set dummy $ac_prog; ac_word=$2 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2579$as_echo_n "checking for $ac_word... " >&6; } 2580if ${ac_cv_prog_AWK+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582else 2583 if test -n "$AWK"; then 2584 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2585else 2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2593 ac_cv_prog_AWK="$ac_prog" 2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598 done 2599IFS=$as_save_IFS 2600 2601fi 2602fi 2603AWK=$ac_cv_prog_AWK 2604if test -n "$AWK"; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2606$as_echo "$AWK" >&6; } 2607else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2609$as_echo "no" >&6; } 2610fi 2611 2612 2613 test -n "$AWK" && break 2614done 2615 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2617$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2618set x ${MAKE-make} 2619ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2620if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 cat >conftest.make <<\_ACEOF 2624SHELL = /bin/sh 2625all: 2626 @echo '@@@%%%=$(MAKE)=@@@%%%' 2627_ACEOF 2628# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2629case `${MAKE-make} -f conftest.make 2>/dev/null` in 2630 *@@@%%%=?*=@@@%%%*) 2631 eval ac_cv_prog_make_${ac_make}_set=yes;; 2632 *) 2633 eval ac_cv_prog_make_${ac_make}_set=no;; 2634esac 2635rm -f conftest.make 2636fi 2637if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2639$as_echo "yes" >&6; } 2640 SET_MAKE= 2641else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2643$as_echo "no" >&6; } 2644 SET_MAKE="MAKE=${MAKE-make}" 2645fi 2646 2647rm -rf .tst 2>/dev/null 2648mkdir .tst 2>/dev/null 2649if test -d .tst; then 2650 am__leading_dot=. 2651else 2652 am__leading_dot=_ 2653fi 2654rmdir .tst 2>/dev/null 2655 2656# Check whether --enable-silent-rules was given. 2657if test "${enable_silent_rules+set}" = set; then : 2658 enableval=$enable_silent_rules; 2659fi 2660 2661case $enable_silent_rules in # ((( 2662 yes) AM_DEFAULT_VERBOSITY=0;; 2663 no) AM_DEFAULT_VERBOSITY=1;; 2664 *) AM_DEFAULT_VERBOSITY=1;; 2665esac 2666am_make=${MAKE-make} 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2668$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2669if ${am_cv_make_support_nested_variables+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if $as_echo 'TRUE=$(BAR$(V)) 2673BAR0=false 2674BAR1=true 2675V=1 2676am__doit: 2677 @$(TRUE) 2678.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2679 am_cv_make_support_nested_variables=yes 2680else 2681 am_cv_make_support_nested_variables=no 2682fi 2683fi 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2685$as_echo "$am_cv_make_support_nested_variables" >&6; } 2686if test $am_cv_make_support_nested_variables = yes; then 2687 AM_V='$(V)' 2688 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2689else 2690 AM_V=$AM_DEFAULT_VERBOSITY 2691 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2692fi 2693AM_BACKSLASH='\' 2694 2695if test "`cd $srcdir && pwd`" != "`pwd`"; then 2696 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2697 # is not polluted with repeated "-I." 2698 am__isrc=' -I$(srcdir)' 2699 # test to see if srcdir already configured 2700 if test -f $srcdir/config.status; then 2701 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2702 fi 2703fi 2704 2705# test whether we have cygpath 2706if test -z "$CYGPATH_W"; then 2707 if (cygpath --version) >/dev/null 2>/dev/null; then 2708 CYGPATH_W='cygpath -w' 2709 else 2710 CYGPATH_W=echo 2711 fi 2712fi 2713 2714 2715# Define the identity of the package. 2716 PACKAGE='libXpm' 2717 VERSION='3.5.11' 2718 2719 2720cat >>confdefs.h <<_ACEOF 2721#define PACKAGE "$PACKAGE" 2722_ACEOF 2723 2724 2725cat >>confdefs.h <<_ACEOF 2726#define VERSION "$VERSION" 2727_ACEOF 2728 2729# Some tools Automake needs. 2730 2731ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2732 2733 2734AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2735 2736 2737AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2738 2739 2740AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2741 2742 2743MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2744 2745# For better backward compatibility. To be removed once Automake 1.9.x 2746# dies out for good. For more background, see: 2747# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2748# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2749mkdir_p='$(MKDIR_P)' 2750 2751# We need awk for the "check" target. The system "awk" is bad on 2752# some platforms. 2753# Always define AMTAR for backward compatibility. Yes, it's still used 2754# in the wild :-( We should find a proper way to deprecate it ... 2755AMTAR='$${TAR-tar}' 2756 2757 2758# We'll loop over all known methods to create a tar archive until one works. 2759_am_tools='gnutar pax cpio none' 2760 2761am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2762 2763 2764 2765 2766 2767 2768# POSIX will say in a future version that running "rm -f" with no argument 2769# is OK; and we want to be able to make that assumption in our Makefile 2770# recipes. So use an aggressive probe to check that the usage we want is 2771# actually supported "in the wild" to an acceptable degree. 2772# See automake bug#10828. 2773# To make any issue more visible, cause the running configure to be aborted 2774# by default if the 'rm' program in use doesn't match our expectations; the 2775# user can still override this though. 2776if rm -f && rm -fr && rm -rf; then : OK; else 2777 cat >&2 <<'END' 2778Oops! 2779 2780Your 'rm' program seems unable to run without file operands specified 2781on the command line, even when the '-f' option is present. This is contrary 2782to the behaviour of most rm programs out there, and not conforming with 2783the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2784 2785Please tell bug-automake@gnu.org about your system, including the value 2786of your $PATH and any error possibly output before this message. This 2787can help us improve future automake versions. 2788 2789END 2790 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2791 echo 'Configuration will proceed anyway, since you have set the' >&2 2792 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2793 echo >&2 2794 else 2795 cat >&2 <<'END' 2796Aborting the configuration process, to ensure you take notice of the issue. 2797 2798You can download and install GNU coreutils to get an 'rm' implementation 2799that behaves properly: <http://www.gnu.org/software/coreutils/>. 2800 2801If you want to complete the configuration process using your problematic 2802'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2803to "yes", and re-run configure. 2804 2805END 2806 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2807 fi 2808fi 2809 2810# Initialize libtool 2811case `pwd` in 2812 *\ * | *\ *) 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2814$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2815esac 2816 2817 2818 2819macro_version='2.4.2' 2820macro_revision='1.3337' 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834ltmain="$ac_aux_dir/ltmain.sh" 2835 2836# Make sure we can run config.sub. 2837$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2838 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2839 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2841$as_echo_n "checking build system type... " >&6; } 2842if ${ac_cv_build+:} false; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 ac_build_alias=$build_alias 2846test "x$ac_build_alias" = x && 2847 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2848test "x$ac_build_alias" = x && 2849 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2850ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2851 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2852 2853fi 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2855$as_echo "$ac_cv_build" >&6; } 2856case $ac_cv_build in 2857*-*-*) ;; 2858*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2859esac 2860build=$ac_cv_build 2861ac_save_IFS=$IFS; IFS='-' 2862set x $ac_cv_build 2863shift 2864build_cpu=$1 2865build_vendor=$2 2866shift; shift 2867# Remember, the first character of IFS is used to create $*, 2868# except with old shells: 2869build_os=$* 2870IFS=$ac_save_IFS 2871case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2872 2873 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2875$as_echo_n "checking host system type... " >&6; } 2876if ${ac_cv_host+:} false; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 if test "x$host_alias" = x; then 2880 ac_cv_host=$ac_cv_build 2881else 2882 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2883 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2884fi 2885 2886fi 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2888$as_echo "$ac_cv_host" >&6; } 2889case $ac_cv_host in 2890*-*-*) ;; 2891*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2892esac 2893host=$ac_cv_host 2894ac_save_IFS=$IFS; IFS='-' 2895set x $ac_cv_host 2896shift 2897host_cpu=$1 2898host_vendor=$2 2899shift; shift 2900# Remember, the first character of IFS is used to create $*, 2901# except with old shells: 2902host_os=$* 2903IFS=$ac_save_IFS 2904case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2905 2906 2907# Backslashify metacharacters that are still active within 2908# double-quoted strings. 2909sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2910 2911# Same as above, but do not quote variable references. 2912double_quote_subst='s/\(["`\\]\)/\\\1/g' 2913 2914# Sed substitution to delay expansion of an escaped shell variable in a 2915# double_quote_subst'ed string. 2916delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2917 2918# Sed substitution to delay expansion of an escaped single quote. 2919delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2920 2921# Sed substitution to avoid accidental globbing in evaled expressions 2922no_glob_subst='s/\*/\\\*/g' 2923 2924ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2926ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2927 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2929$as_echo_n "checking how to print strings... " >&6; } 2930# Test print first, because it will be a builtin if present. 2931if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2933 ECHO='print -r --' 2934elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2935 ECHO='printf %s\n' 2936else 2937 # Use this function as a fallback that always works. 2938 func_fallback_echo () 2939 { 2940 eval 'cat <<_LTECHO_EOF 2941$1 2942_LTECHO_EOF' 2943 } 2944 ECHO='func_fallback_echo' 2945fi 2946 2947# func_echo_all arg... 2948# Invoke $ECHO with all args, space-separated. 2949func_echo_all () 2950{ 2951 $ECHO "" 2952} 2953 2954case "$ECHO" in 2955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2956$as_echo "printf" >&6; } ;; 2957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2958$as_echo "print -r" >&6; } ;; 2959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2960$as_echo "cat" >&6; } ;; 2961esac 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976DEPDIR="${am__leading_dot}deps" 2977 2978ac_config_commands="$ac_config_commands depfiles" 2979 2980 2981am_make=${MAKE-make} 2982cat > confinc << 'END' 2983am__doit: 2984 @echo this is the am__doit target 2985.PHONY: am__doit 2986END 2987# If we don't find an include directive, just comment out the code. 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2989$as_echo_n "checking for style of include used by $am_make... " >&6; } 2990am__include="#" 2991am__quote= 2992_am_result=none 2993# First try GNU make style include. 2994echo "include confinc" > confmf 2995# Ignore all kinds of additional output from 'make'. 2996case `$am_make -s -f confmf 2> /dev/null` in #( 2997*the\ am__doit\ target*) 2998 am__include=include 2999 am__quote= 3000 _am_result=GNU 3001 ;; 3002esac 3003# Now try BSD make style include. 3004if test "$am__include" = "#"; then 3005 echo '.include "confinc"' > confmf 3006 case `$am_make -s -f confmf 2> /dev/null` in #( 3007 *the\ am__doit\ target*) 3008 am__include=.include 3009 am__quote="\"" 3010 _am_result=BSD 3011 ;; 3012 esac 3013fi 3014 3015 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3017$as_echo "$_am_result" >&6; } 3018rm -f confinc confmf 3019 3020# Check whether --enable-dependency-tracking was given. 3021if test "${enable_dependency_tracking+set}" = set; then : 3022 enableval=$enable_dependency_tracking; 3023fi 3024 3025if test "x$enable_dependency_tracking" != xno; then 3026 am_depcomp="$ac_aux_dir/depcomp" 3027 AMDEPBACKSLASH='\' 3028 am__nodep='_no' 3029fi 3030 if test "x$enable_dependency_tracking" != xno; then 3031 AMDEP_TRUE= 3032 AMDEP_FALSE='#' 3033else 3034 AMDEP_TRUE='#' 3035 AMDEP_FALSE= 3036fi 3037 3038 3039ac_ext=c 3040ac_cpp='$CPP $CPPFLAGS' 3041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3043ac_compiler_gnu=$ac_cv_c_compiler_gnu 3044if test -n "$ac_tool_prefix"; then 3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3046set dummy ${ac_tool_prefix}gcc; ac_word=$2 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048$as_echo_n "checking for $ac_word... " >&6; } 3049if ${ac_cv_prog_CC+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 if test -n "$CC"; then 3053 ac_cv_prog_CC="$CC" # Let the user override the test. 3054else 3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3056for as_dir in $PATH 3057do 3058 IFS=$as_save_IFS 3059 test -z "$as_dir" && as_dir=. 3060 for ac_exec_ext in '' $ac_executable_extensions; do 3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3062 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067 done 3068IFS=$as_save_IFS 3069 3070fi 3071fi 3072CC=$ac_cv_prog_CC 3073if test -n "$CC"; then 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3075$as_echo "$CC" >&6; } 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079fi 3080 3081 3082fi 3083if test -z "$ac_cv_prog_CC"; then 3084 ac_ct_CC=$CC 3085 # Extract the first word of "gcc", so it can be a program name with args. 3086set dummy gcc; ac_word=$2 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3088$as_echo_n "checking for $ac_word... " >&6; } 3089if ${ac_cv_prog_ac_ct_CC+:} false; then : 3090 $as_echo_n "(cached) " >&6 3091else 3092 if test -n "$ac_ct_CC"; then 3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3094else 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3096for as_dir in $PATH 3097do 3098 IFS=$as_save_IFS 3099 test -z "$as_dir" && as_dir=. 3100 for ac_exec_ext in '' $ac_executable_extensions; do 3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3102 ac_cv_prog_ac_ct_CC="gcc" 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3104 break 2 3105 fi 3106done 3107 done 3108IFS=$as_save_IFS 3109 3110fi 3111fi 3112ac_ct_CC=$ac_cv_prog_ac_ct_CC 3113if test -n "$ac_ct_CC"; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3115$as_echo "$ac_ct_CC" >&6; } 3116else 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3118$as_echo "no" >&6; } 3119fi 3120 3121 if test "x$ac_ct_CC" = x; then 3122 CC="" 3123 else 3124 case $cross_compiling:$ac_tool_warned in 3125yes:) 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3128ac_tool_warned=yes ;; 3129esac 3130 CC=$ac_ct_CC 3131 fi 3132else 3133 CC="$ac_cv_prog_CC" 3134fi 3135 3136if test -z "$CC"; then 3137 if test -n "$ac_tool_prefix"; then 3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3139set dummy ${ac_tool_prefix}cc; ac_word=$2 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141$as_echo_n "checking for $ac_word... " >&6; } 3142if ${ac_cv_prog_CC+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 if test -n "$CC"; then 3146 ac_cv_prog_CC="$CC" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3155 ac_cv_prog_CC="${ac_tool_prefix}cc" 3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160 done 3161IFS=$as_save_IFS 3162 3163fi 3164fi 3165CC=$ac_cv_prog_CC 3166if test -n "$CC"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3168$as_echo "$CC" >&6; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172fi 3173 3174 3175 fi 3176fi 3177if test -z "$CC"; then 3178 # Extract the first word of "cc", so it can be a program name with args. 3179set dummy cc; ac_word=$2 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3181$as_echo_n "checking for $ac_word... " >&6; } 3182if ${ac_cv_prog_CC+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test -n "$CC"; then 3186 ac_cv_prog_CC="$CC" # Let the user override the test. 3187else 3188 ac_prog_rejected=no 3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3190for as_dir in $PATH 3191do 3192 IFS=$as_save_IFS 3193 test -z "$as_dir" && as_dir=. 3194 for ac_exec_ext in '' $ac_executable_extensions; do 3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3197 ac_prog_rejected=yes 3198 continue 3199 fi 3200 ac_cv_prog_CC="cc" 3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3202 break 2 3203 fi 3204done 3205 done 3206IFS=$as_save_IFS 3207 3208if test $ac_prog_rejected = yes; then 3209 # We found a bogon in the path, so make sure we never use it. 3210 set dummy $ac_cv_prog_CC 3211 shift 3212 if test $# != 0; then 3213 # We chose a different compiler from the bogus one. 3214 # However, it has the same basename, so the bogon will be chosen 3215 # first if we set CC to just the basename; use the full file name. 3216 shift 3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3218 fi 3219fi 3220fi 3221fi 3222CC=$ac_cv_prog_CC 3223if test -n "$CC"; then 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3225$as_echo "$CC" >&6; } 3226else 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3228$as_echo "no" >&6; } 3229fi 3230 3231 3232fi 3233if test -z "$CC"; then 3234 if test -n "$ac_tool_prefix"; then 3235 for ac_prog in cl.exe 3236 do 3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3238set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3240$as_echo_n "checking for $ac_word... " >&6; } 3241if ${ac_cv_prog_CC+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 if test -n "$CC"; then 3245 ac_cv_prog_CC="$CC" # Let the user override the test. 3246else 3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3248for as_dir in $PATH 3249do 3250 IFS=$as_save_IFS 3251 test -z "$as_dir" && as_dir=. 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3256 break 2 3257 fi 3258done 3259 done 3260IFS=$as_save_IFS 3261 3262fi 3263fi 3264CC=$ac_cv_prog_CC 3265if test -n "$CC"; then 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3267$as_echo "$CC" >&6; } 3268else 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270$as_echo "no" >&6; } 3271fi 3272 3273 3274 test -n "$CC" && break 3275 done 3276fi 3277if test -z "$CC"; then 3278 ac_ct_CC=$CC 3279 for ac_prog in cl.exe 3280do 3281 # Extract the first word of "$ac_prog", so it can be a program name with args. 3282set dummy $ac_prog; ac_word=$2 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3284$as_echo_n "checking for $ac_word... " >&6; } 3285if ${ac_cv_prog_ac_ct_CC+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 if test -n "$ac_ct_CC"; then 3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3290else 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3298 ac_cv_prog_ac_ct_CC="$ac_prog" 3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3300 break 2 3301 fi 3302done 3303 done 3304IFS=$as_save_IFS 3305 3306fi 3307fi 3308ac_ct_CC=$ac_cv_prog_ac_ct_CC 3309if test -n "$ac_ct_CC"; then 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3311$as_echo "$ac_ct_CC" >&6; } 3312else 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3314$as_echo "no" >&6; } 3315fi 3316 3317 3318 test -n "$ac_ct_CC" && break 3319done 3320 3321 if test "x$ac_ct_CC" = x; then 3322 CC="" 3323 else 3324 case $cross_compiling:$ac_tool_warned in 3325yes:) 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3328ac_tool_warned=yes ;; 3329esac 3330 CC=$ac_ct_CC 3331 fi 3332fi 3333 3334fi 3335 3336 3337test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3339as_fn_error $? "no acceptable C compiler found in \$PATH 3340See \`config.log' for more details" "$LINENO" 5; } 3341 3342# Provide some information about the compiler. 3343$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3344set X $ac_compile 3345ac_compiler=$2 3346for ac_option in --version -v -V -qversion; do 3347 { { ac_try="$ac_compiler $ac_option >&5" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3353$as_echo "$ac_try_echo"; } >&5 3354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3355 ac_status=$? 3356 if test -s conftest.err; then 3357 sed '10a\ 3358... rest of stderr output deleted ... 3359 10q' conftest.err >conftest.er1 3360 cat conftest.er1 >&5 3361 fi 3362 rm -f conftest.er1 conftest.err 3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3364 test $ac_status = 0; } 3365done 3366 3367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378ac_clean_files_save=$ac_clean_files 3379ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3380# Try to create an executable without -o first, disregard a.out. 3381# It will help us diagnose broken compilers, and finding out an intuition 3382# of exeext. 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3384$as_echo_n "checking whether the C compiler works... " >&6; } 3385ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3386 3387# The possible output files: 3388ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3389 3390ac_rmfiles= 3391for ac_file in $ac_files 3392do 3393 case $ac_file in 3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3395 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3396 esac 3397done 3398rm -f $ac_rmfiles 3399 3400if { { ac_try="$ac_link_default" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3406$as_echo "$ac_try_echo"; } >&5 3407 (eval "$ac_link_default") 2>&5 3408 ac_status=$? 3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3410 test $ac_status = 0; }; then : 3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3412# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3413# in a Makefile. We should not override ac_cv_exeext if it was cached, 3414# so that the user can short-circuit this test for compilers unknown to 3415# Autoconf. 3416for ac_file in $ac_files '' 3417do 3418 test -f "$ac_file" || continue 3419 case $ac_file in 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3421 ;; 3422 [ab].out ) 3423 # We found the default executable, but exeext='' is most 3424 # certainly right. 3425 break;; 3426 *.* ) 3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3428 then :; else 3429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3430 fi 3431 # We set ac_cv_exeext here because the later test for it is not 3432 # safe: cross compilers may not add the suffix if given an `-o' 3433 # argument, so we may need to know it at that point already. 3434 # Even if this section looks crufty: it has the advantage of 3435 # actually working. 3436 break;; 3437 * ) 3438 break;; 3439 esac 3440done 3441test "$ac_cv_exeext" = no && ac_cv_exeext= 3442 3443else 3444 ac_file='' 3445fi 3446if test -z "$ac_file"; then : 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448$as_echo "no" >&6; } 3449$as_echo "$as_me: failed program was:" >&5 3450sed 's/^/| /' conftest.$ac_ext >&5 3451 3452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3454as_fn_error 77 "C compiler cannot create executables 3455See \`config.log' for more details" "$LINENO" 5; } 3456else 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3458$as_echo "yes" >&6; } 3459fi 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3461$as_echo_n "checking for C compiler default output file name... " >&6; } 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3463$as_echo "$ac_file" >&6; } 3464ac_exeext=$ac_cv_exeext 3465 3466rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3467ac_clean_files=$ac_clean_files_save 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3469$as_echo_n "checking for suffix of executables... " >&6; } 3470if { { ac_try="$ac_link" 3471case "(($ac_try" in 3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3473 *) ac_try_echo=$ac_try;; 3474esac 3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3476$as_echo "$ac_try_echo"; } >&5 3477 (eval "$ac_link") 2>&5 3478 ac_status=$? 3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3480 test $ac_status = 0; }; then : 3481 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3482# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3483# work properly (i.e., refer to `conftest.exe'), while it won't with 3484# `rm'. 3485for ac_file in conftest.exe conftest conftest.*; do 3486 test -f "$ac_file" || continue 3487 case $ac_file in 3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3490 break;; 3491 * ) break;; 3492 esac 3493done 3494else 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 $? "cannot compute suffix of executables: cannot compile and link 3498See \`config.log' for more details" "$LINENO" 5; } 3499fi 3500rm -f conftest conftest$ac_cv_exeext 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3502$as_echo "$ac_cv_exeext" >&6; } 3503 3504rm -f conftest.$ac_ext 3505EXEEXT=$ac_cv_exeext 3506ac_exeext=$EXEEXT 3507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509#include <stdio.h> 3510int 3511main () 3512{ 3513FILE *f = fopen ("conftest.out", "w"); 3514 return ferror (f) || fclose (f) != 0; 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520ac_clean_files="$ac_clean_files conftest.out" 3521# Check that the compiler produces executables we can run. If not, either 3522# the compiler is broken, or we cross compile. 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3524$as_echo_n "checking whether we are cross compiling... " >&6; } 3525if test "$cross_compiling" != yes; then 3526 { { ac_try="$ac_link" 3527case "(($ac_try" in 3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3529 *) ac_try_echo=$ac_try;; 3530esac 3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3532$as_echo "$ac_try_echo"; } >&5 3533 (eval "$ac_link") 2>&5 3534 ac_status=$? 3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3536 test $ac_status = 0; } 3537 if { ac_try='./conftest$ac_cv_exeext' 3538 { { case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541esac 3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3543$as_echo "$ac_try_echo"; } >&5 3544 (eval "$ac_try") 2>&5 3545 ac_status=$? 3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3547 test $ac_status = 0; }; }; then 3548 cross_compiling=no 3549 else 3550 if test "$cross_compiling" = maybe; then 3551 cross_compiling=yes 3552 else 3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3555as_fn_error $? "cannot run C compiled programs. 3556If you meant to cross compile, use \`--host'. 3557See \`config.log' for more details" "$LINENO" 5; } 3558 fi 3559 fi 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3562$as_echo "$cross_compiling" >&6; } 3563 3564rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3565ac_clean_files=$ac_clean_files_save 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3567$as_echo_n "checking for suffix of object files... " >&6; } 3568if ${ac_cv_objext+:} false; then : 3569 $as_echo_n "(cached) " >&6 3570else 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573 3574int 3575main () 3576{ 3577 3578 ; 3579 return 0; 3580} 3581_ACEOF 3582rm -f conftest.o conftest.obj 3583if { { ac_try="$ac_compile" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3589$as_echo "$ac_try_echo"; } >&5 3590 (eval "$ac_compile") 2>&5 3591 ac_status=$? 3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3593 test $ac_status = 0; }; then : 3594 for ac_file in conftest.o conftest.obj conftest.*; do 3595 test -f "$ac_file" || continue; 3596 case $ac_file in 3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3599 break;; 3600 esac 3601done 3602else 3603 $as_echo "$as_me: failed program was:" >&5 3604sed 's/^/| /' conftest.$ac_ext >&5 3605 3606{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error $? "cannot compute suffix of object files: cannot compile 3609See \`config.log' for more details" "$LINENO" 5; } 3610fi 3611rm -f conftest.$ac_cv_objext conftest.$ac_ext 3612fi 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3614$as_echo "$ac_cv_objext" >&6; } 3615OBJEXT=$ac_cv_objext 3616ac_objext=$OBJEXT 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3618$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3619if ${ac_cv_c_compiler_gnu+:} false; then : 3620 $as_echo_n "(cached) " >&6 3621else 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624 3625int 3626main () 3627{ 3628#ifndef __GNUC__ 3629 choke me 3630#endif 3631 3632 ; 3633 return 0; 3634} 3635_ACEOF 3636if ac_fn_c_try_compile "$LINENO"; then : 3637 ac_compiler_gnu=yes 3638else 3639 ac_compiler_gnu=no 3640fi 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3642ac_cv_c_compiler_gnu=$ac_compiler_gnu 3643 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3646$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3647if test $ac_compiler_gnu = yes; then 3648 GCC=yes 3649else 3650 GCC= 3651fi 3652ac_test_CFLAGS=${CFLAGS+set} 3653ac_save_CFLAGS=$CFLAGS 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3655$as_echo_n "checking whether $CC accepts -g... " >&6; } 3656if ${ac_cv_prog_cc_g+:} false; then : 3657 $as_echo_n "(cached) " >&6 3658else 3659 ac_save_c_werror_flag=$ac_c_werror_flag 3660 ac_c_werror_flag=yes 3661 ac_cv_prog_cc_g=no 3662 CFLAGS="-g" 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666int 3667main () 3668{ 3669 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674if ac_fn_c_try_compile "$LINENO"; then : 3675 ac_cv_prog_cc_g=yes 3676else 3677 CFLAGS="" 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main () 3683{ 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_compile "$LINENO"; then : 3690 3691else 3692 ac_c_werror_flag=$ac_save_c_werror_flag 3693 CFLAGS="-g" 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3695/* end confdefs.h. */ 3696 3697int 3698main () 3699{ 3700 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705if ac_fn_c_try_compile "$LINENO"; then : 3706 ac_cv_prog_cc_g=yes 3707fi 3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713 ac_c_werror_flag=$ac_save_c_werror_flag 3714fi 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3716$as_echo "$ac_cv_prog_cc_g" >&6; } 3717if test "$ac_test_CFLAGS" = set; then 3718 CFLAGS=$ac_save_CFLAGS 3719elif test $ac_cv_prog_cc_g = yes; then 3720 if test "$GCC" = yes; then 3721 CFLAGS="-g -O2" 3722 else 3723 CFLAGS="-g" 3724 fi 3725else 3726 if test "$GCC" = yes; then 3727 CFLAGS="-O2" 3728 else 3729 CFLAGS= 3730 fi 3731fi 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3733$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3734if ${ac_cv_prog_cc_c89+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 ac_cv_prog_cc_c89=no 3738ac_save_CC=$CC 3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741#include <stdarg.h> 3742#include <stdio.h> 3743#include <sys/types.h> 3744#include <sys/stat.h> 3745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3746struct buf { int x; }; 3747FILE * (*rcsopen) (struct buf *, struct stat *, int); 3748static char *e (p, i) 3749 char **p; 3750 int i; 3751{ 3752 return p[i]; 3753} 3754static char *f (char * (*g) (char **, int), char **p, ...) 3755{ 3756 char *s; 3757 va_list v; 3758 va_start (v,p); 3759 s = g (p, va_arg (v,int)); 3760 va_end (v); 3761 return s; 3762} 3763 3764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3765 function prototypes and stuff, but not '\xHH' hex character constants. 3766 These don't provoke an error unfortunately, instead are silently treated 3767 as 'x'. The following induces an error, until -std is added to get 3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3769 array size at least. It's necessary to write '\x00'==0 to get something 3770 that's true only with -std. */ 3771int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3772 3773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3774 inside strings and character constants. */ 3775#define FOO(x) 'x' 3776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3777 3778int test (int i, double x); 3779struct s1 {int (*f) (int a);}; 3780struct s2 {int (*f) (double a);}; 3781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3782int argc; 3783char **argv; 3784int 3785main () 3786{ 3787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3794do 3795 CC="$ac_save_CC $ac_arg" 3796 if ac_fn_c_try_compile "$LINENO"; then : 3797 ac_cv_prog_cc_c89=$ac_arg 3798fi 3799rm -f core conftest.err conftest.$ac_objext 3800 test "x$ac_cv_prog_cc_c89" != "xno" && break 3801done 3802rm -f conftest.$ac_ext 3803CC=$ac_save_CC 3804 3805fi 3806# AC_CACHE_VAL 3807case "x$ac_cv_prog_cc_c89" in 3808 x) 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3810$as_echo "none needed" >&6; } ;; 3811 xno) 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3813$as_echo "unsupported" >&6; } ;; 3814 *) 3815 CC="$CC $ac_cv_prog_cc_c89" 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3817$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3818esac 3819if test "x$ac_cv_prog_cc_c89" != xno; then : 3820 3821fi 3822 3823ac_ext=c 3824ac_cpp='$CPP $CPPFLAGS' 3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3827ac_compiler_gnu=$ac_cv_c_compiler_gnu 3828 3829ac_ext=c 3830ac_cpp='$CPP $CPPFLAGS' 3831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3833ac_compiler_gnu=$ac_cv_c_compiler_gnu 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3835$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3836if ${am_cv_prog_cc_c_o+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main () 3844{ 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850 # Make sure it works both with $CC and with simple cc. 3851 # Following AC_PROG_CC_C_O, we do the test twice because some 3852 # compilers refuse to overwrite an existing .o file with -o, 3853 # though they will create one. 3854 am_cv_prog_cc_c_o=yes 3855 for am_i in 1 2; do 3856 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3857 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); } \ 3861 && test -f conftest2.$ac_objext; then 3862 : OK 3863 else 3864 am_cv_prog_cc_c_o=no 3865 break 3866 fi 3867 done 3868 rm -f core conftest* 3869 unset am_i 3870fi 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3872$as_echo "$am_cv_prog_cc_c_o" >&6; } 3873if test "$am_cv_prog_cc_c_o" != yes; then 3874 # Losing compiler, so override with the script. 3875 # FIXME: It is wrong to rewrite CC. 3876 # But if we don't then we get into trouble of one sort or another. 3877 # A longer-term fix would be to have automake use am__CC in this case, 3878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3879 CC="$am_aux_dir/compile $CC" 3880fi 3881ac_ext=c 3882ac_cpp='$CPP $CPPFLAGS' 3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3885ac_compiler_gnu=$ac_cv_c_compiler_gnu 3886 3887 3888depcc="$CC" am_compiler_list= 3889 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3891$as_echo_n "checking dependency style of $depcc... " >&6; } 3892if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3896 # We make a subdir and do the tests there. Otherwise we can end up 3897 # making bogus files that we don't know about and never remove. For 3898 # instance it was reported that on HP-UX the gcc test will end up 3899 # making a dummy file named 'D' -- because '-MD' means "put the output 3900 # in D". 3901 rm -rf conftest.dir 3902 mkdir conftest.dir 3903 # Copy depcomp to subdir because otherwise we won't find it if we're 3904 # using a relative directory. 3905 cp "$am_depcomp" conftest.dir 3906 cd conftest.dir 3907 # We will build objects and dependencies in a subdirectory because 3908 # it helps to detect inapplicable dependency modes. For instance 3909 # both Tru64's cc and ICC support -MD to output dependencies as a 3910 # side effect of compilation, but ICC will put the dependencies in 3911 # the current directory while Tru64 will put them in the object 3912 # directory. 3913 mkdir sub 3914 3915 am_cv_CC_dependencies_compiler_type=none 3916 if test "$am_compiler_list" = ""; then 3917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3918 fi 3919 am__universal=false 3920 case " $depcc " in #( 3921 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3922 esac 3923 3924 for depmode in $am_compiler_list; do 3925 # Setup a source with many dependencies, because some compilers 3926 # like to wrap large dependency lists on column 80 (with \), and 3927 # we should not choose a depcomp mode which is confused by this. 3928 # 3929 # We need to recreate these files for each test, as the compiler may 3930 # overwrite some of them when testing with obscure command lines. 3931 # This happens at least with the AIX C compiler. 3932 : > sub/conftest.c 3933 for i in 1 2 3 4 5 6; do 3934 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3935 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3936 # Solaris 10 /bin/sh. 3937 echo '/* dummy */' > sub/conftst$i.h 3938 done 3939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3940 3941 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3942 # mode. It turns out that the SunPro C++ compiler does not properly 3943 # handle '-M -o', and we need to detect this. Also, some Intel 3944 # versions had trouble with output in subdirs. 3945 am__obj=sub/conftest.${OBJEXT-o} 3946 am__minus_obj="-o $am__obj" 3947 case $depmode in 3948 gcc) 3949 # This depmode causes a compiler race in universal mode. 3950 test "$am__universal" = false || continue 3951 ;; 3952 nosideeffect) 3953 # After this tag, mechanisms are not by side-effect, so they'll 3954 # only be used when explicitly requested. 3955 if test "x$enable_dependency_tracking" = xyes; then 3956 continue 3957 else 3958 break 3959 fi 3960 ;; 3961 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3962 # This compiler won't grok '-c -o', but also, the minuso test has 3963 # not run yet. These depmodes are late enough in the game, and 3964 # so weak that their functioning should not be impacted. 3965 am__obj=conftest.${OBJEXT-o} 3966 am__minus_obj= 3967 ;; 3968 none) break ;; 3969 esac 3970 if depmode=$depmode \ 3971 source=sub/conftest.c object=$am__obj \ 3972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3974 >/dev/null 2>conftest.err && 3975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3979 # icc doesn't choke on unknown options, it will just issue warnings 3980 # or remarks (even with -Werror). So we grep stderr for any message 3981 # that says an option was ignored or not supported. 3982 # When given -MP, icc 7.0 and 7.1 complain thusly: 3983 # icc: Command line warning: ignoring option '-M'; no argument required 3984 # The diagnosis changed in icc 8.0: 3985 # icc: Command line remark: option '-MP' not supported 3986 if (grep 'ignoring option' conftest.err || 3987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3988 am_cv_CC_dependencies_compiler_type=$depmode 3989 break 3990 fi 3991 fi 3992 done 3993 3994 cd .. 3995 rm -rf conftest.dir 3996else 3997 am_cv_CC_dependencies_compiler_type=none 3998fi 3999 4000fi 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4002$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4004 4005 if 4006 test "x$enable_dependency_tracking" != xno \ 4007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4008 am__fastdepCC_TRUE= 4009 am__fastdepCC_FALSE='#' 4010else 4011 am__fastdepCC_TRUE='#' 4012 am__fastdepCC_FALSE= 4013fi 4014 4015 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4017$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4018if ${ac_cv_path_SED+:} false; then : 4019 $as_echo_n "(cached) " >&6 4020else 4021 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4022 for ac_i in 1 2 3 4 5 6 7; do 4023 ac_script="$ac_script$as_nl$ac_script" 4024 done 4025 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4026 { ac_script=; unset ac_script;} 4027 if test -z "$SED"; then 4028 ac_path_SED_found=false 4029 # Loop through the user's path and test for each of PROGNAME-LIST 4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4031for as_dir in $PATH 4032do 4033 IFS=$as_save_IFS 4034 test -z "$as_dir" && as_dir=. 4035 for ac_prog in sed gsed; do 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4038 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4039# Check for GNU ac_path_SED and select it if it is found. 4040 # Check for GNU $ac_path_SED 4041case `"$ac_path_SED" --version 2>&1` in 4042*GNU*) 4043 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4044*) 4045 ac_count=0 4046 $as_echo_n 0123456789 >"conftest.in" 4047 while : 4048 do 4049 cat "conftest.in" "conftest.in" >"conftest.tmp" 4050 mv "conftest.tmp" "conftest.in" 4051 cp "conftest.in" "conftest.nl" 4052 $as_echo '' >> "conftest.nl" 4053 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4055 as_fn_arith $ac_count + 1 && ac_count=$as_val 4056 if test $ac_count -gt ${ac_path_SED_max-0}; then 4057 # Best one so far, save it but keep looking for a better one 4058 ac_cv_path_SED="$ac_path_SED" 4059 ac_path_SED_max=$ac_count 4060 fi 4061 # 10*(2^10) chars as input seems more than enough 4062 test $ac_count -gt 10 && break 4063 done 4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4065esac 4066 4067 $ac_path_SED_found && break 3 4068 done 4069 done 4070 done 4071IFS=$as_save_IFS 4072 if test -z "$ac_cv_path_SED"; then 4073 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4074 fi 4075else 4076 ac_cv_path_SED=$SED 4077fi 4078 4079fi 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4081$as_echo "$ac_cv_path_SED" >&6; } 4082 SED="$ac_cv_path_SED" 4083 rm -f conftest.sed 4084 4085test -z "$SED" && SED=sed 4086Xsed="$SED -e 1s/^X//" 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4099$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4100if ${ac_cv_path_GREP+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 if test -z "$GREP"; then 4104 ac_path_GREP_found=false 4105 # Loop through the user's path and test for each of PROGNAME-LIST 4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4108do 4109 IFS=$as_save_IFS 4110 test -z "$as_dir" && as_dir=. 4111 for ac_prog in grep ggrep; do 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4115# Check for GNU ac_path_GREP and select it if it is found. 4116 # Check for GNU $ac_path_GREP 4117case `"$ac_path_GREP" --version 2>&1` in 4118*GNU*) 4119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4120*) 4121 ac_count=0 4122 $as_echo_n 0123456789 >"conftest.in" 4123 while : 4124 do 4125 cat "conftest.in" "conftest.in" >"conftest.tmp" 4126 mv "conftest.tmp" "conftest.in" 4127 cp "conftest.in" "conftest.nl" 4128 $as_echo 'GREP' >> "conftest.nl" 4129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4131 as_fn_arith $ac_count + 1 && ac_count=$as_val 4132 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4133 # Best one so far, save it but keep looking for a better one 4134 ac_cv_path_GREP="$ac_path_GREP" 4135 ac_path_GREP_max=$ac_count 4136 fi 4137 # 10*(2^10) chars as input seems more than enough 4138 test $ac_count -gt 10 && break 4139 done 4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4141esac 4142 4143 $ac_path_GREP_found && break 3 4144 done 4145 done 4146 done 4147IFS=$as_save_IFS 4148 if test -z "$ac_cv_path_GREP"; then 4149 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4150 fi 4151else 4152 ac_cv_path_GREP=$GREP 4153fi 4154 4155fi 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4157$as_echo "$ac_cv_path_GREP" >&6; } 4158 GREP="$ac_cv_path_GREP" 4159 4160 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4162$as_echo_n "checking for egrep... " >&6; } 4163if ${ac_cv_path_EGREP+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4167 then ac_cv_path_EGREP="$GREP -E" 4168 else 4169 if test -z "$EGREP"; then 4170 ac_path_EGREP_found=false 4171 # Loop through the user's path and test for each of PROGNAME-LIST 4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4174do 4175 IFS=$as_save_IFS 4176 test -z "$as_dir" && as_dir=. 4177 for ac_prog in egrep; do 4178 for ac_exec_ext in '' $ac_executable_extensions; do 4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4181# Check for GNU ac_path_EGREP and select it if it is found. 4182 # Check for GNU $ac_path_EGREP 4183case `"$ac_path_EGREP" --version 2>&1` in 4184*GNU*) 4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4186*) 4187 ac_count=0 4188 $as_echo_n 0123456789 >"conftest.in" 4189 while : 4190 do 4191 cat "conftest.in" "conftest.in" >"conftest.tmp" 4192 mv "conftest.tmp" "conftest.in" 4193 cp "conftest.in" "conftest.nl" 4194 $as_echo 'EGREP' >> "conftest.nl" 4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4197 as_fn_arith $ac_count + 1 && ac_count=$as_val 4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4199 # Best one so far, save it but keep looking for a better one 4200 ac_cv_path_EGREP="$ac_path_EGREP" 4201 ac_path_EGREP_max=$ac_count 4202 fi 4203 # 10*(2^10) chars as input seems more than enough 4204 test $ac_count -gt 10 && break 4205 done 4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4207esac 4208 4209 $ac_path_EGREP_found && break 3 4210 done 4211 done 4212 done 4213IFS=$as_save_IFS 4214 if test -z "$ac_cv_path_EGREP"; then 4215 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4216 fi 4217else 4218 ac_cv_path_EGREP=$EGREP 4219fi 4220 4221 fi 4222fi 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4224$as_echo "$ac_cv_path_EGREP" >&6; } 4225 EGREP="$ac_cv_path_EGREP" 4226 4227 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4229$as_echo_n "checking for fgrep... " >&6; } 4230if ${ac_cv_path_FGREP+:} false; then : 4231 $as_echo_n "(cached) " >&6 4232else 4233 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4234 then ac_cv_path_FGREP="$GREP -F" 4235 else 4236 if test -z "$FGREP"; then 4237 ac_path_FGREP_found=false 4238 # Loop through the user's path and test for each of PROGNAME-LIST 4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4241do 4242 IFS=$as_save_IFS 4243 test -z "$as_dir" && as_dir=. 4244 for ac_prog in fgrep; do 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4247 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4248# Check for GNU ac_path_FGREP and select it if it is found. 4249 # Check for GNU $ac_path_FGREP 4250case `"$ac_path_FGREP" --version 2>&1` in 4251*GNU*) 4252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4253*) 4254 ac_count=0 4255 $as_echo_n 0123456789 >"conftest.in" 4256 while : 4257 do 4258 cat "conftest.in" "conftest.in" >"conftest.tmp" 4259 mv "conftest.tmp" "conftest.in" 4260 cp "conftest.in" "conftest.nl" 4261 $as_echo 'FGREP' >> "conftest.nl" 4262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4264 as_fn_arith $ac_count + 1 && ac_count=$as_val 4265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4266 # Best one so far, save it but keep looking for a better one 4267 ac_cv_path_FGREP="$ac_path_FGREP" 4268 ac_path_FGREP_max=$ac_count 4269 fi 4270 # 10*(2^10) chars as input seems more than enough 4271 test $ac_count -gt 10 && break 4272 done 4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4274esac 4275 4276 $ac_path_FGREP_found && break 3 4277 done 4278 done 4279 done 4280IFS=$as_save_IFS 4281 if test -z "$ac_cv_path_FGREP"; then 4282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4283 fi 4284else 4285 ac_cv_path_FGREP=$FGREP 4286fi 4287 4288 fi 4289fi 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4291$as_echo "$ac_cv_path_FGREP" >&6; } 4292 FGREP="$ac_cv_path_FGREP" 4293 4294 4295test -z "$GREP" && GREP=grep 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315# Check whether --with-gnu-ld was given. 4316if test "${with_gnu_ld+set}" = set; then : 4317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4318else 4319 with_gnu_ld=no 4320fi 4321 4322ac_prog=ld 4323if test "$GCC" = yes; then 4324 # Check if gcc -print-prog-name=ld gives a path. 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4326$as_echo_n "checking for ld used by $CC... " >&6; } 4327 case $host in 4328 *-*-mingw*) 4329 # gcc leaves a trailing carriage return which upsets mingw 4330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4331 *) 4332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4333 esac 4334 case $ac_prog in 4335 # Accept absolute paths. 4336 [\\/]* | ?:[\\/]*) 4337 re_direlt='/[^/][^/]*/\.\./' 4338 # Canonicalize the pathname of ld 4339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4342 done 4343 test -z "$LD" && LD="$ac_prog" 4344 ;; 4345 "") 4346 # If it fails, then pretend we aren't using GCC. 4347 ac_prog=ld 4348 ;; 4349 *) 4350 # If it is relative, then search for the first ld in PATH. 4351 with_gnu_ld=unknown 4352 ;; 4353 esac 4354elif test "$with_gnu_ld" = yes; then 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4356$as_echo_n "checking for GNU ld... " >&6; } 4357else 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4359$as_echo_n "checking for non-GNU ld... " >&6; } 4360fi 4361if ${lt_cv_path_LD+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 if test -z "$LD"; then 4365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4366 for ac_dir in $PATH; do 4367 IFS="$lt_save_ifs" 4368 test -z "$ac_dir" && ac_dir=. 4369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4370 lt_cv_path_LD="$ac_dir/$ac_prog" 4371 # Check to see if the program is GNU ld. I'd rather use --version, 4372 # but apparently some variants of GNU ld only accept -v. 4373 # Break only if it was the GNU/non-GNU ld that we prefer. 4374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4375 *GNU* | *'with BFD'*) 4376 test "$with_gnu_ld" != no && break 4377 ;; 4378 *) 4379 test "$with_gnu_ld" != yes && break 4380 ;; 4381 esac 4382 fi 4383 done 4384 IFS="$lt_save_ifs" 4385else 4386 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4387fi 4388fi 4389 4390LD="$lt_cv_path_LD" 4391if test -n "$LD"; then 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4393$as_echo "$LD" >&6; } 4394else 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4396$as_echo "no" >&6; } 4397fi 4398test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4401if ${lt_cv_prog_gnu_ld+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4405case `$LD -v 2>&1 </dev/null` in 4406*GNU* | *'with BFD'*) 4407 lt_cv_prog_gnu_ld=yes 4408 ;; 4409*) 4410 lt_cv_prog_gnu_ld=no 4411 ;; 4412esac 4413fi 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4415$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4416with_gnu_ld=$lt_cv_prog_gnu_ld 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4427$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4428if ${lt_cv_path_NM+:} false; then : 4429 $as_echo_n "(cached) " >&6 4430else 4431 if test -n "$NM"; then 4432 # Let the user override the test. 4433 lt_cv_path_NM="$NM" 4434else 4435 lt_nm_to_check="${ac_tool_prefix}nm" 4436 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4437 lt_nm_to_check="$lt_nm_to_check nm" 4438 fi 4439 for lt_tmp_nm in $lt_nm_to_check; do 4440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4441 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4442 IFS="$lt_save_ifs" 4443 test -z "$ac_dir" && ac_dir=. 4444 tmp_nm="$ac_dir/$lt_tmp_nm" 4445 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4446 # Check to see if the nm accepts a BSD-compat flag. 4447 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4448 # nm: unknown option "B" ignored 4449 # Tru64's nm complains that /dev/null is an invalid object file 4450 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4451 */dev/null* | *'Invalid file or object type'*) 4452 lt_cv_path_NM="$tmp_nm -B" 4453 break 4454 ;; 4455 *) 4456 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4457 */dev/null*) 4458 lt_cv_path_NM="$tmp_nm -p" 4459 break 4460 ;; 4461 *) 4462 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4463 continue # so that we can try to find one that supports BSD flags 4464 ;; 4465 esac 4466 ;; 4467 esac 4468 fi 4469 done 4470 IFS="$lt_save_ifs" 4471 done 4472 : ${lt_cv_path_NM=no} 4473fi 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4476$as_echo "$lt_cv_path_NM" >&6; } 4477if test "$lt_cv_path_NM" != "no"; then 4478 NM="$lt_cv_path_NM" 4479else 4480 # Didn't find any BSD compatible name lister, look for dumpbin. 4481 if test -n "$DUMPBIN"; then : 4482 # Let the user override the test. 4483 else 4484 if test -n "$ac_tool_prefix"; then 4485 for ac_prog in dumpbin "link -dump" 4486 do 4487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4488set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4490$as_echo_n "checking for $ac_word... " >&6; } 4491if ${ac_cv_prog_DUMPBIN+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493else 4494 if test -n "$DUMPBIN"; then 4495 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4496else 4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4504 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4506 break 2 4507 fi 4508done 4509 done 4510IFS=$as_save_IFS 4511 4512fi 4513fi 4514DUMPBIN=$ac_cv_prog_DUMPBIN 4515if test -n "$DUMPBIN"; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4517$as_echo "$DUMPBIN" >&6; } 4518else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520$as_echo "no" >&6; } 4521fi 4522 4523 4524 test -n "$DUMPBIN" && break 4525 done 4526fi 4527if test -z "$DUMPBIN"; then 4528 ac_ct_DUMPBIN=$DUMPBIN 4529 for ac_prog in dumpbin "link -dump" 4530do 4531 # Extract the first word of "$ac_prog", so it can be a program name with args. 4532set dummy $ac_prog; ac_word=$2 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4534$as_echo_n "checking for $ac_word... " >&6; } 4535if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 if test -n "$ac_ct_DUMPBIN"; then 4539 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4540else 4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4542for as_dir in $PATH 4543do 4544 IFS=$as_save_IFS 4545 test -z "$as_dir" && as_dir=. 4546 for ac_exec_ext in '' $ac_executable_extensions; do 4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4548 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4550 break 2 4551 fi 4552done 4553 done 4554IFS=$as_save_IFS 4555 4556fi 4557fi 4558ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4559if test -n "$ac_ct_DUMPBIN"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4561$as_echo "$ac_ct_DUMPBIN" >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564$as_echo "no" >&6; } 4565fi 4566 4567 4568 test -n "$ac_ct_DUMPBIN" && break 4569done 4570 4571 if test "x$ac_ct_DUMPBIN" = x; then 4572 DUMPBIN=":" 4573 else 4574 case $cross_compiling:$ac_tool_warned in 4575yes:) 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4578ac_tool_warned=yes ;; 4579esac 4580 DUMPBIN=$ac_ct_DUMPBIN 4581 fi 4582fi 4583 4584 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4585 *COFF*) 4586 DUMPBIN="$DUMPBIN -symbols" 4587 ;; 4588 *) 4589 DUMPBIN=: 4590 ;; 4591 esac 4592 fi 4593 4594 if test "$DUMPBIN" != ":"; then 4595 NM="$DUMPBIN" 4596 fi 4597fi 4598test -z "$NM" && NM=nm 4599 4600 4601 4602 4603 4604 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4606$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4607if ${lt_cv_nm_interface+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 lt_cv_nm_interface="BSD nm" 4611 echo "int some_variable = 0;" > conftest.$ac_ext 4612 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4613 (eval "$ac_compile" 2>conftest.err) 4614 cat conftest.err >&5 4615 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4616 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4617 cat conftest.err >&5 4618 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4619 cat conftest.out >&5 4620 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4621 lt_cv_nm_interface="MS dumpbin" 4622 fi 4623 rm -f conftest* 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4626$as_echo "$lt_cv_nm_interface" >&6; } 4627 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4629$as_echo_n "checking whether ln -s works... " >&6; } 4630LN_S=$as_ln_s 4631if test "$LN_S" = "ln -s"; then 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4633$as_echo "yes" >&6; } 4634else 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4636$as_echo "no, using $LN_S" >&6; } 4637fi 4638 4639# find the maximum length of command line arguments 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4641$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4642if ${lt_cv_sys_max_cmd_len+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 i=0 4646 teststring="ABCD" 4647 4648 case $build_os in 4649 msdosdjgpp*) 4650 # On DJGPP, this test can blow up pretty badly due to problems in libc 4651 # (any single argument exceeding 2000 bytes causes a buffer overrun 4652 # during glob expansion). Even if it were fixed, the result of this 4653 # check would be larger than it should be. 4654 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4655 ;; 4656 4657 gnu*) 4658 # Under GNU Hurd, this test is not required because there is 4659 # no limit to the length of command line arguments. 4660 # Libtool will interpret -1 as no limit whatsoever 4661 lt_cv_sys_max_cmd_len=-1; 4662 ;; 4663 4664 cygwin* | mingw* | cegcc*) 4665 # On Win9x/ME, this test blows up -- it succeeds, but takes 4666 # about 5 minutes as the teststring grows exponentially. 4667 # Worse, since 9x/ME are not pre-emptively multitasking, 4668 # you end up with a "frozen" computer, even though with patience 4669 # the test eventually succeeds (with a max line length of 256k). 4670 # Instead, let's just punt: use the minimum linelength reported by 4671 # all of the supported platforms: 8192 (on NT/2K/XP). 4672 lt_cv_sys_max_cmd_len=8192; 4673 ;; 4674 4675 mint*) 4676 # On MiNT this can take a long time and run out of memory. 4677 lt_cv_sys_max_cmd_len=8192; 4678 ;; 4679 4680 amigaos*) 4681 # On AmigaOS with pdksh, this test takes hours, literally. 4682 # So we just punt and use a minimum line length of 8192. 4683 lt_cv_sys_max_cmd_len=8192; 4684 ;; 4685 4686 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4687 # This has been around since 386BSD, at least. Likely further. 4688 if test -x /sbin/sysctl; then 4689 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4690 elif test -x /usr/sbin/sysctl; then 4691 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4692 else 4693 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4694 fi 4695 # And add a safety zone 4696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4698 ;; 4699 4700 interix*) 4701 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4702 lt_cv_sys_max_cmd_len=196608 4703 ;; 4704 4705 os2*) 4706 # The test takes a long time on OS/2. 4707 lt_cv_sys_max_cmd_len=8192 4708 ;; 4709 4710 osf*) 4711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4713 # nice to cause kernel panics so lets avoid the loop below. 4714 # First set a reasonable default. 4715 lt_cv_sys_max_cmd_len=16384 4716 # 4717 if test -x /sbin/sysconfig; then 4718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4719 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4720 esac 4721 fi 4722 ;; 4723 sco3.2v5*) 4724 lt_cv_sys_max_cmd_len=102400 4725 ;; 4726 sysv5* | sco5v6* | sysv4.2uw2*) 4727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4728 if test -n "$kargmax"; then 4729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4730 else 4731 lt_cv_sys_max_cmd_len=32768 4732 fi 4733 ;; 4734 *) 4735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4736 if test -n "$lt_cv_sys_max_cmd_len"; then 4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4739 else 4740 # Make teststring a little bigger before we do anything with it. 4741 # a 1K string should be a reasonable start. 4742 for i in 1 2 3 4 5 6 7 8 ; do 4743 teststring=$teststring$teststring 4744 done 4745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4746 # If test is not a shell built-in, we'll probably end up computing a 4747 # maximum length that is only half of the actual maximum length, but 4748 # we can't tell. 4749 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4750 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4751 test $i != 17 # 1/2 MB should be enough 4752 do 4753 i=`expr $i + 1` 4754 teststring=$teststring$teststring 4755 done 4756 # Only check the string length outside the loop. 4757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4758 teststring= 4759 # Add a significant safety factor because C++ compilers can tack on 4760 # massive amounts of additional arguments before passing them to the 4761 # linker. It appears as though 1/2 is a usable value. 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4763 fi 4764 ;; 4765 esac 4766 4767fi 4768 4769if test -n $lt_cv_sys_max_cmd_len ; then 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4771$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4772else 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4774$as_echo "none" >&6; } 4775fi 4776max_cmd_len=$lt_cv_sys_max_cmd_len 4777 4778 4779 4780 4781 4782 4783: ${CP="cp -f"} 4784: ${MV="mv -f"} 4785: ${RM="rm -f"} 4786 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4788$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4789# Try some XSI features 4790xsi_shell=no 4791( _lt_dummy="a/b/c" 4792 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4793 = c,a/b,b/c, \ 4794 && eval 'test $(( 1 + 1 )) -eq 2 \ 4795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4796 && xsi_shell=yes 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4798$as_echo "$xsi_shell" >&6; } 4799 4800 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4802$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4803lt_shell_append=no 4804( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4805 >/dev/null 2>&1 \ 4806 && lt_shell_append=yes 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4808$as_echo "$lt_shell_append" >&6; } 4809 4810 4811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4812 lt_unset=unset 4813else 4814 lt_unset=false 4815fi 4816 4817 4818 4819 4820 4821# test EBCDIC or ASCII 4822case `echo X|tr X '\101'` in 4823 A) # ASCII based system 4824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4825 lt_SP2NL='tr \040 \012' 4826 lt_NL2SP='tr \015\012 \040\040' 4827 ;; 4828 *) # EBCDIC based system 4829 lt_SP2NL='tr \100 \n' 4830 lt_NL2SP='tr \r\n \100\100' 4831 ;; 4832esac 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4843$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4844if ${lt_cv_to_host_file_cmd+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 case $host in 4848 *-*-mingw* ) 4849 case $build in 4850 *-*-mingw* ) # actually msys 4851 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4852 ;; 4853 *-*-cygwin* ) 4854 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4855 ;; 4856 * ) # otherwise, assume *nix 4857 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4858 ;; 4859 esac 4860 ;; 4861 *-*-cygwin* ) 4862 case $build in 4863 *-*-mingw* ) # actually msys 4864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4865 ;; 4866 *-*-cygwin* ) 4867 lt_cv_to_host_file_cmd=func_convert_file_noop 4868 ;; 4869 * ) # otherwise, assume *nix 4870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4871 ;; 4872 esac 4873 ;; 4874 * ) # unhandled hosts (and "normal" native builds) 4875 lt_cv_to_host_file_cmd=func_convert_file_noop 4876 ;; 4877esac 4878 4879fi 4880 4881to_host_file_cmd=$lt_cv_to_host_file_cmd 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4883$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4884 4885 4886 4887 4888 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4890$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4891if ${lt_cv_to_tool_file_cmd+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 #assume ordinary cross tools, or native build. 4895lt_cv_to_tool_file_cmd=func_convert_file_noop 4896case $host in 4897 *-*-mingw* ) 4898 case $build in 4899 *-*-mingw* ) # actually msys 4900 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4901 ;; 4902 esac 4903 ;; 4904esac 4905 4906fi 4907 4908to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4910$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4911 4912 4913 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4917$as_echo_n "checking for $LD option to reload object files... " >&6; } 4918if ${lt_cv_ld_reload_flag+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 lt_cv_ld_reload_flag='-r' 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4924$as_echo "$lt_cv_ld_reload_flag" >&6; } 4925reload_flag=$lt_cv_ld_reload_flag 4926case $reload_flag in 4927"" | " "*) ;; 4928*) reload_flag=" $reload_flag" ;; 4929esac 4930reload_cmds='$LD$reload_flag -o $output$reload_objs' 4931case $host_os in 4932 cygwin* | mingw* | pw32* | cegcc*) 4933 if test "$GCC" != yes; then 4934 reload_cmds=false 4935 fi 4936 ;; 4937 darwin*) 4938 if test "$GCC" = yes; then 4939 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4940 else 4941 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4942 fi 4943 ;; 4944esac 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954if test -n "$ac_tool_prefix"; then 4955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4956set dummy ${ac_tool_prefix}objdump; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if ${ac_cv_prog_OBJDUMP+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$OBJDUMP"; then 4963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4972 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980fi 4981fi 4982OBJDUMP=$ac_cv_prog_OBJDUMP 4983if test -n "$OBJDUMP"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4985$as_echo "$OBJDUMP" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 4992fi 4993if test -z "$ac_cv_prog_OBJDUMP"; then 4994 ac_ct_OBJDUMP=$OBJDUMP 4995 # Extract the first word of "objdump", so it can be a program name with args. 4996set dummy objdump; ac_word=$2 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4998$as_echo_n "checking for $ac_word... " >&6; } 4999if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 if test -n "$ac_ct_OBJDUMP"; then 5003 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5004else 5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006for as_dir in $PATH 5007do 5008 IFS=$as_save_IFS 5009 test -z "$as_dir" && as_dir=. 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5012 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5014 break 2 5015 fi 5016done 5017 done 5018IFS=$as_save_IFS 5019 5020fi 5021fi 5022ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5023if test -n "$ac_ct_OBJDUMP"; then 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5025$as_echo "$ac_ct_OBJDUMP" >&6; } 5026else 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5028$as_echo "no" >&6; } 5029fi 5030 5031 if test "x$ac_ct_OBJDUMP" = x; then 5032 OBJDUMP="false" 5033 else 5034 case $cross_compiling:$ac_tool_warned in 5035yes:) 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5038ac_tool_warned=yes ;; 5039esac 5040 OBJDUMP=$ac_ct_OBJDUMP 5041 fi 5042else 5043 OBJDUMP="$ac_cv_prog_OBJDUMP" 5044fi 5045 5046test -z "$OBJDUMP" && OBJDUMP=objdump 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5057$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5058if ${lt_cv_deplibs_check_method+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060else 5061 lt_cv_file_magic_cmd='$MAGIC_CMD' 5062lt_cv_file_magic_test_file= 5063lt_cv_deplibs_check_method='unknown' 5064# Need to set the preceding variable on all platforms that support 5065# interlibrary dependencies. 5066# 'none' -- dependencies not supported. 5067# `unknown' -- same as none, but documents that we really don't know. 5068# 'pass_all' -- all dependencies passed with no checks. 5069# 'test_compile' -- check by making test program. 5070# 'file_magic [[regex]]' -- check by looking for files in library path 5071# which responds to the $file_magic_cmd with a given extended regex. 5072# If you have `file' or equivalent on your system and you're not sure 5073# whether `pass_all' will *always* work, you probably want this one. 5074 5075case $host_os in 5076aix[4-9]*) 5077 lt_cv_deplibs_check_method=pass_all 5078 ;; 5079 5080beos*) 5081 lt_cv_deplibs_check_method=pass_all 5082 ;; 5083 5084bsdi[45]*) 5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5086 lt_cv_file_magic_cmd='/usr/bin/file -L' 5087 lt_cv_file_magic_test_file=/shlib/libc.so 5088 ;; 5089 5090cygwin*) 5091 # func_win32_libid is a shell function defined in ltmain.sh 5092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5093 lt_cv_file_magic_cmd='func_win32_libid' 5094 ;; 5095 5096mingw* | pw32*) 5097 # Base MSYS/MinGW do not provide the 'file' command needed by 5098 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5099 # unless we find 'file', for example because we are cross-compiling. 5100 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5101 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5103 lt_cv_file_magic_cmd='func_win32_libid' 5104 else 5105 # Keep this pattern in sync with the one in func_win32_libid. 5106 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5107 lt_cv_file_magic_cmd='$OBJDUMP -f' 5108 fi 5109 ;; 5110 5111cegcc*) 5112 # use the weaker test based on 'objdump'. See mingw*. 5113 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5114 lt_cv_file_magic_cmd='$OBJDUMP -f' 5115 ;; 5116 5117darwin* | rhapsody*) 5118 lt_cv_deplibs_check_method=pass_all 5119 ;; 5120 5121freebsd* | dragonfly*) 5122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5123 case $host_cpu in 5124 i*86 ) 5125 # Not sure whether the presence of OpenBSD here was a mistake. 5126 # Let's accept both of them until this is cleared up. 5127 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5128 lt_cv_file_magic_cmd=/usr/bin/file 5129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5130 ;; 5131 esac 5132 else 5133 lt_cv_deplibs_check_method=pass_all 5134 fi 5135 ;; 5136 5137gnu*) 5138 lt_cv_deplibs_check_method=pass_all 5139 ;; 5140 5141haiku*) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 5145hpux10.20* | hpux11*) 5146 lt_cv_file_magic_cmd=/usr/bin/file 5147 case $host_cpu in 5148 ia64*) 5149 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5150 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5151 ;; 5152 hppa*64*) 5153 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]' 5154 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5155 ;; 5156 *) 5157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5158 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5159 ;; 5160 esac 5161 ;; 5162 5163interix[3-9]*) 5164 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5166 ;; 5167 5168irix5* | irix6* | nonstopux*) 5169 case $LD in 5170 *-32|*"-32 ") libmagic=32-bit;; 5171 *-n32|*"-n32 ") libmagic=N32;; 5172 *-64|*"-64 ") libmagic=64-bit;; 5173 *) libmagic=never-match;; 5174 esac 5175 lt_cv_deplibs_check_method=pass_all 5176 ;; 5177 5178# This must be glibc/ELF. 5179linux* | k*bsd*-gnu | kopensolaris*-gnu) 5180 lt_cv_deplibs_check_method=pass_all 5181 ;; 5182 5183netbsd*) 5184 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5186 else 5187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5188 fi 5189 ;; 5190 5191newos6*) 5192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5193 lt_cv_file_magic_cmd=/usr/bin/file 5194 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5195 ;; 5196 5197*nto* | *qnx*) 5198 lt_cv_deplibs_check_method=pass_all 5199 ;; 5200 5201openbsd*) 5202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5204 else 5205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5206 fi 5207 ;; 5208 5209osf3* | osf4* | osf5*) 5210 lt_cv_deplibs_check_method=pass_all 5211 ;; 5212 5213rdos*) 5214 lt_cv_deplibs_check_method=pass_all 5215 ;; 5216 5217solaris*) 5218 lt_cv_deplibs_check_method=pass_all 5219 ;; 5220 5221sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225sysv4 | sysv4.3*) 5226 case $host_vendor in 5227 motorola) 5228 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]' 5229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5230 ;; 5231 ncr) 5232 lt_cv_deplibs_check_method=pass_all 5233 ;; 5234 sequent) 5235 lt_cv_file_magic_cmd='/bin/file' 5236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5237 ;; 5238 sni) 5239 lt_cv_file_magic_cmd='/bin/file' 5240 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5241 lt_cv_file_magic_test_file=/lib/libc.so 5242 ;; 5243 siemens) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 pc) 5247 lt_cv_deplibs_check_method=pass_all 5248 ;; 5249 esac 5250 ;; 5251 5252tpf*) 5253 lt_cv_deplibs_check_method=pass_all 5254 ;; 5255esac 5256 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5259$as_echo "$lt_cv_deplibs_check_method" >&6; } 5260 5261file_magic_glob= 5262want_nocaseglob=no 5263if test "$build" = "$host"; then 5264 case $host_os in 5265 mingw* | pw32*) 5266 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5267 want_nocaseglob=yes 5268 else 5269 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5270 fi 5271 ;; 5272 esac 5273fi 5274 5275file_magic_cmd=$lt_cv_file_magic_cmd 5276deplibs_check_method=$lt_cv_deplibs_check_method 5277test -z "$deplibs_check_method" && deplibs_check_method=unknown 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300if test -n "$ac_tool_prefix"; then 5301 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5302set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5304$as_echo_n "checking for $ac_word... " >&6; } 5305if ${ac_cv_prog_DLLTOOL+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 if test -n "$DLLTOOL"; then 5309 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5310else 5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312for as_dir in $PATH 5313do 5314 IFS=$as_save_IFS 5315 test -z "$as_dir" && as_dir=. 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5318 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322done 5323 done 5324IFS=$as_save_IFS 5325 5326fi 5327fi 5328DLLTOOL=$ac_cv_prog_DLLTOOL 5329if test -n "$DLLTOOL"; then 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5331$as_echo "$DLLTOOL" >&6; } 5332else 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334$as_echo "no" >&6; } 5335fi 5336 5337 5338fi 5339if test -z "$ac_cv_prog_DLLTOOL"; then 5340 ac_ct_DLLTOOL=$DLLTOOL 5341 # Extract the first word of "dlltool", so it can be a program name with args. 5342set dummy dlltool; ac_word=$2 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5344$as_echo_n "checking for $ac_word... " >&6; } 5345if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 if test -n "$ac_ct_DLLTOOL"; then 5349 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5350else 5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5352for as_dir in $PATH 5353do 5354 IFS=$as_save_IFS 5355 test -z "$as_dir" && as_dir=. 5356 for ac_exec_ext in '' $ac_executable_extensions; do 5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5358 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5360 break 2 5361 fi 5362done 5363 done 5364IFS=$as_save_IFS 5365 5366fi 5367fi 5368ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5369if test -n "$ac_ct_DLLTOOL"; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5371$as_echo "$ac_ct_DLLTOOL" >&6; } 5372else 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5374$as_echo "no" >&6; } 5375fi 5376 5377 if test "x$ac_ct_DLLTOOL" = x; then 5378 DLLTOOL="false" 5379 else 5380 case $cross_compiling:$ac_tool_warned in 5381yes:) 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5384ac_tool_warned=yes ;; 5385esac 5386 DLLTOOL=$ac_ct_DLLTOOL 5387 fi 5388else 5389 DLLTOOL="$ac_cv_prog_DLLTOOL" 5390fi 5391 5392test -z "$DLLTOOL" && DLLTOOL=dlltool 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5404$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5405if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 lt_cv_sharedlib_from_linklib_cmd='unknown' 5409 5410case $host_os in 5411cygwin* | mingw* | pw32* | cegcc*) 5412 # two different shell functions defined in ltmain.sh 5413 # decide which to use based on capabilities of $DLLTOOL 5414 case `$DLLTOOL --help 2>&1` in 5415 *--identify-strict*) 5416 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5417 ;; 5418 *) 5419 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5420 ;; 5421 esac 5422 ;; 5423*) 5424 # fallback: assume linklib IS sharedlib 5425 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5426 ;; 5427esac 5428 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5431$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5432sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5433test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5434 5435 5436 5437 5438 5439 5440 5441 5442if test -n "$ac_tool_prefix"; then 5443 for ac_prog in ar 5444 do 5445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5446set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5448$as_echo_n "checking for $ac_word... " >&6; } 5449if ${ac_cv_prog_AR+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 if test -n "$AR"; then 5453 ac_cv_prog_AR="$AR" # Let the user override the test. 5454else 5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5456for as_dir in $PATH 5457do 5458 IFS=$as_save_IFS 5459 test -z "$as_dir" && as_dir=. 5460 for ac_exec_ext in '' $ac_executable_extensions; do 5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5462 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5464 break 2 5465 fi 5466done 5467 done 5468IFS=$as_save_IFS 5469 5470fi 5471fi 5472AR=$ac_cv_prog_AR 5473if test -n "$AR"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5475$as_echo "$AR" >&6; } 5476else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478$as_echo "no" >&6; } 5479fi 5480 5481 5482 test -n "$AR" && break 5483 done 5484fi 5485if test -z "$AR"; then 5486 ac_ct_AR=$AR 5487 for ac_prog in ar 5488do 5489 # Extract the first word of "$ac_prog", so it can be a program name with args. 5490set dummy $ac_prog; ac_word=$2 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5492$as_echo_n "checking for $ac_word... " >&6; } 5493if ${ac_cv_prog_ac_ct_AR+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 if test -n "$ac_ct_AR"; then 5497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5498else 5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5500for as_dir in $PATH 5501do 5502 IFS=$as_save_IFS 5503 test -z "$as_dir" && as_dir=. 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5506 ac_cv_prog_ac_ct_AR="$ac_prog" 5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5508 break 2 5509 fi 5510done 5511 done 5512IFS=$as_save_IFS 5513 5514fi 5515fi 5516ac_ct_AR=$ac_cv_prog_ac_ct_AR 5517if test -n "$ac_ct_AR"; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5519$as_echo "$ac_ct_AR" >&6; } 5520else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523fi 5524 5525 5526 test -n "$ac_ct_AR" && break 5527done 5528 5529 if test "x$ac_ct_AR" = x; then 5530 AR="false" 5531 else 5532 case $cross_compiling:$ac_tool_warned in 5533yes:) 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5536ac_tool_warned=yes ;; 5537esac 5538 AR=$ac_ct_AR 5539 fi 5540fi 5541 5542: ${AR=ar} 5543: ${AR_FLAGS=cru} 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5556$as_echo_n "checking for archiver @FILE support... " >&6; } 5557if ${lt_cv_ar_at_file+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 lt_cv_ar_at_file=no 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562/* end confdefs.h. */ 5563 5564int 5565main () 5566{ 5567 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 echo conftest.$ac_objext > conftest.lst 5574 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5576 (eval $lt_ar_try) 2>&5 5577 ac_status=$? 5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5579 test $ac_status = 0; } 5580 if test "$ac_status" -eq 0; then 5581 # Ensure the archiver fails upon bogus file names. 5582 rm -f conftest.$ac_objext libconftest.a 5583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5584 (eval $lt_ar_try) 2>&5 5585 ac_status=$? 5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5587 test $ac_status = 0; } 5588 if test "$ac_status" -ne 0; then 5589 lt_cv_ar_at_file=@ 5590 fi 5591 fi 5592 rm -f conftest.* libconftest.a 5593 5594fi 5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5596 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5599$as_echo "$lt_cv_ar_at_file" >&6; } 5600 5601if test "x$lt_cv_ar_at_file" = xno; then 5602 archiver_list_spec= 5603else 5604 archiver_list_spec=$lt_cv_ar_at_file 5605fi 5606 5607 5608 5609 5610 5611 5612 5613if test -n "$ac_tool_prefix"; then 5614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5615set dummy ${ac_tool_prefix}strip; ac_word=$2 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5617$as_echo_n "checking for $ac_word... " >&6; } 5618if ${ac_cv_prog_STRIP+:} false; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 if test -n "$STRIP"; then 5622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5623else 5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5625for as_dir in $PATH 5626do 5627 IFS=$as_save_IFS 5628 test -z "$as_dir" && as_dir=. 5629 for ac_exec_ext in '' $ac_executable_extensions; do 5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5631 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5633 break 2 5634 fi 5635done 5636 done 5637IFS=$as_save_IFS 5638 5639fi 5640fi 5641STRIP=$ac_cv_prog_STRIP 5642if test -n "$STRIP"; then 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5644$as_echo "$STRIP" >&6; } 5645else 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5647$as_echo "no" >&6; } 5648fi 5649 5650 5651fi 5652if test -z "$ac_cv_prog_STRIP"; then 5653 ac_ct_STRIP=$STRIP 5654 # Extract the first word of "strip", so it can be a program name with args. 5655set dummy strip; ac_word=$2 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657$as_echo_n "checking for $ac_word... " >&6; } 5658if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 if test -n "$ac_ct_STRIP"; then 5662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5663else 5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5665for as_dir in $PATH 5666do 5667 IFS=$as_save_IFS 5668 test -z "$as_dir" && as_dir=. 5669 for ac_exec_ext in '' $ac_executable_extensions; do 5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5671 ac_cv_prog_ac_ct_STRIP="strip" 5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5673 break 2 5674 fi 5675done 5676 done 5677IFS=$as_save_IFS 5678 5679fi 5680fi 5681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5682if test -n "$ac_ct_STRIP"; then 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5684$as_echo "$ac_ct_STRIP" >&6; } 5685else 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687$as_echo "no" >&6; } 5688fi 5689 5690 if test "x$ac_ct_STRIP" = x; then 5691 STRIP=":" 5692 else 5693 case $cross_compiling:$ac_tool_warned in 5694yes:) 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5697ac_tool_warned=yes ;; 5698esac 5699 STRIP=$ac_ct_STRIP 5700 fi 5701else 5702 STRIP="$ac_cv_prog_STRIP" 5703fi 5704 5705test -z "$STRIP" && STRIP=: 5706 5707 5708 5709 5710 5711 5712if test -n "$ac_tool_prefix"; then 5713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5714set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5716$as_echo_n "checking for $ac_word... " >&6; } 5717if ${ac_cv_prog_RANLIB+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 if test -n "$RANLIB"; then 5721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5722else 5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724for as_dir in $PATH 5725do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_exec_ext in '' $ac_executable_extensions; do 5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5732 break 2 5733 fi 5734done 5735 done 5736IFS=$as_save_IFS 5737 5738fi 5739fi 5740RANLIB=$ac_cv_prog_RANLIB 5741if test -n "$RANLIB"; then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5743$as_echo "$RANLIB" >&6; } 5744else 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5746$as_echo "no" >&6; } 5747fi 5748 5749 5750fi 5751if test -z "$ac_cv_prog_RANLIB"; then 5752 ac_ct_RANLIB=$RANLIB 5753 # Extract the first word of "ranlib", so it can be a program name with args. 5754set dummy ranlib; ac_word=$2 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5756$as_echo_n "checking for $ac_word... " >&6; } 5757if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test -n "$ac_ct_RANLIB"; then 5761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5762else 5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 test -z "$as_dir" && as_dir=. 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5770 ac_cv_prog_ac_ct_RANLIB="ranlib" 5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5772 break 2 5773 fi 5774done 5775 done 5776IFS=$as_save_IFS 5777 5778fi 5779fi 5780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5781if test -n "$ac_ct_RANLIB"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5783$as_echo "$ac_ct_RANLIB" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786$as_echo "no" >&6; } 5787fi 5788 5789 if test "x$ac_ct_RANLIB" = x; then 5790 RANLIB=":" 5791 else 5792 case $cross_compiling:$ac_tool_warned in 5793yes:) 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5796ac_tool_warned=yes ;; 5797esac 5798 RANLIB=$ac_ct_RANLIB 5799 fi 5800else 5801 RANLIB="$ac_cv_prog_RANLIB" 5802fi 5803 5804test -z "$RANLIB" && RANLIB=: 5805 5806 5807 5808 5809 5810 5811# Determine commands to create old-style static archives. 5812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5813old_postinstall_cmds='chmod 644 $oldlib' 5814old_postuninstall_cmds= 5815 5816if test -n "$RANLIB"; then 5817 case $host_os in 5818 openbsd*) 5819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5820 ;; 5821 *) 5822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5823 ;; 5824 esac 5825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5826fi 5827 5828case $host_os in 5829 darwin*) 5830 lock_old_archive_extraction=yes ;; 5831 *) 5832 lock_old_archive_extraction=no ;; 5833esac 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873# If no C compiler was specified, use CC. 5874LTCC=${LTCC-"$CC"} 5875 5876# If no C compiler flags were specified, use CFLAGS. 5877LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5878 5879# Allow CC to be a program name with arguments. 5880compiler=$CC 5881 5882 5883# Check for command to grab the raw symbol name followed by C symbol from nm. 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5885$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5886if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 5890# These are sane defaults that work on at least a few old systems. 5891# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5892 5893# Character class describing NM global symbol codes. 5894symcode='[BCDEGRST]' 5895 5896# Regexp to match symbols that can be accessed directly from C. 5897sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5898 5899# Define system-specific variables. 5900case $host_os in 5901aix*) 5902 symcode='[BCDT]' 5903 ;; 5904cygwin* | mingw* | pw32* | cegcc*) 5905 symcode='[ABCDGISTW]' 5906 ;; 5907hpux*) 5908 if test "$host_cpu" = ia64; then 5909 symcode='[ABCDEGRST]' 5910 fi 5911 ;; 5912irix* | nonstopux*) 5913 symcode='[BCDEGRST]' 5914 ;; 5915osf*) 5916 symcode='[BCDEGQRST]' 5917 ;; 5918solaris*) 5919 symcode='[BDRT]' 5920 ;; 5921sco3.2v5*) 5922 symcode='[DT]' 5923 ;; 5924sysv4.2uw2*) 5925 symcode='[DT]' 5926 ;; 5927sysv5* | sco5v6* | unixware* | OpenUNIX*) 5928 symcode='[ABDT]' 5929 ;; 5930sysv4) 5931 symcode='[DFNSTU]' 5932 ;; 5933esac 5934 5935# If we're using GNU nm, then use its standard symbol codes. 5936case `$NM -V 2>&1` in 5937*GNU* | *'with BFD'*) 5938 symcode='[ABCDGIRSTW]' ;; 5939esac 5940 5941# Transform an extracted symbol line into a proper C declaration. 5942# Some systems (esp. on ia64) link data and code symbols differently, 5943# so use this general approach. 5944lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5945 5946# Transform an extracted symbol line into symbol name and symbol address 5947lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5948lt_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'" 5949 5950# Handle CRLF in mingw tool chain 5951opt_cr= 5952case $build_os in 5953mingw*) 5954 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5955 ;; 5956esac 5957 5958# Try without a prefix underscore, then with it. 5959for ac_symprfx in "" "_"; do 5960 5961 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5962 symxfrm="\\1 $ac_symprfx\\2 \\2" 5963 5964 # Write the raw and C identifiers. 5965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5966 # Fake it for dumpbin and say T for any non-static function 5967 # and D for any global variable. 5968 # Also find C++ and __fastcall symbols from MSVC++, 5969 # which start with @ or ?. 5970 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5971" {last_section=section; section=\$ 3};"\ 5972" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5973" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5974" \$ 0!~/External *\|/{next};"\ 5975" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5976" {if(hide[section]) next};"\ 5977" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5978" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5979" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5980" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5981" ' prfx=^$ac_symprfx" 5982 else 5983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5984 fi 5985 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5986 5987 # Check to see that the pipe works correctly. 5988 pipe_works=no 5989 5990 rm -f conftest* 5991 cat > conftest.$ac_ext <<_LT_EOF 5992#ifdef __cplusplus 5993extern "C" { 5994#endif 5995char nm_test_var; 5996void nm_test_func(void); 5997void nm_test_func(void){} 5998#ifdef __cplusplus 5999} 6000#endif 6001int main(){nm_test_var='a';nm_test_func();return(0);} 6002_LT_EOF 6003 6004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6005 (eval $ac_compile) 2>&5 6006 ac_status=$? 6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6008 test $ac_status = 0; }; then 6009 # Now try to grab the symbols. 6010 nlist=conftest.nm 6011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6012 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6013 ac_status=$? 6014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6015 test $ac_status = 0; } && test -s "$nlist"; then 6016 # Try sorting and uniquifying the output. 6017 if sort "$nlist" | uniq > "$nlist"T; then 6018 mv -f "$nlist"T "$nlist" 6019 else 6020 rm -f "$nlist"T 6021 fi 6022 6023 # Make sure that we snagged all the symbols we need. 6024 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6025 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6026 cat <<_LT_EOF > conftest.$ac_ext 6027/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6028#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6029/* DATA imports from DLLs on WIN32 con't be const, because runtime 6030 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6031# define LT_DLSYM_CONST 6032#elif defined(__osf__) 6033/* This system does not cope well with relocations in const data. */ 6034# define LT_DLSYM_CONST 6035#else 6036# define LT_DLSYM_CONST const 6037#endif 6038 6039#ifdef __cplusplus 6040extern "C" { 6041#endif 6042 6043_LT_EOF 6044 # Now generate the symbol file. 6045 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6046 6047 cat <<_LT_EOF >> conftest.$ac_ext 6048 6049/* The mapping between symbol names and symbols. */ 6050LT_DLSYM_CONST struct { 6051 const char *name; 6052 void *address; 6053} 6054lt__PROGRAM__LTX_preloaded_symbols[] = 6055{ 6056 { "@PROGRAM@", (void *) 0 }, 6057_LT_EOF 6058 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6059 cat <<\_LT_EOF >> conftest.$ac_ext 6060 {0, (void *) 0} 6061}; 6062 6063/* This works around a problem in FreeBSD linker */ 6064#ifdef FREEBSD_WORKAROUND 6065static const void *lt_preloaded_setup() { 6066 return lt__PROGRAM__LTX_preloaded_symbols; 6067} 6068#endif 6069 6070#ifdef __cplusplus 6071} 6072#endif 6073_LT_EOF 6074 # Now try linking the two files. 6075 mv conftest.$ac_objext conftstm.$ac_objext 6076 lt_globsym_save_LIBS=$LIBS 6077 lt_globsym_save_CFLAGS=$CFLAGS 6078 LIBS="conftstm.$ac_objext" 6079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6081 (eval $ac_link) 2>&5 6082 ac_status=$? 6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6084 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6085 pipe_works=yes 6086 fi 6087 LIBS=$lt_globsym_save_LIBS 6088 CFLAGS=$lt_globsym_save_CFLAGS 6089 else 6090 echo "cannot find nm_test_func in $nlist" >&5 6091 fi 6092 else 6093 echo "cannot find nm_test_var in $nlist" >&5 6094 fi 6095 else 6096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6097 fi 6098 else 6099 echo "$progname: failed program was:" >&5 6100 cat conftest.$ac_ext >&5 6101 fi 6102 rm -rf conftest* conftst* 6103 6104 # Do not use the global_symbol_pipe unless it works. 6105 if test "$pipe_works" = yes; then 6106 break 6107 else 6108 lt_cv_sys_global_symbol_pipe= 6109 fi 6110done 6111 6112fi 6113 6114if test -z "$lt_cv_sys_global_symbol_pipe"; then 6115 lt_cv_sys_global_symbol_to_cdecl= 6116fi 6117if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6119$as_echo "failed" >&6; } 6120else 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6122$as_echo "ok" >&6; } 6123fi 6124 6125# Response file support. 6126if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6127 nm_file_list_spec='@' 6128elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6129 nm_file_list_spec='@' 6130fi 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6159$as_echo_n "checking for sysroot... " >&6; } 6160 6161# Check whether --with-sysroot was given. 6162if test "${with_sysroot+set}" = set; then : 6163 withval=$with_sysroot; 6164else 6165 with_sysroot=no 6166fi 6167 6168 6169lt_sysroot= 6170case ${with_sysroot} in #( 6171 yes) 6172 if test "$GCC" = yes; then 6173 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6174 fi 6175 ;; #( 6176 /*) 6177 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6178 ;; #( 6179 no|'') 6180 ;; #( 6181 *) 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6183$as_echo "${with_sysroot}" >&6; } 6184 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6185 ;; 6186esac 6187 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6189$as_echo "${lt_sysroot:-no}" >&6; } 6190 6191 6192 6193 6194 6195# Check whether --enable-libtool-lock was given. 6196if test "${enable_libtool_lock+set}" = set; then : 6197 enableval=$enable_libtool_lock; 6198fi 6199 6200test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6201 6202# Some flags need to be propagated to the compiler or linker for good 6203# libtool support. 6204case $host in 6205ia64-*-hpux*) 6206 # Find out which ABI we are using. 6207 echo 'int i;' > conftest.$ac_ext 6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6209 (eval $ac_compile) 2>&5 6210 ac_status=$? 6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6212 test $ac_status = 0; }; then 6213 case `/usr/bin/file conftest.$ac_objext` in 6214 *ELF-32*) 6215 HPUX_IA64_MODE="32" 6216 ;; 6217 *ELF-64*) 6218 HPUX_IA64_MODE="64" 6219 ;; 6220 esac 6221 fi 6222 rm -rf conftest* 6223 ;; 6224*-*-irix6*) 6225 # Find out which ABI we are using. 6226 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6228 (eval $ac_compile) 2>&5 6229 ac_status=$? 6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6231 test $ac_status = 0; }; then 6232 if test "$lt_cv_prog_gnu_ld" = yes; then 6233 case `/usr/bin/file conftest.$ac_objext` in 6234 *32-bit*) 6235 LD="${LD-ld} -melf32bsmip" 6236 ;; 6237 *N32*) 6238 LD="${LD-ld} -melf32bmipn32" 6239 ;; 6240 *64-bit*) 6241 LD="${LD-ld} -melf64bmip" 6242 ;; 6243 esac 6244 else 6245 case `/usr/bin/file conftest.$ac_objext` in 6246 *32-bit*) 6247 LD="${LD-ld} -32" 6248 ;; 6249 *N32*) 6250 LD="${LD-ld} -n32" 6251 ;; 6252 *64-bit*) 6253 LD="${LD-ld} -64" 6254 ;; 6255 esac 6256 fi 6257 fi 6258 rm -rf conftest* 6259 ;; 6260 6261x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6262s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6263 # Find out which ABI we are using. 6264 echo 'int i;' > conftest.$ac_ext 6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6266 (eval $ac_compile) 2>&5 6267 ac_status=$? 6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6269 test $ac_status = 0; }; then 6270 case `/usr/bin/file conftest.o` in 6271 *32-bit*) 6272 case $host in 6273 x86_64-*kfreebsd*-gnu) 6274 LD="${LD-ld} -m elf_i386_fbsd" 6275 ;; 6276 x86_64-*linux*) 6277 LD="${LD-ld} -m elf_i386" 6278 ;; 6279 ppc64-*linux*|powerpc64-*linux*) 6280 LD="${LD-ld} -m elf32ppclinux" 6281 ;; 6282 s390x-*linux*) 6283 LD="${LD-ld} -m elf_s390" 6284 ;; 6285 sparc64-*linux*) 6286 LD="${LD-ld} -m elf32_sparc" 6287 ;; 6288 esac 6289 ;; 6290 *64-bit*) 6291 case $host in 6292 x86_64-*kfreebsd*-gnu) 6293 LD="${LD-ld} -m elf_x86_64_fbsd" 6294 ;; 6295 x86_64-*linux*) 6296 LD="${LD-ld} -m elf_x86_64" 6297 ;; 6298 ppc*-*linux*|powerpc*-*linux*) 6299 LD="${LD-ld} -m elf64ppc" 6300 ;; 6301 s390*-*linux*|s390*-*tpf*) 6302 LD="${LD-ld} -m elf64_s390" 6303 ;; 6304 sparc*-*linux*) 6305 LD="${LD-ld} -m elf64_sparc" 6306 ;; 6307 esac 6308 ;; 6309 esac 6310 fi 6311 rm -rf conftest* 6312 ;; 6313 6314*-*-sco3.2v5*) 6315 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6316 SAVE_CFLAGS="$CFLAGS" 6317 CFLAGS="$CFLAGS -belf" 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6319$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6320if ${lt_cv_cc_needs_belf+:} false; then : 6321 $as_echo_n "(cached) " >&6 6322else 6323 ac_ext=c 6324ac_cpp='$CPP $CPPFLAGS' 6325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6327ac_compiler_gnu=$ac_cv_c_compiler_gnu 6328 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331 6332int 6333main () 6334{ 6335 6336 ; 6337 return 0; 6338} 6339_ACEOF 6340if ac_fn_c_try_link "$LINENO"; then : 6341 lt_cv_cc_needs_belf=yes 6342else 6343 lt_cv_cc_needs_belf=no 6344fi 6345rm -f core conftest.err conftest.$ac_objext \ 6346 conftest$ac_exeext conftest.$ac_ext 6347 ac_ext=c 6348ac_cpp='$CPP $CPPFLAGS' 6349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6351ac_compiler_gnu=$ac_cv_c_compiler_gnu 6352 6353fi 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6355$as_echo "$lt_cv_cc_needs_belf" >&6; } 6356 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6358 CFLAGS="$SAVE_CFLAGS" 6359 fi 6360 ;; 6361*-*solaris*) 6362 # Find out which ABI we are using. 6363 echo 'int i;' > conftest.$ac_ext 6364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6365 (eval $ac_compile) 2>&5 6366 ac_status=$? 6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6368 test $ac_status = 0; }; then 6369 case `/usr/bin/file conftest.o` in 6370 *64-bit*) 6371 case $lt_cv_prog_gnu_ld in 6372 yes*) 6373 case $host in 6374 i?86-*-solaris*) 6375 LD="${LD-ld} -m elf_x86_64" 6376 ;; 6377 sparc*-*-solaris*) 6378 LD="${LD-ld} -m elf64_sparc" 6379 ;; 6380 esac 6381 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6382 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6383 LD="${LD-ld}_sol2" 6384 fi 6385 ;; 6386 *) 6387 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6388 LD="${LD-ld} -64" 6389 fi 6390 ;; 6391 esac 6392 ;; 6393 esac 6394 fi 6395 rm -rf conftest* 6396 ;; 6397esac 6398 6399need_locks="$enable_libtool_lock" 6400 6401if test -n "$ac_tool_prefix"; then 6402 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6403set dummy ${ac_tool_prefix}mt; ac_word=$2 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6405$as_echo_n "checking for $ac_word... " >&6; } 6406if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 if test -n "$MANIFEST_TOOL"; then 6410 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6411else 6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6413for as_dir in $PATH 6414do 6415 IFS=$as_save_IFS 6416 test -z "$as_dir" && as_dir=. 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6419 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423done 6424 done 6425IFS=$as_save_IFS 6426 6427fi 6428fi 6429MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6430if test -n "$MANIFEST_TOOL"; then 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6432$as_echo "$MANIFEST_TOOL" >&6; } 6433else 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435$as_echo "no" >&6; } 6436fi 6437 6438 6439fi 6440if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6441 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6442 # Extract the first word of "mt", so it can be a program name with args. 6443set dummy mt; ac_word=$2 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6445$as_echo_n "checking for $ac_word... " >&6; } 6446if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 if test -n "$ac_ct_MANIFEST_TOOL"; then 6450 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6451else 6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6453for as_dir in $PATH 6454do 6455 IFS=$as_save_IFS 6456 test -z "$as_dir" && as_dir=. 6457 for ac_exec_ext in '' $ac_executable_extensions; do 6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6459 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6461 break 2 6462 fi 6463done 6464 done 6465IFS=$as_save_IFS 6466 6467fi 6468fi 6469ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6470if test -n "$ac_ct_MANIFEST_TOOL"; then 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6472$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6473else 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6475$as_echo "no" >&6; } 6476fi 6477 6478 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6479 MANIFEST_TOOL=":" 6480 else 6481 case $cross_compiling:$ac_tool_warned in 6482yes:) 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6485ac_tool_warned=yes ;; 6486esac 6487 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6488 fi 6489else 6490 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6491fi 6492 6493test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6495$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6496if ${lt_cv_path_mainfest_tool+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 lt_cv_path_mainfest_tool=no 6500 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6501 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6502 cat conftest.err >&5 6503 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6504 lt_cv_path_mainfest_tool=yes 6505 fi 6506 rm -f conftest* 6507fi 6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6509$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6510if test "x$lt_cv_path_mainfest_tool" != xyes; then 6511 MANIFEST_TOOL=: 6512fi 6513 6514 6515 6516 6517 6518 6519 case $host_os in 6520 rhapsody* | darwin*) 6521 if test -n "$ac_tool_prefix"; then 6522 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6523set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6525$as_echo_n "checking for $ac_word... " >&6; } 6526if ${ac_cv_prog_DSYMUTIL+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 if test -n "$DSYMUTIL"; then 6530 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6531else 6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6533for as_dir in $PATH 6534do 6535 IFS=$as_save_IFS 6536 test -z "$as_dir" && as_dir=. 6537 for ac_exec_ext in '' $ac_executable_extensions; do 6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6539 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6541 break 2 6542 fi 6543done 6544 done 6545IFS=$as_save_IFS 6546 6547fi 6548fi 6549DSYMUTIL=$ac_cv_prog_DSYMUTIL 6550if test -n "$DSYMUTIL"; then 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6552$as_echo "$DSYMUTIL" >&6; } 6553else 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6555$as_echo "no" >&6; } 6556fi 6557 6558 6559fi 6560if test -z "$ac_cv_prog_DSYMUTIL"; then 6561 ac_ct_DSYMUTIL=$DSYMUTIL 6562 # Extract the first word of "dsymutil", so it can be a program name with args. 6563set dummy dsymutil; ac_word=$2 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6565$as_echo_n "checking for $ac_word... " >&6; } 6566if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 if test -n "$ac_ct_DSYMUTIL"; then 6570 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6571else 6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6573for as_dir in $PATH 6574do 6575 IFS=$as_save_IFS 6576 test -z "$as_dir" && as_dir=. 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6579 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584 done 6585IFS=$as_save_IFS 6586 6587fi 6588fi 6589ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6590if test -n "$ac_ct_DSYMUTIL"; then 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6592$as_echo "$ac_ct_DSYMUTIL" >&6; } 6593else 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6595$as_echo "no" >&6; } 6596fi 6597 6598 if test "x$ac_ct_DSYMUTIL" = x; then 6599 DSYMUTIL=":" 6600 else 6601 case $cross_compiling:$ac_tool_warned in 6602yes:) 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6605ac_tool_warned=yes ;; 6606esac 6607 DSYMUTIL=$ac_ct_DSYMUTIL 6608 fi 6609else 6610 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6611fi 6612 6613 if test -n "$ac_tool_prefix"; then 6614 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6615set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6617$as_echo_n "checking for $ac_word... " >&6; } 6618if ${ac_cv_prog_NMEDIT+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 if test -n "$NMEDIT"; then 6622 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6623else 6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6631 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635done 6636 done 6637IFS=$as_save_IFS 6638 6639fi 6640fi 6641NMEDIT=$ac_cv_prog_NMEDIT 6642if test -n "$NMEDIT"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6644$as_echo "$NMEDIT" >&6; } 6645else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6647$as_echo "no" >&6; } 6648fi 6649 6650 6651fi 6652if test -z "$ac_cv_prog_NMEDIT"; then 6653 ac_ct_NMEDIT=$NMEDIT 6654 # Extract the first word of "nmedit", so it can be a program name with args. 6655set dummy nmedit; ac_word=$2 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657$as_echo_n "checking for $ac_word... " >&6; } 6658if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 if test -n "$ac_ct_NMEDIT"; then 6662 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6671 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679fi 6680fi 6681ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6682if test -n "$ac_ct_NMEDIT"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6684$as_echo "$ac_ct_NMEDIT" >&6; } 6685else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6687$as_echo "no" >&6; } 6688fi 6689 6690 if test "x$ac_ct_NMEDIT" = x; then 6691 NMEDIT=":" 6692 else 6693 case $cross_compiling:$ac_tool_warned in 6694yes:) 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6697ac_tool_warned=yes ;; 6698esac 6699 NMEDIT=$ac_ct_NMEDIT 6700 fi 6701else 6702 NMEDIT="$ac_cv_prog_NMEDIT" 6703fi 6704 6705 if test -n "$ac_tool_prefix"; then 6706 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6707set dummy ${ac_tool_prefix}lipo; ac_word=$2 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6709$as_echo_n "checking for $ac_word... " >&6; } 6710if ${ac_cv_prog_LIPO+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 if test -n "$LIPO"; then 6714 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6715else 6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6723 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728 done 6729IFS=$as_save_IFS 6730 6731fi 6732fi 6733LIPO=$ac_cv_prog_LIPO 6734if test -n "$LIPO"; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6736$as_echo "$LIPO" >&6; } 6737else 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 6743fi 6744if test -z "$ac_cv_prog_LIPO"; then 6745 ac_ct_LIPO=$LIPO 6746 # Extract the first word of "lipo", so it can be a program name with args. 6747set dummy lipo; ac_word=$2 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6749$as_echo_n "checking for $ac_word... " >&6; } 6750if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 if test -n "$ac_ct_LIPO"; then 6754 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6755else 6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6757for as_dir in $PATH 6758do 6759 IFS=$as_save_IFS 6760 test -z "$as_dir" && as_dir=. 6761 for ac_exec_ext in '' $ac_executable_extensions; do 6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6763 ac_cv_prog_ac_ct_LIPO="lipo" 6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6765 break 2 6766 fi 6767done 6768 done 6769IFS=$as_save_IFS 6770 6771fi 6772fi 6773ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6774if test -n "$ac_ct_LIPO"; then 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6776$as_echo "$ac_ct_LIPO" >&6; } 6777else 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6779$as_echo "no" >&6; } 6780fi 6781 6782 if test "x$ac_ct_LIPO" = x; then 6783 LIPO=":" 6784 else 6785 case $cross_compiling:$ac_tool_warned in 6786yes:) 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6789ac_tool_warned=yes ;; 6790esac 6791 LIPO=$ac_ct_LIPO 6792 fi 6793else 6794 LIPO="$ac_cv_prog_LIPO" 6795fi 6796 6797 if test -n "$ac_tool_prefix"; then 6798 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6799set dummy ${ac_tool_prefix}otool; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_OTOOL+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$OTOOL"; then 6806 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6815 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825OTOOL=$ac_cv_prog_OTOOL 6826if test -n "$OTOOL"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6828$as_echo "$OTOOL" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835fi 6836if test -z "$ac_cv_prog_OTOOL"; then 6837 ac_ct_OTOOL=$OTOOL 6838 # Extract the first word of "otool", so it can be a program name with args. 6839set dummy otool; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 if test -n "$ac_ct_OTOOL"; then 6846 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6855 ac_cv_prog_ac_ct_OTOOL="otool" 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860 done 6861IFS=$as_save_IFS 6862 6863fi 6864fi 6865ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6866if test -n "$ac_ct_OTOOL"; then 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6868$as_echo "$ac_ct_OTOOL" >&6; } 6869else 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6871$as_echo "no" >&6; } 6872fi 6873 6874 if test "x$ac_ct_OTOOL" = x; then 6875 OTOOL=":" 6876 else 6877 case $cross_compiling:$ac_tool_warned in 6878yes:) 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6881ac_tool_warned=yes ;; 6882esac 6883 OTOOL=$ac_ct_OTOOL 6884 fi 6885else 6886 OTOOL="$ac_cv_prog_OTOOL" 6887fi 6888 6889 if test -n "$ac_tool_prefix"; then 6890 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6891set dummy ${ac_tool_prefix}otool64; ac_word=$2 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if ${ac_cv_prog_OTOOL64+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$OTOOL64"; then 6898 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6907 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912 done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917OTOOL64=$ac_cv_prog_OTOOL64 6918if test -n "$OTOOL64"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6920$as_echo "$OTOOL64" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 6927fi 6928if test -z "$ac_cv_prog_OTOOL64"; then 6929 ac_ct_OTOOL64=$OTOOL64 6930 # Extract the first word of "otool64", so it can be a program name with args. 6931set dummy otool64; ac_word=$2 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 if test -n "$ac_ct_OTOOL64"; then 6938 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6939else 6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941for as_dir in $PATH 6942do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6947 ac_cv_prog_ac_ct_OTOOL64="otool64" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951done 6952 done 6953IFS=$as_save_IFS 6954 6955fi 6956fi 6957ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6958if test -n "$ac_ct_OTOOL64"; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6960$as_echo "$ac_ct_OTOOL64" >&6; } 6961else 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6963$as_echo "no" >&6; } 6964fi 6965 6966 if test "x$ac_ct_OTOOL64" = x; then 6967 OTOOL64=":" 6968 else 6969 case $cross_compiling:$ac_tool_warned in 6970yes:) 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6973ac_tool_warned=yes ;; 6974esac 6975 OTOOL64=$ac_ct_OTOOL64 6976 fi 6977else 6978 OTOOL64="$ac_cv_prog_OTOOL64" 6979fi 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7008$as_echo_n "checking for -single_module linker flag... " >&6; } 7009if ${lt_cv_apple_cc_single_mod+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 lt_cv_apple_cc_single_mod=no 7013 if test -z "${LT_MULTI_MODULE}"; then 7014 # By default we will add the -single_module flag. You can override 7015 # by either setting the environment variable LT_MULTI_MODULE 7016 # non-empty at configure time, or by adding -multi_module to the 7017 # link flags. 7018 rm -rf libconftest.dylib* 7019 echo "int foo(void){return 1;}" > conftest.c 7020 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7021-dynamiclib -Wl,-single_module conftest.c" >&5 7022 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7023 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7024 _lt_result=$? 7025 # If there is a non-empty error log, and "single_module" 7026 # appears in it, assume the flag caused a linker warning 7027 if test -s conftest.err && $GREP single_module conftest.err; then 7028 cat conftest.err >&5 7029 # Otherwise, if the output was created with a 0 exit code from 7030 # the compiler, it worked. 7031 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7032 lt_cv_apple_cc_single_mod=yes 7033 else 7034 cat conftest.err >&5 7035 fi 7036 rm -rf libconftest.dylib* 7037 rm -f conftest.* 7038 fi 7039fi 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7041$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7042 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7044$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7045if ${lt_cv_ld_exported_symbols_list+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 lt_cv_ld_exported_symbols_list=no 7049 save_LDFLAGS=$LDFLAGS 7050 echo "_main" > conftest.sym 7051 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053/* end confdefs.h. */ 7054 7055int 7056main () 7057{ 7058 7059 ; 7060 return 0; 7061} 7062_ACEOF 7063if ac_fn_c_try_link "$LINENO"; then : 7064 lt_cv_ld_exported_symbols_list=yes 7065else 7066 lt_cv_ld_exported_symbols_list=no 7067fi 7068rm -f core conftest.err conftest.$ac_objext \ 7069 conftest$ac_exeext conftest.$ac_ext 7070 LDFLAGS="$save_LDFLAGS" 7071 7072fi 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7074$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7075 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7077$as_echo_n "checking for -force_load linker flag... " >&6; } 7078if ${lt_cv_ld_force_load+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 lt_cv_ld_force_load=no 7082 cat > conftest.c << _LT_EOF 7083int forced_loaded() { return 2;} 7084_LT_EOF 7085 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7086 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7087 echo "$AR cru libconftest.a conftest.o" >&5 7088 $AR cru libconftest.a conftest.o 2>&5 7089 echo "$RANLIB libconftest.a" >&5 7090 $RANLIB libconftest.a 2>&5 7091 cat > conftest.c << _LT_EOF 7092int main() { return 0;} 7093_LT_EOF 7094 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7095 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7096 _lt_result=$? 7097 if test -s conftest.err && $GREP force_load conftest.err; then 7098 cat conftest.err >&5 7099 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7100 lt_cv_ld_force_load=yes 7101 else 7102 cat conftest.err >&5 7103 fi 7104 rm -f conftest.err libconftest.a conftest conftest.c 7105 rm -rf conftest.dSYM 7106 7107fi 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7109$as_echo "$lt_cv_ld_force_load" >&6; } 7110 case $host_os in 7111 rhapsody* | darwin1.[012]) 7112 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7113 darwin1.*) 7114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7115 darwin*) # darwin 5.x on 7116 # if running on 10.5 or later, the deployment target defaults 7117 # to the OS version, if on x86, and 10.4, the deployment 7118 # target defaults to 10.4. Don't you love it? 7119 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7120 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7121 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7122 10.[012]*) 7123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7124 10.*) 7125 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7126 esac 7127 ;; 7128 esac 7129 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7130 _lt_dar_single_mod='$single_module' 7131 fi 7132 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7133 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7134 else 7135 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7136 fi 7137 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7138 _lt_dsymutil='~$DSYMUTIL $lib || :' 7139 else 7140 _lt_dsymutil= 7141 fi 7142 ;; 7143 esac 7144 7145ac_ext=c 7146ac_cpp='$CPP $CPPFLAGS' 7147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7149ac_compiler_gnu=$ac_cv_c_compiler_gnu 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7151$as_echo_n "checking how to run the C preprocessor... " >&6; } 7152# On Suns, sometimes $CPP names a directory. 7153if test -n "$CPP" && test -d "$CPP"; then 7154 CPP= 7155fi 7156if test -z "$CPP"; then 7157 if ${ac_cv_prog_CPP+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 # Double quotes because CPP needs to be expanded 7161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7162 do 7163 ac_preproc_ok=false 7164for ac_c_preproc_warn_flag in '' yes 7165do 7166 # Use a header file that comes with gcc, so configuring glibc 7167 # with a fresh cross-compiler works. 7168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7169 # <limits.h> exists even on freestanding compilers. 7170 # On the NeXT, cc -E runs the code through the compiler's parser, 7171 # not just through cpp. "Syntax error" is here to catch this case. 7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7173/* end confdefs.h. */ 7174#ifdef __STDC__ 7175# include <limits.h> 7176#else 7177# include <assert.h> 7178#endif 7179 Syntax error 7180_ACEOF 7181if ac_fn_c_try_cpp "$LINENO"; then : 7182 7183else 7184 # Broken: fails on valid input. 7185continue 7186fi 7187rm -f conftest.err conftest.i conftest.$ac_ext 7188 7189 # OK, works on sane cases. Now check whether nonexistent headers 7190 # can be detected and how. 7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193#include <ac_nonexistent.h> 7194_ACEOF 7195if ac_fn_c_try_cpp "$LINENO"; then : 7196 # Broken: success on invalid input. 7197continue 7198else 7199 # Passes both tests. 7200ac_preproc_ok=: 7201break 7202fi 7203rm -f conftest.err conftest.i conftest.$ac_ext 7204 7205done 7206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7207rm -f conftest.i conftest.err conftest.$ac_ext 7208if $ac_preproc_ok; then : 7209 break 7210fi 7211 7212 done 7213 ac_cv_prog_CPP=$CPP 7214 7215fi 7216 CPP=$ac_cv_prog_CPP 7217else 7218 ac_cv_prog_CPP=$CPP 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7221$as_echo "$CPP" >&6; } 7222ac_preproc_ok=false 7223for ac_c_preproc_warn_flag in '' yes 7224do 7225 # Use a header file that comes with gcc, so configuring glibc 7226 # with a fresh cross-compiler works. 7227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7228 # <limits.h> exists even on freestanding compilers. 7229 # On the NeXT, cc -E runs the code through the compiler's parser, 7230 # not just through cpp. "Syntax error" is here to catch this case. 7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7232/* end confdefs.h. */ 7233#ifdef __STDC__ 7234# include <limits.h> 7235#else 7236# include <assert.h> 7237#endif 7238 Syntax error 7239_ACEOF 7240if ac_fn_c_try_cpp "$LINENO"; then : 7241 7242else 7243 # Broken: fails on valid input. 7244continue 7245fi 7246rm -f conftest.err conftest.i conftest.$ac_ext 7247 7248 # OK, works on sane cases. Now check whether nonexistent headers 7249 # can be detected and how. 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252#include <ac_nonexistent.h> 7253_ACEOF 7254if ac_fn_c_try_cpp "$LINENO"; then : 7255 # Broken: success on invalid input. 7256continue 7257else 7258 # Passes both tests. 7259ac_preproc_ok=: 7260break 7261fi 7262rm -f conftest.err conftest.i conftest.$ac_ext 7263 7264done 7265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7266rm -f conftest.i conftest.err conftest.$ac_ext 7267if $ac_preproc_ok; then : 7268 7269else 7270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7272as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7273See \`config.log' for more details" "$LINENO" 5; } 7274fi 7275 7276ac_ext=c 7277ac_cpp='$CPP $CPPFLAGS' 7278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7280ac_compiler_gnu=$ac_cv_c_compiler_gnu 7281 7282 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7284$as_echo_n "checking for ANSI C header files... " >&6; } 7285if ${ac_cv_header_stdc+:} false; then : 7286 $as_echo_n "(cached) " >&6 7287else 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290#include <stdlib.h> 7291#include <stdarg.h> 7292#include <string.h> 7293#include <float.h> 7294 7295int 7296main () 7297{ 7298 7299 ; 7300 return 0; 7301} 7302_ACEOF 7303if ac_fn_c_try_compile "$LINENO"; then : 7304 ac_cv_header_stdc=yes 7305else 7306 ac_cv_header_stdc=no 7307fi 7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7309 7310if test $ac_cv_header_stdc = yes; then 7311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314#include <string.h> 7315 7316_ACEOF 7317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7318 $EGREP "memchr" >/dev/null 2>&1; then : 7319 7320else 7321 ac_cv_header_stdc=no 7322fi 7323rm -f conftest* 7324 7325fi 7326 7327if test $ac_cv_header_stdc = yes; then 7328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331#include <stdlib.h> 7332 7333_ACEOF 7334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7335 $EGREP "free" >/dev/null 2>&1; then : 7336 7337else 7338 ac_cv_header_stdc=no 7339fi 7340rm -f conftest* 7341 7342fi 7343 7344if test $ac_cv_header_stdc = yes; then 7345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7346 if test "$cross_compiling" = yes; then : 7347 : 7348else 7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350/* end confdefs.h. */ 7351#include <ctype.h> 7352#include <stdlib.h> 7353#if ((' ' & 0x0FF) == 0x020) 7354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7356#else 7357# define ISLOWER(c) \ 7358 (('a' <= (c) && (c) <= 'i') \ 7359 || ('j' <= (c) && (c) <= 'r') \ 7360 || ('s' <= (c) && (c) <= 'z')) 7361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7362#endif 7363 7364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7365int 7366main () 7367{ 7368 int i; 7369 for (i = 0; i < 256; i++) 7370 if (XOR (islower (i), ISLOWER (i)) 7371 || toupper (i) != TOUPPER (i)) 7372 return 2; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_run "$LINENO"; then : 7377 7378else 7379 ac_cv_header_stdc=no 7380fi 7381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7382 conftest.$ac_objext conftest.beam conftest.$ac_ext 7383fi 7384 7385fi 7386fi 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7388$as_echo "$ac_cv_header_stdc" >&6; } 7389if test $ac_cv_header_stdc = yes; then 7390 7391$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7392 7393fi 7394 7395# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7397 inttypes.h stdint.h unistd.h 7398do : 7399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7401" 7402if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7403 cat >>confdefs.h <<_ACEOF 7404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7405_ACEOF 7406 7407fi 7408 7409done 7410 7411 7412for ac_header in dlfcn.h 7413do : 7414 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7415" 7416if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7417 cat >>confdefs.h <<_ACEOF 7418#define HAVE_DLFCN_H 1 7419_ACEOF 7420 7421fi 7422 7423done 7424 7425 7426 7427 7428 7429# Set options 7430 7431 7432 7433 enable_dlopen=no 7434 7435 7436 enable_win32_dll=no 7437 7438 7439 # Check whether --enable-shared was given. 7440if test "${enable_shared+set}" = set; then : 7441 enableval=$enable_shared; p=${PACKAGE-default} 7442 case $enableval in 7443 yes) enable_shared=yes ;; 7444 no) enable_shared=no ;; 7445 *) 7446 enable_shared=no 7447 # Look at the argument we got. We use all the common list separators. 7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7449 for pkg in $enableval; do 7450 IFS="$lt_save_ifs" 7451 if test "X$pkg" = "X$p"; then 7452 enable_shared=yes 7453 fi 7454 done 7455 IFS="$lt_save_ifs" 7456 ;; 7457 esac 7458else 7459 enable_shared=yes 7460fi 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 # Check whether --enable-static was given. 7471if test "${enable_static+set}" = set; then : 7472 enableval=$enable_static; p=${PACKAGE-default} 7473 case $enableval in 7474 yes) enable_static=yes ;; 7475 no) enable_static=no ;; 7476 *) 7477 enable_static=no 7478 # Look at the argument we got. We use all the common list separators. 7479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7480 for pkg in $enableval; do 7481 IFS="$lt_save_ifs" 7482 if test "X$pkg" = "X$p"; then 7483 enable_static=yes 7484 fi 7485 done 7486 IFS="$lt_save_ifs" 7487 ;; 7488 esac 7489else 7490 enable_static=yes 7491fi 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502# Check whether --with-pic was given. 7503if test "${with_pic+set}" = set; then : 7504 withval=$with_pic; lt_p=${PACKAGE-default} 7505 case $withval in 7506 yes|no) pic_mode=$withval ;; 7507 *) 7508 pic_mode=default 7509 # Look at the argument we got. We use all the common list separators. 7510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7511 for lt_pkg in $withval; do 7512 IFS="$lt_save_ifs" 7513 if test "X$lt_pkg" = "X$lt_p"; then 7514 pic_mode=yes 7515 fi 7516 done 7517 IFS="$lt_save_ifs" 7518 ;; 7519 esac 7520else 7521 pic_mode=default 7522fi 7523 7524 7525test -z "$pic_mode" && pic_mode=default 7526 7527 7528 7529 7530 7531 7532 7533 # Check whether --enable-fast-install was given. 7534if test "${enable_fast_install+set}" = set; then : 7535 enableval=$enable_fast_install; p=${PACKAGE-default} 7536 case $enableval in 7537 yes) enable_fast_install=yes ;; 7538 no) enable_fast_install=no ;; 7539 *) 7540 enable_fast_install=no 7541 # Look at the argument we got. We use all the common list separators. 7542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7543 for pkg in $enableval; do 7544 IFS="$lt_save_ifs" 7545 if test "X$pkg" = "X$p"; then 7546 enable_fast_install=yes 7547 fi 7548 done 7549 IFS="$lt_save_ifs" 7550 ;; 7551 esac 7552else 7553 enable_fast_install=yes 7554fi 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566# This can be used to rebuild libtool when needed 7567LIBTOOL_DEPS="$ltmain" 7568 7569# Always use our own libtool. 7570LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601test -z "$LN_S" && LN_S="ln -s" 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616if test -n "${ZSH_VERSION+set}" ; then 7617 setopt NO_GLOB_SUBST 7618fi 7619 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7621$as_echo_n "checking for objdir... " >&6; } 7622if ${lt_cv_objdir+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 rm -f .libs 2>/dev/null 7626mkdir .libs 2>/dev/null 7627if test -d .libs; then 7628 lt_cv_objdir=.libs 7629else 7630 # MS-DOS does not allow filenames that begin with a dot. 7631 lt_cv_objdir=_libs 7632fi 7633rmdir .libs 2>/dev/null 7634fi 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7636$as_echo "$lt_cv_objdir" >&6; } 7637objdir=$lt_cv_objdir 7638 7639 7640 7641 7642 7643cat >>confdefs.h <<_ACEOF 7644#define LT_OBJDIR "$lt_cv_objdir/" 7645_ACEOF 7646 7647 7648 7649 7650case $host_os in 7651aix3*) 7652 # AIX sometimes has problems with the GCC collect2 program. For some 7653 # reason, if we set the COLLECT_NAMES environment variable, the problems 7654 # vanish in a puff of smoke. 7655 if test "X${COLLECT_NAMES+set}" != Xset; then 7656 COLLECT_NAMES= 7657 export COLLECT_NAMES 7658 fi 7659 ;; 7660esac 7661 7662# Global variables: 7663ofile=libtool 7664can_build_shared=yes 7665 7666# All known linkers require a `.a' archive for static linking (except MSVC, 7667# which needs '.lib'). 7668libext=a 7669 7670with_gnu_ld="$lt_cv_prog_gnu_ld" 7671 7672old_CC="$CC" 7673old_CFLAGS="$CFLAGS" 7674 7675# Set sane defaults for various variables 7676test -z "$CC" && CC=cc 7677test -z "$LTCC" && LTCC=$CC 7678test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7679test -z "$LD" && LD=ld 7680test -z "$ac_objext" && ac_objext=o 7681 7682for cc_temp in $compiler""; do 7683 case $cc_temp in 7684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7686 \-*) ;; 7687 *) break;; 7688 esac 7689done 7690cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7691 7692 7693# Only perform the check for file, if the check method requires it 7694test -z "$MAGIC_CMD" && MAGIC_CMD=file 7695case $deplibs_check_method in 7696file_magic*) 7697 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7699$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7700if ${lt_cv_path_MAGIC_CMD+:} false; then : 7701 $as_echo_n "(cached) " >&6 7702else 7703 case $MAGIC_CMD in 7704[\\/*] | ?:[\\/]*) 7705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7706 ;; 7707*) 7708 lt_save_MAGIC_CMD="$MAGIC_CMD" 7709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7711 for ac_dir in $ac_dummy; do 7712 IFS="$lt_save_ifs" 7713 test -z "$ac_dir" && ac_dir=. 7714 if test -f $ac_dir/${ac_tool_prefix}file; then 7715 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7716 if test -n "$file_magic_test_file"; then 7717 case $deplibs_check_method in 7718 "file_magic "*) 7719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7722 $EGREP "$file_magic_regex" > /dev/null; then 7723 : 7724 else 7725 cat <<_LT_EOF 1>&2 7726 7727*** Warning: the command libtool uses to detect shared libraries, 7728*** $file_magic_cmd, produces output that libtool cannot recognize. 7729*** The result is that libtool may fail to recognize shared libraries 7730*** as such. This will affect the creation of libtool libraries that 7731*** depend on shared libraries, but programs linked with such libtool 7732*** libraries will work regardless of this problem. Nevertheless, you 7733*** may want to report the problem to your system manager and/or to 7734*** bug-libtool@gnu.org 7735 7736_LT_EOF 7737 fi ;; 7738 esac 7739 fi 7740 break 7741 fi 7742 done 7743 IFS="$lt_save_ifs" 7744 MAGIC_CMD="$lt_save_MAGIC_CMD" 7745 ;; 7746esac 7747fi 7748 7749MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7750if test -n "$MAGIC_CMD"; then 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7752$as_echo "$MAGIC_CMD" >&6; } 7753else 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7755$as_echo "no" >&6; } 7756fi 7757 7758 7759 7760 7761 7762if test -z "$lt_cv_path_MAGIC_CMD"; then 7763 if test -n "$ac_tool_prefix"; then 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7765$as_echo_n "checking for file... " >&6; } 7766if ${lt_cv_path_MAGIC_CMD+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 case $MAGIC_CMD in 7770[\\/*] | ?:[\\/]*) 7771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7772 ;; 7773*) 7774 lt_save_MAGIC_CMD="$MAGIC_CMD" 7775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7776 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7777 for ac_dir in $ac_dummy; do 7778 IFS="$lt_save_ifs" 7779 test -z "$ac_dir" && ac_dir=. 7780 if test -f $ac_dir/file; then 7781 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7782 if test -n "$file_magic_test_file"; then 7783 case $deplibs_check_method in 7784 "file_magic "*) 7785 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7787 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7788 $EGREP "$file_magic_regex" > /dev/null; then 7789 : 7790 else 7791 cat <<_LT_EOF 1>&2 7792 7793*** Warning: the command libtool uses to detect shared libraries, 7794*** $file_magic_cmd, produces output that libtool cannot recognize. 7795*** The result is that libtool may fail to recognize shared libraries 7796*** as such. This will affect the creation of libtool libraries that 7797*** depend on shared libraries, but programs linked with such libtool 7798*** libraries will work regardless of this problem. Nevertheless, you 7799*** may want to report the problem to your system manager and/or to 7800*** bug-libtool@gnu.org 7801 7802_LT_EOF 7803 fi ;; 7804 esac 7805 fi 7806 break 7807 fi 7808 done 7809 IFS="$lt_save_ifs" 7810 MAGIC_CMD="$lt_save_MAGIC_CMD" 7811 ;; 7812esac 7813fi 7814 7815MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7816if test -n "$MAGIC_CMD"; then 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7818$as_echo "$MAGIC_CMD" >&6; } 7819else 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7821$as_echo "no" >&6; } 7822fi 7823 7824 7825 else 7826 MAGIC_CMD=: 7827 fi 7828fi 7829 7830 fi 7831 ;; 7832esac 7833 7834# Use C for the default configuration in the libtool script 7835 7836lt_save_CC="$CC" 7837ac_ext=c 7838ac_cpp='$CPP $CPPFLAGS' 7839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7841ac_compiler_gnu=$ac_cv_c_compiler_gnu 7842 7843 7844# Source file extension for C test sources. 7845ac_ext=c 7846 7847# Object file extension for compiled C test sources. 7848objext=o 7849objext=$objext 7850 7851# Code to be used in simple compile tests 7852lt_simple_compile_test_code="int some_variable = 0;" 7853 7854# Code to be used in simple link tests 7855lt_simple_link_test_code='int main(){return(0);}' 7856 7857 7858 7859 7860 7861 7862 7863# If no C compiler was specified, use CC. 7864LTCC=${LTCC-"$CC"} 7865 7866# If no C compiler flags were specified, use CFLAGS. 7867LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7868 7869# Allow CC to be a program name with arguments. 7870compiler=$CC 7871 7872# Save the default compiler, since it gets overwritten when the other 7873# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7874compiler_DEFAULT=$CC 7875 7876# save warnings/boilerplate of simple test code 7877ac_outfile=conftest.$ac_objext 7878echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7879eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7880_lt_compiler_boilerplate=`cat conftest.err` 7881$RM conftest* 7882 7883ac_outfile=conftest.$ac_objext 7884echo "$lt_simple_link_test_code" >conftest.$ac_ext 7885eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7886_lt_linker_boilerplate=`cat conftest.err` 7887$RM -r conftest* 7888 7889 7890if test -n "$compiler"; then 7891 7892lt_prog_compiler_no_builtin_flag= 7893 7894if test "$GCC" = yes; then 7895 case $cc_basename in 7896 nvcc*) 7897 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7898 *) 7899 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7900 esac 7901 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7903$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7904if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 lt_cv_prog_compiler_rtti_exceptions=no 7908 ac_outfile=conftest.$ac_objext 7909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7910 lt_compiler_flag="-fno-rtti -fno-exceptions" 7911 # Insert the option either (1) after the last *FLAGS variable, or 7912 # (2) before a word containing "conftest.", or (3) at the end. 7913 # Note that $ac_compile itself does not contain backslashes and begins 7914 # with a dollar sign (not a hyphen), so the echo should work correctly. 7915 # The option is referenced via a variable to avoid confusing sed. 7916 lt_compile=`echo "$ac_compile" | $SED \ 7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7919 -e 's:$: $lt_compiler_flag:'` 7920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7921 (eval "$lt_compile" 2>conftest.err) 7922 ac_status=$? 7923 cat conftest.err >&5 7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7925 if (exit $ac_status) && test -s "$ac_outfile"; then 7926 # The compiler can only warn and ignore the option if not recognized 7927 # So say no if there are warnings other than the usual output. 7928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7931 lt_cv_prog_compiler_rtti_exceptions=yes 7932 fi 7933 fi 7934 $RM conftest* 7935 7936fi 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7938$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7939 7940if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7941 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7942else 7943 : 7944fi 7945 7946fi 7947 7948 7949 7950 7951 7952 7953 lt_prog_compiler_wl= 7954lt_prog_compiler_pic= 7955lt_prog_compiler_static= 7956 7957 7958 if test "$GCC" = yes; then 7959 lt_prog_compiler_wl='-Wl,' 7960 lt_prog_compiler_static='-static' 7961 7962 case $host_os in 7963 aix*) 7964 # All AIX code is PIC. 7965 if test "$host_cpu" = ia64; then 7966 # AIX 5 now supports IA64 processor 7967 lt_prog_compiler_static='-Bstatic' 7968 fi 7969 ;; 7970 7971 amigaos*) 7972 case $host_cpu in 7973 powerpc) 7974 # see comment about AmigaOS4 .so support 7975 lt_prog_compiler_pic='-fPIC' 7976 ;; 7977 m68k) 7978 # FIXME: we need at least 68020 code to build shared libraries, but 7979 # adding the `-m68020' flag to GCC prevents building anything better, 7980 # like `-m68040'. 7981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7982 ;; 7983 esac 7984 ;; 7985 7986 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7987 # PIC is the default for these OSes. 7988 ;; 7989 7990 mingw* | cygwin* | pw32* | os2* | cegcc*) 7991 # This hack is so that the source file can tell whether it is being 7992 # built for inclusion in a dll (and should export symbols for example). 7993 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7994 # (--disable-auto-import) libraries 7995 lt_prog_compiler_pic='-DDLL_EXPORT' 7996 ;; 7997 7998 darwin* | rhapsody*) 7999 # PIC is the default on this platform 8000 # Common symbols not allowed in MH_DYLIB files 8001 lt_prog_compiler_pic='-fno-common' 8002 ;; 8003 8004 haiku*) 8005 # PIC is the default for Haiku. 8006 # The "-static" flag exists, but is broken. 8007 lt_prog_compiler_static= 8008 ;; 8009 8010 hpux*) 8011 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8012 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8013 # sets the default TLS model and affects inlining. 8014 case $host_cpu in 8015 hppa*64*) 8016 # +Z the default 8017 ;; 8018 *) 8019 lt_prog_compiler_pic='-fPIC' 8020 ;; 8021 esac 8022 ;; 8023 8024 interix[3-9]*) 8025 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8026 # Instead, we relocate shared libraries at runtime. 8027 ;; 8028 8029 msdosdjgpp*) 8030 # Just because we use GCC doesn't mean we suddenly get shared libraries 8031 # on systems that don't support them. 8032 lt_prog_compiler_can_build_shared=no 8033 enable_shared=no 8034 ;; 8035 8036 *nto* | *qnx*) 8037 # QNX uses GNU C++, but need to define -shared option too, otherwise 8038 # it will coredump. 8039 lt_prog_compiler_pic='-fPIC -shared' 8040 ;; 8041 8042 sysv4*MP*) 8043 if test -d /usr/nec; then 8044 lt_prog_compiler_pic=-Kconform_pic 8045 fi 8046 ;; 8047 8048 *) 8049 lt_prog_compiler_pic='-fPIC' 8050 ;; 8051 esac 8052 8053 case $cc_basename in 8054 nvcc*) # Cuda Compiler Driver 2.2 8055 lt_prog_compiler_wl='-Xlinker ' 8056 if test -n "$lt_prog_compiler_pic"; then 8057 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8058 fi 8059 ;; 8060 esac 8061 else 8062 # PORTME Check for flag to pass linker flags through the system compiler. 8063 case $host_os in 8064 aix*) 8065 lt_prog_compiler_wl='-Wl,' 8066 if test "$host_cpu" = ia64; then 8067 # AIX 5 now supports IA64 processor 8068 lt_prog_compiler_static='-Bstatic' 8069 else 8070 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8071 fi 8072 ;; 8073 8074 mingw* | cygwin* | pw32* | os2* | cegcc*) 8075 # This hack is so that the source file can tell whether it is being 8076 # built for inclusion in a dll (and should export symbols for example). 8077 lt_prog_compiler_pic='-DDLL_EXPORT' 8078 ;; 8079 8080 hpux9* | hpux10* | hpux11*) 8081 lt_prog_compiler_wl='-Wl,' 8082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8083 # not for PA HP-UX. 8084 case $host_cpu in 8085 hppa*64*|ia64*) 8086 # +Z the default 8087 ;; 8088 *) 8089 lt_prog_compiler_pic='+Z' 8090 ;; 8091 esac 8092 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8093 lt_prog_compiler_static='${wl}-a ${wl}archive' 8094 ;; 8095 8096 irix5* | irix6* | nonstopux*) 8097 lt_prog_compiler_wl='-Wl,' 8098 # PIC (with -KPIC) is the default. 8099 lt_prog_compiler_static='-non_shared' 8100 ;; 8101 8102 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8103 case $cc_basename in 8104 # old Intel for x86_64 which still supported -KPIC. 8105 ecc*) 8106 lt_prog_compiler_wl='-Wl,' 8107 lt_prog_compiler_pic='-KPIC' 8108 lt_prog_compiler_static='-static' 8109 ;; 8110 # icc used to be incompatible with GCC. 8111 # ICC 10 doesn't accept -KPIC any more. 8112 icc* | ifort*) 8113 lt_prog_compiler_wl='-Wl,' 8114 lt_prog_compiler_pic='-fPIC' 8115 lt_prog_compiler_static='-static' 8116 ;; 8117 # Lahey Fortran 8.1. 8118 lf95*) 8119 lt_prog_compiler_wl='-Wl,' 8120 lt_prog_compiler_pic='--shared' 8121 lt_prog_compiler_static='--static' 8122 ;; 8123 nagfor*) 8124 # NAG Fortran compiler 8125 lt_prog_compiler_wl='-Wl,-Wl,,' 8126 lt_prog_compiler_pic='-PIC' 8127 lt_prog_compiler_static='-Bstatic' 8128 ;; 8129 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8130 # Portland Group compilers (*not* the Pentium gcc compiler, 8131 # which looks to be a dead project) 8132 lt_prog_compiler_wl='-Wl,' 8133 lt_prog_compiler_pic='-fpic' 8134 lt_prog_compiler_static='-Bstatic' 8135 ;; 8136 ccc*) 8137 lt_prog_compiler_wl='-Wl,' 8138 # All Alpha code is PIC. 8139 lt_prog_compiler_static='-non_shared' 8140 ;; 8141 xl* | bgxl* | bgf* | mpixl*) 8142 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8143 lt_prog_compiler_wl='-Wl,' 8144 lt_prog_compiler_pic='-qpic' 8145 lt_prog_compiler_static='-qstaticlink' 8146 ;; 8147 *) 8148 case `$CC -V 2>&1 | sed 5q` in 8149 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8150 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8151 lt_prog_compiler_pic='-KPIC' 8152 lt_prog_compiler_static='-Bstatic' 8153 lt_prog_compiler_wl='' 8154 ;; 8155 *Sun\ F* | *Sun*Fortran*) 8156 lt_prog_compiler_pic='-KPIC' 8157 lt_prog_compiler_static='-Bstatic' 8158 lt_prog_compiler_wl='-Qoption ld ' 8159 ;; 8160 *Sun\ C*) 8161 # Sun C 5.9 8162 lt_prog_compiler_pic='-KPIC' 8163 lt_prog_compiler_static='-Bstatic' 8164 lt_prog_compiler_wl='-Wl,' 8165 ;; 8166 *Intel*\ [CF]*Compiler*) 8167 lt_prog_compiler_wl='-Wl,' 8168 lt_prog_compiler_pic='-fPIC' 8169 lt_prog_compiler_static='-static' 8170 ;; 8171 *Portland\ Group*) 8172 lt_prog_compiler_wl='-Wl,' 8173 lt_prog_compiler_pic='-fpic' 8174 lt_prog_compiler_static='-Bstatic' 8175 ;; 8176 esac 8177 ;; 8178 esac 8179 ;; 8180 8181 newsos6) 8182 lt_prog_compiler_pic='-KPIC' 8183 lt_prog_compiler_static='-Bstatic' 8184 ;; 8185 8186 *nto* | *qnx*) 8187 # QNX uses GNU C++, but need to define -shared option too, otherwise 8188 # it will coredump. 8189 lt_prog_compiler_pic='-fPIC -shared' 8190 ;; 8191 8192 osf3* | osf4* | osf5*) 8193 lt_prog_compiler_wl='-Wl,' 8194 # All OSF/1 code is PIC. 8195 lt_prog_compiler_static='-non_shared' 8196 ;; 8197 8198 rdos*) 8199 lt_prog_compiler_static='-non_shared' 8200 ;; 8201 8202 solaris*) 8203 lt_prog_compiler_pic='-KPIC' 8204 lt_prog_compiler_static='-Bstatic' 8205 case $cc_basename in 8206 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8207 lt_prog_compiler_wl='-Qoption ld ';; 8208 *) 8209 lt_prog_compiler_wl='-Wl,';; 8210 esac 8211 ;; 8212 8213 sunos4*) 8214 lt_prog_compiler_wl='-Qoption ld ' 8215 lt_prog_compiler_pic='-PIC' 8216 lt_prog_compiler_static='-Bstatic' 8217 ;; 8218 8219 sysv4 | sysv4.2uw2* | sysv4.3*) 8220 lt_prog_compiler_wl='-Wl,' 8221 lt_prog_compiler_pic='-KPIC' 8222 lt_prog_compiler_static='-Bstatic' 8223 ;; 8224 8225 sysv4*MP*) 8226 if test -d /usr/nec ;then 8227 lt_prog_compiler_pic='-Kconform_pic' 8228 lt_prog_compiler_static='-Bstatic' 8229 fi 8230 ;; 8231 8232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8233 lt_prog_compiler_wl='-Wl,' 8234 lt_prog_compiler_pic='-KPIC' 8235 lt_prog_compiler_static='-Bstatic' 8236 ;; 8237 8238 unicos*) 8239 lt_prog_compiler_wl='-Wl,' 8240 lt_prog_compiler_can_build_shared=no 8241 ;; 8242 8243 uts4*) 8244 lt_prog_compiler_pic='-pic' 8245 lt_prog_compiler_static='-Bstatic' 8246 ;; 8247 8248 *) 8249 lt_prog_compiler_can_build_shared=no 8250 ;; 8251 esac 8252 fi 8253 8254case $host_os in 8255 # For platforms which do not support PIC, -DPIC is meaningless: 8256 *djgpp*) 8257 lt_prog_compiler_pic= 8258 ;; 8259 *) 8260 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8261 ;; 8262esac 8263 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8265$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8266if ${lt_cv_prog_compiler_pic+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8270fi 8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8272$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8273lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8274 8275# 8276# Check to make sure the PIC flag actually works. 8277# 8278if test -n "$lt_prog_compiler_pic"; then 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8280$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8281if ${lt_cv_prog_compiler_pic_works+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 lt_cv_prog_compiler_pic_works=no 8285 ac_outfile=conftest.$ac_objext 8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8287 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8288 # Insert the option either (1) after the last *FLAGS variable, or 8289 # (2) before a word containing "conftest.", or (3) at the end. 8290 # Note that $ac_compile itself does not contain backslashes and begins 8291 # with a dollar sign (not a hyphen), so the echo should work correctly. 8292 # The option is referenced via a variable to avoid confusing sed. 8293 lt_compile=`echo "$ac_compile" | $SED \ 8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8296 -e 's:$: $lt_compiler_flag:'` 8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8298 (eval "$lt_compile" 2>conftest.err) 8299 ac_status=$? 8300 cat conftest.err >&5 8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8302 if (exit $ac_status) && test -s "$ac_outfile"; then 8303 # The compiler can only warn and ignore the option if not recognized 8304 # So say no if there are warnings other than the usual output. 8305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8308 lt_cv_prog_compiler_pic_works=yes 8309 fi 8310 fi 8311 $RM conftest* 8312 8313fi 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8315$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8316 8317if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8318 case $lt_prog_compiler_pic in 8319 "" | " "*) ;; 8320 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8321 esac 8322else 8323 lt_prog_compiler_pic= 8324 lt_prog_compiler_can_build_shared=no 8325fi 8326 8327fi 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339# 8340# Check to make sure the static flag actually works. 8341# 8342wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8344$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8345if ${lt_cv_prog_compiler_static_works+:} false; then : 8346 $as_echo_n "(cached) " >&6 8347else 8348 lt_cv_prog_compiler_static_works=no 8349 save_LDFLAGS="$LDFLAGS" 8350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8351 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8353 # The linker can only warn and ignore the option if not recognized 8354 # So say no if there are warnings 8355 if test -s conftest.err; then 8356 # Append any errors to the config.log. 8357 cat conftest.err 1>&5 8358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8360 if diff conftest.exp conftest.er2 >/dev/null; then 8361 lt_cv_prog_compiler_static_works=yes 8362 fi 8363 else 8364 lt_cv_prog_compiler_static_works=yes 8365 fi 8366 fi 8367 $RM -r conftest* 8368 LDFLAGS="$save_LDFLAGS" 8369 8370fi 8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8372$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8373 8374if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8375 : 8376else 8377 lt_prog_compiler_static= 8378fi 8379 8380 8381 8382 8383 8384 8385 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8388if ${lt_cv_prog_compiler_c_o+:} false; then : 8389 $as_echo_n "(cached) " >&6 8390else 8391 lt_cv_prog_compiler_c_o=no 8392 $RM -r conftest 2>/dev/null 8393 mkdir conftest 8394 cd conftest 8395 mkdir out 8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8397 8398 lt_compiler_flag="-o out/conftest2.$ac_objext" 8399 # Insert the option either (1) after the last *FLAGS variable, or 8400 # (2) before a word containing "conftest.", or (3) at the end. 8401 # Note that $ac_compile itself does not contain backslashes and begins 8402 # with a dollar sign (not a hyphen), so the echo should work correctly. 8403 lt_compile=`echo "$ac_compile" | $SED \ 8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8406 -e 's:$: $lt_compiler_flag:'` 8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8408 (eval "$lt_compile" 2>out/conftest.err) 8409 ac_status=$? 8410 cat out/conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8413 then 8414 # The compiler can only warn and ignore the option if not recognized 8415 # So say no if there are warnings 8416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8419 lt_cv_prog_compiler_c_o=yes 8420 fi 8421 fi 8422 chmod u+w . 2>&5 8423 $RM conftest* 8424 # SGI C++ compiler will create directory out/ii_files/ for 8425 # template instantiation 8426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8427 $RM out/* && rmdir out 8428 cd .. 8429 $RM -r conftest 8430 $RM conftest* 8431 8432fi 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8434$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8435 8436 8437 8438 8439 8440 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8442$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8443if ${lt_cv_prog_compiler_c_o+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445else 8446 lt_cv_prog_compiler_c_o=no 8447 $RM -r conftest 2>/dev/null 8448 mkdir conftest 8449 cd conftest 8450 mkdir out 8451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8452 8453 lt_compiler_flag="-o out/conftest2.$ac_objext" 8454 # Insert the option either (1) after the last *FLAGS variable, or 8455 # (2) before a word containing "conftest.", or (3) at the end. 8456 # Note that $ac_compile itself does not contain backslashes and begins 8457 # with a dollar sign (not a hyphen), so the echo should work correctly. 8458 lt_compile=`echo "$ac_compile" | $SED \ 8459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8461 -e 's:$: $lt_compiler_flag:'` 8462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8463 (eval "$lt_compile" 2>out/conftest.err) 8464 ac_status=$? 8465 cat out/conftest.err >&5 8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8467 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8468 then 8469 # The compiler can only warn and ignore the option if not recognized 8470 # So say no if there are warnings 8471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8474 lt_cv_prog_compiler_c_o=yes 8475 fi 8476 fi 8477 chmod u+w . 2>&5 8478 $RM conftest* 8479 # SGI C++ compiler will create directory out/ii_files/ for 8480 # template instantiation 8481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8482 $RM out/* && rmdir out 8483 cd .. 8484 $RM -r conftest 8485 $RM conftest* 8486 8487fi 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8489$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8490 8491 8492 8493 8494hard_links="nottested" 8495if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8496 # do not overwrite the value of need_locks provided by the user 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8498$as_echo_n "checking if we can lock with hard links... " >&6; } 8499 hard_links=yes 8500 $RM conftest* 8501 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8502 touch conftest.a 8503 ln conftest.a conftest.b 2>&5 || hard_links=no 8504 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8506$as_echo "$hard_links" >&6; } 8507 if test "$hard_links" = no; then 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8509$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8510 need_locks=warn 8511 fi 8512else 8513 need_locks=no 8514fi 8515 8516 8517 8518 8519 8520 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8522$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8523 8524 runpath_var= 8525 allow_undefined_flag= 8526 always_export_symbols=no 8527 archive_cmds= 8528 archive_expsym_cmds= 8529 compiler_needs_object=no 8530 enable_shared_with_static_runtimes=no 8531 export_dynamic_flag_spec= 8532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8533 hardcode_automatic=no 8534 hardcode_direct=no 8535 hardcode_direct_absolute=no 8536 hardcode_libdir_flag_spec= 8537 hardcode_libdir_separator= 8538 hardcode_minus_L=no 8539 hardcode_shlibpath_var=unsupported 8540 inherit_rpath=no 8541 link_all_deplibs=unknown 8542 module_cmds= 8543 module_expsym_cmds= 8544 old_archive_from_new_cmds= 8545 old_archive_from_expsyms_cmds= 8546 thread_safe_flag_spec= 8547 whole_archive_flag_spec= 8548 # include_expsyms should be a list of space-separated symbols to be *always* 8549 # included in the symbol list 8550 include_expsyms= 8551 # exclude_expsyms can be an extended regexp of symbols to exclude 8552 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8554 # as well as any symbol that contains `d'. 8555 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8557 # platforms (ab)use it in PIC code, but their linkers get confused if 8558 # the symbol is explicitly referenced. Since portable code cannot 8559 # rely on this symbol name, it's probably fine to never include it in 8560 # preloaded symbol tables. 8561 # Exclude shared library initialization/finalization symbols. 8562 extract_expsyms_cmds= 8563 8564 case $host_os in 8565 cygwin* | mingw* | pw32* | cegcc*) 8566 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8567 # When not using gcc, we currently assume that we are using 8568 # Microsoft Visual C++. 8569 if test "$GCC" != yes; then 8570 with_gnu_ld=no 8571 fi 8572 ;; 8573 interix*) 8574 # we just hope/assume this is gcc and not c89 (= MSVC++) 8575 with_gnu_ld=yes 8576 ;; 8577 openbsd*) 8578 with_gnu_ld=no 8579 ;; 8580 esac 8581 8582 ld_shlibs=yes 8583 8584 # On some targets, GNU ld is compatible enough with the native linker 8585 # that we're better off using the native interface for both. 8586 lt_use_gnu_ld_interface=no 8587 if test "$with_gnu_ld" = yes; then 8588 case $host_os in 8589 aix*) 8590 # The AIX port of GNU ld has always aspired to compatibility 8591 # with the native linker. However, as the warning in the GNU ld 8592 # block says, versions before 2.19.5* couldn't really create working 8593 # shared libraries, regardless of the interface used. 8594 case `$LD -v 2>&1` in 8595 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8596 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8597 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8598 *) 8599 lt_use_gnu_ld_interface=yes 8600 ;; 8601 esac 8602 ;; 8603 *) 8604 lt_use_gnu_ld_interface=yes 8605 ;; 8606 esac 8607 fi 8608 8609 if test "$lt_use_gnu_ld_interface" = yes; then 8610 # If archive_cmds runs LD, not CC, wlarc should be empty 8611 wlarc='${wl}' 8612 8613 # Set some defaults for GNU ld with shared library support. These 8614 # are reset later if shared libraries are not supported. Putting them 8615 # here allows them to be overridden if necessary. 8616 runpath_var=LD_RUN_PATH 8617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8618 export_dynamic_flag_spec='${wl}--export-dynamic' 8619 # ancient GNU ld didn't support --whole-archive et. al. 8620 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8621 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8622 else 8623 whole_archive_flag_spec= 8624 fi 8625 supports_anon_versioning=no 8626 case `$LD -v 2>&1` in 8627 *GNU\ gold*) supports_anon_versioning=yes ;; 8628 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8629 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8630 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8631 *\ 2.11.*) ;; # other 2.11 versions 8632 *) supports_anon_versioning=yes ;; 8633 esac 8634 8635 # See if GNU ld supports shared libraries. 8636 case $host_os in 8637 aix[3-9]*) 8638 # On AIX/PPC, the GNU linker is very broken 8639 if test "$host_cpu" != ia64; then 8640 ld_shlibs=no 8641 cat <<_LT_EOF 1>&2 8642 8643*** Warning: the GNU linker, at least up to release 2.19, is reported 8644*** to be unable to reliably create shared libraries on AIX. 8645*** Therefore, libtool is disabling shared libraries support. If you 8646*** really care for shared libraries, you may want to install binutils 8647*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8648*** You will then need to restart the configuration process. 8649 8650_LT_EOF 8651 fi 8652 ;; 8653 8654 amigaos*) 8655 case $host_cpu in 8656 powerpc) 8657 # see comment about AmigaOS4 .so support 8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8659 archive_expsym_cmds='' 8660 ;; 8661 m68k) 8662 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)' 8663 hardcode_libdir_flag_spec='-L$libdir' 8664 hardcode_minus_L=yes 8665 ;; 8666 esac 8667 ;; 8668 8669 beos*) 8670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8671 allow_undefined_flag=unsupported 8672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8673 # support --undefined. This deserves some investigation. FIXME 8674 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8675 else 8676 ld_shlibs=no 8677 fi 8678 ;; 8679 8680 cygwin* | mingw* | pw32* | cegcc*) 8681 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8682 # as there is no search path for DLLs. 8683 hardcode_libdir_flag_spec='-L$libdir' 8684 export_dynamic_flag_spec='${wl}--export-all-symbols' 8685 allow_undefined_flag=unsupported 8686 always_export_symbols=no 8687 enable_shared_with_static_runtimes=yes 8688 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' 8689 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8690 8691 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8693 # If the export-symbols file already is a .def file (1st line 8694 # is EXPORTS), use it as is; otherwise, prepend... 8695 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8696 cp $export_symbols $output_objdir/$soname.def; 8697 else 8698 echo EXPORTS > $output_objdir/$soname.def; 8699 cat $export_symbols >> $output_objdir/$soname.def; 8700 fi~ 8701 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8702 else 8703 ld_shlibs=no 8704 fi 8705 ;; 8706 8707 haiku*) 8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8709 link_all_deplibs=yes 8710 ;; 8711 8712 interix[3-9]*) 8713 hardcode_direct=no 8714 hardcode_shlibpath_var=no 8715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8716 export_dynamic_flag_spec='${wl}-E' 8717 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8718 # Instead, shared libraries are loaded at an image base (0x10000000 by 8719 # default) and relocated if they conflict, which is a slow very memory 8720 # consuming and fragmenting process. To avoid this, we pick a random, 8721 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8722 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8724 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' 8725 ;; 8726 8727 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8728 tmp_diet=no 8729 if test "$host_os" = linux-dietlibc; then 8730 case $cc_basename in 8731 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8732 esac 8733 fi 8734 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8735 && test "$tmp_diet" = no 8736 then 8737 tmp_addflag=' $pic_flag' 8738 tmp_sharedflag='-shared' 8739 case $cc_basename,$host_cpu in 8740 pgcc*) # Portland Group C compiler 8741 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' 8742 tmp_addflag=' $pic_flag' 8743 ;; 8744 pgf77* | pgf90* | pgf95* | pgfortran*) 8745 # Portland Group f77 and f90 compilers 8746 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' 8747 tmp_addflag=' $pic_flag -Mnomain' ;; 8748 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8749 tmp_addflag=' -i_dynamic' ;; 8750 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8751 tmp_addflag=' -i_dynamic -nofor_main' ;; 8752 ifc* | ifort*) # Intel Fortran compiler 8753 tmp_addflag=' -nofor_main' ;; 8754 lf95*) # Lahey Fortran 8.1 8755 whole_archive_flag_spec= 8756 tmp_sharedflag='--shared' ;; 8757 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8758 tmp_sharedflag='-qmkshrobj' 8759 tmp_addflag= ;; 8760 nvcc*) # Cuda Compiler Driver 2.2 8761 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' 8762 compiler_needs_object=yes 8763 ;; 8764 esac 8765 case `$CC -V 2>&1 | sed 5q` in 8766 *Sun\ C*) # Sun C 5.9 8767 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' 8768 compiler_needs_object=yes 8769 tmp_sharedflag='-G' ;; 8770 *Sun\ F*) # Sun Fortran 8.3 8771 tmp_sharedflag='-G' ;; 8772 esac 8773 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8774 8775 if test "x$supports_anon_versioning" = xyes; then 8776 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8777 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8778 echo "local: *; };" >> $output_objdir/$libname.ver~ 8779 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8780 fi 8781 8782 case $cc_basename in 8783 xlf* | bgf* | bgxlf* | mpixlf*) 8784 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8785 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8787 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8788 if test "x$supports_anon_versioning" = xyes; then 8789 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8791 echo "local: *; };" >> $output_objdir/$libname.ver~ 8792 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8793 fi 8794 ;; 8795 esac 8796 else 8797 ld_shlibs=no 8798 fi 8799 ;; 8800 8801 netbsd*) 8802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8803 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8804 wlarc= 8805 else 8806 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8807 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8808 fi 8809 ;; 8810 8811 solaris*) 8812 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8813 ld_shlibs=no 8814 cat <<_LT_EOF 1>&2 8815 8816*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8817*** create shared libraries on Solaris systems. Therefore, libtool 8818*** is disabling shared libraries support. We urge you to upgrade GNU 8819*** binutils to release 2.9.1 or newer. Another option is to modify 8820*** your PATH or compiler configuration so that the native linker is 8821*** used, and then restart. 8822 8823_LT_EOF 8824 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8827 else 8828 ld_shlibs=no 8829 fi 8830 ;; 8831 8832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8833 case `$LD -v 2>&1` in 8834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8835 ld_shlibs=no 8836 cat <<_LT_EOF 1>&2 8837 8838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8839*** reliably create shared libraries on SCO systems. Therefore, libtool 8840*** is disabling shared libraries support. We urge you to upgrade GNU 8841*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8842*** your PATH or compiler configuration so that the native linker is 8843*** used, and then restart. 8844 8845_LT_EOF 8846 ;; 8847 *) 8848 # For security reasons, it is highly recommended that you always 8849 # use absolute paths for naming shared libraries, and exclude the 8850 # DT_RUNPATH tag from executables and libraries. But doing so 8851 # requires that you compile everything twice, which is a pain. 8852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8856 else 8857 ld_shlibs=no 8858 fi 8859 ;; 8860 esac 8861 ;; 8862 8863 sunos4*) 8864 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8865 wlarc= 8866 hardcode_direct=yes 8867 hardcode_shlibpath_var=no 8868 ;; 8869 8870 *) 8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8874 else 8875 ld_shlibs=no 8876 fi 8877 ;; 8878 esac 8879 8880 if test "$ld_shlibs" = no; then 8881 runpath_var= 8882 hardcode_libdir_flag_spec= 8883 export_dynamic_flag_spec= 8884 whole_archive_flag_spec= 8885 fi 8886 else 8887 # PORTME fill in a description of your system's linker (not GNU ld) 8888 case $host_os in 8889 aix3*) 8890 allow_undefined_flag=unsupported 8891 always_export_symbols=yes 8892 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' 8893 # Note: this linker hardcodes the directories in LIBPATH if there 8894 # are no directories specified by -L. 8895 hardcode_minus_L=yes 8896 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8897 # Neither direct hardcoding nor static linking is supported with a 8898 # broken collect2. 8899 hardcode_direct=unsupported 8900 fi 8901 ;; 8902 8903 aix[4-9]*) 8904 if test "$host_cpu" = ia64; then 8905 # On IA64, the linker does run time linking by default, so we don't 8906 # have to do anything special. 8907 aix_use_runtimelinking=no 8908 exp_sym_flag='-Bexport' 8909 no_entry_flag="" 8910 else 8911 # If we're using GNU nm, then we don't want the "-C" option. 8912 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8913 # Also, AIX nm treats weak defined symbols like other global 8914 # defined symbols, whereas GNU nm marks them as "W". 8915 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8916 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' 8917 else 8918 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' 8919 fi 8920 aix_use_runtimelinking=no 8921 8922 # Test if we are trying to use run time linking or normal 8923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8924 # need to do runtime linking. 8925 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8926 for ld_flag in $LDFLAGS; do 8927 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8928 aix_use_runtimelinking=yes 8929 break 8930 fi 8931 done 8932 ;; 8933 esac 8934 8935 exp_sym_flag='-bexport' 8936 no_entry_flag='-bnoentry' 8937 fi 8938 8939 # When large executables or shared objects are built, AIX ld can 8940 # have problems creating the table of contents. If linking a library 8941 # or program results in "error TOC overflow" add -mminimal-toc to 8942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8944 8945 archive_cmds='' 8946 hardcode_direct=yes 8947 hardcode_direct_absolute=yes 8948 hardcode_libdir_separator=':' 8949 link_all_deplibs=yes 8950 file_list_spec='${wl}-f,' 8951 8952 if test "$GCC" = yes; then 8953 case $host_os in aix4.[012]|aix4.[012].*) 8954 # We only want to do this on AIX 4.2 and lower, the check 8955 # below for broken collect2 doesn't work under 4.3+ 8956 collect2name=`${CC} -print-prog-name=collect2` 8957 if test -f "$collect2name" && 8958 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8959 then 8960 # We have reworked collect2 8961 : 8962 else 8963 # We have old collect2 8964 hardcode_direct=unsupported 8965 # It fails to find uninstalled libraries when the uninstalled 8966 # path is not listed in the libpath. Setting hardcode_minus_L 8967 # to unsupported forces relinking 8968 hardcode_minus_L=yes 8969 hardcode_libdir_flag_spec='-L$libdir' 8970 hardcode_libdir_separator= 8971 fi 8972 ;; 8973 esac 8974 shared_flag='-shared' 8975 if test "$aix_use_runtimelinking" = yes; then 8976 shared_flag="$shared_flag "'${wl}-G' 8977 fi 8978 else 8979 # not using gcc 8980 if test "$host_cpu" = ia64; then 8981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8982 # chokes on -Wl,-G. The following line is correct: 8983 shared_flag='-G' 8984 else 8985 if test "$aix_use_runtimelinking" = yes; then 8986 shared_flag='${wl}-G' 8987 else 8988 shared_flag='${wl}-bM:SRE' 8989 fi 8990 fi 8991 fi 8992 8993 export_dynamic_flag_spec='${wl}-bexpall' 8994 # It seems that -bexpall does not export symbols beginning with 8995 # underscore (_), so it is better to generate a list of symbols to export. 8996 always_export_symbols=yes 8997 if test "$aix_use_runtimelinking" = yes; then 8998 # Warning - without using the other runtime loading flags (-brtl), 8999 # -berok will link without error, but may produce a broken library. 9000 allow_undefined_flag='-berok' 9001 # Determine the default libpath from the value encoded in an 9002 # empty executable. 9003 if test "${lt_cv_aix_libpath+set}" = set; then 9004 aix_libpath=$lt_cv_aix_libpath 9005else 9006 if ${lt_cv_aix_libpath_+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011 9012int 9013main () 9014{ 9015 9016 ; 9017 return 0; 9018} 9019_ACEOF 9020if ac_fn_c_try_link "$LINENO"; then : 9021 9022 lt_aix_libpath_sed=' 9023 /Import File Strings/,/^$/ { 9024 /^0/ { 9025 s/^0 *\([^ ]*\) *$/\1/ 9026 p 9027 } 9028 }' 9029 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9030 # Check for a 64-bit object if we didn't find anything. 9031 if test -z "$lt_cv_aix_libpath_"; then 9032 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9033 fi 9034fi 9035rm -f core conftest.err conftest.$ac_objext \ 9036 conftest$ac_exeext conftest.$ac_ext 9037 if test -z "$lt_cv_aix_libpath_"; then 9038 lt_cv_aix_libpath_="/usr/lib:/lib" 9039 fi 9040 9041fi 9042 9043 aix_libpath=$lt_cv_aix_libpath_ 9044fi 9045 9046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9047 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" 9048 else 9049 if test "$host_cpu" = ia64; then 9050 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9051 allow_undefined_flag="-z nodefs" 9052 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" 9053 else 9054 # Determine the default libpath from the value encoded in an 9055 # empty executable. 9056 if test "${lt_cv_aix_libpath+set}" = set; then 9057 aix_libpath=$lt_cv_aix_libpath 9058else 9059 if ${lt_cv_aix_libpath_+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9063/* end confdefs.h. */ 9064 9065int 9066main () 9067{ 9068 9069 ; 9070 return 0; 9071} 9072_ACEOF 9073if ac_fn_c_try_link "$LINENO"; then : 9074 9075 lt_aix_libpath_sed=' 9076 /Import File Strings/,/^$/ { 9077 /^0/ { 9078 s/^0 *\([^ ]*\) *$/\1/ 9079 p 9080 } 9081 }' 9082 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9083 # Check for a 64-bit object if we didn't find anything. 9084 if test -z "$lt_cv_aix_libpath_"; then 9085 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9086 fi 9087fi 9088rm -f core conftest.err conftest.$ac_objext \ 9089 conftest$ac_exeext conftest.$ac_ext 9090 if test -z "$lt_cv_aix_libpath_"; then 9091 lt_cv_aix_libpath_="/usr/lib:/lib" 9092 fi 9093 9094fi 9095 9096 aix_libpath=$lt_cv_aix_libpath_ 9097fi 9098 9099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9100 # Warning - without using the other run time loading flags, 9101 # -berok will link without error, but may produce a broken library. 9102 no_undefined_flag=' ${wl}-bernotok' 9103 allow_undefined_flag=' ${wl}-berok' 9104 if test "$with_gnu_ld" = yes; then 9105 # We only use this code for GNU lds that support --whole-archive. 9106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9107 else 9108 # Exported symbols can be pulled into shared objects from archives 9109 whole_archive_flag_spec='$convenience' 9110 fi 9111 archive_cmds_need_lc=yes 9112 # This is similar to how AIX traditionally builds its shared libraries. 9113 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' 9114 fi 9115 fi 9116 ;; 9117 9118 amigaos*) 9119 case $host_cpu in 9120 powerpc) 9121 # see comment about AmigaOS4 .so support 9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9123 archive_expsym_cmds='' 9124 ;; 9125 m68k) 9126 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)' 9127 hardcode_libdir_flag_spec='-L$libdir' 9128 hardcode_minus_L=yes 9129 ;; 9130 esac 9131 ;; 9132 9133 bsdi[45]*) 9134 export_dynamic_flag_spec=-rdynamic 9135 ;; 9136 9137 cygwin* | mingw* | pw32* | cegcc*) 9138 # When not using gcc, we currently assume that we are using 9139 # Microsoft Visual C++. 9140 # hardcode_libdir_flag_spec is actually meaningless, as there is 9141 # no search path for DLLs. 9142 case $cc_basename in 9143 cl*) 9144 # Native MSVC 9145 hardcode_libdir_flag_spec=' ' 9146 allow_undefined_flag=unsupported 9147 always_export_symbols=yes 9148 file_list_spec='@' 9149 # Tell ltmain to make .lib files, not .a files. 9150 libext=lib 9151 # Tell ltmain to make .dll files, not .so files. 9152 shrext_cmds=".dll" 9153 # FIXME: Setting linknames here is a bad hack. 9154 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9155 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9156 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9157 else 9158 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9159 fi~ 9160 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9161 linknames=' 9162 # The linker will not automatically build a static lib if we build a DLL. 9163 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9164 enable_shared_with_static_runtimes=yes 9165 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9167 # Don't use ranlib 9168 old_postinstall_cmds='chmod 644 $oldlib' 9169 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9170 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9171 case $lt_outputfile in 9172 *.exe|*.EXE) ;; 9173 *) 9174 lt_outputfile="$lt_outputfile.exe" 9175 lt_tool_outputfile="$lt_tool_outputfile.exe" 9176 ;; 9177 esac~ 9178 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9179 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9180 $RM "$lt_outputfile.manifest"; 9181 fi' 9182 ;; 9183 *) 9184 # Assume MSVC wrapper 9185 hardcode_libdir_flag_spec=' ' 9186 allow_undefined_flag=unsupported 9187 # Tell ltmain to make .lib files, not .a files. 9188 libext=lib 9189 # Tell ltmain to make .dll files, not .so files. 9190 shrext_cmds=".dll" 9191 # FIXME: Setting linknames here is a bad hack. 9192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9193 # The linker will automatically build a .lib file if we build a DLL. 9194 old_archive_from_new_cmds='true' 9195 # FIXME: Should let the user specify the lib program. 9196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9197 enable_shared_with_static_runtimes=yes 9198 ;; 9199 esac 9200 ;; 9201 9202 darwin* | rhapsody*) 9203 9204 9205 archive_cmds_need_lc=no 9206 hardcode_direct=no 9207 hardcode_automatic=yes 9208 hardcode_shlibpath_var=unsupported 9209 if test "$lt_cv_ld_force_load" = "yes"; then 9210 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\"`' 9211 9212 else 9213 whole_archive_flag_spec='' 9214 fi 9215 link_all_deplibs=yes 9216 allow_undefined_flag="$_lt_dar_allow_undefined" 9217 case $cc_basename in 9218 ifort*) _lt_dar_can_shared=yes ;; 9219 *) _lt_dar_can_shared=$GCC ;; 9220 esac 9221 if test "$_lt_dar_can_shared" = "yes"; then 9222 output_verbose_link_cmd=func_echo_all 9223 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9224 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9225 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}" 9226 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}" 9227 9228 else 9229 ld_shlibs=no 9230 fi 9231 9232 ;; 9233 9234 dgux*) 9235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9236 hardcode_libdir_flag_spec='-L$libdir' 9237 hardcode_shlibpath_var=no 9238 ;; 9239 9240 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9241 # support. Future versions do this automatically, but an explicit c++rt0.o 9242 # does not break anything, and helps significantly (at the cost of a little 9243 # extra space). 9244 freebsd2.2*) 9245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9246 hardcode_libdir_flag_spec='-R$libdir' 9247 hardcode_direct=yes 9248 hardcode_shlibpath_var=no 9249 ;; 9250 9251 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9252 freebsd2.*) 9253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9254 hardcode_direct=yes 9255 hardcode_minus_L=yes 9256 hardcode_shlibpath_var=no 9257 ;; 9258 9259 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9260 freebsd* | dragonfly*) 9261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9262 hardcode_libdir_flag_spec='-R$libdir' 9263 hardcode_direct=yes 9264 hardcode_shlibpath_var=no 9265 ;; 9266 9267 hpux9*) 9268 if test "$GCC" = yes; then 9269 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' 9270 else 9271 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' 9272 fi 9273 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9274 hardcode_libdir_separator=: 9275 hardcode_direct=yes 9276 9277 # hardcode_minus_L: Not really in the search PATH, 9278 # but as the default location of the library. 9279 hardcode_minus_L=yes 9280 export_dynamic_flag_spec='${wl}-E' 9281 ;; 9282 9283 hpux10*) 9284 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9285 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9286 else 9287 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9288 fi 9289 if test "$with_gnu_ld" = no; then 9290 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9291 hardcode_libdir_separator=: 9292 hardcode_direct=yes 9293 hardcode_direct_absolute=yes 9294 export_dynamic_flag_spec='${wl}-E' 9295 # hardcode_minus_L: Not really in the search PATH, 9296 # but as the default location of the library. 9297 hardcode_minus_L=yes 9298 fi 9299 ;; 9300 9301 hpux11*) 9302 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9303 case $host_cpu in 9304 hppa*64*) 9305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9306 ;; 9307 ia64*) 9308 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9309 ;; 9310 *) 9311 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9312 ;; 9313 esac 9314 else 9315 case $host_cpu in 9316 hppa*64*) 9317 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9318 ;; 9319 ia64*) 9320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9321 ;; 9322 *) 9323 9324 # Older versions of the 11.00 compiler do not understand -b yet 9325 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9327$as_echo_n "checking if $CC understands -b... " >&6; } 9328if ${lt_cv_prog_compiler__b+:} false; then : 9329 $as_echo_n "(cached) " >&6 9330else 9331 lt_cv_prog_compiler__b=no 9332 save_LDFLAGS="$LDFLAGS" 9333 LDFLAGS="$LDFLAGS -b" 9334 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9336 # The linker can only warn and ignore the option if not recognized 9337 # So say no if there are warnings 9338 if test -s conftest.err; then 9339 # Append any errors to the config.log. 9340 cat conftest.err 1>&5 9341 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9343 if diff conftest.exp conftest.er2 >/dev/null; then 9344 lt_cv_prog_compiler__b=yes 9345 fi 9346 else 9347 lt_cv_prog_compiler__b=yes 9348 fi 9349 fi 9350 $RM -r conftest* 9351 LDFLAGS="$save_LDFLAGS" 9352 9353fi 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9355$as_echo "$lt_cv_prog_compiler__b" >&6; } 9356 9357if test x"$lt_cv_prog_compiler__b" = xyes; then 9358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9359else 9360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9361fi 9362 9363 ;; 9364 esac 9365 fi 9366 if test "$with_gnu_ld" = no; then 9367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9368 hardcode_libdir_separator=: 9369 9370 case $host_cpu in 9371 hppa*64*|ia64*) 9372 hardcode_direct=no 9373 hardcode_shlibpath_var=no 9374 ;; 9375 *) 9376 hardcode_direct=yes 9377 hardcode_direct_absolute=yes 9378 export_dynamic_flag_spec='${wl}-E' 9379 9380 # hardcode_minus_L: Not really in the search PATH, 9381 # but as the default location of the library. 9382 hardcode_minus_L=yes 9383 ;; 9384 esac 9385 fi 9386 ;; 9387 9388 irix5* | irix6* | nonstopux*) 9389 if test "$GCC" = yes; then 9390 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' 9391 # Try to use the -exported_symbol ld option, if it does not 9392 # work, assume that -exports_file does not work either and 9393 # implicitly export all symbols. 9394 # This should be the same for all languages, so no per-tag cache variable. 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9396$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9397if ${lt_cv_irix_exported_symbol+:} false; then : 9398 $as_echo_n "(cached) " >&6 9399else 9400 save_LDFLAGS="$LDFLAGS" 9401 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404int foo (void) { return 0; } 9405_ACEOF 9406if ac_fn_c_try_link "$LINENO"; then : 9407 lt_cv_irix_exported_symbol=yes 9408else 9409 lt_cv_irix_exported_symbol=no 9410fi 9411rm -f core conftest.err conftest.$ac_objext \ 9412 conftest$ac_exeext conftest.$ac_ext 9413 LDFLAGS="$save_LDFLAGS" 9414fi 9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9416$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9417 if test "$lt_cv_irix_exported_symbol" = yes; then 9418 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' 9419 fi 9420 else 9421 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' 9422 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' 9423 fi 9424 archive_cmds_need_lc='no' 9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9426 hardcode_libdir_separator=: 9427 inherit_rpath=yes 9428 link_all_deplibs=yes 9429 ;; 9430 9431 netbsd*) 9432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9434 else 9435 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9436 fi 9437 hardcode_libdir_flag_spec='-R$libdir' 9438 hardcode_direct=yes 9439 hardcode_shlibpath_var=no 9440 ;; 9441 9442 newsos6) 9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9444 hardcode_direct=yes 9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9446 hardcode_libdir_separator=: 9447 hardcode_shlibpath_var=no 9448 ;; 9449 9450 *nto* | *qnx*) 9451 ;; 9452 9453 openbsd*) 9454 if test -f /usr/libexec/ld.so; then 9455 hardcode_direct=yes 9456 hardcode_shlibpath_var=no 9457 hardcode_direct_absolute=yes 9458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9459 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9460 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9462 export_dynamic_flag_spec='${wl}-E' 9463 else 9464 case $host_os in 9465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9467 hardcode_libdir_flag_spec='-R$libdir' 9468 ;; 9469 *) 9470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9472 ;; 9473 esac 9474 fi 9475 else 9476 ld_shlibs=no 9477 fi 9478 ;; 9479 9480 os2*) 9481 hardcode_libdir_flag_spec='-L$libdir' 9482 hardcode_minus_L=yes 9483 allow_undefined_flag=unsupported 9484 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' 9485 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9486 ;; 9487 9488 osf3*) 9489 if test "$GCC" = yes; then 9490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9491 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' 9492 else 9493 allow_undefined_flag=' -expect_unresolved \*' 9494 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' 9495 fi 9496 archive_cmds_need_lc='no' 9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9498 hardcode_libdir_separator=: 9499 ;; 9500 9501 osf4* | osf5*) # as osf3* with the addition of -msym flag 9502 if test "$GCC" = yes; then 9503 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9504 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' 9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9506 else 9507 allow_undefined_flag=' -expect_unresolved \*' 9508 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' 9509 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~ 9510 $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' 9511 9512 # Both c and cxx compiler support -rpath directly 9513 hardcode_libdir_flag_spec='-rpath $libdir' 9514 fi 9515 archive_cmds_need_lc='no' 9516 hardcode_libdir_separator=: 9517 ;; 9518 9519 solaris*) 9520 no_undefined_flag=' -z defs' 9521 if test "$GCC" = yes; then 9522 wlarc='${wl}' 9523 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9525 $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' 9526 else 9527 case `$CC -V 2>&1` in 9528 *"Compilers 5.0"*) 9529 wlarc='' 9530 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9533 ;; 9534 *) 9535 wlarc='${wl}' 9536 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9538 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9539 ;; 9540 esac 9541 fi 9542 hardcode_libdir_flag_spec='-R$libdir' 9543 hardcode_shlibpath_var=no 9544 case $host_os in 9545 solaris2.[0-5] | solaris2.[0-5].*) ;; 9546 *) 9547 # The compiler driver will combine and reorder linker options, 9548 # but understands `-z linker_flag'. GCC discards it without `$wl', 9549 # but is careful enough not to reorder. 9550 # Supported since Solaris 2.6 (maybe 2.5.1?) 9551 if test "$GCC" = yes; then 9552 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9553 else 9554 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9555 fi 9556 ;; 9557 esac 9558 link_all_deplibs=yes 9559 ;; 9560 9561 sunos4*) 9562 if test "x$host_vendor" = xsequent; then 9563 # Use $CC to link under sequent, because it throws in some extra .o 9564 # files that make .init and .fini sections work. 9565 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9566 else 9567 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9568 fi 9569 hardcode_libdir_flag_spec='-L$libdir' 9570 hardcode_direct=yes 9571 hardcode_minus_L=yes 9572 hardcode_shlibpath_var=no 9573 ;; 9574 9575 sysv4) 9576 case $host_vendor in 9577 sni) 9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9579 hardcode_direct=yes # is this really true??? 9580 ;; 9581 siemens) 9582 ## LD is ld it makes a PLAMLIB 9583 ## CC just makes a GrossModule. 9584 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9585 reload_cmds='$CC -r -o $output$reload_objs' 9586 hardcode_direct=no 9587 ;; 9588 motorola) 9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9590 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9591 ;; 9592 esac 9593 runpath_var='LD_RUN_PATH' 9594 hardcode_shlibpath_var=no 9595 ;; 9596 9597 sysv4.3*) 9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9599 hardcode_shlibpath_var=no 9600 export_dynamic_flag_spec='-Bexport' 9601 ;; 9602 9603 sysv4*MP*) 9604 if test -d /usr/nec; then 9605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9606 hardcode_shlibpath_var=no 9607 runpath_var=LD_RUN_PATH 9608 hardcode_runpath_var=yes 9609 ld_shlibs=yes 9610 fi 9611 ;; 9612 9613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9614 no_undefined_flag='${wl}-z,text' 9615 archive_cmds_need_lc=no 9616 hardcode_shlibpath_var=no 9617 runpath_var='LD_RUN_PATH' 9618 9619 if test "$GCC" = yes; then 9620 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9621 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9622 else 9623 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9624 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9625 fi 9626 ;; 9627 9628 sysv5* | sco3.2v5* | sco5v6*) 9629 # Note: We can NOT use -z defs as we might desire, because we do not 9630 # link with -lc, and that would cause any symbols used from libc to 9631 # always be unresolved, which means just about no library would 9632 # ever link correctly. If we're not using GNU ld we use -z text 9633 # though, which does catch some bad symbols but isn't as heavy-handed 9634 # as -z defs. 9635 no_undefined_flag='${wl}-z,text' 9636 allow_undefined_flag='${wl}-z,nodefs' 9637 archive_cmds_need_lc=no 9638 hardcode_shlibpath_var=no 9639 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9640 hardcode_libdir_separator=':' 9641 link_all_deplibs=yes 9642 export_dynamic_flag_spec='${wl}-Bexport' 9643 runpath_var='LD_RUN_PATH' 9644 9645 if test "$GCC" = yes; then 9646 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9647 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9648 else 9649 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9650 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9651 fi 9652 ;; 9653 9654 uts4*) 9655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9656 hardcode_libdir_flag_spec='-L$libdir' 9657 hardcode_shlibpath_var=no 9658 ;; 9659 9660 *) 9661 ld_shlibs=no 9662 ;; 9663 esac 9664 9665 if test x$host_vendor = xsni; then 9666 case $host in 9667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9668 export_dynamic_flag_spec='${wl}-Blargedynsym' 9669 ;; 9670 esac 9671 fi 9672 fi 9673 9674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9675$as_echo "$ld_shlibs" >&6; } 9676test "$ld_shlibs" = no && can_build_shared=no 9677 9678with_gnu_ld=$with_gnu_ld 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694# 9695# Do we need to explicitly link libc? 9696# 9697case "x$archive_cmds_need_lc" in 9698x|xyes) 9699 # Assume -lc should be added 9700 archive_cmds_need_lc=yes 9701 9702 if test "$enable_shared" = yes && test "$GCC" = yes; then 9703 case $archive_cmds in 9704 *'~'*) 9705 # FIXME: we may have to deal with multi-command sequences. 9706 ;; 9707 '$CC '*) 9708 # Test whether the compiler implicitly links with -lc since on some 9709 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9710 # to ld, don't add -lc before -lgcc. 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9712$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9713if ${lt_cv_archive_cmds_need_lc+:} false; then : 9714 $as_echo_n "(cached) " >&6 9715else 9716 $RM conftest* 9717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9718 9719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9720 (eval $ac_compile) 2>&5 9721 ac_status=$? 9722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9723 test $ac_status = 0; } 2>conftest.err; then 9724 soname=conftest 9725 lib=conftest 9726 libobjs=conftest.$ac_objext 9727 deplibs= 9728 wl=$lt_prog_compiler_wl 9729 pic_flag=$lt_prog_compiler_pic 9730 compiler_flags=-v 9731 linker_flags=-v 9732 verstring= 9733 output_objdir=. 9734 libname=conftest 9735 lt_save_allow_undefined_flag=$allow_undefined_flag 9736 allow_undefined_flag= 9737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9738 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9739 ac_status=$? 9740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9741 test $ac_status = 0; } 9742 then 9743 lt_cv_archive_cmds_need_lc=no 9744 else 9745 lt_cv_archive_cmds_need_lc=yes 9746 fi 9747 allow_undefined_flag=$lt_save_allow_undefined_flag 9748 else 9749 cat conftest.err 1>&5 9750 fi 9751 $RM conftest* 9752 9753fi 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9755$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9756 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9757 ;; 9758 esac 9759 fi 9760 ;; 9761esac 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9915$as_echo_n "checking dynamic linker characteristics... " >&6; } 9916 9917if test "$GCC" = yes; then 9918 case $host_os in 9919 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9920 *) lt_awk_arg="/^libraries:/" ;; 9921 esac 9922 case $host_os in 9923 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9924 *) lt_sed_strip_eq="s,=/,/,g" ;; 9925 esac 9926 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9927 case $lt_search_path_spec in 9928 *\;*) 9929 # if the path contains ";" then we assume it to be the separator 9930 # otherwise default to the standard path separator (i.e. ":") - it is 9931 # assumed that no part of a normal pathname contains ";" but that should 9932 # okay in the real world where ";" in dirpaths is itself problematic. 9933 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9934 ;; 9935 *) 9936 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9937 ;; 9938 esac 9939 # Ok, now we have the path, separated by spaces, we can step through it 9940 # and add multilib dir if necessary. 9941 lt_tmp_lt_search_path_spec= 9942 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9943 for lt_sys_path in $lt_search_path_spec; do 9944 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9945 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9946 else 9947 test -d "$lt_sys_path" && \ 9948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9949 fi 9950 done 9951 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9952BEGIN {RS=" "; FS="/|\n";} { 9953 lt_foo=""; 9954 lt_count=0; 9955 for (lt_i = NF; lt_i > 0; lt_i--) { 9956 if ($lt_i != "" && $lt_i != ".") { 9957 if ($lt_i == "..") { 9958 lt_count++; 9959 } else { 9960 if (lt_count == 0) { 9961 lt_foo="/" $lt_i lt_foo; 9962 } else { 9963 lt_count--; 9964 } 9965 } 9966 } 9967 } 9968 if (lt_foo != "") { lt_freq[lt_foo]++; } 9969 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9970}'` 9971 # AWK program above erroneously prepends '/' to C:/dos/paths 9972 # for these hosts. 9973 case $host_os in 9974 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9975 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9976 esac 9977 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9978else 9979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9980fi 9981library_names_spec= 9982libname_spec='lib$name' 9983soname_spec= 9984shrext_cmds=".so" 9985postinstall_cmds= 9986postuninstall_cmds= 9987finish_cmds= 9988finish_eval= 9989shlibpath_var= 9990shlibpath_overrides_runpath=unknown 9991version_type=none 9992dynamic_linker="$host_os ld.so" 9993sys_lib_dlsearch_path_spec="/lib /usr/lib" 9994need_lib_prefix=unknown 9995hardcode_into_libs=no 9996 9997# when you set need_version to no, make sure it does not cause -set_version 9998# flags to be left without arguments 9999need_version=unknown 10000 10001case $host_os in 10002aix3*) 10003 version_type=linux # correct to gnu/linux during the next big refactor 10004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10005 shlibpath_var=LIBPATH 10006 10007 # AIX 3 has no versioning support, so we append a major version to the name. 10008 soname_spec='${libname}${release}${shared_ext}$major' 10009 ;; 10010 10011aix[4-9]*) 10012 version_type=linux # correct to gnu/linux during the next big refactor 10013 need_lib_prefix=no 10014 need_version=no 10015 hardcode_into_libs=yes 10016 if test "$host_cpu" = ia64; then 10017 # AIX 5 supports IA64 10018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10019 shlibpath_var=LD_LIBRARY_PATH 10020 else 10021 # With GCC up to 2.95.x, collect2 would create an import file 10022 # for dependence libraries. The import file would start with 10023 # the line `#! .'. This would cause the generated library to 10024 # depend on `.', always an invalid library. This was fixed in 10025 # development snapshots of GCC prior to 3.0. 10026 case $host_os in 10027 aix4 | aix4.[01] | aix4.[01].*) 10028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10029 echo ' yes ' 10030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10031 : 10032 else 10033 can_build_shared=no 10034 fi 10035 ;; 10036 esac 10037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10038 # soname into executable. Probably we can add versioning support to 10039 # collect2, so additional links can be useful in future. 10040 if test "$aix_use_runtimelinking" = yes; then 10041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10042 # instead of lib<name>.a to let people know that these are not 10043 # typical AIX shared libraries. 10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10045 else 10046 # We preserve .a as extension for shared libraries through AIX4.2 10047 # and later when we are not doing run time linking. 10048 library_names_spec='${libname}${release}.a $libname.a' 10049 soname_spec='${libname}${release}${shared_ext}$major' 10050 fi 10051 shlibpath_var=LIBPATH 10052 fi 10053 ;; 10054 10055amigaos*) 10056 case $host_cpu in 10057 powerpc) 10058 # Since July 2007 AmigaOS4 officially supports .so libraries. 10059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10061 ;; 10062 m68k) 10063 library_names_spec='$libname.ixlibrary $libname.a' 10064 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10065 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' 10066 ;; 10067 esac 10068 ;; 10069 10070beos*) 10071 library_names_spec='${libname}${shared_ext}' 10072 dynamic_linker="$host_os ld.so" 10073 shlibpath_var=LIBRARY_PATH 10074 ;; 10075 10076bsdi[45]*) 10077 version_type=linux # correct to gnu/linux during the next big refactor 10078 need_version=no 10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10080 soname_spec='${libname}${release}${shared_ext}$major' 10081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10082 shlibpath_var=LD_LIBRARY_PATH 10083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10085 # the default ld.so.conf also contains /usr/contrib/lib and 10086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10087 # libtool to hard-code these into programs 10088 ;; 10089 10090cygwin* | mingw* | pw32* | cegcc*) 10091 version_type=windows 10092 shrext_cmds=".dll" 10093 need_version=no 10094 need_lib_prefix=no 10095 10096 case $GCC,$cc_basename in 10097 yes,*) 10098 # gcc 10099 library_names_spec='$libname.dll.a' 10100 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10101 postinstall_cmds='base_file=`basename \${file}`~ 10102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10103 dldir=$destdir/`dirname \$dlpath`~ 10104 test -d \$dldir || mkdir -p \$dldir~ 10105 $install_prog $dir/$dlname \$dldir/$dlname~ 10106 chmod a+x \$dldir/$dlname~ 10107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10109 fi' 10110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10111 dlpath=$dir/\$dldll~ 10112 $RM \$dlpath' 10113 shlibpath_overrides_runpath=yes 10114 10115 case $host_os in 10116 cygwin*) 10117 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10118 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10119 10120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10121 ;; 10122 mingw* | cegcc*) 10123 # MinGW DLLs use traditional 'lib' prefix 10124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10125 ;; 10126 pw32*) 10127 # pw32 DLLs use 'pw' prefix rather than 'lib' 10128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10129 ;; 10130 esac 10131 dynamic_linker='Win32 ld.exe' 10132 ;; 10133 10134 *,cl*) 10135 # Native MSVC 10136 libname_spec='$name' 10137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10138 library_names_spec='${libname}.dll.lib' 10139 10140 case $build_os in 10141 mingw*) 10142 sys_lib_search_path_spec= 10143 lt_save_ifs=$IFS 10144 IFS=';' 10145 for lt_path in $LIB 10146 do 10147 IFS=$lt_save_ifs 10148 # Let DOS variable expansion print the short 8.3 style file name. 10149 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10150 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10151 done 10152 IFS=$lt_save_ifs 10153 # Convert to MSYS style. 10154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10155 ;; 10156 cygwin*) 10157 # Convert to unix form, then to dos form, then back to unix form 10158 # but this time dos style (no spaces!) so that the unix form looks 10159 # like /cygdrive/c/PROGRA~1:/cygdr... 10160 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10161 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10162 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10163 ;; 10164 *) 10165 sys_lib_search_path_spec="$LIB" 10166 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10167 # It is most probably a Windows format PATH. 10168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10169 else 10170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10171 fi 10172 # FIXME: find the short name or the path components, as spaces are 10173 # common. (e.g. "Program Files" -> "PROGRA~1") 10174 ;; 10175 esac 10176 10177 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10178 postinstall_cmds='base_file=`basename \${file}`~ 10179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10180 dldir=$destdir/`dirname \$dlpath`~ 10181 test -d \$dldir || mkdir -p \$dldir~ 10182 $install_prog $dir/$dlname \$dldir/$dlname' 10183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10184 dlpath=$dir/\$dldll~ 10185 $RM \$dlpath' 10186 shlibpath_overrides_runpath=yes 10187 dynamic_linker='Win32 link.exe' 10188 ;; 10189 10190 *) 10191 # Assume MSVC wrapper 10192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10193 dynamic_linker='Win32 ld.exe' 10194 ;; 10195 esac 10196 # FIXME: first we should search . and the directory the executable is in 10197 shlibpath_var=PATH 10198 ;; 10199 10200darwin* | rhapsody*) 10201 dynamic_linker="$host_os dyld" 10202 version_type=darwin 10203 need_lib_prefix=no 10204 need_version=no 10205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10206 soname_spec='${libname}${release}${major}$shared_ext' 10207 shlibpath_overrides_runpath=yes 10208 shlibpath_var=DYLD_LIBRARY_PATH 10209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10210 10211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10213 ;; 10214 10215dgux*) 10216 version_type=linux # correct to gnu/linux during the next big refactor 10217 need_lib_prefix=no 10218 need_version=no 10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10220 soname_spec='${libname}${release}${shared_ext}$major' 10221 shlibpath_var=LD_LIBRARY_PATH 10222 ;; 10223 10224freebsd* | dragonfly*) 10225 # DragonFly does not have aout. When/if they implement a new 10226 # versioning mechanism, adjust this. 10227 if test -x /usr/bin/objformat; then 10228 objformat=`/usr/bin/objformat` 10229 else 10230 case $host_os in 10231 freebsd[23].*) objformat=aout ;; 10232 *) objformat=elf ;; 10233 esac 10234 fi 10235 version_type=freebsd-$objformat 10236 case $version_type in 10237 freebsd-elf*) 10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10239 need_version=no 10240 need_lib_prefix=no 10241 ;; 10242 freebsd-*) 10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10244 need_version=yes 10245 ;; 10246 esac 10247 shlibpath_var=LD_LIBRARY_PATH 10248 case $host_os in 10249 freebsd2.*) 10250 shlibpath_overrides_runpath=yes 10251 ;; 10252 freebsd3.[01]* | freebsdelf3.[01]*) 10253 shlibpath_overrides_runpath=yes 10254 hardcode_into_libs=yes 10255 ;; 10256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10258 shlibpath_overrides_runpath=no 10259 hardcode_into_libs=yes 10260 ;; 10261 *) # from 4.6 on, and DragonFly 10262 shlibpath_overrides_runpath=yes 10263 hardcode_into_libs=yes 10264 ;; 10265 esac 10266 ;; 10267 10268gnu*) 10269 version_type=linux # correct to gnu/linux during the next big refactor 10270 need_lib_prefix=no 10271 need_version=no 10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10273 soname_spec='${libname}${release}${shared_ext}$major' 10274 shlibpath_var=LD_LIBRARY_PATH 10275 shlibpath_overrides_runpath=no 10276 hardcode_into_libs=yes 10277 ;; 10278 10279haiku*) 10280 version_type=linux # correct to gnu/linux during the next big refactor 10281 need_lib_prefix=no 10282 need_version=no 10283 dynamic_linker="$host_os runtime_loader" 10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10285 soname_spec='${libname}${release}${shared_ext}$major' 10286 shlibpath_var=LIBRARY_PATH 10287 shlibpath_overrides_runpath=yes 10288 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10289 hardcode_into_libs=yes 10290 ;; 10291 10292hpux9* | hpux10* | hpux11*) 10293 # Give a soname corresponding to the major version so that dld.sl refuses to 10294 # link against other versions. 10295 version_type=sunos 10296 need_lib_prefix=no 10297 need_version=no 10298 case $host_cpu in 10299 ia64*) 10300 shrext_cmds='.so' 10301 hardcode_into_libs=yes 10302 dynamic_linker="$host_os dld.so" 10303 shlibpath_var=LD_LIBRARY_PATH 10304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10306 soname_spec='${libname}${release}${shared_ext}$major' 10307 if test "X$HPUX_IA64_MODE" = X32; then 10308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10309 else 10310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10311 fi 10312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10313 ;; 10314 hppa*64*) 10315 shrext_cmds='.sl' 10316 hardcode_into_libs=yes 10317 dynamic_linker="$host_os dld.sl" 10318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10321 soname_spec='${libname}${release}${shared_ext}$major' 10322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10324 ;; 10325 *) 10326 shrext_cmds='.sl' 10327 dynamic_linker="$host_os dld.sl" 10328 shlibpath_var=SHLIB_PATH 10329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 10333 esac 10334 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10335 postinstall_cmds='chmod 555 $lib' 10336 # or fails outright, so override atomically: 10337 install_override_mode=555 10338 ;; 10339 10340interix[3-9]*) 10341 version_type=linux # correct to gnu/linux during the next big refactor 10342 need_lib_prefix=no 10343 need_version=no 10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10345 soname_spec='${libname}${release}${shared_ext}$major' 10346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10347 shlibpath_var=LD_LIBRARY_PATH 10348 shlibpath_overrides_runpath=no 10349 hardcode_into_libs=yes 10350 ;; 10351 10352irix5* | irix6* | nonstopux*) 10353 case $host_os in 10354 nonstopux*) version_type=nonstopux ;; 10355 *) 10356 if test "$lt_cv_prog_gnu_ld" = yes; then 10357 version_type=linux # correct to gnu/linux during the next big refactor 10358 else 10359 version_type=irix 10360 fi ;; 10361 esac 10362 need_lib_prefix=no 10363 need_version=no 10364 soname_spec='${libname}${release}${shared_ext}$major' 10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10366 case $host_os in 10367 irix5* | nonstopux*) 10368 libsuff= shlibsuff= 10369 ;; 10370 *) 10371 case $LD in # libtool.m4 will add one of these switches to LD 10372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10373 libsuff= shlibsuff= libmagic=32-bit;; 10374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10375 libsuff=32 shlibsuff=N32 libmagic=N32;; 10376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10377 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10378 *) libsuff= shlibsuff= libmagic=never-match;; 10379 esac 10380 ;; 10381 esac 10382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10383 shlibpath_overrides_runpath=no 10384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10386 hardcode_into_libs=yes 10387 ;; 10388 10389# No shared lib support for Linux oldld, aout, or coff. 10390linux*oldld* | linux*aout* | linux*coff*) 10391 dynamic_linker=no 10392 ;; 10393 10394# This must be glibc/ELF. 10395linux* | k*bsd*-gnu | kopensolaris*-gnu) 10396 version_type=linux # correct to gnu/linux during the next big refactor 10397 need_lib_prefix=no 10398 need_version=no 10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10400 soname_spec='${libname}${release}${shared_ext}$major' 10401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10402 shlibpath_var=LD_LIBRARY_PATH 10403 shlibpath_overrides_runpath=no 10404 10405 # Some binutils ld are patched to set DT_RUNPATH 10406 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408else 10409 lt_cv_shlibpath_overrides_runpath=no 10410 save_LDFLAGS=$LDFLAGS 10411 save_libdir=$libdir 10412 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10413 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10415/* end confdefs.h. */ 10416 10417int 10418main () 10419{ 10420 10421 ; 10422 return 0; 10423} 10424_ACEOF 10425if ac_fn_c_try_link "$LINENO"; then : 10426 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10427 lt_cv_shlibpath_overrides_runpath=yes 10428fi 10429fi 10430rm -f core conftest.err conftest.$ac_objext \ 10431 conftest$ac_exeext conftest.$ac_ext 10432 LDFLAGS=$save_LDFLAGS 10433 libdir=$save_libdir 10434 10435fi 10436 10437 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10438 10439 # This implies no fast_install, which is unacceptable. 10440 # Some rework will be needed to allow for fast_install 10441 # before this can be enabled. 10442 hardcode_into_libs=yes 10443 10444 # Append ld.so.conf contents to the search path 10445 if test -f /etc/ld.so.conf; then 10446 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' ' '` 10447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10448 fi 10449 10450 # We used to test for /lib/ld.so.1 and disable shared libraries on 10451 # powerpc, because MkLinux only supported shared libraries with the 10452 # GNU dynamic linker. Since this was broken with cross compilers, 10453 # most powerpc-linux boxes support dynamic linking these days and 10454 # people can always --disable-shared, the test was removed, and we 10455 # assume the GNU/Linux dynamic linker is in use. 10456 dynamic_linker='GNU/Linux ld.so' 10457 ;; 10458 10459netbsd*) 10460 version_type=sunos 10461 need_lib_prefix=no 10462 need_version=no 10463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10466 dynamic_linker='NetBSD (a.out) ld.so' 10467 else 10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10469 soname_spec='${libname}${release}${shared_ext}$major' 10470 dynamic_linker='NetBSD ld.elf_so' 10471 fi 10472 shlibpath_var=LD_LIBRARY_PATH 10473 shlibpath_overrides_runpath=yes 10474 hardcode_into_libs=yes 10475 ;; 10476 10477newsos6) 10478 version_type=linux # correct to gnu/linux during the next big refactor 10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10480 shlibpath_var=LD_LIBRARY_PATH 10481 shlibpath_overrides_runpath=yes 10482 ;; 10483 10484*nto* | *qnx*) 10485 version_type=qnx 10486 need_lib_prefix=no 10487 need_version=no 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10489 soname_spec='${libname}${release}${shared_ext}$major' 10490 shlibpath_var=LD_LIBRARY_PATH 10491 shlibpath_overrides_runpath=no 10492 hardcode_into_libs=yes 10493 dynamic_linker='ldqnx.so' 10494 ;; 10495 10496openbsd*) 10497 version_type=sunos 10498 sys_lib_dlsearch_path_spec="/usr/lib" 10499 need_lib_prefix=no 10500 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10501 case $host_os in 10502 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10503 *) need_version=no ;; 10504 esac 10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10507 shlibpath_var=LD_LIBRARY_PATH 10508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10509 case $host_os in 10510 openbsd2.[89] | openbsd2.[89].*) 10511 shlibpath_overrides_runpath=no 10512 ;; 10513 *) 10514 shlibpath_overrides_runpath=yes 10515 ;; 10516 esac 10517 else 10518 shlibpath_overrides_runpath=yes 10519 fi 10520 ;; 10521 10522os2*) 10523 libname_spec='$name' 10524 shrext_cmds=".dll" 10525 need_lib_prefix=no 10526 library_names_spec='$libname${shared_ext} $libname.a' 10527 dynamic_linker='OS/2 ld.exe' 10528 shlibpath_var=LIBPATH 10529 ;; 10530 10531osf3* | osf4* | osf5*) 10532 version_type=osf 10533 need_lib_prefix=no 10534 need_version=no 10535 soname_spec='${libname}${release}${shared_ext}$major' 10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10537 shlibpath_var=LD_LIBRARY_PATH 10538 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10539 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10540 ;; 10541 10542rdos*) 10543 dynamic_linker=no 10544 ;; 10545 10546solaris*) 10547 version_type=linux # correct to gnu/linux during the next big refactor 10548 need_lib_prefix=no 10549 need_version=no 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10551 soname_spec='${libname}${release}${shared_ext}$major' 10552 shlibpath_var=LD_LIBRARY_PATH 10553 shlibpath_overrides_runpath=yes 10554 hardcode_into_libs=yes 10555 # ldd complains unless libraries are executable 10556 postinstall_cmds='chmod +x $lib' 10557 ;; 10558 10559sunos4*) 10560 version_type=sunos 10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10563 shlibpath_var=LD_LIBRARY_PATH 10564 shlibpath_overrides_runpath=yes 10565 if test "$with_gnu_ld" = yes; then 10566 need_lib_prefix=no 10567 fi 10568 need_version=yes 10569 ;; 10570 10571sysv4 | sysv4.3*) 10572 version_type=linux # correct to gnu/linux during the next big refactor 10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10574 soname_spec='${libname}${release}${shared_ext}$major' 10575 shlibpath_var=LD_LIBRARY_PATH 10576 case $host_vendor in 10577 sni) 10578 shlibpath_overrides_runpath=no 10579 need_lib_prefix=no 10580 runpath_var=LD_RUN_PATH 10581 ;; 10582 siemens) 10583 need_lib_prefix=no 10584 ;; 10585 motorola) 10586 need_lib_prefix=no 10587 need_version=no 10588 shlibpath_overrides_runpath=no 10589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10590 ;; 10591 esac 10592 ;; 10593 10594sysv4*MP*) 10595 if test -d /usr/nec ;then 10596 version_type=linux # correct to gnu/linux during the next big refactor 10597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10598 soname_spec='$libname${shared_ext}.$major' 10599 shlibpath_var=LD_LIBRARY_PATH 10600 fi 10601 ;; 10602 10603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10604 version_type=freebsd-elf 10605 need_lib_prefix=no 10606 need_version=no 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 shlibpath_overrides_runpath=yes 10611 hardcode_into_libs=yes 10612 if test "$with_gnu_ld" = yes; then 10613 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10614 else 10615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10616 case $host_os in 10617 sco3.2v5*) 10618 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10619 ;; 10620 esac 10621 fi 10622 sys_lib_dlsearch_path_spec='/usr/lib' 10623 ;; 10624 10625tpf*) 10626 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10627 version_type=linux # correct to gnu/linux during the next big refactor 10628 need_lib_prefix=no 10629 need_version=no 10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10631 shlibpath_var=LD_LIBRARY_PATH 10632 shlibpath_overrides_runpath=no 10633 hardcode_into_libs=yes 10634 ;; 10635 10636uts4*) 10637 version_type=linux # correct to gnu/linux during the next big refactor 10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10639 soname_spec='${libname}${release}${shared_ext}$major' 10640 shlibpath_var=LD_LIBRARY_PATH 10641 ;; 10642 10643*) 10644 dynamic_linker=no 10645 ;; 10646esac 10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10648$as_echo "$dynamic_linker" >&6; } 10649test "$dynamic_linker" = no && can_build_shared=no 10650 10651variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10652if test "$GCC" = yes; then 10653 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10654fi 10655 10656if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10657 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10658fi 10659if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10660 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10661fi 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10755$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10756hardcode_action= 10757if test -n "$hardcode_libdir_flag_spec" || 10758 test -n "$runpath_var" || 10759 test "X$hardcode_automatic" = "Xyes" ; then 10760 10761 # We can hardcode non-existent directories. 10762 if test "$hardcode_direct" != no && 10763 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10764 # have to relink, otherwise we might link with an installed library 10765 # when we should be linking with a yet-to-be-installed one 10766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10767 test "$hardcode_minus_L" != no; then 10768 # Linking always hardcodes the temporary library directory. 10769 hardcode_action=relink 10770 else 10771 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10772 hardcode_action=immediate 10773 fi 10774else 10775 # We cannot hardcode anything, or else we can only hardcode existing 10776 # directories. 10777 hardcode_action=unsupported 10778fi 10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10780$as_echo "$hardcode_action" >&6; } 10781 10782if test "$hardcode_action" = relink || 10783 test "$inherit_rpath" = yes; then 10784 # Fast installation is not supported 10785 enable_fast_install=no 10786elif test "$shlibpath_overrides_runpath" = yes || 10787 test "$enable_shared" = no; then 10788 # Fast installation is not necessary 10789 enable_fast_install=needless 10790fi 10791 10792 10793 10794 10795 10796 10797 if test "x$enable_dlopen" != xyes; then 10798 enable_dlopen=unknown 10799 enable_dlopen_self=unknown 10800 enable_dlopen_self_static=unknown 10801else 10802 lt_cv_dlopen=no 10803 lt_cv_dlopen_libs= 10804 10805 case $host_os in 10806 beos*) 10807 lt_cv_dlopen="load_add_on" 10808 lt_cv_dlopen_libs= 10809 lt_cv_dlopen_self=yes 10810 ;; 10811 10812 mingw* | pw32* | cegcc*) 10813 lt_cv_dlopen="LoadLibrary" 10814 lt_cv_dlopen_libs= 10815 ;; 10816 10817 cygwin*) 10818 lt_cv_dlopen="dlopen" 10819 lt_cv_dlopen_libs= 10820 ;; 10821 10822 darwin*) 10823 # if libdl is installed we need to link against it 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10825$as_echo_n "checking for dlopen in -ldl... " >&6; } 10826if ${ac_cv_lib_dl_dlopen+:} false; then : 10827 $as_echo_n "(cached) " >&6 10828else 10829 ac_check_lib_save_LIBS=$LIBS 10830LIBS="-ldl $LIBS" 10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833 10834/* Override any GCC internal prototype to avoid an error. 10835 Use char because int might match the return type of a GCC 10836 builtin and then its argument prototype would still apply. */ 10837#ifdef __cplusplus 10838extern "C" 10839#endif 10840char dlopen (); 10841int 10842main () 10843{ 10844return dlopen (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849if ac_fn_c_try_link "$LINENO"; then : 10850 ac_cv_lib_dl_dlopen=yes 10851else 10852 ac_cv_lib_dl_dlopen=no 10853fi 10854rm -f core conftest.err conftest.$ac_objext \ 10855 conftest$ac_exeext conftest.$ac_ext 10856LIBS=$ac_check_lib_save_LIBS 10857fi 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10859$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10860if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10862else 10863 10864 lt_cv_dlopen="dyld" 10865 lt_cv_dlopen_libs= 10866 lt_cv_dlopen_self=yes 10867 10868fi 10869 10870 ;; 10871 10872 *) 10873 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10874if test "x$ac_cv_func_shl_load" = xyes; then : 10875 lt_cv_dlopen="shl_load" 10876else 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10878$as_echo_n "checking for shl_load in -ldld... " >&6; } 10879if ${ac_cv_lib_dld_shl_load+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 ac_check_lib_save_LIBS=$LIBS 10883LIBS="-ldld $LIBS" 10884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885/* end confdefs.h. */ 10886 10887/* Override any GCC internal prototype to avoid an error. 10888 Use char because int might match the return type of a GCC 10889 builtin and then its argument prototype would still apply. */ 10890#ifdef __cplusplus 10891extern "C" 10892#endif 10893char shl_load (); 10894int 10895main () 10896{ 10897return shl_load (); 10898 ; 10899 return 0; 10900} 10901_ACEOF 10902if ac_fn_c_try_link "$LINENO"; then : 10903 ac_cv_lib_dld_shl_load=yes 10904else 10905 ac_cv_lib_dld_shl_load=no 10906fi 10907rm -f core conftest.err conftest.$ac_objext \ 10908 conftest$ac_exeext conftest.$ac_ext 10909LIBS=$ac_check_lib_save_LIBS 10910fi 10911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10912$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10913if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10915else 10916 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10917if test "x$ac_cv_func_dlopen" = xyes; then : 10918 lt_cv_dlopen="dlopen" 10919else 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10921$as_echo_n "checking for dlopen in -ldl... " >&6; } 10922if ${ac_cv_lib_dl_dlopen+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924else 10925 ac_check_lib_save_LIBS=$LIBS 10926LIBS="-ldl $LIBS" 10927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10928/* end confdefs.h. */ 10929 10930/* Override any GCC internal prototype to avoid an error. 10931 Use char because int might match the return type of a GCC 10932 builtin and then its argument prototype would still apply. */ 10933#ifdef __cplusplus 10934extern "C" 10935#endif 10936char dlopen (); 10937int 10938main () 10939{ 10940return dlopen (); 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945if ac_fn_c_try_link "$LINENO"; then : 10946 ac_cv_lib_dl_dlopen=yes 10947else 10948 ac_cv_lib_dl_dlopen=no 10949fi 10950rm -f core conftest.err conftest.$ac_objext \ 10951 conftest$ac_exeext conftest.$ac_ext 10952LIBS=$ac_check_lib_save_LIBS 10953fi 10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10955$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10956if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10958else 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10960$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10961if ${ac_cv_lib_svld_dlopen+:} false; then : 10962 $as_echo_n "(cached) " >&6 10963else 10964 ac_check_lib_save_LIBS=$LIBS 10965LIBS="-lsvld $LIBS" 10966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10967/* end confdefs.h. */ 10968 10969/* Override any GCC internal prototype to avoid an error. 10970 Use char because int might match the return type of a GCC 10971 builtin and then its argument prototype would still apply. */ 10972#ifdef __cplusplus 10973extern "C" 10974#endif 10975char dlopen (); 10976int 10977main () 10978{ 10979return dlopen (); 10980 ; 10981 return 0; 10982} 10983_ACEOF 10984if ac_fn_c_try_link "$LINENO"; then : 10985 ac_cv_lib_svld_dlopen=yes 10986else 10987 ac_cv_lib_svld_dlopen=no 10988fi 10989rm -f core conftest.err conftest.$ac_objext \ 10990 conftest$ac_exeext conftest.$ac_ext 10991LIBS=$ac_check_lib_save_LIBS 10992fi 10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10994$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10995if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10997else 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10999$as_echo_n "checking for dld_link in -ldld... " >&6; } 11000if ${ac_cv_lib_dld_dld_link+:} false; then : 11001 $as_echo_n "(cached) " >&6 11002else 11003 ac_check_lib_save_LIBS=$LIBS 11004LIBS="-ldld $LIBS" 11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11006/* end confdefs.h. */ 11007 11008/* Override any GCC internal prototype to avoid an error. 11009 Use char because int might match the return type of a GCC 11010 builtin and then its argument prototype would still apply. */ 11011#ifdef __cplusplus 11012extern "C" 11013#endif 11014char dld_link (); 11015int 11016main () 11017{ 11018return dld_link (); 11019 ; 11020 return 0; 11021} 11022_ACEOF 11023if ac_fn_c_try_link "$LINENO"; then : 11024 ac_cv_lib_dld_dld_link=yes 11025else 11026 ac_cv_lib_dld_dld_link=no 11027fi 11028rm -f core conftest.err conftest.$ac_objext \ 11029 conftest$ac_exeext conftest.$ac_ext 11030LIBS=$ac_check_lib_save_LIBS 11031fi 11032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11033$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11034if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11035 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11036fi 11037 11038 11039fi 11040 11041 11042fi 11043 11044 11045fi 11046 11047 11048fi 11049 11050 11051fi 11052 11053 ;; 11054 esac 11055 11056 if test "x$lt_cv_dlopen" != xno; then 11057 enable_dlopen=yes 11058 else 11059 enable_dlopen=no 11060 fi 11061 11062 case $lt_cv_dlopen in 11063 dlopen) 11064 save_CPPFLAGS="$CPPFLAGS" 11065 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11066 11067 save_LDFLAGS="$LDFLAGS" 11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11069 11070 save_LIBS="$LIBS" 11071 LIBS="$lt_cv_dlopen_libs $LIBS" 11072 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11074$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11075if ${lt_cv_dlopen_self+:} false; then : 11076 $as_echo_n "(cached) " >&6 11077else 11078 if test "$cross_compiling" = yes; then : 11079 lt_cv_dlopen_self=cross 11080else 11081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11082 lt_status=$lt_dlunknown 11083 cat > conftest.$ac_ext <<_LT_EOF 11084#line $LINENO "configure" 11085#include "confdefs.h" 11086 11087#if HAVE_DLFCN_H 11088#include <dlfcn.h> 11089#endif 11090 11091#include <stdio.h> 11092 11093#ifdef RTLD_GLOBAL 11094# define LT_DLGLOBAL RTLD_GLOBAL 11095#else 11096# ifdef DL_GLOBAL 11097# define LT_DLGLOBAL DL_GLOBAL 11098# else 11099# define LT_DLGLOBAL 0 11100# endif 11101#endif 11102 11103/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11104 find out it does not work in some platform. */ 11105#ifndef LT_DLLAZY_OR_NOW 11106# ifdef RTLD_LAZY 11107# define LT_DLLAZY_OR_NOW RTLD_LAZY 11108# else 11109# ifdef DL_LAZY 11110# define LT_DLLAZY_OR_NOW DL_LAZY 11111# else 11112# ifdef RTLD_NOW 11113# define LT_DLLAZY_OR_NOW RTLD_NOW 11114# else 11115# ifdef DL_NOW 11116# define LT_DLLAZY_OR_NOW DL_NOW 11117# else 11118# define LT_DLLAZY_OR_NOW 0 11119# endif 11120# endif 11121# endif 11122# endif 11123#endif 11124 11125/* When -fvisbility=hidden is used, assume the code has been annotated 11126 correspondingly for the symbols needed. */ 11127#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11128int fnord () __attribute__((visibility("default"))); 11129#endif 11130 11131int fnord () { return 42; } 11132int main () 11133{ 11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11135 int status = $lt_dlunknown; 11136 11137 if (self) 11138 { 11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11140 else 11141 { 11142 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11143 else puts (dlerror ()); 11144 } 11145 /* dlclose (self); */ 11146 } 11147 else 11148 puts (dlerror ()); 11149 11150 return status; 11151} 11152_LT_EOF 11153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11154 (eval $ac_link) 2>&5 11155 ac_status=$? 11156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11157 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11158 (./conftest; exit; ) >&5 2>/dev/null 11159 lt_status=$? 11160 case x$lt_status in 11161 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11162 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11163 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11164 esac 11165 else : 11166 # compilation failed 11167 lt_cv_dlopen_self=no 11168 fi 11169fi 11170rm -fr conftest* 11171 11172 11173fi 11174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11175$as_echo "$lt_cv_dlopen_self" >&6; } 11176 11177 if test "x$lt_cv_dlopen_self" = xyes; then 11178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11180$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11181if ${lt_cv_dlopen_self_static+:} false; then : 11182 $as_echo_n "(cached) " >&6 11183else 11184 if test "$cross_compiling" = yes; then : 11185 lt_cv_dlopen_self_static=cross 11186else 11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11188 lt_status=$lt_dlunknown 11189 cat > conftest.$ac_ext <<_LT_EOF 11190#line $LINENO "configure" 11191#include "confdefs.h" 11192 11193#if HAVE_DLFCN_H 11194#include <dlfcn.h> 11195#endif 11196 11197#include <stdio.h> 11198 11199#ifdef RTLD_GLOBAL 11200# define LT_DLGLOBAL RTLD_GLOBAL 11201#else 11202# ifdef DL_GLOBAL 11203# define LT_DLGLOBAL DL_GLOBAL 11204# else 11205# define LT_DLGLOBAL 0 11206# endif 11207#endif 11208 11209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11210 find out it does not work in some platform. */ 11211#ifndef LT_DLLAZY_OR_NOW 11212# ifdef RTLD_LAZY 11213# define LT_DLLAZY_OR_NOW RTLD_LAZY 11214# else 11215# ifdef DL_LAZY 11216# define LT_DLLAZY_OR_NOW DL_LAZY 11217# else 11218# ifdef RTLD_NOW 11219# define LT_DLLAZY_OR_NOW RTLD_NOW 11220# else 11221# ifdef DL_NOW 11222# define LT_DLLAZY_OR_NOW DL_NOW 11223# else 11224# define LT_DLLAZY_OR_NOW 0 11225# endif 11226# endif 11227# endif 11228# endif 11229#endif 11230 11231/* When -fvisbility=hidden is used, assume the code has been annotated 11232 correspondingly for the symbols needed. */ 11233#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11234int fnord () __attribute__((visibility("default"))); 11235#endif 11236 11237int fnord () { return 42; } 11238int main () 11239{ 11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11241 int status = $lt_dlunknown; 11242 11243 if (self) 11244 { 11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11246 else 11247 { 11248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11249 else puts (dlerror ()); 11250 } 11251 /* dlclose (self); */ 11252 } 11253 else 11254 puts (dlerror ()); 11255 11256 return status; 11257} 11258_LT_EOF 11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11260 (eval $ac_link) 2>&5 11261 ac_status=$? 11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11264 (./conftest; exit; ) >&5 2>/dev/null 11265 lt_status=$? 11266 case x$lt_status in 11267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11270 esac 11271 else : 11272 # compilation failed 11273 lt_cv_dlopen_self_static=no 11274 fi 11275fi 11276rm -fr conftest* 11277 11278 11279fi 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11281$as_echo "$lt_cv_dlopen_self_static" >&6; } 11282 fi 11283 11284 CPPFLAGS="$save_CPPFLAGS" 11285 LDFLAGS="$save_LDFLAGS" 11286 LIBS="$save_LIBS" 11287 ;; 11288 esac 11289 11290 case $lt_cv_dlopen_self in 11291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11292 *) enable_dlopen_self=unknown ;; 11293 esac 11294 11295 case $lt_cv_dlopen_self_static in 11296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11297 *) enable_dlopen_self_static=unknown ;; 11298 esac 11299fi 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317striplib= 11318old_striplib= 11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11320$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11321if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11322 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11323 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11325$as_echo "yes" >&6; } 11326else 11327# FIXME - insert some real tests, host_os isn't really good enough 11328 case $host_os in 11329 darwin*) 11330 if test -n "$STRIP" ; then 11331 striplib="$STRIP -x" 11332 old_striplib="$STRIP -S" 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11334$as_echo "yes" >&6; } 11335 else 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11337$as_echo "no" >&6; } 11338 fi 11339 ;; 11340 *) 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11342$as_echo "no" >&6; } 11343 ;; 11344 esac 11345fi 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 # Report which library types will actually be built 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11360$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11362$as_echo "$can_build_shared" >&6; } 11363 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11365$as_echo_n "checking whether to build shared libraries... " >&6; } 11366 test "$can_build_shared" = "no" && enable_shared=no 11367 11368 # On AIX, shared libraries and static libraries use the same namespace, and 11369 # are all built from PIC. 11370 case $host_os in 11371 aix3*) 11372 test "$enable_shared" = yes && enable_static=no 11373 if test -n "$RANLIB"; then 11374 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11375 postinstall_cmds='$RANLIB $lib' 11376 fi 11377 ;; 11378 11379 aix[4-9]*) 11380 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11381 test "$enable_shared" = yes && enable_static=no 11382 fi 11383 ;; 11384 esac 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11386$as_echo "$enable_shared" >&6; } 11387 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11389$as_echo_n "checking whether to build static libraries... " >&6; } 11390 # Make sure either enable_shared or enable_static is yes. 11391 test "$enable_shared" = yes || enable_static=yes 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11393$as_echo "$enable_static" >&6; } 11394 11395 11396 11397 11398fi 11399ac_ext=c 11400ac_cpp='$CPP $CPPFLAGS' 11401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11403ac_compiler_gnu=$ac_cv_c_compiler_gnu 11404 11405CC="$lt_save_CC" 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 ac_config_commands="$ac_config_commands libtool" 11422 11423 11424 11425 11426# Only expand once: 11427 11428 11429 11430# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11443$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11444if ${ac_cv_prog_cc_c99+:} false; then : 11445 $as_echo_n "(cached) " >&6 11446else 11447 ac_cv_prog_cc_c99=no 11448ac_save_CC=$CC 11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11450/* end confdefs.h. */ 11451#include <stdarg.h> 11452#include <stdbool.h> 11453#include <stdlib.h> 11454#include <wchar.h> 11455#include <stdio.h> 11456 11457// Check varargs macros. These examples are taken from C99 6.10.3.5. 11458#define debug(...) fprintf (stderr, __VA_ARGS__) 11459#define showlist(...) puts (#__VA_ARGS__) 11460#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11461static void 11462test_varargs_macros (void) 11463{ 11464 int x = 1234; 11465 int y = 5678; 11466 debug ("Flag"); 11467 debug ("X = %d\n", x); 11468 showlist (The first, second, and third items.); 11469 report (x>y, "x is %d but y is %d", x, y); 11470} 11471 11472// Check long long types. 11473#define BIG64 18446744073709551615ull 11474#define BIG32 4294967295ul 11475#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11476#if !BIG_OK 11477 your preprocessor is broken; 11478#endif 11479#if BIG_OK 11480#else 11481 your preprocessor is broken; 11482#endif 11483static long long int bignum = -9223372036854775807LL; 11484static unsigned long long int ubignum = BIG64; 11485 11486struct incomplete_array 11487{ 11488 int datasize; 11489 double data[]; 11490}; 11491 11492struct named_init { 11493 int number; 11494 const wchar_t *name; 11495 double average; 11496}; 11497 11498typedef const char *ccp; 11499 11500static inline int 11501test_restrict (ccp restrict text) 11502{ 11503 // See if C++-style comments work. 11504 // Iterate through items via the restricted pointer. 11505 // Also check for declarations in for loops. 11506 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11507 continue; 11508 return 0; 11509} 11510 11511// Check varargs and va_copy. 11512static void 11513test_varargs (const char *format, ...) 11514{ 11515 va_list args; 11516 va_start (args, format); 11517 va_list args_copy; 11518 va_copy (args_copy, args); 11519 11520 const char *str; 11521 int number; 11522 float fnumber; 11523 11524 while (*format) 11525 { 11526 switch (*format++) 11527 { 11528 case 's': // string 11529 str = va_arg (args_copy, const char *); 11530 break; 11531 case 'd': // int 11532 number = va_arg (args_copy, int); 11533 break; 11534 case 'f': // float 11535 fnumber = va_arg (args_copy, double); 11536 break; 11537 default: 11538 break; 11539 } 11540 } 11541 va_end (args_copy); 11542 va_end (args); 11543} 11544 11545int 11546main () 11547{ 11548 11549 // Check bool. 11550 _Bool success = false; 11551 11552 // Check restrict. 11553 if (test_restrict ("String literal") == 0) 11554 success = true; 11555 char *restrict newvar = "Another string"; 11556 11557 // Check varargs. 11558 test_varargs ("s, d' f .", "string", 65, 34.234); 11559 test_varargs_macros (); 11560 11561 // Check flexible array members. 11562 struct incomplete_array *ia = 11563 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11564 ia->datasize = 10; 11565 for (int i = 0; i < ia->datasize; ++i) 11566 ia->data[i] = i * 1.234; 11567 11568 // Check named initializers. 11569 struct named_init ni = { 11570 .number = 34, 11571 .name = L"Test wide string", 11572 .average = 543.34343, 11573 }; 11574 11575 ni.number = 58; 11576 11577 int dynamic_array[ni.number]; 11578 dynamic_array[ni.number - 1] = 543; 11579 11580 // work around unused variable warnings 11581 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11582 || dynamic_array[ni.number - 1] != 543); 11583 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11589do 11590 CC="$ac_save_CC $ac_arg" 11591 if ac_fn_c_try_compile "$LINENO"; then : 11592 ac_cv_prog_cc_c99=$ac_arg 11593fi 11594rm -f core conftest.err conftest.$ac_objext 11595 test "x$ac_cv_prog_cc_c99" != "xno" && break 11596done 11597rm -f conftest.$ac_ext 11598CC=$ac_save_CC 11599 11600fi 11601# AC_CACHE_VAL 11602case "x$ac_cv_prog_cc_c99" in 11603 x) 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11605$as_echo "none needed" >&6; } ;; 11606 xno) 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11608$as_echo "unsupported" >&6; } ;; 11609 *) 11610 CC="$CC $ac_cv_prog_cc_c99" 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11612$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11613esac 11614if test "x$ac_cv_prog_cc_c99" != xno; then : 11615 11616fi 11617 11618 11619 11620 11621 11622 11623ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11624if test "x$ac_cv_have_decl___clang__" = xyes; then : 11625 CLANGCC="yes" 11626else 11627 CLANGCC="no" 11628fi 11629 11630ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11631if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11632 INTELCC="yes" 11633else 11634 INTELCC="no" 11635fi 11636 11637ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11638if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11639 SUNCC="yes" 11640else 11641 SUNCC="no" 11642fi 11643 11644 11645 11646 11647if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11648 if test -n "$ac_tool_prefix"; then 11649 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11650set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11652$as_echo_n "checking for $ac_word... " >&6; } 11653if ${ac_cv_path_PKG_CONFIG+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 case $PKG_CONFIG in 11657 [\\/]* | ?:[\\/]*) 11658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11659 ;; 11660 *) 11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11662for as_dir in $PATH 11663do 11664 IFS=$as_save_IFS 11665 test -z "$as_dir" && as_dir=. 11666 for ac_exec_ext in '' $ac_executable_extensions; do 11667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11670 break 2 11671 fi 11672done 11673 done 11674IFS=$as_save_IFS 11675 11676 ;; 11677esac 11678fi 11679PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11680if test -n "$PKG_CONFIG"; then 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11682$as_echo "$PKG_CONFIG" >&6; } 11683else 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685$as_echo "no" >&6; } 11686fi 11687 11688 11689fi 11690if test -z "$ac_cv_path_PKG_CONFIG"; then 11691 ac_pt_PKG_CONFIG=$PKG_CONFIG 11692 # Extract the first word of "pkg-config", so it can be a program name with args. 11693set dummy pkg-config; ac_word=$2 11694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11695$as_echo_n "checking for $ac_word... " >&6; } 11696if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698else 11699 case $ac_pt_PKG_CONFIG in 11700 [\\/]* | ?:[\\/]*) 11701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11702 ;; 11703 *) 11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11705for as_dir in $PATH 11706do 11707 IFS=$as_save_IFS 11708 test -z "$as_dir" && as_dir=. 11709 for ac_exec_ext in '' $ac_executable_extensions; do 11710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11713 break 2 11714 fi 11715done 11716 done 11717IFS=$as_save_IFS 11718 11719 ;; 11720esac 11721fi 11722ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11723if test -n "$ac_pt_PKG_CONFIG"; then 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11725$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11726else 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11728$as_echo "no" >&6; } 11729fi 11730 11731 if test "x$ac_pt_PKG_CONFIG" = x; then 11732 PKG_CONFIG="" 11733 else 11734 case $cross_compiling:$ac_tool_warned in 11735yes:) 11736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11738ac_tool_warned=yes ;; 11739esac 11740 PKG_CONFIG=$ac_pt_PKG_CONFIG 11741 fi 11742else 11743 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11744fi 11745 11746fi 11747if test -n "$PKG_CONFIG"; then 11748 _pkg_min_version=0.9.0 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11750$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11751 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11753$as_echo "yes" >&6; } 11754 else 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11756$as_echo "no" >&6; } 11757 PKG_CONFIG="" 11758 fi 11759 11760fi 11761 11762 11763 11764 11765 11766# Check whether --enable-selective-werror was given. 11767if test "${enable_selective_werror+set}" = set; then : 11768 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11769else 11770 SELECTIVE_WERROR=yes 11771fi 11772 11773 11774 11775 11776 11777# -v is too short to test reliably with XORG_TESTSET_CFLAG 11778if test "x$SUNCC" = "xyes"; then 11779 BASE_CFLAGS="-v" 11780else 11781 BASE_CFLAGS="" 11782fi 11783 11784# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798xorg_testset_save_CFLAGS="$CFLAGS" 11799 11800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11805 $as_echo_n "(cached) " >&6 11806else 11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11808/* end confdefs.h. */ 11809int i; 11810_ACEOF 11811if ac_fn_c_try_compile "$LINENO"; then : 11812 xorg_cv_cc_flag_unknown_warning_option=yes 11813else 11814 xorg_cv_cc_flag_unknown_warning_option=no 11815fi 11816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11817fi 11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11821 CFLAGS="$xorg_testset_save_CFLAGS" 11822fi 11823 11824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11827 fi 11828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11832 $as_echo_n "(cached) " >&6 11833else 11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11835/* end confdefs.h. */ 11836int i; 11837_ACEOF 11838if ac_fn_c_try_compile "$LINENO"; then : 11839 xorg_cv_cc_flag_unused_command_line_argument=yes 11840else 11841 xorg_cv_cc_flag_unused_command_line_argument=no 11842fi 11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11844fi 11845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11848 CFLAGS="$xorg_testset_save_CFLAGS" 11849fi 11850 11851found="no" 11852 11853 if test $found = "no" ; then 11854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11856 fi 11857 11858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11860 fi 11861 11862 CFLAGS="$CFLAGS -Wall" 11863 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11865$as_echo_n "checking if $CC supports -Wall... " >&6; } 11866 cacheid=xorg_cv_cc_flag__Wall 11867 if eval \${$cacheid+:} false; then : 11868 $as_echo_n "(cached) " >&6 11869else 11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11871/* end confdefs.h. */ 11872int i; 11873int 11874main () 11875{ 11876 11877 ; 11878 return 0; 11879} 11880_ACEOF 11881if ac_fn_c_try_link "$LINENO"; then : 11882 eval $cacheid=yes 11883else 11884 eval $cacheid=no 11885fi 11886rm -f core conftest.err conftest.$ac_objext \ 11887 conftest$ac_exeext conftest.$ac_ext 11888fi 11889 11890 11891 CFLAGS="$xorg_testset_save_CFLAGS" 11892 11893 eval supported=\$$cacheid 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11895$as_echo "$supported" >&6; } 11896 if test "$supported" = "yes" ; then 11897 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11898 found="yes" 11899 fi 11900 fi 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916xorg_testset_save_CFLAGS="$CFLAGS" 11917 11918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11923 $as_echo_n "(cached) " >&6 11924else 11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11926/* end confdefs.h. */ 11927int i; 11928_ACEOF 11929if ac_fn_c_try_compile "$LINENO"; then : 11930 xorg_cv_cc_flag_unknown_warning_option=yes 11931else 11932 xorg_cv_cc_flag_unknown_warning_option=no 11933fi 11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11935fi 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11939 CFLAGS="$xorg_testset_save_CFLAGS" 11940fi 11941 11942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11945 fi 11946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11950 $as_echo_n "(cached) " >&6 11951else 11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11953/* end confdefs.h. */ 11954int i; 11955_ACEOF 11956if ac_fn_c_try_compile "$LINENO"; then : 11957 xorg_cv_cc_flag_unused_command_line_argument=yes 11958else 11959 xorg_cv_cc_flag_unused_command_line_argument=no 11960fi 11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11962fi 11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11966 CFLAGS="$xorg_testset_save_CFLAGS" 11967fi 11968 11969found="no" 11970 11971 if test $found = "no" ; then 11972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11974 fi 11975 11976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11978 fi 11979 11980 CFLAGS="$CFLAGS -Wpointer-arith" 11981 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11983$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11984 cacheid=xorg_cv_cc_flag__Wpointer_arith 11985 if eval \${$cacheid+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987else 11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11989/* end confdefs.h. */ 11990int i; 11991int 11992main () 11993{ 11994 11995 ; 11996 return 0; 11997} 11998_ACEOF 11999if ac_fn_c_try_link "$LINENO"; then : 12000 eval $cacheid=yes 12001else 12002 eval $cacheid=no 12003fi 12004rm -f core conftest.err conftest.$ac_objext \ 12005 conftest$ac_exeext conftest.$ac_ext 12006fi 12007 12008 12009 CFLAGS="$xorg_testset_save_CFLAGS" 12010 12011 eval supported=\$$cacheid 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12013$as_echo "$supported" >&6; } 12014 if test "$supported" = "yes" ; then 12015 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12016 found="yes" 12017 fi 12018 fi 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034xorg_testset_save_CFLAGS="$CFLAGS" 12035 12036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12041 $as_echo_n "(cached) " >&6 12042else 12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12044/* end confdefs.h. */ 12045int i; 12046_ACEOF 12047if ac_fn_c_try_compile "$LINENO"; then : 12048 xorg_cv_cc_flag_unknown_warning_option=yes 12049else 12050 xorg_cv_cc_flag_unknown_warning_option=no 12051fi 12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12053fi 12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12057 CFLAGS="$xorg_testset_save_CFLAGS" 12058fi 12059 12060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12063 fi 12064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12068 $as_echo_n "(cached) " >&6 12069else 12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12071/* end confdefs.h. */ 12072int i; 12073_ACEOF 12074if ac_fn_c_try_compile "$LINENO"; then : 12075 xorg_cv_cc_flag_unused_command_line_argument=yes 12076else 12077 xorg_cv_cc_flag_unused_command_line_argument=no 12078fi 12079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12080fi 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12084 CFLAGS="$xorg_testset_save_CFLAGS" 12085fi 12086 12087found="no" 12088 12089 if test $found = "no" ; then 12090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12092 fi 12093 12094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12096 fi 12097 12098 CFLAGS="$CFLAGS -Wmissing-declarations" 12099 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12101$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12102 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12103 if eval \${$cacheid+:} false; then : 12104 $as_echo_n "(cached) " >&6 12105else 12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12107/* end confdefs.h. */ 12108int i; 12109int 12110main () 12111{ 12112 12113 ; 12114 return 0; 12115} 12116_ACEOF 12117if ac_fn_c_try_link "$LINENO"; then : 12118 eval $cacheid=yes 12119else 12120 eval $cacheid=no 12121fi 12122rm -f core conftest.err conftest.$ac_objext \ 12123 conftest$ac_exeext conftest.$ac_ext 12124fi 12125 12126 12127 CFLAGS="$xorg_testset_save_CFLAGS" 12128 12129 eval supported=\$$cacheid 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12131$as_echo "$supported" >&6; } 12132 if test "$supported" = "yes" ; then 12133 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12134 found="yes" 12135 fi 12136 fi 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152xorg_testset_save_CFLAGS="$CFLAGS" 12153 12154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12162/* end confdefs.h. */ 12163int i; 12164_ACEOF 12165if ac_fn_c_try_compile "$LINENO"; then : 12166 xorg_cv_cc_flag_unknown_warning_option=yes 12167else 12168 xorg_cv_cc_flag_unknown_warning_option=no 12169fi 12170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12171fi 12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12175 CFLAGS="$xorg_testset_save_CFLAGS" 12176fi 12177 12178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12181 fi 12182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12186 $as_echo_n "(cached) " >&6 12187else 12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190int i; 12191_ACEOF 12192if ac_fn_c_try_compile "$LINENO"; then : 12193 xorg_cv_cc_flag_unused_command_line_argument=yes 12194else 12195 xorg_cv_cc_flag_unused_command_line_argument=no 12196fi 12197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12198fi 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12202 CFLAGS="$xorg_testset_save_CFLAGS" 12203fi 12204 12205found="no" 12206 12207 if test $found = "no" ; then 12208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12210 fi 12211 12212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12214 fi 12215 12216 CFLAGS="$CFLAGS -Wformat=2" 12217 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12219$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12220 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12221 if eval \${$cacheid+:} false; then : 12222 $as_echo_n "(cached) " >&6 12223else 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226int i; 12227int 12228main () 12229{ 12230 12231 ; 12232 return 0; 12233} 12234_ACEOF 12235if ac_fn_c_try_link "$LINENO"; then : 12236 eval $cacheid=yes 12237else 12238 eval $cacheid=no 12239fi 12240rm -f core conftest.err conftest.$ac_objext \ 12241 conftest$ac_exeext conftest.$ac_ext 12242fi 12243 12244 12245 CFLAGS="$xorg_testset_save_CFLAGS" 12246 12247 eval supported=\$$cacheid 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12249$as_echo "$supported" >&6; } 12250 if test "$supported" = "yes" ; then 12251 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12252 found="yes" 12253 fi 12254 fi 12255 12256 if test $found = "no" ; then 12257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12259 fi 12260 12261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12263 fi 12264 12265 CFLAGS="$CFLAGS -Wformat" 12266 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12268$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12269 cacheid=xorg_cv_cc_flag__Wformat 12270 if eval \${$cacheid+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275int i; 12276int 12277main () 12278{ 12279 12280 ; 12281 return 0; 12282} 12283_ACEOF 12284if ac_fn_c_try_link "$LINENO"; then : 12285 eval $cacheid=yes 12286else 12287 eval $cacheid=no 12288fi 12289rm -f core conftest.err conftest.$ac_objext \ 12290 conftest$ac_exeext conftest.$ac_ext 12291fi 12292 12293 12294 CFLAGS="$xorg_testset_save_CFLAGS" 12295 12296 eval supported=\$$cacheid 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12298$as_echo "$supported" >&6; } 12299 if test "$supported" = "yes" ; then 12300 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12301 found="yes" 12302 fi 12303 fi 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321xorg_testset_save_CFLAGS="$CFLAGS" 12322 12323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329else 12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12331/* end confdefs.h. */ 12332int i; 12333_ACEOF 12334if ac_fn_c_try_compile "$LINENO"; then : 12335 xorg_cv_cc_flag_unknown_warning_option=yes 12336else 12337 xorg_cv_cc_flag_unknown_warning_option=no 12338fi 12339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12340fi 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12344 CFLAGS="$xorg_testset_save_CFLAGS" 12345fi 12346 12347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12350 fi 12351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12355 $as_echo_n "(cached) " >&6 12356else 12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359int i; 12360_ACEOF 12361if ac_fn_c_try_compile "$LINENO"; then : 12362 xorg_cv_cc_flag_unused_command_line_argument=yes 12363else 12364 xorg_cv_cc_flag_unused_command_line_argument=no 12365fi 12366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12367fi 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12371 CFLAGS="$xorg_testset_save_CFLAGS" 12372fi 12373 12374found="no" 12375 12376 if test $found = "no" ; then 12377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12379 fi 12380 12381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12383 fi 12384 12385 CFLAGS="$CFLAGS -Wstrict-prototypes" 12386 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12388$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12389 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12390 if eval \${$cacheid+:} false; then : 12391 $as_echo_n "(cached) " >&6 12392else 12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394/* end confdefs.h. */ 12395int i; 12396int 12397main () 12398{ 12399 12400 ; 12401 return 0; 12402} 12403_ACEOF 12404if ac_fn_c_try_link "$LINENO"; then : 12405 eval $cacheid=yes 12406else 12407 eval $cacheid=no 12408fi 12409rm -f core conftest.err conftest.$ac_objext \ 12410 conftest$ac_exeext conftest.$ac_ext 12411fi 12412 12413 12414 CFLAGS="$xorg_testset_save_CFLAGS" 12415 12416 eval supported=\$$cacheid 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12418$as_echo "$supported" >&6; } 12419 if test "$supported" = "yes" ; then 12420 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12421 found="yes" 12422 fi 12423 fi 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439xorg_testset_save_CFLAGS="$CFLAGS" 12440 12441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12446 $as_echo_n "(cached) " >&6 12447else 12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12449/* end confdefs.h. */ 12450int i; 12451_ACEOF 12452if ac_fn_c_try_compile "$LINENO"; then : 12453 xorg_cv_cc_flag_unknown_warning_option=yes 12454else 12455 xorg_cv_cc_flag_unknown_warning_option=no 12456fi 12457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12458fi 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12462 CFLAGS="$xorg_testset_save_CFLAGS" 12463fi 12464 12465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12468 fi 12469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12476/* end confdefs.h. */ 12477int i; 12478_ACEOF 12479if ac_fn_c_try_compile "$LINENO"; then : 12480 xorg_cv_cc_flag_unused_command_line_argument=yes 12481else 12482 xorg_cv_cc_flag_unused_command_line_argument=no 12483fi 12484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12485fi 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12489 CFLAGS="$xorg_testset_save_CFLAGS" 12490fi 12491 12492found="no" 12493 12494 if test $found = "no" ; then 12495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12497 fi 12498 12499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12501 fi 12502 12503 CFLAGS="$CFLAGS -Wmissing-prototypes" 12504 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12506$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12507 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12508 if eval \${$cacheid+:} false; then : 12509 $as_echo_n "(cached) " >&6 12510else 12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513int i; 12514int 12515main () 12516{ 12517 12518 ; 12519 return 0; 12520} 12521_ACEOF 12522if ac_fn_c_try_link "$LINENO"; then : 12523 eval $cacheid=yes 12524else 12525 eval $cacheid=no 12526fi 12527rm -f core conftest.err conftest.$ac_objext \ 12528 conftest$ac_exeext conftest.$ac_ext 12529fi 12530 12531 12532 CFLAGS="$xorg_testset_save_CFLAGS" 12533 12534 eval supported=\$$cacheid 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12536$as_echo "$supported" >&6; } 12537 if test "$supported" = "yes" ; then 12538 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12539 found="yes" 12540 fi 12541 fi 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557xorg_testset_save_CFLAGS="$CFLAGS" 12558 12559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12564 $as_echo_n "(cached) " >&6 12565else 12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568int i; 12569_ACEOF 12570if ac_fn_c_try_compile "$LINENO"; then : 12571 xorg_cv_cc_flag_unknown_warning_option=yes 12572else 12573 xorg_cv_cc_flag_unknown_warning_option=no 12574fi 12575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12576fi 12577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12580 CFLAGS="$xorg_testset_save_CFLAGS" 12581fi 12582 12583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12586 fi 12587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12591 $as_echo_n "(cached) " >&6 12592else 12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12594/* end confdefs.h. */ 12595int i; 12596_ACEOF 12597if ac_fn_c_try_compile "$LINENO"; then : 12598 xorg_cv_cc_flag_unused_command_line_argument=yes 12599else 12600 xorg_cv_cc_flag_unused_command_line_argument=no 12601fi 12602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12603fi 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12607 CFLAGS="$xorg_testset_save_CFLAGS" 12608fi 12609 12610found="no" 12611 12612 if test $found = "no" ; then 12613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12615 fi 12616 12617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12619 fi 12620 12621 CFLAGS="$CFLAGS -Wnested-externs" 12622 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12624$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12625 cacheid=xorg_cv_cc_flag__Wnested_externs 12626 if eval \${$cacheid+:} false; then : 12627 $as_echo_n "(cached) " >&6 12628else 12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12630/* end confdefs.h. */ 12631int i; 12632int 12633main () 12634{ 12635 12636 ; 12637 return 0; 12638} 12639_ACEOF 12640if ac_fn_c_try_link "$LINENO"; then : 12641 eval $cacheid=yes 12642else 12643 eval $cacheid=no 12644fi 12645rm -f core conftest.err conftest.$ac_objext \ 12646 conftest$ac_exeext conftest.$ac_ext 12647fi 12648 12649 12650 CFLAGS="$xorg_testset_save_CFLAGS" 12651 12652 eval supported=\$$cacheid 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12654$as_echo "$supported" >&6; } 12655 if test "$supported" = "yes" ; then 12656 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12657 found="yes" 12658 fi 12659 fi 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675xorg_testset_save_CFLAGS="$CFLAGS" 12676 12677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12682 $as_echo_n "(cached) " >&6 12683else 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686int i; 12687_ACEOF 12688if ac_fn_c_try_compile "$LINENO"; then : 12689 xorg_cv_cc_flag_unknown_warning_option=yes 12690else 12691 xorg_cv_cc_flag_unknown_warning_option=no 12692fi 12693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12694fi 12695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12698 CFLAGS="$xorg_testset_save_CFLAGS" 12699fi 12700 12701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12704 fi 12705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12709 $as_echo_n "(cached) " >&6 12710else 12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712/* end confdefs.h. */ 12713int i; 12714_ACEOF 12715if ac_fn_c_try_compile "$LINENO"; then : 12716 xorg_cv_cc_flag_unused_command_line_argument=yes 12717else 12718 xorg_cv_cc_flag_unused_command_line_argument=no 12719fi 12720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12721fi 12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12725 CFLAGS="$xorg_testset_save_CFLAGS" 12726fi 12727 12728found="no" 12729 12730 if test $found = "no" ; then 12731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12733 fi 12734 12735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12737 fi 12738 12739 CFLAGS="$CFLAGS -Wbad-function-cast" 12740 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12742$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12743 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12744 if eval \${$cacheid+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12748/* end confdefs.h. */ 12749int i; 12750int 12751main () 12752{ 12753 12754 ; 12755 return 0; 12756} 12757_ACEOF 12758if ac_fn_c_try_link "$LINENO"; then : 12759 eval $cacheid=yes 12760else 12761 eval $cacheid=no 12762fi 12763rm -f core conftest.err conftest.$ac_objext \ 12764 conftest$ac_exeext conftest.$ac_ext 12765fi 12766 12767 12768 CFLAGS="$xorg_testset_save_CFLAGS" 12769 12770 eval supported=\$$cacheid 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12772$as_echo "$supported" >&6; } 12773 if test "$supported" = "yes" ; then 12774 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12775 found="yes" 12776 fi 12777 fi 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793xorg_testset_save_CFLAGS="$CFLAGS" 12794 12795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12800 $as_echo_n "(cached) " >&6 12801else 12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12803/* end confdefs.h. */ 12804int i; 12805_ACEOF 12806if ac_fn_c_try_compile "$LINENO"; then : 12807 xorg_cv_cc_flag_unknown_warning_option=yes 12808else 12809 xorg_cv_cc_flag_unknown_warning_option=no 12810fi 12811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12812fi 12813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12816 CFLAGS="$xorg_testset_save_CFLAGS" 12817fi 12818 12819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12822 fi 12823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12827 $as_echo_n "(cached) " >&6 12828else 12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12830/* end confdefs.h. */ 12831int i; 12832_ACEOF 12833if ac_fn_c_try_compile "$LINENO"; then : 12834 xorg_cv_cc_flag_unused_command_line_argument=yes 12835else 12836 xorg_cv_cc_flag_unused_command_line_argument=no 12837fi 12838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12839fi 12840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12843 CFLAGS="$xorg_testset_save_CFLAGS" 12844fi 12845 12846found="no" 12847 12848 if test $found = "no" ; then 12849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12851 fi 12852 12853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12855 fi 12856 12857 CFLAGS="$CFLAGS -Wold-style-definition" 12858 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12860$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12861 cacheid=xorg_cv_cc_flag__Wold_style_definition 12862 if eval \${$cacheid+:} false; then : 12863 $as_echo_n "(cached) " >&6 12864else 12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12866/* end confdefs.h. */ 12867int i; 12868int 12869main () 12870{ 12871 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876if ac_fn_c_try_link "$LINENO"; then : 12877 eval $cacheid=yes 12878else 12879 eval $cacheid=no 12880fi 12881rm -f core conftest.err conftest.$ac_objext \ 12882 conftest$ac_exeext conftest.$ac_ext 12883fi 12884 12885 12886 CFLAGS="$xorg_testset_save_CFLAGS" 12887 12888 eval supported=\$$cacheid 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12890$as_echo "$supported" >&6; } 12891 if test "$supported" = "yes" ; then 12892 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12893 found="yes" 12894 fi 12895 fi 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911xorg_testset_save_CFLAGS="$CFLAGS" 12912 12913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12918 $as_echo_n "(cached) " >&6 12919else 12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921/* end confdefs.h. */ 12922int i; 12923_ACEOF 12924if ac_fn_c_try_compile "$LINENO"; then : 12925 xorg_cv_cc_flag_unknown_warning_option=yes 12926else 12927 xorg_cv_cc_flag_unknown_warning_option=no 12928fi 12929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12930fi 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12934 CFLAGS="$xorg_testset_save_CFLAGS" 12935fi 12936 12937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12940 fi 12941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12945 $as_echo_n "(cached) " >&6 12946else 12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12948/* end confdefs.h. */ 12949int i; 12950_ACEOF 12951if ac_fn_c_try_compile "$LINENO"; then : 12952 xorg_cv_cc_flag_unused_command_line_argument=yes 12953else 12954 xorg_cv_cc_flag_unused_command_line_argument=no 12955fi 12956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12957fi 12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12961 CFLAGS="$xorg_testset_save_CFLAGS" 12962fi 12963 12964found="no" 12965 12966 if test $found = "no" ; then 12967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12969 fi 12970 12971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12973 fi 12974 12975 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12976 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12978$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12979 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12980 if eval \${$cacheid+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982else 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985int i; 12986int 12987main () 12988{ 12989 12990 ; 12991 return 0; 12992} 12993_ACEOF 12994if ac_fn_c_try_link "$LINENO"; then : 12995 eval $cacheid=yes 12996else 12997 eval $cacheid=no 12998fi 12999rm -f core conftest.err conftest.$ac_objext \ 13000 conftest$ac_exeext conftest.$ac_ext 13001fi 13002 13003 13004 CFLAGS="$xorg_testset_save_CFLAGS" 13005 13006 eval supported=\$$cacheid 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13008$as_echo "$supported" >&6; } 13009 if test "$supported" = "yes" ; then 13010 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13011 found="yes" 13012 fi 13013 fi 13014 13015 13016 13017 13018 13019# This chunk adds additional warnings that could catch undesired effects. 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033xorg_testset_save_CFLAGS="$CFLAGS" 13034 13035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13040 $as_echo_n "(cached) " >&6 13041else 13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13043/* end confdefs.h. */ 13044int i; 13045_ACEOF 13046if ac_fn_c_try_compile "$LINENO"; then : 13047 xorg_cv_cc_flag_unknown_warning_option=yes 13048else 13049 xorg_cv_cc_flag_unknown_warning_option=no 13050fi 13051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13052fi 13053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13056 CFLAGS="$xorg_testset_save_CFLAGS" 13057fi 13058 13059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13062 fi 13063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13067 $as_echo_n "(cached) " >&6 13068else 13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13070/* end confdefs.h. */ 13071int i; 13072_ACEOF 13073if ac_fn_c_try_compile "$LINENO"; then : 13074 xorg_cv_cc_flag_unused_command_line_argument=yes 13075else 13076 xorg_cv_cc_flag_unused_command_line_argument=no 13077fi 13078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13079fi 13080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13083 CFLAGS="$xorg_testset_save_CFLAGS" 13084fi 13085 13086found="no" 13087 13088 if test $found = "no" ; then 13089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13091 fi 13092 13093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13095 fi 13096 13097 CFLAGS="$CFLAGS -Wunused" 13098 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13100$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13101 cacheid=xorg_cv_cc_flag__Wunused 13102 if eval \${$cacheid+:} false; then : 13103 $as_echo_n "(cached) " >&6 13104else 13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13106/* end confdefs.h. */ 13107int i; 13108int 13109main () 13110{ 13111 13112 ; 13113 return 0; 13114} 13115_ACEOF 13116if ac_fn_c_try_link "$LINENO"; then : 13117 eval $cacheid=yes 13118else 13119 eval $cacheid=no 13120fi 13121rm -f core conftest.err conftest.$ac_objext \ 13122 conftest$ac_exeext conftest.$ac_ext 13123fi 13124 13125 13126 CFLAGS="$xorg_testset_save_CFLAGS" 13127 13128 eval supported=\$$cacheid 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13130$as_echo "$supported" >&6; } 13131 if test "$supported" = "yes" ; then 13132 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13133 found="yes" 13134 fi 13135 fi 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151xorg_testset_save_CFLAGS="$CFLAGS" 13152 13153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13161/* end confdefs.h. */ 13162int i; 13163_ACEOF 13164if ac_fn_c_try_compile "$LINENO"; then : 13165 xorg_cv_cc_flag_unknown_warning_option=yes 13166else 13167 xorg_cv_cc_flag_unknown_warning_option=no 13168fi 13169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13170fi 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13174 CFLAGS="$xorg_testset_save_CFLAGS" 13175fi 13176 13177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13180 fi 13181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13185 $as_echo_n "(cached) " >&6 13186else 13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13188/* end confdefs.h. */ 13189int i; 13190_ACEOF 13191if ac_fn_c_try_compile "$LINENO"; then : 13192 xorg_cv_cc_flag_unused_command_line_argument=yes 13193else 13194 xorg_cv_cc_flag_unused_command_line_argument=no 13195fi 13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13197fi 13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13201 CFLAGS="$xorg_testset_save_CFLAGS" 13202fi 13203 13204found="no" 13205 13206 if test $found = "no" ; then 13207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13209 fi 13210 13211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13213 fi 13214 13215 CFLAGS="$CFLAGS -Wuninitialized" 13216 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13218$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13219 cacheid=xorg_cv_cc_flag__Wuninitialized 13220 if eval \${$cacheid+:} false; then : 13221 $as_echo_n "(cached) " >&6 13222else 13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13224/* end confdefs.h. */ 13225int i; 13226int 13227main () 13228{ 13229 13230 ; 13231 return 0; 13232} 13233_ACEOF 13234if ac_fn_c_try_link "$LINENO"; then : 13235 eval $cacheid=yes 13236else 13237 eval $cacheid=no 13238fi 13239rm -f core conftest.err conftest.$ac_objext \ 13240 conftest$ac_exeext conftest.$ac_ext 13241fi 13242 13243 13244 CFLAGS="$xorg_testset_save_CFLAGS" 13245 13246 eval supported=\$$cacheid 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13248$as_echo "$supported" >&6; } 13249 if test "$supported" = "yes" ; then 13250 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13251 found="yes" 13252 fi 13253 fi 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269xorg_testset_save_CFLAGS="$CFLAGS" 13270 13271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277else 13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13279/* end confdefs.h. */ 13280int i; 13281_ACEOF 13282if ac_fn_c_try_compile "$LINENO"; then : 13283 xorg_cv_cc_flag_unknown_warning_option=yes 13284else 13285 xorg_cv_cc_flag_unknown_warning_option=no 13286fi 13287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13288fi 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13292 CFLAGS="$xorg_testset_save_CFLAGS" 13293fi 13294 13295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13298 fi 13299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13303 $as_echo_n "(cached) " >&6 13304else 13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13306/* end confdefs.h. */ 13307int i; 13308_ACEOF 13309if ac_fn_c_try_compile "$LINENO"; then : 13310 xorg_cv_cc_flag_unused_command_line_argument=yes 13311else 13312 xorg_cv_cc_flag_unused_command_line_argument=no 13313fi 13314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13315fi 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13319 CFLAGS="$xorg_testset_save_CFLAGS" 13320fi 13321 13322found="no" 13323 13324 if test $found = "no" ; then 13325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13327 fi 13328 13329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13331 fi 13332 13333 CFLAGS="$CFLAGS -Wshadow" 13334 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13336$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13337 cacheid=xorg_cv_cc_flag__Wshadow 13338 if eval \${$cacheid+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342/* end confdefs.h. */ 13343int i; 13344int 13345main () 13346{ 13347 13348 ; 13349 return 0; 13350} 13351_ACEOF 13352if ac_fn_c_try_link "$LINENO"; then : 13353 eval $cacheid=yes 13354else 13355 eval $cacheid=no 13356fi 13357rm -f core conftest.err conftest.$ac_objext \ 13358 conftest$ac_exeext conftest.$ac_ext 13359fi 13360 13361 13362 CFLAGS="$xorg_testset_save_CFLAGS" 13363 13364 eval supported=\$$cacheid 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13366$as_echo "$supported" >&6; } 13367 if test "$supported" = "yes" ; then 13368 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13369 found="yes" 13370 fi 13371 fi 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387xorg_testset_save_CFLAGS="$CFLAGS" 13388 13389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13394 $as_echo_n "(cached) " >&6 13395else 13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397/* end confdefs.h. */ 13398int i; 13399_ACEOF 13400if ac_fn_c_try_compile "$LINENO"; then : 13401 xorg_cv_cc_flag_unknown_warning_option=yes 13402else 13403 xorg_cv_cc_flag_unknown_warning_option=no 13404fi 13405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13406fi 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13410 CFLAGS="$xorg_testset_save_CFLAGS" 13411fi 13412 13413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13416 fi 13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13421 $as_echo_n "(cached) " >&6 13422else 13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13424/* end confdefs.h. */ 13425int i; 13426_ACEOF 13427if ac_fn_c_try_compile "$LINENO"; then : 13428 xorg_cv_cc_flag_unused_command_line_argument=yes 13429else 13430 xorg_cv_cc_flag_unused_command_line_argument=no 13431fi 13432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13433fi 13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13437 CFLAGS="$xorg_testset_save_CFLAGS" 13438fi 13439 13440found="no" 13441 13442 if test $found = "no" ; then 13443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13445 fi 13446 13447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13449 fi 13450 13451 CFLAGS="$CFLAGS -Wcast-qual" 13452 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13454$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13455 cacheid=xorg_cv_cc_flag__Wcast_qual 13456 if eval \${$cacheid+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458else 13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13460/* end confdefs.h. */ 13461int i; 13462int 13463main () 13464{ 13465 13466 ; 13467 return 0; 13468} 13469_ACEOF 13470if ac_fn_c_try_link "$LINENO"; then : 13471 eval $cacheid=yes 13472else 13473 eval $cacheid=no 13474fi 13475rm -f core conftest.err conftest.$ac_objext \ 13476 conftest$ac_exeext conftest.$ac_ext 13477fi 13478 13479 13480 CFLAGS="$xorg_testset_save_CFLAGS" 13481 13482 eval supported=\$$cacheid 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13484$as_echo "$supported" >&6; } 13485 if test "$supported" = "yes" ; then 13486 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13487 found="yes" 13488 fi 13489 fi 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505xorg_testset_save_CFLAGS="$CFLAGS" 13506 13507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13512 $as_echo_n "(cached) " >&6 13513else 13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13515/* end confdefs.h. */ 13516int i; 13517_ACEOF 13518if ac_fn_c_try_compile "$LINENO"; then : 13519 xorg_cv_cc_flag_unknown_warning_option=yes 13520else 13521 xorg_cv_cc_flag_unknown_warning_option=no 13522fi 13523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13524fi 13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13528 CFLAGS="$xorg_testset_save_CFLAGS" 13529fi 13530 13531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13534 fi 13535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13539 $as_echo_n "(cached) " >&6 13540else 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543int i; 13544_ACEOF 13545if ac_fn_c_try_compile "$LINENO"; then : 13546 xorg_cv_cc_flag_unused_command_line_argument=yes 13547else 13548 xorg_cv_cc_flag_unused_command_line_argument=no 13549fi 13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13551fi 13552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13555 CFLAGS="$xorg_testset_save_CFLAGS" 13556fi 13557 13558found="no" 13559 13560 if test $found = "no" ; then 13561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13563 fi 13564 13565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13567 fi 13568 13569 CFLAGS="$CFLAGS -Wmissing-noreturn" 13570 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13572$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13573 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13574 if eval \${$cacheid+:} false; then : 13575 $as_echo_n "(cached) " >&6 13576else 13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13578/* end confdefs.h. */ 13579int i; 13580int 13581main () 13582{ 13583 13584 ; 13585 return 0; 13586} 13587_ACEOF 13588if ac_fn_c_try_link "$LINENO"; then : 13589 eval $cacheid=yes 13590else 13591 eval $cacheid=no 13592fi 13593rm -f core conftest.err conftest.$ac_objext \ 13594 conftest$ac_exeext conftest.$ac_ext 13595fi 13596 13597 13598 CFLAGS="$xorg_testset_save_CFLAGS" 13599 13600 eval supported=\$$cacheid 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13602$as_echo "$supported" >&6; } 13603 if test "$supported" = "yes" ; then 13604 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13605 found="yes" 13606 fi 13607 fi 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623xorg_testset_save_CFLAGS="$CFLAGS" 13624 13625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13630 $as_echo_n "(cached) " >&6 13631else 13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13633/* end confdefs.h. */ 13634int i; 13635_ACEOF 13636if ac_fn_c_try_compile "$LINENO"; then : 13637 xorg_cv_cc_flag_unknown_warning_option=yes 13638else 13639 xorg_cv_cc_flag_unknown_warning_option=no 13640fi 13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13642fi 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13646 CFLAGS="$xorg_testset_save_CFLAGS" 13647fi 13648 13649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13652 fi 13653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13657 $as_echo_n "(cached) " >&6 13658else 13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13660/* end confdefs.h. */ 13661int i; 13662_ACEOF 13663if ac_fn_c_try_compile "$LINENO"; then : 13664 xorg_cv_cc_flag_unused_command_line_argument=yes 13665else 13666 xorg_cv_cc_flag_unused_command_line_argument=no 13667fi 13668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13669fi 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13673 CFLAGS="$xorg_testset_save_CFLAGS" 13674fi 13675 13676found="no" 13677 13678 if test $found = "no" ; then 13679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13681 fi 13682 13683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13685 fi 13686 13687 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13688 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13690$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13691 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13692 if eval \${$cacheid+:} false; then : 13693 $as_echo_n "(cached) " >&6 13694else 13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13696/* end confdefs.h. */ 13697int i; 13698int 13699main () 13700{ 13701 13702 ; 13703 return 0; 13704} 13705_ACEOF 13706if ac_fn_c_try_link "$LINENO"; then : 13707 eval $cacheid=yes 13708else 13709 eval $cacheid=no 13710fi 13711rm -f core conftest.err conftest.$ac_objext \ 13712 conftest$ac_exeext conftest.$ac_ext 13713fi 13714 13715 13716 CFLAGS="$xorg_testset_save_CFLAGS" 13717 13718 eval supported=\$$cacheid 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13720$as_echo "$supported" >&6; } 13721 if test "$supported" = "yes" ; then 13722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13723 found="yes" 13724 fi 13725 fi 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741xorg_testset_save_CFLAGS="$CFLAGS" 13742 13743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13748 $as_echo_n "(cached) " >&6 13749else 13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13751/* end confdefs.h. */ 13752int i; 13753_ACEOF 13754if ac_fn_c_try_compile "$LINENO"; then : 13755 xorg_cv_cc_flag_unknown_warning_option=yes 13756else 13757 xorg_cv_cc_flag_unknown_warning_option=no 13758fi 13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13760fi 13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13764 CFLAGS="$xorg_testset_save_CFLAGS" 13765fi 13766 13767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13770 fi 13771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13775 $as_echo_n "(cached) " >&6 13776else 13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13778/* end confdefs.h. */ 13779int i; 13780_ACEOF 13781if ac_fn_c_try_compile "$LINENO"; then : 13782 xorg_cv_cc_flag_unused_command_line_argument=yes 13783else 13784 xorg_cv_cc_flag_unused_command_line_argument=no 13785fi 13786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13787fi 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13791 CFLAGS="$xorg_testset_save_CFLAGS" 13792fi 13793 13794found="no" 13795 13796 if test $found = "no" ; then 13797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13799 fi 13800 13801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13803 fi 13804 13805 CFLAGS="$CFLAGS -Wredundant-decls" 13806 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13808$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13809 cacheid=xorg_cv_cc_flag__Wredundant_decls 13810 if eval \${$cacheid+:} false; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13814/* end confdefs.h. */ 13815int i; 13816int 13817main () 13818{ 13819 13820 ; 13821 return 0; 13822} 13823_ACEOF 13824if ac_fn_c_try_link "$LINENO"; then : 13825 eval $cacheid=yes 13826else 13827 eval $cacheid=no 13828fi 13829rm -f core conftest.err conftest.$ac_objext \ 13830 conftest$ac_exeext conftest.$ac_ext 13831fi 13832 13833 13834 CFLAGS="$xorg_testset_save_CFLAGS" 13835 13836 eval supported=\$$cacheid 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13838$as_echo "$supported" >&6; } 13839 if test "$supported" = "yes" ; then 13840 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13841 found="yes" 13842 fi 13843 fi 13844 13845 13846 13847# These are currently disabled because they are noisy. They will be enabled 13848# in the future once the codebase is sufficiently modernized to silence 13849# them. For now, I don't want them to drown out the other warnings. 13850# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13851# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13852# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13853 13854# Turn some warnings into errors, so we don't accidently get successful builds 13855# when there are problems that should be fixed. 13856 13857if test "x$SELECTIVE_WERROR" = "xyes" ; then 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871xorg_testset_save_CFLAGS="$CFLAGS" 13872 13873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13878 $as_echo_n "(cached) " >&6 13879else 13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13881/* end confdefs.h. */ 13882int i; 13883_ACEOF 13884if ac_fn_c_try_compile "$LINENO"; then : 13885 xorg_cv_cc_flag_unknown_warning_option=yes 13886else 13887 xorg_cv_cc_flag_unknown_warning_option=no 13888fi 13889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13890fi 13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13894 CFLAGS="$xorg_testset_save_CFLAGS" 13895fi 13896 13897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13900 fi 13901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13905 $as_echo_n "(cached) " >&6 13906else 13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13908/* end confdefs.h. */ 13909int i; 13910_ACEOF 13911if ac_fn_c_try_compile "$LINENO"; then : 13912 xorg_cv_cc_flag_unused_command_line_argument=yes 13913else 13914 xorg_cv_cc_flag_unused_command_line_argument=no 13915fi 13916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13917fi 13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13921 CFLAGS="$xorg_testset_save_CFLAGS" 13922fi 13923 13924found="no" 13925 13926 if test $found = "no" ; then 13927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13929 fi 13930 13931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13933 fi 13934 13935 CFLAGS="$CFLAGS -Werror=implicit" 13936 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13938$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13939 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13940 if eval \${$cacheid+:} false; then : 13941 $as_echo_n "(cached) " >&6 13942else 13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13944/* end confdefs.h. */ 13945int i; 13946int 13947main () 13948{ 13949 13950 ; 13951 return 0; 13952} 13953_ACEOF 13954if ac_fn_c_try_link "$LINENO"; then : 13955 eval $cacheid=yes 13956else 13957 eval $cacheid=no 13958fi 13959rm -f core conftest.err conftest.$ac_objext \ 13960 conftest$ac_exeext conftest.$ac_ext 13961fi 13962 13963 13964 CFLAGS="$xorg_testset_save_CFLAGS" 13965 13966 eval supported=\$$cacheid 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13968$as_echo "$supported" >&6; } 13969 if test "$supported" = "yes" ; then 13970 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13971 found="yes" 13972 fi 13973 fi 13974 13975 if test $found = "no" ; then 13976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13978 fi 13979 13980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13982 fi 13983 13984 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13985 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13987$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13988 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13989 if eval \${$cacheid+:} false; then : 13990 $as_echo_n "(cached) " >&6 13991else 13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13993/* end confdefs.h. */ 13994int i; 13995int 13996main () 13997{ 13998 13999 ; 14000 return 0; 14001} 14002_ACEOF 14003if ac_fn_c_try_link "$LINENO"; then : 14004 eval $cacheid=yes 14005else 14006 eval $cacheid=no 14007fi 14008rm -f core conftest.err conftest.$ac_objext \ 14009 conftest$ac_exeext conftest.$ac_ext 14010fi 14011 14012 14013 CFLAGS="$xorg_testset_save_CFLAGS" 14014 14015 eval supported=\$$cacheid 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14017$as_echo "$supported" >&6; } 14018 if test "$supported" = "yes" ; then 14019 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14020 found="yes" 14021 fi 14022 fi 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038xorg_testset_save_CFLAGS="$CFLAGS" 14039 14040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14045 $as_echo_n "(cached) " >&6 14046else 14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048/* end confdefs.h. */ 14049int i; 14050_ACEOF 14051if ac_fn_c_try_compile "$LINENO"; then : 14052 xorg_cv_cc_flag_unknown_warning_option=yes 14053else 14054 xorg_cv_cc_flag_unknown_warning_option=no 14055fi 14056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14057fi 14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14061 CFLAGS="$xorg_testset_save_CFLAGS" 14062fi 14063 14064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14067 fi 14068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14072 $as_echo_n "(cached) " >&6 14073else 14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14075/* end confdefs.h. */ 14076int i; 14077_ACEOF 14078if ac_fn_c_try_compile "$LINENO"; then : 14079 xorg_cv_cc_flag_unused_command_line_argument=yes 14080else 14081 xorg_cv_cc_flag_unused_command_line_argument=no 14082fi 14083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14084fi 14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14088 CFLAGS="$xorg_testset_save_CFLAGS" 14089fi 14090 14091found="no" 14092 14093 if test $found = "no" ; then 14094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14096 fi 14097 14098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14100 fi 14101 14102 CFLAGS="$CFLAGS -Werror=nonnull" 14103 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14105$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14106 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14107 if eval \${$cacheid+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109else 14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14111/* end confdefs.h. */ 14112int i; 14113int 14114main () 14115{ 14116 14117 ; 14118 return 0; 14119} 14120_ACEOF 14121if ac_fn_c_try_link "$LINENO"; then : 14122 eval $cacheid=yes 14123else 14124 eval $cacheid=no 14125fi 14126rm -f core conftest.err conftest.$ac_objext \ 14127 conftest$ac_exeext conftest.$ac_ext 14128fi 14129 14130 14131 CFLAGS="$xorg_testset_save_CFLAGS" 14132 14133 eval supported=\$$cacheid 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14135$as_echo "$supported" >&6; } 14136 if test "$supported" = "yes" ; then 14137 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14138 found="yes" 14139 fi 14140 fi 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156xorg_testset_save_CFLAGS="$CFLAGS" 14157 14158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14163 $as_echo_n "(cached) " >&6 14164else 14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14166/* end confdefs.h. */ 14167int i; 14168_ACEOF 14169if ac_fn_c_try_compile "$LINENO"; then : 14170 xorg_cv_cc_flag_unknown_warning_option=yes 14171else 14172 xorg_cv_cc_flag_unknown_warning_option=no 14173fi 14174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14175fi 14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14179 CFLAGS="$xorg_testset_save_CFLAGS" 14180fi 14181 14182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14185 fi 14186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14190 $as_echo_n "(cached) " >&6 14191else 14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14193/* end confdefs.h. */ 14194int i; 14195_ACEOF 14196if ac_fn_c_try_compile "$LINENO"; then : 14197 xorg_cv_cc_flag_unused_command_line_argument=yes 14198else 14199 xorg_cv_cc_flag_unused_command_line_argument=no 14200fi 14201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14202fi 14203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14206 CFLAGS="$xorg_testset_save_CFLAGS" 14207fi 14208 14209found="no" 14210 14211 if test $found = "no" ; then 14212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14214 fi 14215 14216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14218 fi 14219 14220 CFLAGS="$CFLAGS -Werror=init-self" 14221 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14223$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14224 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14225 if eval \${$cacheid+:} false; then : 14226 $as_echo_n "(cached) " >&6 14227else 14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14229/* end confdefs.h. */ 14230int i; 14231int 14232main () 14233{ 14234 14235 ; 14236 return 0; 14237} 14238_ACEOF 14239if ac_fn_c_try_link "$LINENO"; then : 14240 eval $cacheid=yes 14241else 14242 eval $cacheid=no 14243fi 14244rm -f core conftest.err conftest.$ac_objext \ 14245 conftest$ac_exeext conftest.$ac_ext 14246fi 14247 14248 14249 CFLAGS="$xorg_testset_save_CFLAGS" 14250 14251 eval supported=\$$cacheid 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14253$as_echo "$supported" >&6; } 14254 if test "$supported" = "yes" ; then 14255 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14256 found="yes" 14257 fi 14258 fi 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274xorg_testset_save_CFLAGS="$CFLAGS" 14275 14276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14281 $as_echo_n "(cached) " >&6 14282else 14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14284/* end confdefs.h. */ 14285int i; 14286_ACEOF 14287if ac_fn_c_try_compile "$LINENO"; then : 14288 xorg_cv_cc_flag_unknown_warning_option=yes 14289else 14290 xorg_cv_cc_flag_unknown_warning_option=no 14291fi 14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14293fi 14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14297 CFLAGS="$xorg_testset_save_CFLAGS" 14298fi 14299 14300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14303 fi 14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14308 $as_echo_n "(cached) " >&6 14309else 14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311/* end confdefs.h. */ 14312int i; 14313_ACEOF 14314if ac_fn_c_try_compile "$LINENO"; then : 14315 xorg_cv_cc_flag_unused_command_line_argument=yes 14316else 14317 xorg_cv_cc_flag_unused_command_line_argument=no 14318fi 14319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14320fi 14321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14324 CFLAGS="$xorg_testset_save_CFLAGS" 14325fi 14326 14327found="no" 14328 14329 if test $found = "no" ; then 14330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14332 fi 14333 14334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14336 fi 14337 14338 CFLAGS="$CFLAGS -Werror=main" 14339 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14341$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14342 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14343 if eval \${$cacheid+:} false; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348int i; 14349int 14350main () 14351{ 14352 14353 ; 14354 return 0; 14355} 14356_ACEOF 14357if ac_fn_c_try_link "$LINENO"; then : 14358 eval $cacheid=yes 14359else 14360 eval $cacheid=no 14361fi 14362rm -f core conftest.err conftest.$ac_objext \ 14363 conftest$ac_exeext conftest.$ac_ext 14364fi 14365 14366 14367 CFLAGS="$xorg_testset_save_CFLAGS" 14368 14369 eval supported=\$$cacheid 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14371$as_echo "$supported" >&6; } 14372 if test "$supported" = "yes" ; then 14373 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14374 found="yes" 14375 fi 14376 fi 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392xorg_testset_save_CFLAGS="$CFLAGS" 14393 14394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14399 $as_echo_n "(cached) " >&6 14400else 14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14402/* end confdefs.h. */ 14403int i; 14404_ACEOF 14405if ac_fn_c_try_compile "$LINENO"; then : 14406 xorg_cv_cc_flag_unknown_warning_option=yes 14407else 14408 xorg_cv_cc_flag_unknown_warning_option=no 14409fi 14410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14411fi 14412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14415 CFLAGS="$xorg_testset_save_CFLAGS" 14416fi 14417 14418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14421 fi 14422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14426 $as_echo_n "(cached) " >&6 14427else 14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14429/* end confdefs.h. */ 14430int i; 14431_ACEOF 14432if ac_fn_c_try_compile "$LINENO"; then : 14433 xorg_cv_cc_flag_unused_command_line_argument=yes 14434else 14435 xorg_cv_cc_flag_unused_command_line_argument=no 14436fi 14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14438fi 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14442 CFLAGS="$xorg_testset_save_CFLAGS" 14443fi 14444 14445found="no" 14446 14447 if test $found = "no" ; then 14448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14450 fi 14451 14452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14454 fi 14455 14456 CFLAGS="$CFLAGS -Werror=missing-braces" 14457 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14459$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14460 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14461 if eval \${$cacheid+:} false; then : 14462 $as_echo_n "(cached) " >&6 14463else 14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465/* end confdefs.h. */ 14466int i; 14467int 14468main () 14469{ 14470 14471 ; 14472 return 0; 14473} 14474_ACEOF 14475if ac_fn_c_try_link "$LINENO"; then : 14476 eval $cacheid=yes 14477else 14478 eval $cacheid=no 14479fi 14480rm -f core conftest.err conftest.$ac_objext \ 14481 conftest$ac_exeext conftest.$ac_ext 14482fi 14483 14484 14485 CFLAGS="$xorg_testset_save_CFLAGS" 14486 14487 eval supported=\$$cacheid 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14489$as_echo "$supported" >&6; } 14490 if test "$supported" = "yes" ; then 14491 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14492 found="yes" 14493 fi 14494 fi 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510xorg_testset_save_CFLAGS="$CFLAGS" 14511 14512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14517 $as_echo_n "(cached) " >&6 14518else 14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14520/* end confdefs.h. */ 14521int i; 14522_ACEOF 14523if ac_fn_c_try_compile "$LINENO"; then : 14524 xorg_cv_cc_flag_unknown_warning_option=yes 14525else 14526 xorg_cv_cc_flag_unknown_warning_option=no 14527fi 14528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14529fi 14530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14533 CFLAGS="$xorg_testset_save_CFLAGS" 14534fi 14535 14536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14539 fi 14540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14544 $as_echo_n "(cached) " >&6 14545else 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548int i; 14549_ACEOF 14550if ac_fn_c_try_compile "$LINENO"; then : 14551 xorg_cv_cc_flag_unused_command_line_argument=yes 14552else 14553 xorg_cv_cc_flag_unused_command_line_argument=no 14554fi 14555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14556fi 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14560 CFLAGS="$xorg_testset_save_CFLAGS" 14561fi 14562 14563found="no" 14564 14565 if test $found = "no" ; then 14566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14568 fi 14569 14570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14572 fi 14573 14574 CFLAGS="$CFLAGS -Werror=sequence-point" 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14577$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14578 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14579 if eval \${$cacheid+:} false; then : 14580 $as_echo_n "(cached) " >&6 14581else 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584int i; 14585int 14586main () 14587{ 14588 14589 ; 14590 return 0; 14591} 14592_ACEOF 14593if ac_fn_c_try_link "$LINENO"; then : 14594 eval $cacheid=yes 14595else 14596 eval $cacheid=no 14597fi 14598rm -f core conftest.err conftest.$ac_objext \ 14599 conftest$ac_exeext conftest.$ac_ext 14600fi 14601 14602 14603 CFLAGS="$xorg_testset_save_CFLAGS" 14604 14605 eval supported=\$$cacheid 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14607$as_echo "$supported" >&6; } 14608 if test "$supported" = "yes" ; then 14609 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14610 found="yes" 14611 fi 14612 fi 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628xorg_testset_save_CFLAGS="$CFLAGS" 14629 14630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14635 $as_echo_n "(cached) " >&6 14636else 14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14638/* end confdefs.h. */ 14639int i; 14640_ACEOF 14641if ac_fn_c_try_compile "$LINENO"; then : 14642 xorg_cv_cc_flag_unknown_warning_option=yes 14643else 14644 xorg_cv_cc_flag_unknown_warning_option=no 14645fi 14646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14647fi 14648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14651 CFLAGS="$xorg_testset_save_CFLAGS" 14652fi 14653 14654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14657 fi 14658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14662 $as_echo_n "(cached) " >&6 14663else 14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14665/* end confdefs.h. */ 14666int i; 14667_ACEOF 14668if ac_fn_c_try_compile "$LINENO"; then : 14669 xorg_cv_cc_flag_unused_command_line_argument=yes 14670else 14671 xorg_cv_cc_flag_unused_command_line_argument=no 14672fi 14673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14674fi 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14678 CFLAGS="$xorg_testset_save_CFLAGS" 14679fi 14680 14681found="no" 14682 14683 if test $found = "no" ; then 14684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14686 fi 14687 14688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14690 fi 14691 14692 CFLAGS="$CFLAGS -Werror=return-type" 14693 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14695$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14696 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14697 if eval \${$cacheid+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701/* end confdefs.h. */ 14702int i; 14703int 14704main () 14705{ 14706 14707 ; 14708 return 0; 14709} 14710_ACEOF 14711if ac_fn_c_try_link "$LINENO"; then : 14712 eval $cacheid=yes 14713else 14714 eval $cacheid=no 14715fi 14716rm -f core conftest.err conftest.$ac_objext \ 14717 conftest$ac_exeext conftest.$ac_ext 14718fi 14719 14720 14721 CFLAGS="$xorg_testset_save_CFLAGS" 14722 14723 eval supported=\$$cacheid 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14725$as_echo "$supported" >&6; } 14726 if test "$supported" = "yes" ; then 14727 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14728 found="yes" 14729 fi 14730 fi 14731 14732 if test $found = "no" ; then 14733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14735 fi 14736 14737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14739 fi 14740 14741 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14742 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14744$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14745 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14746 if eval \${$cacheid+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751int i; 14752int 14753main () 14754{ 14755 14756 ; 14757 return 0; 14758} 14759_ACEOF 14760if ac_fn_c_try_link "$LINENO"; then : 14761 eval $cacheid=yes 14762else 14763 eval $cacheid=no 14764fi 14765rm -f core conftest.err conftest.$ac_objext \ 14766 conftest$ac_exeext conftest.$ac_ext 14767fi 14768 14769 14770 CFLAGS="$xorg_testset_save_CFLAGS" 14771 14772 eval supported=\$$cacheid 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14774$as_echo "$supported" >&6; } 14775 if test "$supported" = "yes" ; then 14776 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14777 found="yes" 14778 fi 14779 fi 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795xorg_testset_save_CFLAGS="$CFLAGS" 14796 14797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14802 $as_echo_n "(cached) " >&6 14803else 14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14805/* end confdefs.h. */ 14806int i; 14807_ACEOF 14808if ac_fn_c_try_compile "$LINENO"; then : 14809 xorg_cv_cc_flag_unknown_warning_option=yes 14810else 14811 xorg_cv_cc_flag_unknown_warning_option=no 14812fi 14813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14814fi 14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14818 CFLAGS="$xorg_testset_save_CFLAGS" 14819fi 14820 14821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14824 fi 14825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14829 $as_echo_n "(cached) " >&6 14830else 14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14832/* end confdefs.h. */ 14833int i; 14834_ACEOF 14835if ac_fn_c_try_compile "$LINENO"; then : 14836 xorg_cv_cc_flag_unused_command_line_argument=yes 14837else 14838 xorg_cv_cc_flag_unused_command_line_argument=no 14839fi 14840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14841fi 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14845 CFLAGS="$xorg_testset_save_CFLAGS" 14846fi 14847 14848found="no" 14849 14850 if test $found = "no" ; then 14851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14853 fi 14854 14855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14857 fi 14858 14859 CFLAGS="$CFLAGS -Werror=trigraphs" 14860 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14862$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14863 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14864 if eval \${$cacheid+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868/* end confdefs.h. */ 14869int i; 14870int 14871main () 14872{ 14873 14874 ; 14875 return 0; 14876} 14877_ACEOF 14878if ac_fn_c_try_link "$LINENO"; then : 14879 eval $cacheid=yes 14880else 14881 eval $cacheid=no 14882fi 14883rm -f core conftest.err conftest.$ac_objext \ 14884 conftest$ac_exeext conftest.$ac_ext 14885fi 14886 14887 14888 CFLAGS="$xorg_testset_save_CFLAGS" 14889 14890 eval supported=\$$cacheid 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14892$as_echo "$supported" >&6; } 14893 if test "$supported" = "yes" ; then 14894 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14895 found="yes" 14896 fi 14897 fi 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913xorg_testset_save_CFLAGS="$CFLAGS" 14914 14915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14920 $as_echo_n "(cached) " >&6 14921else 14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923/* end confdefs.h. */ 14924int i; 14925_ACEOF 14926if ac_fn_c_try_compile "$LINENO"; then : 14927 xorg_cv_cc_flag_unknown_warning_option=yes 14928else 14929 xorg_cv_cc_flag_unknown_warning_option=no 14930fi 14931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14932fi 14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14936 CFLAGS="$xorg_testset_save_CFLAGS" 14937fi 14938 14939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14942 fi 14943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14947 $as_echo_n "(cached) " >&6 14948else 14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14950/* end confdefs.h. */ 14951int i; 14952_ACEOF 14953if ac_fn_c_try_compile "$LINENO"; then : 14954 xorg_cv_cc_flag_unused_command_line_argument=yes 14955else 14956 xorg_cv_cc_flag_unused_command_line_argument=no 14957fi 14958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14959fi 14960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14963 CFLAGS="$xorg_testset_save_CFLAGS" 14964fi 14965 14966found="no" 14967 14968 if test $found = "no" ; then 14969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14971 fi 14972 14973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14975 fi 14976 14977 CFLAGS="$CFLAGS -Werror=array-bounds" 14978 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14980$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14981 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14982 if eval \${$cacheid+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987int i; 14988int 14989main () 14990{ 14991 14992 ; 14993 return 0; 14994} 14995_ACEOF 14996if ac_fn_c_try_link "$LINENO"; then : 14997 eval $cacheid=yes 14998else 14999 eval $cacheid=no 15000fi 15001rm -f core conftest.err conftest.$ac_objext \ 15002 conftest$ac_exeext conftest.$ac_ext 15003fi 15004 15005 15006 CFLAGS="$xorg_testset_save_CFLAGS" 15007 15008 eval supported=\$$cacheid 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15010$as_echo "$supported" >&6; } 15011 if test "$supported" = "yes" ; then 15012 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15013 found="yes" 15014 fi 15015 fi 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031xorg_testset_save_CFLAGS="$CFLAGS" 15032 15033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15038 $as_echo_n "(cached) " >&6 15039else 15040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15041/* end confdefs.h. */ 15042int i; 15043_ACEOF 15044if ac_fn_c_try_compile "$LINENO"; then : 15045 xorg_cv_cc_flag_unknown_warning_option=yes 15046else 15047 xorg_cv_cc_flag_unknown_warning_option=no 15048fi 15049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15050fi 15051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15054 CFLAGS="$xorg_testset_save_CFLAGS" 15055fi 15056 15057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15060 fi 15061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15065 $as_echo_n "(cached) " >&6 15066else 15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15068/* end confdefs.h. */ 15069int i; 15070_ACEOF 15071if ac_fn_c_try_compile "$LINENO"; then : 15072 xorg_cv_cc_flag_unused_command_line_argument=yes 15073else 15074 xorg_cv_cc_flag_unused_command_line_argument=no 15075fi 15076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15077fi 15078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15081 CFLAGS="$xorg_testset_save_CFLAGS" 15082fi 15083 15084found="no" 15085 15086 if test $found = "no" ; then 15087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15089 fi 15090 15091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15093 fi 15094 15095 CFLAGS="$CFLAGS -Werror=write-strings" 15096 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15098$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15099 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15100 if eval \${$cacheid+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102else 15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15104/* end confdefs.h. */ 15105int i; 15106int 15107main () 15108{ 15109 15110 ; 15111 return 0; 15112} 15113_ACEOF 15114if ac_fn_c_try_link "$LINENO"; then : 15115 eval $cacheid=yes 15116else 15117 eval $cacheid=no 15118fi 15119rm -f core conftest.err conftest.$ac_objext \ 15120 conftest$ac_exeext conftest.$ac_ext 15121fi 15122 15123 15124 CFLAGS="$xorg_testset_save_CFLAGS" 15125 15126 eval supported=\$$cacheid 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15128$as_echo "$supported" >&6; } 15129 if test "$supported" = "yes" ; then 15130 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15131 found="yes" 15132 fi 15133 fi 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149xorg_testset_save_CFLAGS="$CFLAGS" 15150 15151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15156 $as_echo_n "(cached) " >&6 15157else 15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15159/* end confdefs.h. */ 15160int i; 15161_ACEOF 15162if ac_fn_c_try_compile "$LINENO"; then : 15163 xorg_cv_cc_flag_unknown_warning_option=yes 15164else 15165 xorg_cv_cc_flag_unknown_warning_option=no 15166fi 15167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15168fi 15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15172 CFLAGS="$xorg_testset_save_CFLAGS" 15173fi 15174 15175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15178 fi 15179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15183 $as_echo_n "(cached) " >&6 15184else 15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15186/* end confdefs.h. */ 15187int i; 15188_ACEOF 15189if ac_fn_c_try_compile "$LINENO"; then : 15190 xorg_cv_cc_flag_unused_command_line_argument=yes 15191else 15192 xorg_cv_cc_flag_unused_command_line_argument=no 15193fi 15194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15195fi 15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15199 CFLAGS="$xorg_testset_save_CFLAGS" 15200fi 15201 15202found="no" 15203 15204 if test $found = "no" ; then 15205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15207 fi 15208 15209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15211 fi 15212 15213 CFLAGS="$CFLAGS -Werror=address" 15214 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15216$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15217 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15218 if eval \${$cacheid+:} false; then : 15219 $as_echo_n "(cached) " >&6 15220else 15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15222/* end confdefs.h. */ 15223int i; 15224int 15225main () 15226{ 15227 15228 ; 15229 return 0; 15230} 15231_ACEOF 15232if ac_fn_c_try_link "$LINENO"; then : 15233 eval $cacheid=yes 15234else 15235 eval $cacheid=no 15236fi 15237rm -f core conftest.err conftest.$ac_objext \ 15238 conftest$ac_exeext conftest.$ac_ext 15239fi 15240 15241 15242 CFLAGS="$xorg_testset_save_CFLAGS" 15243 15244 eval supported=\$$cacheid 15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15246$as_echo "$supported" >&6; } 15247 if test "$supported" = "yes" ; then 15248 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15249 found="yes" 15250 fi 15251 fi 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267xorg_testset_save_CFLAGS="$CFLAGS" 15268 15269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15274 $as_echo_n "(cached) " >&6 15275else 15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15277/* end confdefs.h. */ 15278int i; 15279_ACEOF 15280if ac_fn_c_try_compile "$LINENO"; then : 15281 xorg_cv_cc_flag_unknown_warning_option=yes 15282else 15283 xorg_cv_cc_flag_unknown_warning_option=no 15284fi 15285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15286fi 15287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15290 CFLAGS="$xorg_testset_save_CFLAGS" 15291fi 15292 15293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15296 fi 15297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15301 $as_echo_n "(cached) " >&6 15302else 15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15304/* end confdefs.h. */ 15305int i; 15306_ACEOF 15307if ac_fn_c_try_compile "$LINENO"; then : 15308 xorg_cv_cc_flag_unused_command_line_argument=yes 15309else 15310 xorg_cv_cc_flag_unused_command_line_argument=no 15311fi 15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15313fi 15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15317 CFLAGS="$xorg_testset_save_CFLAGS" 15318fi 15319 15320found="no" 15321 15322 if test $found = "no" ; then 15323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15325 fi 15326 15327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15329 fi 15330 15331 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15332 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15334$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15335 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15336 if eval \${$cacheid+:} false; then : 15337 $as_echo_n "(cached) " >&6 15338else 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341int i; 15342int 15343main () 15344{ 15345 15346 ; 15347 return 0; 15348} 15349_ACEOF 15350if ac_fn_c_try_link "$LINENO"; then : 15351 eval $cacheid=yes 15352else 15353 eval $cacheid=no 15354fi 15355rm -f core conftest.err conftest.$ac_objext \ 15356 conftest$ac_exeext conftest.$ac_ext 15357fi 15358 15359 15360 CFLAGS="$xorg_testset_save_CFLAGS" 15361 15362 eval supported=\$$cacheid 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15364$as_echo "$supported" >&6; } 15365 if test "$supported" = "yes" ; then 15366 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15367 found="yes" 15368 fi 15369 fi 15370 15371 if test $found = "no" ; then 15372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15374 fi 15375 15376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15378 fi 15379 15380 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15381 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15383$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15384 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15385 if eval \${$cacheid+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387else 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390int i; 15391int 15392main () 15393{ 15394 15395 ; 15396 return 0; 15397} 15398_ACEOF 15399if ac_fn_c_try_link "$LINENO"; then : 15400 eval $cacheid=yes 15401else 15402 eval $cacheid=no 15403fi 15404rm -f core conftest.err conftest.$ac_objext \ 15405 conftest$ac_exeext conftest.$ac_ext 15406fi 15407 15408 15409 CFLAGS="$xorg_testset_save_CFLAGS" 15410 15411 eval supported=\$$cacheid 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15413$as_echo "$supported" >&6; } 15414 if test "$supported" = "yes" ; then 15415 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15416 found="yes" 15417 fi 15418 fi 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434xorg_testset_save_CFLAGS="$CFLAGS" 15435 15436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15441 $as_echo_n "(cached) " >&6 15442else 15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15444/* end confdefs.h. */ 15445int i; 15446_ACEOF 15447if ac_fn_c_try_compile "$LINENO"; then : 15448 xorg_cv_cc_flag_unknown_warning_option=yes 15449else 15450 xorg_cv_cc_flag_unknown_warning_option=no 15451fi 15452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15453fi 15454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15457 CFLAGS="$xorg_testset_save_CFLAGS" 15458fi 15459 15460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15463 fi 15464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15468 $as_echo_n "(cached) " >&6 15469else 15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15471/* end confdefs.h. */ 15472int i; 15473_ACEOF 15474if ac_fn_c_try_compile "$LINENO"; then : 15475 xorg_cv_cc_flag_unused_command_line_argument=yes 15476else 15477 xorg_cv_cc_flag_unused_command_line_argument=no 15478fi 15479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15480fi 15481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15484 CFLAGS="$xorg_testset_save_CFLAGS" 15485fi 15486 15487found="no" 15488 15489 if test $found = "no" ; then 15490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15492 fi 15493 15494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15496 fi 15497 15498 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15499 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15501$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15502 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15503 if eval \${$cacheid+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508int i; 15509int 15510main () 15511{ 15512 15513 ; 15514 return 0; 15515} 15516_ACEOF 15517if ac_fn_c_try_link "$LINENO"; then : 15518 eval $cacheid=yes 15519else 15520 eval $cacheid=no 15521fi 15522rm -f core conftest.err conftest.$ac_objext \ 15523 conftest$ac_exeext conftest.$ac_ext 15524fi 15525 15526 15527 CFLAGS="$xorg_testset_save_CFLAGS" 15528 15529 eval supported=\$$cacheid 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15531$as_echo "$supported" >&6; } 15532 if test "$supported" = "yes" ; then 15533 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15534 found="yes" 15535 fi 15536 fi 15537 15538 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15539else 15540{ $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 15541$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;} 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555xorg_testset_save_CFLAGS="$CFLAGS" 15556 15557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15562 $as_echo_n "(cached) " >&6 15563else 15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15565/* end confdefs.h. */ 15566int i; 15567_ACEOF 15568if ac_fn_c_try_compile "$LINENO"; then : 15569 xorg_cv_cc_flag_unknown_warning_option=yes 15570else 15571 xorg_cv_cc_flag_unknown_warning_option=no 15572fi 15573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15574fi 15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579fi 15580 15581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15584 fi 15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15589 $as_echo_n "(cached) " >&6 15590else 15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15592/* end confdefs.h. */ 15593int i; 15594_ACEOF 15595if ac_fn_c_try_compile "$LINENO"; then : 15596 xorg_cv_cc_flag_unused_command_line_argument=yes 15597else 15598 xorg_cv_cc_flag_unused_command_line_argument=no 15599fi 15600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15601fi 15602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15605 CFLAGS="$xorg_testset_save_CFLAGS" 15606fi 15607 15608found="no" 15609 15610 if test $found = "no" ; then 15611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15613 fi 15614 15615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15617 fi 15618 15619 CFLAGS="$CFLAGS -Wimplicit" 15620 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15622$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15623 cacheid=xorg_cv_cc_flag__Wimplicit 15624 if eval \${$cacheid+:} false; then : 15625 $as_echo_n "(cached) " >&6 15626else 15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15628/* end confdefs.h. */ 15629int i; 15630int 15631main () 15632{ 15633 15634 ; 15635 return 0; 15636} 15637_ACEOF 15638if ac_fn_c_try_link "$LINENO"; then : 15639 eval $cacheid=yes 15640else 15641 eval $cacheid=no 15642fi 15643rm -f core conftest.err conftest.$ac_objext \ 15644 conftest$ac_exeext conftest.$ac_ext 15645fi 15646 15647 15648 CFLAGS="$xorg_testset_save_CFLAGS" 15649 15650 eval supported=\$$cacheid 15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15652$as_echo "$supported" >&6; } 15653 if test "$supported" = "yes" ; then 15654 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15655 found="yes" 15656 fi 15657 fi 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673xorg_testset_save_CFLAGS="$CFLAGS" 15674 15675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15680 $as_echo_n "(cached) " >&6 15681else 15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15683/* end confdefs.h. */ 15684int i; 15685_ACEOF 15686if ac_fn_c_try_compile "$LINENO"; then : 15687 xorg_cv_cc_flag_unknown_warning_option=yes 15688else 15689 xorg_cv_cc_flag_unknown_warning_option=no 15690fi 15691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15692fi 15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15696 CFLAGS="$xorg_testset_save_CFLAGS" 15697fi 15698 15699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15702 fi 15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15707 $as_echo_n "(cached) " >&6 15708else 15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15710/* end confdefs.h. */ 15711int i; 15712_ACEOF 15713if ac_fn_c_try_compile "$LINENO"; then : 15714 xorg_cv_cc_flag_unused_command_line_argument=yes 15715else 15716 xorg_cv_cc_flag_unused_command_line_argument=no 15717fi 15718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15719fi 15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15723 CFLAGS="$xorg_testset_save_CFLAGS" 15724fi 15725 15726found="no" 15727 15728 if test $found = "no" ; then 15729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15731 fi 15732 15733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15735 fi 15736 15737 CFLAGS="$CFLAGS -Wnonnull" 15738 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15740$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15741 cacheid=xorg_cv_cc_flag__Wnonnull 15742 if eval \${$cacheid+:} false; then : 15743 $as_echo_n "(cached) " >&6 15744else 15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15746/* end confdefs.h. */ 15747int i; 15748int 15749main () 15750{ 15751 15752 ; 15753 return 0; 15754} 15755_ACEOF 15756if ac_fn_c_try_link "$LINENO"; then : 15757 eval $cacheid=yes 15758else 15759 eval $cacheid=no 15760fi 15761rm -f core conftest.err conftest.$ac_objext \ 15762 conftest$ac_exeext conftest.$ac_ext 15763fi 15764 15765 15766 CFLAGS="$xorg_testset_save_CFLAGS" 15767 15768 eval supported=\$$cacheid 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15770$as_echo "$supported" >&6; } 15771 if test "$supported" = "yes" ; then 15772 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15773 found="yes" 15774 fi 15775 fi 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791xorg_testset_save_CFLAGS="$CFLAGS" 15792 15793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15796$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15797if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15798 $as_echo_n "(cached) " >&6 15799else 15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15801/* end confdefs.h. */ 15802int i; 15803_ACEOF 15804if ac_fn_c_try_compile "$LINENO"; then : 15805 xorg_cv_cc_flag_unknown_warning_option=yes 15806else 15807 xorg_cv_cc_flag_unknown_warning_option=no 15808fi 15809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15810fi 15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15812$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15814 CFLAGS="$xorg_testset_save_CFLAGS" 15815fi 15816 15817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15820 fi 15821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15823$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15824if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15825 $as_echo_n "(cached) " >&6 15826else 15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829int i; 15830_ACEOF 15831if ac_fn_c_try_compile "$LINENO"; then : 15832 xorg_cv_cc_flag_unused_command_line_argument=yes 15833else 15834 xorg_cv_cc_flag_unused_command_line_argument=no 15835fi 15836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15837fi 15838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15839$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15841 CFLAGS="$xorg_testset_save_CFLAGS" 15842fi 15843 15844found="no" 15845 15846 if test $found = "no" ; then 15847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15849 fi 15850 15851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15853 fi 15854 15855 CFLAGS="$CFLAGS -Winit-self" 15856 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15858$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15859 cacheid=xorg_cv_cc_flag__Winit_self 15860 if eval \${$cacheid+:} false; then : 15861 $as_echo_n "(cached) " >&6 15862else 15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15864/* end confdefs.h. */ 15865int i; 15866int 15867main () 15868{ 15869 15870 ; 15871 return 0; 15872} 15873_ACEOF 15874if ac_fn_c_try_link "$LINENO"; then : 15875 eval $cacheid=yes 15876else 15877 eval $cacheid=no 15878fi 15879rm -f core conftest.err conftest.$ac_objext \ 15880 conftest$ac_exeext conftest.$ac_ext 15881fi 15882 15883 15884 CFLAGS="$xorg_testset_save_CFLAGS" 15885 15886 eval supported=\$$cacheid 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15888$as_echo "$supported" >&6; } 15889 if test "$supported" = "yes" ; then 15890 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15891 found="yes" 15892 fi 15893 fi 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909xorg_testset_save_CFLAGS="$CFLAGS" 15910 15911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15914$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15915if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15916 $as_echo_n "(cached) " >&6 15917else 15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15919/* end confdefs.h. */ 15920int i; 15921_ACEOF 15922if ac_fn_c_try_compile "$LINENO"; then : 15923 xorg_cv_cc_flag_unknown_warning_option=yes 15924else 15925 xorg_cv_cc_flag_unknown_warning_option=no 15926fi 15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15928fi 15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15930$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15932 CFLAGS="$xorg_testset_save_CFLAGS" 15933fi 15934 15935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15938 fi 15939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15941$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15942if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15943 $as_echo_n "(cached) " >&6 15944else 15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15946/* end confdefs.h. */ 15947int i; 15948_ACEOF 15949if ac_fn_c_try_compile "$LINENO"; then : 15950 xorg_cv_cc_flag_unused_command_line_argument=yes 15951else 15952 xorg_cv_cc_flag_unused_command_line_argument=no 15953fi 15954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15955fi 15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15957$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15959 CFLAGS="$xorg_testset_save_CFLAGS" 15960fi 15961 15962found="no" 15963 15964 if test $found = "no" ; then 15965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15967 fi 15968 15969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15971 fi 15972 15973 CFLAGS="$CFLAGS -Wmain" 15974 15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15976$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15977 cacheid=xorg_cv_cc_flag__Wmain 15978 if eval \${$cacheid+:} false; then : 15979 $as_echo_n "(cached) " >&6 15980else 15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15982/* end confdefs.h. */ 15983int i; 15984int 15985main () 15986{ 15987 15988 ; 15989 return 0; 15990} 15991_ACEOF 15992if ac_fn_c_try_link "$LINENO"; then : 15993 eval $cacheid=yes 15994else 15995 eval $cacheid=no 15996fi 15997rm -f core conftest.err conftest.$ac_objext \ 15998 conftest$ac_exeext conftest.$ac_ext 15999fi 16000 16001 16002 CFLAGS="$xorg_testset_save_CFLAGS" 16003 16004 eval supported=\$$cacheid 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16006$as_echo "$supported" >&6; } 16007 if test "$supported" = "yes" ; then 16008 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16009 found="yes" 16010 fi 16011 fi 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027xorg_testset_save_CFLAGS="$CFLAGS" 16028 16029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16034 $as_echo_n "(cached) " >&6 16035else 16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16037/* end confdefs.h. */ 16038int i; 16039_ACEOF 16040if ac_fn_c_try_compile "$LINENO"; then : 16041 xorg_cv_cc_flag_unknown_warning_option=yes 16042else 16043 xorg_cv_cc_flag_unknown_warning_option=no 16044fi 16045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16046fi 16047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16050 CFLAGS="$xorg_testset_save_CFLAGS" 16051fi 16052 16053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16056 fi 16057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16061 $as_echo_n "(cached) " >&6 16062else 16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16064/* end confdefs.h. */ 16065int i; 16066_ACEOF 16067if ac_fn_c_try_compile "$LINENO"; then : 16068 xorg_cv_cc_flag_unused_command_line_argument=yes 16069else 16070 xorg_cv_cc_flag_unused_command_line_argument=no 16071fi 16072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16073fi 16074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16077 CFLAGS="$xorg_testset_save_CFLAGS" 16078fi 16079 16080found="no" 16081 16082 if test $found = "no" ; then 16083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16085 fi 16086 16087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16089 fi 16090 16091 CFLAGS="$CFLAGS -Wmissing-braces" 16092 16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16094$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16095 cacheid=xorg_cv_cc_flag__Wmissing_braces 16096 if eval \${$cacheid+:} false; then : 16097 $as_echo_n "(cached) " >&6 16098else 16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16100/* end confdefs.h. */ 16101int i; 16102int 16103main () 16104{ 16105 16106 ; 16107 return 0; 16108} 16109_ACEOF 16110if ac_fn_c_try_link "$LINENO"; then : 16111 eval $cacheid=yes 16112else 16113 eval $cacheid=no 16114fi 16115rm -f core conftest.err conftest.$ac_objext \ 16116 conftest$ac_exeext conftest.$ac_ext 16117fi 16118 16119 16120 CFLAGS="$xorg_testset_save_CFLAGS" 16121 16122 eval supported=\$$cacheid 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16124$as_echo "$supported" >&6; } 16125 if test "$supported" = "yes" ; then 16126 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16127 found="yes" 16128 fi 16129 fi 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145xorg_testset_save_CFLAGS="$CFLAGS" 16146 16147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16152 $as_echo_n "(cached) " >&6 16153else 16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16155/* end confdefs.h. */ 16156int i; 16157_ACEOF 16158if ac_fn_c_try_compile "$LINENO"; then : 16159 xorg_cv_cc_flag_unknown_warning_option=yes 16160else 16161 xorg_cv_cc_flag_unknown_warning_option=no 16162fi 16163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16164fi 16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16168 CFLAGS="$xorg_testset_save_CFLAGS" 16169fi 16170 16171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16174 fi 16175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16179 $as_echo_n "(cached) " >&6 16180else 16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16182/* end confdefs.h. */ 16183int i; 16184_ACEOF 16185if ac_fn_c_try_compile "$LINENO"; then : 16186 xorg_cv_cc_flag_unused_command_line_argument=yes 16187else 16188 xorg_cv_cc_flag_unused_command_line_argument=no 16189fi 16190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16191fi 16192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16195 CFLAGS="$xorg_testset_save_CFLAGS" 16196fi 16197 16198found="no" 16199 16200 if test $found = "no" ; then 16201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16203 fi 16204 16205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16207 fi 16208 16209 CFLAGS="$CFLAGS -Wsequence-point" 16210 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16212$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16213 cacheid=xorg_cv_cc_flag__Wsequence_point 16214 if eval \${$cacheid+:} false; then : 16215 $as_echo_n "(cached) " >&6 16216else 16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16218/* end confdefs.h. */ 16219int i; 16220int 16221main () 16222{ 16223 16224 ; 16225 return 0; 16226} 16227_ACEOF 16228if ac_fn_c_try_link "$LINENO"; then : 16229 eval $cacheid=yes 16230else 16231 eval $cacheid=no 16232fi 16233rm -f core conftest.err conftest.$ac_objext \ 16234 conftest$ac_exeext conftest.$ac_ext 16235fi 16236 16237 16238 CFLAGS="$xorg_testset_save_CFLAGS" 16239 16240 eval supported=\$$cacheid 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16242$as_echo "$supported" >&6; } 16243 if test "$supported" = "yes" ; then 16244 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16245 found="yes" 16246 fi 16247 fi 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263xorg_testset_save_CFLAGS="$CFLAGS" 16264 16265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16270 $as_echo_n "(cached) " >&6 16271else 16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16273/* end confdefs.h. */ 16274int i; 16275_ACEOF 16276if ac_fn_c_try_compile "$LINENO"; then : 16277 xorg_cv_cc_flag_unknown_warning_option=yes 16278else 16279 xorg_cv_cc_flag_unknown_warning_option=no 16280fi 16281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16282fi 16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16286 CFLAGS="$xorg_testset_save_CFLAGS" 16287fi 16288 16289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16292 fi 16293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16297 $as_echo_n "(cached) " >&6 16298else 16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16300/* end confdefs.h. */ 16301int i; 16302_ACEOF 16303if ac_fn_c_try_compile "$LINENO"; then : 16304 xorg_cv_cc_flag_unused_command_line_argument=yes 16305else 16306 xorg_cv_cc_flag_unused_command_line_argument=no 16307fi 16308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16309fi 16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16313 CFLAGS="$xorg_testset_save_CFLAGS" 16314fi 16315 16316found="no" 16317 16318 if test $found = "no" ; then 16319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16321 fi 16322 16323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16325 fi 16326 16327 CFLAGS="$CFLAGS -Wreturn-type" 16328 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16330$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16331 cacheid=xorg_cv_cc_flag__Wreturn_type 16332 if eval \${$cacheid+:} false; then : 16333 $as_echo_n "(cached) " >&6 16334else 16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16336/* end confdefs.h. */ 16337int i; 16338int 16339main () 16340{ 16341 16342 ; 16343 return 0; 16344} 16345_ACEOF 16346if ac_fn_c_try_link "$LINENO"; then : 16347 eval $cacheid=yes 16348else 16349 eval $cacheid=no 16350fi 16351rm -f core conftest.err conftest.$ac_objext \ 16352 conftest$ac_exeext conftest.$ac_ext 16353fi 16354 16355 16356 CFLAGS="$xorg_testset_save_CFLAGS" 16357 16358 eval supported=\$$cacheid 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16360$as_echo "$supported" >&6; } 16361 if test "$supported" = "yes" ; then 16362 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16363 found="yes" 16364 fi 16365 fi 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381xorg_testset_save_CFLAGS="$CFLAGS" 16382 16383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16388 $as_echo_n "(cached) " >&6 16389else 16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16391/* end confdefs.h. */ 16392int i; 16393_ACEOF 16394if ac_fn_c_try_compile "$LINENO"; then : 16395 xorg_cv_cc_flag_unknown_warning_option=yes 16396else 16397 xorg_cv_cc_flag_unknown_warning_option=no 16398fi 16399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16400fi 16401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16404 CFLAGS="$xorg_testset_save_CFLAGS" 16405fi 16406 16407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16410 fi 16411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16415 $as_echo_n "(cached) " >&6 16416else 16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418/* end confdefs.h. */ 16419int i; 16420_ACEOF 16421if ac_fn_c_try_compile "$LINENO"; then : 16422 xorg_cv_cc_flag_unused_command_line_argument=yes 16423else 16424 xorg_cv_cc_flag_unused_command_line_argument=no 16425fi 16426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16427fi 16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16431 CFLAGS="$xorg_testset_save_CFLAGS" 16432fi 16433 16434found="no" 16435 16436 if test $found = "no" ; then 16437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16439 fi 16440 16441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16443 fi 16444 16445 CFLAGS="$CFLAGS -Wtrigraphs" 16446 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16448$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16449 cacheid=xorg_cv_cc_flag__Wtrigraphs 16450 if eval \${$cacheid+:} false; then : 16451 $as_echo_n "(cached) " >&6 16452else 16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16454/* end confdefs.h. */ 16455int i; 16456int 16457main () 16458{ 16459 16460 ; 16461 return 0; 16462} 16463_ACEOF 16464if ac_fn_c_try_link "$LINENO"; then : 16465 eval $cacheid=yes 16466else 16467 eval $cacheid=no 16468fi 16469rm -f core conftest.err conftest.$ac_objext \ 16470 conftest$ac_exeext conftest.$ac_ext 16471fi 16472 16473 16474 CFLAGS="$xorg_testset_save_CFLAGS" 16475 16476 eval supported=\$$cacheid 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16478$as_echo "$supported" >&6; } 16479 if test "$supported" = "yes" ; then 16480 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16481 found="yes" 16482 fi 16483 fi 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499xorg_testset_save_CFLAGS="$CFLAGS" 16500 16501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16506 $as_echo_n "(cached) " >&6 16507else 16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16509/* end confdefs.h. */ 16510int i; 16511_ACEOF 16512if ac_fn_c_try_compile "$LINENO"; then : 16513 xorg_cv_cc_flag_unknown_warning_option=yes 16514else 16515 xorg_cv_cc_flag_unknown_warning_option=no 16516fi 16517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16518fi 16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523fi 16524 16525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16528 fi 16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16533 $as_echo_n "(cached) " >&6 16534else 16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16536/* end confdefs.h. */ 16537int i; 16538_ACEOF 16539if ac_fn_c_try_compile "$LINENO"; then : 16540 xorg_cv_cc_flag_unused_command_line_argument=yes 16541else 16542 xorg_cv_cc_flag_unused_command_line_argument=no 16543fi 16544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16545fi 16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16549 CFLAGS="$xorg_testset_save_CFLAGS" 16550fi 16551 16552found="no" 16553 16554 if test $found = "no" ; then 16555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16557 fi 16558 16559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16561 fi 16562 16563 CFLAGS="$CFLAGS -Warray-bounds" 16564 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16566$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16567 cacheid=xorg_cv_cc_flag__Warray_bounds 16568 if eval \${$cacheid+:} false; then : 16569 $as_echo_n "(cached) " >&6 16570else 16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572/* end confdefs.h. */ 16573int i; 16574int 16575main () 16576{ 16577 16578 ; 16579 return 0; 16580} 16581_ACEOF 16582if ac_fn_c_try_link "$LINENO"; then : 16583 eval $cacheid=yes 16584else 16585 eval $cacheid=no 16586fi 16587rm -f core conftest.err conftest.$ac_objext \ 16588 conftest$ac_exeext conftest.$ac_ext 16589fi 16590 16591 16592 CFLAGS="$xorg_testset_save_CFLAGS" 16593 16594 eval supported=\$$cacheid 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16596$as_echo "$supported" >&6; } 16597 if test "$supported" = "yes" ; then 16598 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16599 found="yes" 16600 fi 16601 fi 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617xorg_testset_save_CFLAGS="$CFLAGS" 16618 16619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16624 $as_echo_n "(cached) " >&6 16625else 16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628int i; 16629_ACEOF 16630if ac_fn_c_try_compile "$LINENO"; then : 16631 xorg_cv_cc_flag_unknown_warning_option=yes 16632else 16633 xorg_cv_cc_flag_unknown_warning_option=no 16634fi 16635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16636fi 16637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16640 CFLAGS="$xorg_testset_save_CFLAGS" 16641fi 16642 16643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16646 fi 16647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16651 $as_echo_n "(cached) " >&6 16652else 16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16654/* end confdefs.h. */ 16655int i; 16656_ACEOF 16657if ac_fn_c_try_compile "$LINENO"; then : 16658 xorg_cv_cc_flag_unused_command_line_argument=yes 16659else 16660 xorg_cv_cc_flag_unused_command_line_argument=no 16661fi 16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16663fi 16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16667 CFLAGS="$xorg_testset_save_CFLAGS" 16668fi 16669 16670found="no" 16671 16672 if test $found = "no" ; then 16673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16675 fi 16676 16677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16679 fi 16680 16681 CFLAGS="$CFLAGS -Wwrite-strings" 16682 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16684$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16685 cacheid=xorg_cv_cc_flag__Wwrite_strings 16686 if eval \${$cacheid+:} false; then : 16687 $as_echo_n "(cached) " >&6 16688else 16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16690/* end confdefs.h. */ 16691int i; 16692int 16693main () 16694{ 16695 16696 ; 16697 return 0; 16698} 16699_ACEOF 16700if ac_fn_c_try_link "$LINENO"; then : 16701 eval $cacheid=yes 16702else 16703 eval $cacheid=no 16704fi 16705rm -f core conftest.err conftest.$ac_objext \ 16706 conftest$ac_exeext conftest.$ac_ext 16707fi 16708 16709 16710 CFLAGS="$xorg_testset_save_CFLAGS" 16711 16712 eval supported=\$$cacheid 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16714$as_echo "$supported" >&6; } 16715 if test "$supported" = "yes" ; then 16716 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16717 found="yes" 16718 fi 16719 fi 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735xorg_testset_save_CFLAGS="$CFLAGS" 16736 16737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16742 $as_echo_n "(cached) " >&6 16743else 16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16745/* end confdefs.h. */ 16746int i; 16747_ACEOF 16748if ac_fn_c_try_compile "$LINENO"; then : 16749 xorg_cv_cc_flag_unknown_warning_option=yes 16750else 16751 xorg_cv_cc_flag_unknown_warning_option=no 16752fi 16753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16754fi 16755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16758 CFLAGS="$xorg_testset_save_CFLAGS" 16759fi 16760 16761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16764 fi 16765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16769 $as_echo_n "(cached) " >&6 16770else 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16772/* end confdefs.h. */ 16773int i; 16774_ACEOF 16775if ac_fn_c_try_compile "$LINENO"; then : 16776 xorg_cv_cc_flag_unused_command_line_argument=yes 16777else 16778 xorg_cv_cc_flag_unused_command_line_argument=no 16779fi 16780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16781fi 16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16785 CFLAGS="$xorg_testset_save_CFLAGS" 16786fi 16787 16788found="no" 16789 16790 if test $found = "no" ; then 16791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16793 fi 16794 16795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16797 fi 16798 16799 CFLAGS="$CFLAGS -Waddress" 16800 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16802$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16803 cacheid=xorg_cv_cc_flag__Waddress 16804 if eval \${$cacheid+:} false; then : 16805 $as_echo_n "(cached) " >&6 16806else 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808/* end confdefs.h. */ 16809int i; 16810int 16811main () 16812{ 16813 16814 ; 16815 return 0; 16816} 16817_ACEOF 16818if ac_fn_c_try_link "$LINENO"; then : 16819 eval $cacheid=yes 16820else 16821 eval $cacheid=no 16822fi 16823rm -f core conftest.err conftest.$ac_objext \ 16824 conftest$ac_exeext conftest.$ac_ext 16825fi 16826 16827 16828 CFLAGS="$xorg_testset_save_CFLAGS" 16829 16830 eval supported=\$$cacheid 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16832$as_echo "$supported" >&6; } 16833 if test "$supported" = "yes" ; then 16834 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16835 found="yes" 16836 fi 16837 fi 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853xorg_testset_save_CFLAGS="$CFLAGS" 16854 16855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16860 $as_echo_n "(cached) " >&6 16861else 16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16863/* end confdefs.h. */ 16864int i; 16865_ACEOF 16866if ac_fn_c_try_compile "$LINENO"; then : 16867 xorg_cv_cc_flag_unknown_warning_option=yes 16868else 16869 xorg_cv_cc_flag_unknown_warning_option=no 16870fi 16871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16872fi 16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16876 CFLAGS="$xorg_testset_save_CFLAGS" 16877fi 16878 16879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16882 fi 16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16887 $as_echo_n "(cached) " >&6 16888else 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16890/* end confdefs.h. */ 16891int i; 16892_ACEOF 16893if ac_fn_c_try_compile "$LINENO"; then : 16894 xorg_cv_cc_flag_unused_command_line_argument=yes 16895else 16896 xorg_cv_cc_flag_unused_command_line_argument=no 16897fi 16898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16899fi 16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16903 CFLAGS="$xorg_testset_save_CFLAGS" 16904fi 16905 16906found="no" 16907 16908 if test $found = "no" ; then 16909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16911 fi 16912 16913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16915 fi 16916 16917 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16918 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16920$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16921 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16922 if eval \${$cacheid+:} false; then : 16923 $as_echo_n "(cached) " >&6 16924else 16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16926/* end confdefs.h. */ 16927int i; 16928int 16929main () 16930{ 16931 16932 ; 16933 return 0; 16934} 16935_ACEOF 16936if ac_fn_c_try_link "$LINENO"; then : 16937 eval $cacheid=yes 16938else 16939 eval $cacheid=no 16940fi 16941rm -f core conftest.err conftest.$ac_objext \ 16942 conftest$ac_exeext conftest.$ac_ext 16943fi 16944 16945 16946 CFLAGS="$xorg_testset_save_CFLAGS" 16947 16948 eval supported=\$$cacheid 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16950$as_echo "$supported" >&6; } 16951 if test "$supported" = "yes" ; then 16952 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16953 found="yes" 16954 fi 16955 fi 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971xorg_testset_save_CFLAGS="$CFLAGS" 16972 16973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16978 $as_echo_n "(cached) " >&6 16979else 16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982int i; 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO"; then : 16985 xorg_cv_cc_flag_unknown_warning_option=yes 16986else 16987 xorg_cv_cc_flag_unknown_warning_option=no 16988fi 16989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16990fi 16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16994 CFLAGS="$xorg_testset_save_CFLAGS" 16995fi 16996 16997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17000 fi 17001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17005 $as_echo_n "(cached) " >&6 17006else 17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17008/* end confdefs.h. */ 17009int i; 17010_ACEOF 17011if ac_fn_c_try_compile "$LINENO"; then : 17012 xorg_cv_cc_flag_unused_command_line_argument=yes 17013else 17014 xorg_cv_cc_flag_unused_command_line_argument=no 17015fi 17016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17017fi 17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17021 CFLAGS="$xorg_testset_save_CFLAGS" 17022fi 17023 17024found="no" 17025 17026 if test $found = "no" ; then 17027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17029 fi 17030 17031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17033 fi 17034 17035 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17036 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17038$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17039 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17040 if eval \${$cacheid+:} false; then : 17041 $as_echo_n "(cached) " >&6 17042else 17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046int 17047main () 17048{ 17049 17050 ; 17051 return 0; 17052} 17053_ACEOF 17054if ac_fn_c_try_link "$LINENO"; then : 17055 eval $cacheid=yes 17056else 17057 eval $cacheid=no 17058fi 17059rm -f core conftest.err conftest.$ac_objext \ 17060 conftest$ac_exeext conftest.$ac_ext 17061fi 17062 17063 17064 CFLAGS="$xorg_testset_save_CFLAGS" 17065 17066 eval supported=\$$cacheid 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17068$as_echo "$supported" >&6; } 17069 if test "$supported" = "yes" ; then 17070 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17071 found="yes" 17072 fi 17073 fi 17074 17075 17076fi 17077 17078 17079 17080 17081 17082 17083 17084 CWARNFLAGS="$BASE_CFLAGS" 17085 if test "x$GCC" = xyes ; then 17086 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17087 fi 17088 17089 17090 17091 17092 17093 17094 17095 17096# Check whether --enable-strict-compilation was given. 17097if test "${enable_strict_compilation+set}" = set; then : 17098 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17099else 17100 STRICT_COMPILE=no 17101fi 17102 17103 17104 17105 17106 17107 17108STRICT_CFLAGS="" 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122xorg_testset_save_CFLAGS="$CFLAGS" 17123 17124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17129 $as_echo_n "(cached) " >&6 17130else 17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17132/* end confdefs.h. */ 17133int i; 17134_ACEOF 17135if ac_fn_c_try_compile "$LINENO"; then : 17136 xorg_cv_cc_flag_unknown_warning_option=yes 17137else 17138 xorg_cv_cc_flag_unknown_warning_option=no 17139fi 17140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17141fi 17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17145 CFLAGS="$xorg_testset_save_CFLAGS" 17146fi 17147 17148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17151 fi 17152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17156 $as_echo_n "(cached) " >&6 17157else 17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17159/* end confdefs.h. */ 17160int i; 17161_ACEOF 17162if ac_fn_c_try_compile "$LINENO"; then : 17163 xorg_cv_cc_flag_unused_command_line_argument=yes 17164else 17165 xorg_cv_cc_flag_unused_command_line_argument=no 17166fi 17167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17168fi 17169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17172 CFLAGS="$xorg_testset_save_CFLAGS" 17173fi 17174 17175found="no" 17176 17177 if test $found = "no" ; then 17178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17180 fi 17181 17182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17184 fi 17185 17186 CFLAGS="$CFLAGS -pedantic" 17187 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17189$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17190 cacheid=xorg_cv_cc_flag__pedantic 17191 if eval \${$cacheid+:} false; then : 17192 $as_echo_n "(cached) " >&6 17193else 17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17195/* end confdefs.h. */ 17196int i; 17197int 17198main () 17199{ 17200 17201 ; 17202 return 0; 17203} 17204_ACEOF 17205if ac_fn_c_try_link "$LINENO"; then : 17206 eval $cacheid=yes 17207else 17208 eval $cacheid=no 17209fi 17210rm -f core conftest.err conftest.$ac_objext \ 17211 conftest$ac_exeext conftest.$ac_ext 17212fi 17213 17214 17215 CFLAGS="$xorg_testset_save_CFLAGS" 17216 17217 eval supported=\$$cacheid 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17219$as_echo "$supported" >&6; } 17220 if test "$supported" = "yes" ; then 17221 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17222 found="yes" 17223 fi 17224 fi 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240xorg_testset_save_CFLAGS="$CFLAGS" 17241 17242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17247 $as_echo_n "(cached) " >&6 17248else 17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17250/* end confdefs.h. */ 17251int i; 17252_ACEOF 17253if ac_fn_c_try_compile "$LINENO"; then : 17254 xorg_cv_cc_flag_unknown_warning_option=yes 17255else 17256 xorg_cv_cc_flag_unknown_warning_option=no 17257fi 17258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17259fi 17260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17263 CFLAGS="$xorg_testset_save_CFLAGS" 17264fi 17265 17266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17269 fi 17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17274 $as_echo_n "(cached) " >&6 17275else 17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17277/* end confdefs.h. */ 17278int i; 17279_ACEOF 17280if ac_fn_c_try_compile "$LINENO"; then : 17281 xorg_cv_cc_flag_unused_command_line_argument=yes 17282else 17283 xorg_cv_cc_flag_unused_command_line_argument=no 17284fi 17285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17286fi 17287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17290 CFLAGS="$xorg_testset_save_CFLAGS" 17291fi 17292 17293found="no" 17294 17295 if test $found = "no" ; then 17296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17298 fi 17299 17300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17302 fi 17303 17304 CFLAGS="$CFLAGS -Werror" 17305 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17307$as_echo_n "checking if $CC supports -Werror... " >&6; } 17308 cacheid=xorg_cv_cc_flag__Werror 17309 if eval \${$cacheid+:} false; then : 17310 $as_echo_n "(cached) " >&6 17311else 17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17313/* end confdefs.h. */ 17314int i; 17315int 17316main () 17317{ 17318 17319 ; 17320 return 0; 17321} 17322_ACEOF 17323if ac_fn_c_try_link "$LINENO"; then : 17324 eval $cacheid=yes 17325else 17326 eval $cacheid=no 17327fi 17328rm -f core conftest.err conftest.$ac_objext \ 17329 conftest$ac_exeext conftest.$ac_ext 17330fi 17331 17332 17333 CFLAGS="$xorg_testset_save_CFLAGS" 17334 17335 eval supported=\$$cacheid 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17337$as_echo "$supported" >&6; } 17338 if test "$supported" = "yes" ; then 17339 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17340 found="yes" 17341 fi 17342 fi 17343 17344 if test $found = "no" ; then 17345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17347 fi 17348 17349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17351 fi 17352 17353 CFLAGS="$CFLAGS -errwarn" 17354 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17356$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17357 cacheid=xorg_cv_cc_flag__errwarn 17358 if eval \${$cacheid+:} false; then : 17359 $as_echo_n "(cached) " >&6 17360else 17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17362/* end confdefs.h. */ 17363int i; 17364int 17365main () 17366{ 17367 17368 ; 17369 return 0; 17370} 17371_ACEOF 17372if ac_fn_c_try_link "$LINENO"; then : 17373 eval $cacheid=yes 17374else 17375 eval $cacheid=no 17376fi 17377rm -f core conftest.err conftest.$ac_objext \ 17378 conftest$ac_exeext conftest.$ac_ext 17379fi 17380 17381 17382 CFLAGS="$xorg_testset_save_CFLAGS" 17383 17384 eval supported=\$$cacheid 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17386$as_echo "$supported" >&6; } 17387 if test "$supported" = "yes" ; then 17388 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17389 found="yes" 17390 fi 17391 fi 17392 17393 17394 17395# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17396# activate it with -Werror, so we add it here explicitly. 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410xorg_testset_save_CFLAGS="$CFLAGS" 17411 17412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17417 $as_echo_n "(cached) " >&6 17418else 17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420/* end confdefs.h. */ 17421int i; 17422_ACEOF 17423if ac_fn_c_try_compile "$LINENO"; then : 17424 xorg_cv_cc_flag_unknown_warning_option=yes 17425else 17426 xorg_cv_cc_flag_unknown_warning_option=no 17427fi 17428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434fi 17435 17436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17439 fi 17440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17444 $as_echo_n "(cached) " >&6 17445else 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449_ACEOF 17450if ac_fn_c_try_compile "$LINENO"; then : 17451 xorg_cv_cc_flag_unused_command_line_argument=yes 17452else 17453 xorg_cv_cc_flag_unused_command_line_argument=no 17454fi 17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17456fi 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461fi 17462 17463found="no" 17464 17465 if test $found = "no" ; then 17466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17468 fi 17469 17470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17472 fi 17473 17474 CFLAGS="$CFLAGS -Werror=attributes" 17475 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17477$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17478 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17479 if eval \${$cacheid+:} false; then : 17480 $as_echo_n "(cached) " >&6 17481else 17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17483/* end confdefs.h. */ 17484int i; 17485int 17486main () 17487{ 17488 17489 ; 17490 return 0; 17491} 17492_ACEOF 17493if ac_fn_c_try_link "$LINENO"; then : 17494 eval $cacheid=yes 17495else 17496 eval $cacheid=no 17497fi 17498rm -f core conftest.err conftest.$ac_objext \ 17499 conftest$ac_exeext conftest.$ac_ext 17500fi 17501 17502 17503 CFLAGS="$xorg_testset_save_CFLAGS" 17504 17505 eval supported=\$$cacheid 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17507$as_echo "$supported" >&6; } 17508 if test "$supported" = "yes" ; then 17509 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17510 found="yes" 17511 fi 17512 fi 17513 17514 17515 17516if test "x$STRICT_COMPILE" = "xyes"; then 17517 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17518 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17519fi 17520 17521 17522 17523 17524 17525 17526cat >>confdefs.h <<_ACEOF 17527#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17528_ACEOF 17529 17530 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17531 if test "x$PVM" = "x"; then 17532 PVM="0" 17533 fi 17534 17535cat >>confdefs.h <<_ACEOF 17536#define PACKAGE_VERSION_MINOR $PVM 17537_ACEOF 17538 17539 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17540 if test "x$PVP" = "x"; then 17541 PVP="0" 17542 fi 17543 17544cat >>confdefs.h <<_ACEOF 17545#define PACKAGE_VERSION_PATCHLEVEL $PVP 17546_ACEOF 17547 17548 17549 17550CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17551mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17552|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17553echo 'git directory not found: installing possibly empty changelog.' >&2)" 17554 17555 17556 17557 17558macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17559INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17560mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17561|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17562echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17563 17564 17565 17566 17567 17568 17569if test x$APP_MAN_SUFFIX = x ; then 17570 APP_MAN_SUFFIX=1 17571fi 17572if test x$APP_MAN_DIR = x ; then 17573 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17574fi 17575 17576if test x$LIB_MAN_SUFFIX = x ; then 17577 LIB_MAN_SUFFIX=3 17578fi 17579if test x$LIB_MAN_DIR = x ; then 17580 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17581fi 17582 17583if test x$FILE_MAN_SUFFIX = x ; then 17584 case $host_os in 17585 solaris*) FILE_MAN_SUFFIX=4 ;; 17586 *) FILE_MAN_SUFFIX=5 ;; 17587 esac 17588fi 17589if test x$FILE_MAN_DIR = x ; then 17590 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17591fi 17592 17593if test x$MISC_MAN_SUFFIX = x ; then 17594 case $host_os in 17595 solaris*) MISC_MAN_SUFFIX=5 ;; 17596 *) MISC_MAN_SUFFIX=7 ;; 17597 esac 17598fi 17599if test x$MISC_MAN_DIR = x ; then 17600 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17601fi 17602 17603if test x$DRIVER_MAN_SUFFIX = x ; then 17604 case $host_os in 17605 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17606 *) DRIVER_MAN_SUFFIX=4 ;; 17607 esac 17608fi 17609if test x$DRIVER_MAN_DIR = x ; then 17610 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17611fi 17612 17613if test x$ADMIN_MAN_SUFFIX = x ; then 17614 case $host_os in 17615 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17616 *) ADMIN_MAN_SUFFIX=8 ;; 17617 esac 17618fi 17619if test x$ADMIN_MAN_DIR = x ; then 17620 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17621fi 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637XORG_MAN_PAGE="X Version 11" 17638 17639MAN_SUBSTS="\ 17640 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17641 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17642 -e 's|__xservername__|Xorg|g' \ 17643 -e 's|__xconfigfile__|xorg.conf|g' \ 17644 -e 's|__projectroot__|\$(prefix)|g' \ 17645 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17646 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17647 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17648 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17649 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17650 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17651 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17652 17653 17654 17655# Check whether --enable-silent-rules was given. 17656if test "${enable_silent_rules+set}" = set; then : 17657 enableval=$enable_silent_rules; 17658fi 17659 17660case $enable_silent_rules in # ((( 17661 yes) AM_DEFAULT_VERBOSITY=0;; 17662 no) AM_DEFAULT_VERBOSITY=1;; 17663 *) AM_DEFAULT_VERBOSITY=0;; 17664esac 17665am_make=${MAKE-make} 17666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17667$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17668if ${am_cv_make_support_nested_variables+:} false; then : 17669 $as_echo_n "(cached) " >&6 17670else 17671 if $as_echo 'TRUE=$(BAR$(V)) 17672BAR0=false 17673BAR1=true 17674V=1 17675am__doit: 17676 @$(TRUE) 17677.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17678 am_cv_make_support_nested_variables=yes 17679else 17680 am_cv_make_support_nested_variables=no 17681fi 17682fi 17683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17684$as_echo "$am_cv_make_support_nested_variables" >&6; } 17685if test $am_cv_make_support_nested_variables = yes; then 17686 AM_V='$(V)' 17687 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17688else 17689 AM_V=$AM_DEFAULT_VERBOSITY 17690 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17691fi 17692AM_BACKSLASH='\' 17693 17694 17695 17696# Checks for library functions 17697for ac_func in strlcat 17698do : 17699 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 17700if test "x$ac_cv_func_strlcat" = xyes; then : 17701 cat >>confdefs.h <<_ACEOF 17702#define HAVE_STRLCAT 1 17703_ACEOF 17704 17705fi 17706done 17707 17708 17709# Obtain compiler/linker options for dependencies 17710 17711pkg_failed=no 17712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 17713$as_echo_n "checking for XPM... " >&6; } 17714 17715if test -n "$XPM_CFLAGS"; then 17716 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 17717 elif test -n "$PKG_CONFIG"; then 17718 if test -n "$PKG_CONFIG" && \ 17719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 17720 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 17721 ac_status=$? 17722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17723 test $ac_status = 0; }; then 17724 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null` 17725else 17726 pkg_failed=yes 17727fi 17728 else 17729 pkg_failed=untried 17730fi 17731if test -n "$XPM_LIBS"; then 17732 pkg_cv_XPM_LIBS="$XPM_LIBS" 17733 elif test -n "$PKG_CONFIG"; then 17734 if test -n "$PKG_CONFIG" && \ 17735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 17736 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 17737 ac_status=$? 17738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17739 test $ac_status = 0; }; then 17740 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null` 17741else 17742 pkg_failed=yes 17743fi 17744 else 17745 pkg_failed=untried 17746fi 17747 17748 17749 17750if test $pkg_failed = yes; then 17751 17752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17753 _pkg_short_errors_supported=yes 17754else 17755 _pkg_short_errors_supported=no 17756fi 17757 if test $_pkg_short_errors_supported = yes; then 17758 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11" 2>&1` 17759 else 17760 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11" 2>&1` 17761 fi 17762 # Put the nasty error message in config.log where it belongs 17763 echo "$XPM_PKG_ERRORS" >&5 17764 17765 as_fn_error $? "Package requirements (xproto x11) were not met: 17766 17767$XPM_PKG_ERRORS 17768 17769Consider adjusting the PKG_CONFIG_PATH environment variable if you 17770installed software in a non-standard prefix. 17771 17772Alternatively, you may set the environment variables XPM_CFLAGS 17773and XPM_LIBS to avoid the need to call pkg-config. 17774See the pkg-config man page for more details. 17775" "$LINENO" 5 17776elif test $pkg_failed = untried; then 17777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17779as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17780is in your PATH or set the PKG_CONFIG environment variable to the full 17781path to pkg-config. 17782 17783Alternatively, you may set the environment variables XPM_CFLAGS 17784and XPM_LIBS to avoid the need to call pkg-config. 17785See the pkg-config man page for more details. 17786 17787To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17788See \`config.log' for more details" "$LINENO" 5; } 17789else 17790 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 17791 XPM_LIBS=$pkg_cv_XPM_LIBS 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17793$as_echo "yes" >&6; } 17794 : 17795fi 17796 17797pkg_failed=no 17798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5 17799$as_echo_n "checking for SXPM... " >&6; } 17800 17801if test -n "$SXPM_CFLAGS"; then 17802 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS" 17803 elif test -n "$PKG_CONFIG"; then 17804 if test -n "$PKG_CONFIG" && \ 17805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 17806 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 17807 ac_status=$? 17808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17809 test $ac_status = 0; }; then 17810 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 17811else 17812 pkg_failed=yes 17813fi 17814 else 17815 pkg_failed=untried 17816fi 17817if test -n "$SXPM_LIBS"; then 17818 pkg_cv_SXPM_LIBS="$SXPM_LIBS" 17819 elif test -n "$PKG_CONFIG"; then 17820 if test -n "$PKG_CONFIG" && \ 17821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 17822 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 17823 ac_status=$? 17824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17825 test $ac_status = 0; }; then 17826 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 17827else 17828 pkg_failed=yes 17829fi 17830 else 17831 pkg_failed=untried 17832fi 17833 17834 17835 17836if test $pkg_failed = yes; then 17837 17838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17839 _pkg_short_errors_supported=yes 17840else 17841 _pkg_short_errors_supported=no 17842fi 17843 if test $_pkg_short_errors_supported = yes; then 17844 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 17845 else 17846 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 17847 fi 17848 # Put the nasty error message in config.log where it belongs 17849 echo "$SXPM_PKG_ERRORS" >&5 17850 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17852$as_echo "no" >&6; } 17853 build_sxpm=false 17854elif test $pkg_failed = untried; then 17855 build_sxpm=false 17856else 17857 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS 17858 SXPM_LIBS=$pkg_cv_SXPM_LIBS 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17860$as_echo "yes" >&6; } 17861 build_sxpm=true 17862fi 17863 if test x$build_sxpm = xtrue; then 17864 BUILD_SXPM_TRUE= 17865 BUILD_SXPM_FALSE='#' 17866else 17867 BUILD_SXPM_TRUE='#' 17868 BUILD_SXPM_FALSE= 17869fi 17870 17871 17872# Internationalization & localization support 17873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 17874$as_echo_n "checking for library containing gettext... " >&6; } 17875if ${ac_cv_search_gettext+:} false; then : 17876 $as_echo_n "(cached) " >&6 17877else 17878 ac_func_search_save_LIBS=$LIBS 17879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17880/* end confdefs.h. */ 17881 17882/* Override any GCC internal prototype to avoid an error. 17883 Use char because int might match the return type of a GCC 17884 builtin and then its argument prototype would still apply. */ 17885#ifdef __cplusplus 17886extern "C" 17887#endif 17888char gettext (); 17889int 17890main () 17891{ 17892return gettext (); 17893 ; 17894 return 0; 17895} 17896_ACEOF 17897for ac_lib in '' intl; do 17898 if test -z "$ac_lib"; then 17899 ac_res="none required" 17900 else 17901 ac_res=-l$ac_lib 17902 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17903 fi 17904 if ac_fn_c_try_link "$LINENO"; then : 17905 ac_cv_search_gettext=$ac_res 17906fi 17907rm -f core conftest.err conftest.$ac_objext \ 17908 conftest$ac_exeext 17909 if ${ac_cv_search_gettext+:} false; then : 17910 break 17911fi 17912done 17913if ${ac_cv_search_gettext+:} false; then : 17914 17915else 17916 ac_cv_search_gettext=no 17917fi 17918rm conftest.$ac_ext 17919LIBS=$ac_func_search_save_LIBS 17920fi 17921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 17922$as_echo "$ac_cv_search_gettext" >&6; } 17923ac_res=$ac_cv_search_gettext 17924if test "$ac_res" != no; then : 17925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17926 USE_GETTEXT="yes" 17927else 17928 USE_GETTEXT="no" 17929fi 17930 17931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 17932$as_echo_n "checking where to install localized messages... " >&6; } 17933 17934# Check whether --with-localedir was given. 17935if test "${with_localedir+set}" = set; then : 17936 withval=$with_localedir; LOCALEDIR=${withval} 17937else 17938 LOCALEDIR=${datadir}/locale 17939fi 17940 17941 17942 prefix_NONE= 17943 exec_prefix_NONE= 17944 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 17945 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 17946 eval ax_define_dir="\"$LOCALEDIR\"" 17947 eval ax_define_dir="\"$ax_define_dir\"" 17948 LOCALEDIR="$ax_define_dir" 17949 17950 17951cat >>confdefs.h <<_ACEOF 17952#define LOCALEDIR "$ax_define_dir" 17953_ACEOF 17954 17955 test "$prefix_NONE" && prefix=NONE 17956 test "$exec_prefix_NONE" && exec_prefix=NONE 17957 17958if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 17960$as_echo "nowhere" >&6; } 17961 USE_GETTEXT="no" 17962else 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 17964$as_echo "$LOCALEDIR" >&6; } 17965fi 17966 17967if test "x$USE_GETTEXT" = "xyes" ; then 17968 17969$as_echo "#define USE_GETTEXT 1" >>confdefs.h 17970 17971fi 17972 if test "x$USE_GETTEXT" = "xyes"; then 17973 USE_GETTEXT_TRUE= 17974 USE_GETTEXT_FALSE='#' 17975else 17976 USE_GETTEXT_TRUE='#' 17977 USE_GETTEXT_FALSE= 17978fi 17979 17980 17981# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz 17982# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile 17983# Check whether --enable-stat-zfile was given. 17984if test "${enable_stat_zfile+set}" = set; then : 17985 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval 17986else 17987 STAT_ZFILE=yes 17988fi 17989 17990if test x$STAT_ZFILE = xyes ; then 17991 17992$as_echo "#define STAT_ZFILE 1" >>confdefs.h 17993 17994fi 17995 17996 17997case $host_os in 17998 *mingw*) 17999 18000$as_echo "#define NO_ZPIPE 1" >>confdefs.h 18001 18002 ;; 18003 *) 18004 ;; 18005esac 18006 18007ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc" 18008 18009cat >confcache <<\_ACEOF 18010# This file is a shell script that caches the results of configure 18011# tests run on this system so they can be shared between configure 18012# scripts and configure runs, see configure's option --config-cache. 18013# It is not useful on other systems. If it contains results you don't 18014# want to keep, you may remove or edit it. 18015# 18016# config.status only pays attention to the cache file if you give it 18017# the --recheck option to rerun configure. 18018# 18019# `ac_cv_env_foo' variables (set or unset) will be overridden when 18020# loading this file, other *unset* `ac_cv_foo' will be assigned the 18021# following values. 18022 18023_ACEOF 18024 18025# The following way of writing the cache mishandles newlines in values, 18026# but we know of no workaround that is simple, portable, and efficient. 18027# So, we kill variables containing newlines. 18028# Ultrix sh set writes to stderr and can't be redirected directly, 18029# and sets the high bit in the cache file unless we assign to the vars. 18030( 18031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18032 eval ac_val=\$$ac_var 18033 case $ac_val in #( 18034 *${as_nl}*) 18035 case $ac_var in #( 18036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18038 esac 18039 case $ac_var in #( 18040 _ | IFS | as_nl) ;; #( 18041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18042 *) { eval $ac_var=; unset $ac_var;} ;; 18043 esac ;; 18044 esac 18045 done 18046 18047 (set) 2>&1 | 18048 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18049 *${as_nl}ac_space=\ *) 18050 # `set' does not quote correctly, so add quotes: double-quote 18051 # substitution turns \\\\ into \\, and sed turns \\ into \. 18052 sed -n \ 18053 "s/'/'\\\\''/g; 18054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18055 ;; #( 18056 *) 18057 # `set' quotes correctly as required by POSIX, so do not add quotes. 18058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18059 ;; 18060 esac | 18061 sort 18062) | 18063 sed ' 18064 /^ac_cv_env_/b end 18065 t clear 18066 :clear 18067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18068 t end 18069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18070 :end' >>confcache 18071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18072 if test -w "$cache_file"; then 18073 if test "x$cache_file" != "x/dev/null"; then 18074 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18075$as_echo "$as_me: updating cache $cache_file" >&6;} 18076 if test ! -f "$cache_file" || test -h "$cache_file"; then 18077 cat confcache >"$cache_file" 18078 else 18079 case $cache_file in #( 18080 */* | ?:*) 18081 mv -f confcache "$cache_file"$$ && 18082 mv -f "$cache_file"$$ "$cache_file" ;; #( 18083 *) 18084 mv -f confcache "$cache_file" ;; 18085 esac 18086 fi 18087 fi 18088 else 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18090$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18091 fi 18092fi 18093rm -f confcache 18094 18095test "x$prefix" = xNONE && prefix=$ac_default_prefix 18096# Let make expand exec_prefix. 18097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18098 18099DEFS=-DHAVE_CONFIG_H 18100 18101ac_libobjs= 18102ac_ltlibobjs= 18103U= 18104for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18105 # 1. Remove the extension, and $U if already installed. 18106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18109 # will be set to the directory where LIBOBJS objects are built. 18110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18112done 18113LIBOBJS=$ac_libobjs 18114 18115LTLIBOBJS=$ac_ltlibobjs 18116 18117 18118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18119$as_echo_n "checking that generated files are newer than configure... " >&6; } 18120 if test -n "$am_sleep_pid"; then 18121 # Hide warnings about reused PIDs. 18122 wait $am_sleep_pid 2>/dev/null 18123 fi 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18125$as_echo "done" >&6; } 18126 if test -n "$EXEEXT"; then 18127 am__EXEEXT_TRUE= 18128 am__EXEEXT_FALSE='#' 18129else 18130 am__EXEEXT_TRUE='#' 18131 am__EXEEXT_FALSE= 18132fi 18133 18134if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18135 as_fn_error $? "conditional \"AMDEP\" was never defined. 18136Usually this means the macro was only invoked conditionally." "$LINENO" 5 18137fi 18138if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18139 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18140Usually this means the macro was only invoked conditionally." "$LINENO" 5 18141fi 18142if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then 18143 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined. 18144Usually this means the macro was only invoked conditionally." "$LINENO" 5 18145fi 18146if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 18147 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 18148Usually this means the macro was only invoked conditionally." "$LINENO" 5 18149fi 18150 18151: "${CONFIG_STATUS=./config.status}" 18152ac_write_fail=0 18153ac_clean_files_save=$ac_clean_files 18154ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18155{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18156$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18157as_write_fail=0 18158cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18159#! $SHELL 18160# Generated by $as_me. 18161# Run this file to recreate the current configuration. 18162# Compiler output produced by configure, useful for debugging 18163# configure, is in config.log if it exists. 18164 18165debug=false 18166ac_cs_recheck=false 18167ac_cs_silent=false 18168 18169SHELL=\${CONFIG_SHELL-$SHELL} 18170export SHELL 18171_ASEOF 18172cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18173## -------------------- ## 18174## M4sh Initialization. ## 18175## -------------------- ## 18176 18177# Be more Bourne compatible 18178DUALCASE=1; export DUALCASE # for MKS sh 18179if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18180 emulate sh 18181 NULLCMD=: 18182 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18183 # is contrary to our usage. Disable this feature. 18184 alias -g '${1+"$@"}'='"$@"' 18185 setopt NO_GLOB_SUBST 18186else 18187 case `(set -o) 2>/dev/null` in #( 18188 *posix*) : 18189 set -o posix ;; #( 18190 *) : 18191 ;; 18192esac 18193fi 18194 18195 18196as_nl=' 18197' 18198export as_nl 18199# Printing a long string crashes Solaris 7 /usr/bin/printf. 18200as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18202as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18203# Prefer a ksh shell builtin over an external printf program on Solaris, 18204# but without wasting forks for bash or zsh. 18205if test -z "$BASH_VERSION$ZSH_VERSION" \ 18206 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18207 as_echo='print -r --' 18208 as_echo_n='print -rn --' 18209elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18210 as_echo='printf %s\n' 18211 as_echo_n='printf %s' 18212else 18213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18215 as_echo_n='/usr/ucb/echo -n' 18216 else 18217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18218 as_echo_n_body='eval 18219 arg=$1; 18220 case $arg in #( 18221 *"$as_nl"*) 18222 expr "X$arg" : "X\\(.*\\)$as_nl"; 18223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18224 esac; 18225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18226 ' 18227 export as_echo_n_body 18228 as_echo_n='sh -c $as_echo_n_body as_echo' 18229 fi 18230 export as_echo_body 18231 as_echo='sh -c $as_echo_body as_echo' 18232fi 18233 18234# The user is always right. 18235if test "${PATH_SEPARATOR+set}" != set; then 18236 PATH_SEPARATOR=: 18237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18239 PATH_SEPARATOR=';' 18240 } 18241fi 18242 18243 18244# IFS 18245# We need space, tab and new line, in precisely that order. Quoting is 18246# there to prevent editors from complaining about space-tab. 18247# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18248# splitting by setting IFS to empty value.) 18249IFS=" "" $as_nl" 18250 18251# Find who we are. Look in the path if we contain no directory separator. 18252as_myself= 18253case $0 in #(( 18254 *[\\/]* ) as_myself=$0 ;; 18255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18256for as_dir in $PATH 18257do 18258 IFS=$as_save_IFS 18259 test -z "$as_dir" && as_dir=. 18260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18261 done 18262IFS=$as_save_IFS 18263 18264 ;; 18265esac 18266# We did not find ourselves, most probably we were run as `sh COMMAND' 18267# in which case we are not to be found in the path. 18268if test "x$as_myself" = x; then 18269 as_myself=$0 18270fi 18271if test ! -f "$as_myself"; then 18272 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18273 exit 1 18274fi 18275 18276# Unset variables that we do not need and which cause bugs (e.g. in 18277# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18278# suppresses any "Segmentation fault" message there. '((' could 18279# trigger a bug in pdksh 5.2.14. 18280for as_var in BASH_ENV ENV MAIL MAILPATH 18281do eval test x\${$as_var+set} = xset \ 18282 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18283done 18284PS1='$ ' 18285PS2='> ' 18286PS4='+ ' 18287 18288# NLS nuisances. 18289LC_ALL=C 18290export LC_ALL 18291LANGUAGE=C 18292export LANGUAGE 18293 18294# CDPATH. 18295(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18296 18297 18298# as_fn_error STATUS ERROR [LINENO LOG_FD] 18299# ---------------------------------------- 18300# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18301# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18302# script with STATUS, using 1 if that was 0. 18303as_fn_error () 18304{ 18305 as_status=$1; test $as_status -eq 0 && as_status=1 18306 if test "$4"; then 18307 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18308 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18309 fi 18310 $as_echo "$as_me: error: $2" >&2 18311 as_fn_exit $as_status 18312} # as_fn_error 18313 18314 18315# as_fn_set_status STATUS 18316# ----------------------- 18317# Set $? to STATUS, without forking. 18318as_fn_set_status () 18319{ 18320 return $1 18321} # as_fn_set_status 18322 18323# as_fn_exit STATUS 18324# ----------------- 18325# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18326as_fn_exit () 18327{ 18328 set +e 18329 as_fn_set_status $1 18330 exit $1 18331} # as_fn_exit 18332 18333# as_fn_unset VAR 18334# --------------- 18335# Portably unset VAR. 18336as_fn_unset () 18337{ 18338 { eval $1=; unset $1;} 18339} 18340as_unset=as_fn_unset 18341# as_fn_append VAR VALUE 18342# ---------------------- 18343# Append the text in VALUE to the end of the definition contained in VAR. Take 18344# advantage of any shell optimizations that allow amortized linear growth over 18345# repeated appends, instead of the typical quadratic growth present in naive 18346# implementations. 18347if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18348 eval 'as_fn_append () 18349 { 18350 eval $1+=\$2 18351 }' 18352else 18353 as_fn_append () 18354 { 18355 eval $1=\$$1\$2 18356 } 18357fi # as_fn_append 18358 18359# as_fn_arith ARG... 18360# ------------------ 18361# Perform arithmetic evaluation on the ARGs, and store the result in the 18362# global $as_val. Take advantage of shells that can avoid forks. The arguments 18363# must be portable across $(()) and expr. 18364if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18365 eval 'as_fn_arith () 18366 { 18367 as_val=$(( $* )) 18368 }' 18369else 18370 as_fn_arith () 18371 { 18372 as_val=`expr "$@" || test $? -eq 1` 18373 } 18374fi # as_fn_arith 18375 18376 18377if expr a : '\(a\)' >/dev/null 2>&1 && 18378 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18379 as_expr=expr 18380else 18381 as_expr=false 18382fi 18383 18384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18385 as_basename=basename 18386else 18387 as_basename=false 18388fi 18389 18390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18391 as_dirname=dirname 18392else 18393 as_dirname=false 18394fi 18395 18396as_me=`$as_basename -- "$0" || 18397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18398 X"$0" : 'X\(//\)$' \| \ 18399 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18400$as_echo X/"$0" | 18401 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18402 s//\1/ 18403 q 18404 } 18405 /^X\/\(\/\/\)$/{ 18406 s//\1/ 18407 q 18408 } 18409 /^X\/\(\/\).*/{ 18410 s//\1/ 18411 q 18412 } 18413 s/.*/./; q'` 18414 18415# Avoid depending upon Character Ranges. 18416as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18418as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18419as_cr_digits='0123456789' 18420as_cr_alnum=$as_cr_Letters$as_cr_digits 18421 18422ECHO_C= ECHO_N= ECHO_T= 18423case `echo -n x` in #((((( 18424-n*) 18425 case `echo 'xy\c'` in 18426 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18427 xy) ECHO_C='\c';; 18428 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18429 ECHO_T=' ';; 18430 esac;; 18431*) 18432 ECHO_N='-n';; 18433esac 18434 18435rm -f conf$$ conf$$.exe conf$$.file 18436if test -d conf$$.dir; then 18437 rm -f conf$$.dir/conf$$.file 18438else 18439 rm -f conf$$.dir 18440 mkdir conf$$.dir 2>/dev/null 18441fi 18442if (echo >conf$$.file) 2>/dev/null; then 18443 if ln -s conf$$.file conf$$ 2>/dev/null; then 18444 as_ln_s='ln -s' 18445 # ... but there are two gotchas: 18446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18448 # In both cases, we have to default to `cp -p'. 18449 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18450 as_ln_s='cp -p' 18451 elif ln conf$$.file conf$$ 2>/dev/null; then 18452 as_ln_s=ln 18453 else 18454 as_ln_s='cp -p' 18455 fi 18456else 18457 as_ln_s='cp -p' 18458fi 18459rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18460rmdir conf$$.dir 2>/dev/null 18461 18462 18463# as_fn_mkdir_p 18464# ------------- 18465# Create "$as_dir" as a directory, including parents if necessary. 18466as_fn_mkdir_p () 18467{ 18468 18469 case $as_dir in #( 18470 -*) as_dir=./$as_dir;; 18471 esac 18472 test -d "$as_dir" || eval $as_mkdir_p || { 18473 as_dirs= 18474 while :; do 18475 case $as_dir in #( 18476 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18477 *) as_qdir=$as_dir;; 18478 esac 18479 as_dirs="'$as_qdir' $as_dirs" 18480 as_dir=`$as_dirname -- "$as_dir" || 18481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18482 X"$as_dir" : 'X\(//\)[^/]' \| \ 18483 X"$as_dir" : 'X\(//\)$' \| \ 18484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18485$as_echo X"$as_dir" | 18486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18487 s//\1/ 18488 q 18489 } 18490 /^X\(\/\/\)[^/].*/{ 18491 s//\1/ 18492 q 18493 } 18494 /^X\(\/\/\)$/{ 18495 s//\1/ 18496 q 18497 } 18498 /^X\(\/\).*/{ 18499 s//\1/ 18500 q 18501 } 18502 s/.*/./; q'` 18503 test -d "$as_dir" && break 18504 done 18505 test -z "$as_dirs" || eval "mkdir $as_dirs" 18506 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18507 18508 18509} # as_fn_mkdir_p 18510if mkdir -p . 2>/dev/null; then 18511 as_mkdir_p='mkdir -p "$as_dir"' 18512else 18513 test -d ./-p && rmdir ./-p 18514 as_mkdir_p=false 18515fi 18516 18517if test -x / >/dev/null 2>&1; then 18518 as_test_x='test -x' 18519else 18520 if ls -dL / >/dev/null 2>&1; then 18521 as_ls_L_option=L 18522 else 18523 as_ls_L_option= 18524 fi 18525 as_test_x=' 18526 eval sh -c '\'' 18527 if test -d "$1"; then 18528 test -d "$1/."; 18529 else 18530 case $1 in #( 18531 -*)set "./$1";; 18532 esac; 18533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18534 ???[sx]*):;;*)false;;esac;fi 18535 '\'' sh 18536 ' 18537fi 18538as_executable_p=$as_test_x 18539 18540# Sed expression to map a string onto a valid CPP name. 18541as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18542 18543# Sed expression to map a string onto a valid variable name. 18544as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18545 18546 18547exec 6>&1 18548## ----------------------------------- ## 18549## Main body of $CONFIG_STATUS script. ## 18550## ----------------------------------- ## 18551_ASEOF 18552test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18553 18554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18555# Save the log message, to keep $0 and so on meaningful, and to 18556# report actual input values of CONFIG_FILES etc. instead of their 18557# values after options handling. 18558ac_log=" 18559This file was extended by libXpm $as_me 3.5.11, which was 18560generated by GNU Autoconf 2.68. Invocation command line was 18561 18562 CONFIG_FILES = $CONFIG_FILES 18563 CONFIG_HEADERS = $CONFIG_HEADERS 18564 CONFIG_LINKS = $CONFIG_LINKS 18565 CONFIG_COMMANDS = $CONFIG_COMMANDS 18566 $ $0 $@ 18567 18568on `(hostname || uname -n) 2>/dev/null | sed 1q` 18569" 18570 18571_ACEOF 18572 18573case $ac_config_files in *" 18574"*) set x $ac_config_files; shift; ac_config_files=$*;; 18575esac 18576 18577case $ac_config_headers in *" 18578"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18579esac 18580 18581 18582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18583# Files that config.status was made for. 18584config_files="$ac_config_files" 18585config_headers="$ac_config_headers" 18586config_commands="$ac_config_commands" 18587 18588_ACEOF 18589 18590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18591ac_cs_usage="\ 18592\`$as_me' instantiates files and other configuration actions 18593from templates according to the current configuration. Unless the files 18594and actions are specified as TAGs, all are instantiated by default. 18595 18596Usage: $0 [OPTION]... [TAG]... 18597 18598 -h, --help print this help, then exit 18599 -V, --version print version number and configuration settings, then exit 18600 --config print configuration, then exit 18601 -q, --quiet, --silent 18602 do not print progress messages 18603 -d, --debug don't remove temporary files 18604 --recheck update $as_me by reconfiguring in the same conditions 18605 --file=FILE[:TEMPLATE] 18606 instantiate the configuration file FILE 18607 --header=FILE[:TEMPLATE] 18608 instantiate the configuration header FILE 18609 18610Configuration files: 18611$config_files 18612 18613Configuration headers: 18614$config_headers 18615 18616Configuration commands: 18617$config_commands 18618 18619Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18620 18621_ACEOF 18622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18623ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18624ac_cs_version="\\ 18625libXpm config.status 3.5.11 18626configured by $0, generated by GNU Autoconf 2.68, 18627 with options \\"\$ac_cs_config\\" 18628 18629Copyright (C) 2010 Free Software Foundation, Inc. 18630This config.status script is free software; the Free Software Foundation 18631gives unlimited permission to copy, distribute and modify it." 18632 18633ac_pwd='$ac_pwd' 18634srcdir='$srcdir' 18635INSTALL='$INSTALL' 18636MKDIR_P='$MKDIR_P' 18637AWK='$AWK' 18638test -n "\$AWK" || AWK=awk 18639_ACEOF 18640 18641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18642# The default lists apply if the user does not specify any file. 18643ac_need_defaults=: 18644while test $# != 0 18645do 18646 case $1 in 18647 --*=?*) 18648 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18650 ac_shift=: 18651 ;; 18652 --*=) 18653 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18654 ac_optarg= 18655 ac_shift=: 18656 ;; 18657 *) 18658 ac_option=$1 18659 ac_optarg=$2 18660 ac_shift=shift 18661 ;; 18662 esac 18663 18664 case $ac_option in 18665 # Handling of the options. 18666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18667 ac_cs_recheck=: ;; 18668 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18669 $as_echo "$ac_cs_version"; exit ;; 18670 --config | --confi | --conf | --con | --co | --c ) 18671 $as_echo "$ac_cs_config"; exit ;; 18672 --debug | --debu | --deb | --de | --d | -d ) 18673 debug=: ;; 18674 --file | --fil | --fi | --f ) 18675 $ac_shift 18676 case $ac_optarg in 18677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18678 '') as_fn_error $? "missing file argument" ;; 18679 esac 18680 as_fn_append CONFIG_FILES " '$ac_optarg'" 18681 ac_need_defaults=false;; 18682 --header | --heade | --head | --hea ) 18683 $ac_shift 18684 case $ac_optarg in 18685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18686 esac 18687 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18688 ac_need_defaults=false;; 18689 --he | --h) 18690 # Conflict between --help and --header 18691 as_fn_error $? "ambiguous option: \`$1' 18692Try \`$0 --help' for more information.";; 18693 --help | --hel | -h ) 18694 $as_echo "$ac_cs_usage"; exit ;; 18695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18696 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18697 ac_cs_silent=: ;; 18698 18699 # This is an error. 18700 -*) as_fn_error $? "unrecognized option: \`$1' 18701Try \`$0 --help' for more information." ;; 18702 18703 *) as_fn_append ac_config_targets " $1" 18704 ac_need_defaults=false ;; 18705 18706 esac 18707 shift 18708done 18709 18710ac_configure_extra_args= 18711 18712if $ac_cs_silent; then 18713 exec 6>/dev/null 18714 ac_configure_extra_args="$ac_configure_extra_args --silent" 18715fi 18716 18717_ACEOF 18718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18719if \$ac_cs_recheck; then 18720 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18721 shift 18722 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18723 CONFIG_SHELL='$SHELL' 18724 export CONFIG_SHELL 18725 exec "\$@" 18726fi 18727 18728_ACEOF 18729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18730exec 5>>config.log 18731{ 18732 echo 18733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18734## Running $as_me. ## 18735_ASBOX 18736 $as_echo "$ac_log" 18737} >&5 18738 18739_ACEOF 18740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18741# 18742# INIT-COMMANDS 18743# 18744AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18745 18746 18747# The HP-UX ksh and POSIX shell print the target directory to stdout 18748# if CDPATH is set. 18749(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18750 18751sed_quote_subst='$sed_quote_subst' 18752double_quote_subst='$double_quote_subst' 18753delay_variable_subst='$delay_variable_subst' 18754macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18755macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18756enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18757enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18758pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18759enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18760SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18761ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18762PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18763host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18764host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18765host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18766build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18767build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18768build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18769SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18770Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18771GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18772EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18773FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18774LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18775NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18776LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18777max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18778ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18779exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18780lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18781lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18782lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18783lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18784lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18785reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18786reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18787OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18788deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18789file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18790file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18791want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18792DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18793sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18794AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18795AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18796archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18797STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18798RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18799old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18800old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18801old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18802lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18803CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18804CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18805compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18806GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18807lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18808lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18809lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18810lt_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"`' 18811nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18812lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18813objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18814MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18815lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18816lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18817lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18818lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18819lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18820need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18821MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18822DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18823NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18824LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18825OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18826OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18827libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18828shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18829extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18830archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18831enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18832export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18833whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18834compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18835old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18836old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18837archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18838archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18839module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18840module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18841with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18842allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18843no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18844hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18845hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18846hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18847hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18848hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18849hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18850hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18851inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18852link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18853always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18854export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18855exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18856include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18857prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18858postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18859file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18860variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18861need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18862need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18863version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18864runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18865shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18866shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18867libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18868library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18869soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18870install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18871postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18872postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18873finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18874finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18875hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18876sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18877sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18878hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18879enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18880enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18881enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18882old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18883striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18884 18885LTCC='$LTCC' 18886LTCFLAGS='$LTCFLAGS' 18887compiler='$compiler_DEFAULT' 18888 18889# A function that is used when there is no print builtin or printf. 18890func_fallback_echo () 18891{ 18892 eval 'cat <<_LTECHO_EOF 18893\$1 18894_LTECHO_EOF' 18895} 18896 18897# Quote evaled strings. 18898for var in SHELL \ 18899ECHO \ 18900PATH_SEPARATOR \ 18901SED \ 18902GREP \ 18903EGREP \ 18904FGREP \ 18905LD \ 18906NM \ 18907LN_S \ 18908lt_SP2NL \ 18909lt_NL2SP \ 18910reload_flag \ 18911OBJDUMP \ 18912deplibs_check_method \ 18913file_magic_cmd \ 18914file_magic_glob \ 18915want_nocaseglob \ 18916DLLTOOL \ 18917sharedlib_from_linklib_cmd \ 18918AR \ 18919AR_FLAGS \ 18920archiver_list_spec \ 18921STRIP \ 18922RANLIB \ 18923CC \ 18924CFLAGS \ 18925compiler \ 18926lt_cv_sys_global_symbol_pipe \ 18927lt_cv_sys_global_symbol_to_cdecl \ 18928lt_cv_sys_global_symbol_to_c_name_address \ 18929lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18930nm_file_list_spec \ 18931lt_prog_compiler_no_builtin_flag \ 18932lt_prog_compiler_pic \ 18933lt_prog_compiler_wl \ 18934lt_prog_compiler_static \ 18935lt_cv_prog_compiler_c_o \ 18936need_locks \ 18937MANIFEST_TOOL \ 18938DSYMUTIL \ 18939NMEDIT \ 18940LIPO \ 18941OTOOL \ 18942OTOOL64 \ 18943shrext_cmds \ 18944export_dynamic_flag_spec \ 18945whole_archive_flag_spec \ 18946compiler_needs_object \ 18947with_gnu_ld \ 18948allow_undefined_flag \ 18949no_undefined_flag \ 18950hardcode_libdir_flag_spec \ 18951hardcode_libdir_separator \ 18952exclude_expsyms \ 18953include_expsyms \ 18954file_list_spec \ 18955variables_saved_for_relink \ 18956libname_spec \ 18957library_names_spec \ 18958soname_spec \ 18959install_override_mode \ 18960finish_eval \ 18961old_striplib \ 18962striplib; do 18963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18964 *[\\\\\\\`\\"\\\$]*) 18965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18966 ;; 18967 *) 18968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18969 ;; 18970 esac 18971done 18972 18973# Double-quote double-evaled strings. 18974for var in reload_cmds \ 18975old_postinstall_cmds \ 18976old_postuninstall_cmds \ 18977old_archive_cmds \ 18978extract_expsyms_cmds \ 18979old_archive_from_new_cmds \ 18980old_archive_from_expsyms_cmds \ 18981archive_cmds \ 18982archive_expsym_cmds \ 18983module_cmds \ 18984module_expsym_cmds \ 18985export_symbols_cmds \ 18986prelink_cmds \ 18987postlink_cmds \ 18988postinstall_cmds \ 18989postuninstall_cmds \ 18990finish_cmds \ 18991sys_lib_search_path_spec \ 18992sys_lib_dlsearch_path_spec; do 18993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18994 *[\\\\\\\`\\"\\\$]*) 18995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18996 ;; 18997 *) 18998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18999 ;; 19000 esac 19001done 19002 19003ac_aux_dir='$ac_aux_dir' 19004xsi_shell='$xsi_shell' 19005lt_shell_append='$lt_shell_append' 19006 19007# See if we are running on zsh, and set the options which allow our 19008# commands through without removal of \ escapes INIT. 19009if test -n "\${ZSH_VERSION+set}" ; then 19010 setopt NO_GLOB_SUBST 19011fi 19012 19013 19014 PACKAGE='$PACKAGE' 19015 VERSION='$VERSION' 19016 TIMESTAMP='$TIMESTAMP' 19017 RM='$RM' 19018 ofile='$ofile' 19019 19020 19021 19022 19023_ACEOF 19024 19025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19026 19027# Handling of arguments. 19028for ac_config_target in $ac_config_targets 19029do 19030 case $ac_config_target in 19031 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19032 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19033 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19034 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19035 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19036 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19037 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19038 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19039 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;; 19040 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;; 19041 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;; 19042 19043 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19044 esac 19045done 19046 19047 19048# If the user did not use the arguments to specify the items to instantiate, 19049# then the envvar interface is used. Set only those that are not. 19050# We use the long form for the default assignment because of an extremely 19051# bizarre bug on SunOS 4.1.3. 19052if $ac_need_defaults; then 19053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19056fi 19057 19058# Have a temporary directory for convenience. Make it in the build tree 19059# simply because there is no reason against having it here, and in addition, 19060# creating and moving files from /tmp can sometimes cause problems. 19061# Hook for its removal unless debugging. 19062# Note that there is a small window in which the directory will not be cleaned: 19063# after its creation but before its name has been assigned to `$tmp'. 19064$debug || 19065{ 19066 tmp= ac_tmp= 19067 trap 'exit_status=$? 19068 : "${ac_tmp:=$tmp}" 19069 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19070' 0 19071 trap 'as_fn_exit 1' 1 2 13 15 19072} 19073# Create a (secure) tmp directory for tmp files. 19074 19075{ 19076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19077 test -d "$tmp" 19078} || 19079{ 19080 tmp=./conf$$-$RANDOM 19081 (umask 077 && mkdir "$tmp") 19082} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19083ac_tmp=$tmp 19084 19085# Set up the scripts for CONFIG_FILES section. 19086# No need to generate them if there are no CONFIG_FILES. 19087# This happens for instance with `./config.status config.h'. 19088if test -n "$CONFIG_FILES"; then 19089 19090 19091ac_cr=`echo X | tr X '\015'` 19092# On cygwin, bash can eat \r inside `` if the user requested igncr. 19093# But we know of no other shell where ac_cr would be empty at this 19094# point, so we can use a bashism as a fallback. 19095if test "x$ac_cr" = x; then 19096 eval ac_cr=\$\'\\r\' 19097fi 19098ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19099if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19100 ac_cs_awk_cr='\\r' 19101else 19102 ac_cs_awk_cr=$ac_cr 19103fi 19104 19105echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19106_ACEOF 19107 19108 19109{ 19110 echo "cat >conf$$subs.awk <<_ACEOF" && 19111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19112 echo "_ACEOF" 19113} >conf$$subs.sh || 19114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19115ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19116ac_delim='%!_!# ' 19117for ac_last_try in false false false false false :; do 19118 . ./conf$$subs.sh || 19119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19120 19121 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19122 if test $ac_delim_n = $ac_delim_num; then 19123 break 19124 elif $ac_last_try; then 19125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19126 else 19127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19128 fi 19129done 19130rm -f conf$$subs.sh 19131 19132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19133cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19134_ACEOF 19135sed -n ' 19136h 19137s/^/S["/; s/!.*/"]=/ 19138p 19139g 19140s/^[^!]*!// 19141:repl 19142t repl 19143s/'"$ac_delim"'$// 19144t delim 19145:nl 19146h 19147s/\(.\{148\}\)..*/\1/ 19148t more1 19149s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19150p 19151n 19152b repl 19153:more1 19154s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19155p 19156g 19157s/.\{148\}// 19158t nl 19159:delim 19160h 19161s/\(.\{148\}\)..*/\1/ 19162t more2 19163s/["\\]/\\&/g; s/^/"/; s/$/"/ 19164p 19165b 19166:more2 19167s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19168p 19169g 19170s/.\{148\}// 19171t delim 19172' <conf$$subs.awk | sed ' 19173/^[^""]/{ 19174 N 19175 s/\n// 19176} 19177' >>$CONFIG_STATUS || ac_write_fail=1 19178rm -f conf$$subs.awk 19179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19180_ACAWK 19181cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19182 for (key in S) S_is_set[key] = 1 19183 FS = "" 19184 19185} 19186{ 19187 line = $ 0 19188 nfields = split(line, field, "@") 19189 substed = 0 19190 len = length(field[1]) 19191 for (i = 2; i < nfields; i++) { 19192 key = field[i] 19193 keylen = length(key) 19194 if (S_is_set[key]) { 19195 value = S[key] 19196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19197 len += length(value) + length(field[++i]) 19198 substed = 1 19199 } else 19200 len += 1 + keylen 19201 } 19202 19203 print line 19204} 19205 19206_ACAWK 19207_ACEOF 19208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19209if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19210 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19211else 19212 cat 19213fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19214 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19215_ACEOF 19216 19217# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19218# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19219# trailing colons and then remove the whole line if VPATH becomes empty 19220# (actually we leave an empty line to preserve line numbers). 19221if test "x$srcdir" = x.; then 19222 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19223h 19224s/// 19225s/^/:/ 19226s/[ ]*$/:/ 19227s/:\$(srcdir):/:/g 19228s/:\${srcdir}:/:/g 19229s/:@srcdir@:/:/g 19230s/^:*// 19231s/:*$// 19232x 19233s/\(=[ ]*\).*/\1/ 19234G 19235s/\n// 19236s/^[^=]*=[ ]*$// 19237}' 19238fi 19239 19240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19241fi # test -n "$CONFIG_FILES" 19242 19243# Set up the scripts for CONFIG_HEADERS section. 19244# No need to generate them if there are no CONFIG_HEADERS. 19245# This happens for instance with `./config.status Makefile'. 19246if test -n "$CONFIG_HEADERS"; then 19247cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19248BEGIN { 19249_ACEOF 19250 19251# Transform confdefs.h into an awk script `defines.awk', embedded as 19252# here-document in config.status, that substitutes the proper values into 19253# config.h.in to produce config.h. 19254 19255# Create a delimiter string that does not exist in confdefs.h, to ease 19256# handling of long lines. 19257ac_delim='%!_!# ' 19258for ac_last_try in false false :; do 19259 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19260 if test -z "$ac_tt"; then 19261 break 19262 elif $ac_last_try; then 19263 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19264 else 19265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19266 fi 19267done 19268 19269# For the awk script, D is an array of macro values keyed by name, 19270# likewise P contains macro parameters if any. Preserve backslash 19271# newline sequences. 19272 19273ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19274sed -n ' 19275s/.\{148\}/&'"$ac_delim"'/g 19276t rset 19277:rset 19278s/^[ ]*#[ ]*define[ ][ ]*/ / 19279t def 19280d 19281:def 19282s/\\$// 19283t bsnl 19284s/["\\]/\\&/g 19285s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19286D["\1"]=" \3"/p 19287s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19288d 19289:bsnl 19290s/["\\]/\\&/g 19291s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19292D["\1"]=" \3\\\\\\n"\\/p 19293t cont 19294s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19295t cont 19296d 19297:cont 19298n 19299s/.\{148\}/&'"$ac_delim"'/g 19300t clear 19301:clear 19302s/\\$// 19303t bsnlc 19304s/["\\]/\\&/g; s/^/"/; s/$/"/p 19305d 19306:bsnlc 19307s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19308b cont 19309' <confdefs.h | sed ' 19310s/'"$ac_delim"'/"\\\ 19311"/g' >>$CONFIG_STATUS || ac_write_fail=1 19312 19313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19314 for (key in D) D_is_set[key] = 1 19315 FS = "" 19316} 19317/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19318 line = \$ 0 19319 split(line, arg, " ") 19320 if (arg[1] == "#") { 19321 defundef = arg[2] 19322 mac1 = arg[3] 19323 } else { 19324 defundef = substr(arg[1], 2) 19325 mac1 = arg[2] 19326 } 19327 split(mac1, mac2, "(") #) 19328 macro = mac2[1] 19329 prefix = substr(line, 1, index(line, defundef) - 1) 19330 if (D_is_set[macro]) { 19331 # Preserve the white space surrounding the "#". 19332 print prefix "define", macro P[macro] D[macro] 19333 next 19334 } else { 19335 # Replace #undef with comments. This is necessary, for example, 19336 # in the case of _POSIX_SOURCE, which is predefined and required 19337 # on some systems where configure will not decide to define it. 19338 if (defundef == "undef") { 19339 print "/*", prefix defundef, macro, "*/" 19340 next 19341 } 19342 } 19343} 19344{ print } 19345_ACAWK 19346_ACEOF 19347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19348 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19349fi # test -n "$CONFIG_HEADERS" 19350 19351 19352eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19353shift 19354for ac_tag 19355do 19356 case $ac_tag in 19357 :[FHLC]) ac_mode=$ac_tag; continue;; 19358 esac 19359 case $ac_mode$ac_tag in 19360 :[FHL]*:*);; 19361 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19362 :[FH]-) ac_tag=-:-;; 19363 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19364 esac 19365 ac_save_IFS=$IFS 19366 IFS=: 19367 set x $ac_tag 19368 IFS=$ac_save_IFS 19369 shift 19370 ac_file=$1 19371 shift 19372 19373 case $ac_mode in 19374 :L) ac_source=$1;; 19375 :[FH]) 19376 ac_file_inputs= 19377 for ac_f 19378 do 19379 case $ac_f in 19380 -) ac_f="$ac_tmp/stdin";; 19381 *) # Look for the file first in the build tree, then in the source tree 19382 # (if the path is not absolute). The absolute path cannot be DOS-style, 19383 # because $ac_f cannot contain `:'. 19384 test -f "$ac_f" || 19385 case $ac_f in 19386 [\\/$]*) false;; 19387 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19388 esac || 19389 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19390 esac 19391 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19392 as_fn_append ac_file_inputs " '$ac_f'" 19393 done 19394 19395 # Let's still pretend it is `configure' which instantiates (i.e., don't 19396 # use $as_me), people would be surprised to read: 19397 # /* config.h. Generated by config.status. */ 19398 configure_input='Generated from '` 19399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19400 `' by configure.' 19401 if test x"$ac_file" != x-; then 19402 configure_input="$ac_file. $configure_input" 19403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19404$as_echo "$as_me: creating $ac_file" >&6;} 19405 fi 19406 # Neutralize special characters interpreted by sed in replacement strings. 19407 case $configure_input in #( 19408 *\&* | *\|* | *\\* ) 19409 ac_sed_conf_input=`$as_echo "$configure_input" | 19410 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19411 *) ac_sed_conf_input=$configure_input;; 19412 esac 19413 19414 case $ac_tag in 19415 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19417 esac 19418 ;; 19419 esac 19420 19421 ac_dir=`$as_dirname -- "$ac_file" || 19422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19423 X"$ac_file" : 'X\(//\)[^/]' \| \ 19424 X"$ac_file" : 'X\(//\)$' \| \ 19425 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19426$as_echo X"$ac_file" | 19427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19428 s//\1/ 19429 q 19430 } 19431 /^X\(\/\/\)[^/].*/{ 19432 s//\1/ 19433 q 19434 } 19435 /^X\(\/\/\)$/{ 19436 s//\1/ 19437 q 19438 } 19439 /^X\(\/\).*/{ 19440 s//\1/ 19441 q 19442 } 19443 s/.*/./; q'` 19444 as_dir="$ac_dir"; as_fn_mkdir_p 19445 ac_builddir=. 19446 19447case "$ac_dir" in 19448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19449*) 19450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19451 # A ".." for each directory in $ac_dir_suffix. 19452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19453 case $ac_top_builddir_sub in 19454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19456 esac ;; 19457esac 19458ac_abs_top_builddir=$ac_pwd 19459ac_abs_builddir=$ac_pwd$ac_dir_suffix 19460# for backward compatibility: 19461ac_top_builddir=$ac_top_build_prefix 19462 19463case $srcdir in 19464 .) # We are building in place. 19465 ac_srcdir=. 19466 ac_top_srcdir=$ac_top_builddir_sub 19467 ac_abs_top_srcdir=$ac_pwd ;; 19468 [\\/]* | ?:[\\/]* ) # Absolute name. 19469 ac_srcdir=$srcdir$ac_dir_suffix; 19470 ac_top_srcdir=$srcdir 19471 ac_abs_top_srcdir=$srcdir ;; 19472 *) # Relative name. 19473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19474 ac_top_srcdir=$ac_top_build_prefix$srcdir 19475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19476esac 19477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19478 19479 19480 case $ac_mode in 19481 :F) 19482 # 19483 # CONFIG_FILE 19484 # 19485 19486 case $INSTALL in 19487 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19488 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19489 esac 19490 ac_MKDIR_P=$MKDIR_P 19491 case $MKDIR_P in 19492 [\\/$]* | ?:[\\/]* ) ;; 19493 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19494 esac 19495_ACEOF 19496 19497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19498# If the template does not know about datarootdir, expand it. 19499# FIXME: This hack should be removed a few years after 2.60. 19500ac_datarootdir_hack=; ac_datarootdir_seen= 19501ac_sed_dataroot=' 19502/datarootdir/ { 19503 p 19504 q 19505} 19506/@datadir@/p 19507/@docdir@/p 19508/@infodir@/p 19509/@localedir@/p 19510/@mandir@/p' 19511case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19512*datarootdir*) ac_datarootdir_seen=yes;; 19513*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19515$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19516_ACEOF 19517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19518 ac_datarootdir_hack=' 19519 s&@datadir@&$datadir&g 19520 s&@docdir@&$docdir&g 19521 s&@infodir@&$infodir&g 19522 s&@localedir@&$localedir&g 19523 s&@mandir@&$mandir&g 19524 s&\\\${datarootdir}&$datarootdir&g' ;; 19525esac 19526_ACEOF 19527 19528# Neutralize VPATH when `$srcdir' = `.'. 19529# Shell code in configure.ac might set extrasub. 19530# FIXME: do we really want to maintain this feature? 19531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19532ac_sed_extra="$ac_vpsub 19533$extrasub 19534_ACEOF 19535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19536:t 19537/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19538s|@configure_input@|$ac_sed_conf_input|;t t 19539s&@top_builddir@&$ac_top_builddir_sub&;t t 19540s&@top_build_prefix@&$ac_top_build_prefix&;t t 19541s&@srcdir@&$ac_srcdir&;t t 19542s&@abs_srcdir@&$ac_abs_srcdir&;t t 19543s&@top_srcdir@&$ac_top_srcdir&;t t 19544s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19545s&@builddir@&$ac_builddir&;t t 19546s&@abs_builddir@&$ac_abs_builddir&;t t 19547s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19548s&@INSTALL@&$ac_INSTALL&;t t 19549s&@MKDIR_P@&$ac_MKDIR_P&;t t 19550$ac_datarootdir_hack 19551" 19552eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19553 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19554 19555test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19558 "$ac_tmp/out"`; test -z "$ac_out"; } && 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19560which seems to be undefined. Please make sure it is defined" >&5 19561$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19562which seems to be undefined. Please make sure it is defined" >&2;} 19563 19564 rm -f "$ac_tmp/stdin" 19565 case $ac_file in 19566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19568 esac \ 19569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19570 ;; 19571 :H) 19572 # 19573 # CONFIG_HEADER 19574 # 19575 if test x"$ac_file" != x-; then 19576 { 19577 $as_echo "/* $configure_input */" \ 19578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19579 } >"$ac_tmp/config.h" \ 19580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19583$as_echo "$as_me: $ac_file is unchanged" >&6;} 19584 else 19585 rm -f "$ac_file" 19586 mv "$ac_tmp/config.h" "$ac_file" \ 19587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19588 fi 19589 else 19590 $as_echo "/* $configure_input */" \ 19591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19592 || as_fn_error $? "could not create -" "$LINENO" 5 19593 fi 19594# Compute "$ac_file"'s index in $config_headers. 19595_am_arg="$ac_file" 19596_am_stamp_count=1 19597for _am_header in $config_headers :; do 19598 case $_am_header in 19599 $_am_arg | $_am_arg:* ) 19600 break ;; 19601 * ) 19602 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19603 esac 19604done 19605echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19606$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19607 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19608 X"$_am_arg" : 'X\(//\)$' \| \ 19609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19610$as_echo X"$_am_arg" | 19611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19612 s//\1/ 19613 q 19614 } 19615 /^X\(\/\/\)[^/].*/{ 19616 s//\1/ 19617 q 19618 } 19619 /^X\(\/\/\)$/{ 19620 s//\1/ 19621 q 19622 } 19623 /^X\(\/\).*/{ 19624 s//\1/ 19625 q 19626 } 19627 s/.*/./; q'`/stamp-h$_am_stamp_count 19628 ;; 19629 19630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19631$as_echo "$as_me: executing $ac_file commands" >&6;} 19632 ;; 19633 esac 19634 19635 19636 case $ac_file$ac_mode in 19637 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19638 # Older Autoconf quotes --file arguments for eval, but not when files 19639 # are listed without --file. Let's play safe and only enable the eval 19640 # if we detect the quoting. 19641 case $CONFIG_FILES in 19642 *\'*) eval set x "$CONFIG_FILES" ;; 19643 *) set x $CONFIG_FILES ;; 19644 esac 19645 shift 19646 for mf 19647 do 19648 # Strip MF so we end up with the name of the file. 19649 mf=`echo "$mf" | sed -e 's/:.*$//'` 19650 # Check whether this is an Automake generated Makefile or not. 19651 # We used to match only the files named 'Makefile.in', but 19652 # some people rename them; so instead we look at the file content. 19653 # Grep'ing the first line is not enough: some people post-process 19654 # each Makefile.in and add a new line on top of each file to say so. 19655 # Grep'ing the whole file is not good either: AIX grep has a line 19656 # limit of 2048, but all sed's we know have understand at least 4000. 19657 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19658 dirpart=`$as_dirname -- "$mf" || 19659$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19660 X"$mf" : 'X\(//\)[^/]' \| \ 19661 X"$mf" : 'X\(//\)$' \| \ 19662 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19663$as_echo X"$mf" | 19664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19665 s//\1/ 19666 q 19667 } 19668 /^X\(\/\/\)[^/].*/{ 19669 s//\1/ 19670 q 19671 } 19672 /^X\(\/\/\)$/{ 19673 s//\1/ 19674 q 19675 } 19676 /^X\(\/\).*/{ 19677 s//\1/ 19678 q 19679 } 19680 s/.*/./; q'` 19681 else 19682 continue 19683 fi 19684 # Extract the definition of DEPDIR, am__include, and am__quote 19685 # from the Makefile without running 'make'. 19686 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19687 test -z "$DEPDIR" && continue 19688 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19689 test -z "$am__include" && continue 19690 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19691 # Find all dependency output files, they are included files with 19692 # $(DEPDIR) in their names. We invoke sed twice because it is the 19693 # simplest approach to changing $(DEPDIR) to its actual value in the 19694 # expansion. 19695 for file in `sed -n " 19696 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19697 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19698 # Make sure the directory exists. 19699 test -f "$dirpart/$file" && continue 19700 fdir=`$as_dirname -- "$file" || 19701$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19702 X"$file" : 'X\(//\)[^/]' \| \ 19703 X"$file" : 'X\(//\)$' \| \ 19704 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19705$as_echo X"$file" | 19706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19707 s//\1/ 19708 q 19709 } 19710 /^X\(\/\/\)[^/].*/{ 19711 s//\1/ 19712 q 19713 } 19714 /^X\(\/\/\)$/{ 19715 s//\1/ 19716 q 19717 } 19718 /^X\(\/\).*/{ 19719 s//\1/ 19720 q 19721 } 19722 s/.*/./; q'` 19723 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19724 # echo "creating $dirpart/$file" 19725 echo '# dummy' > "$dirpart/$file" 19726 done 19727 done 19728} 19729 ;; 19730 "libtool":C) 19731 19732 # See if we are running on zsh, and set the options which allow our 19733 # commands through without removal of \ escapes. 19734 if test -n "${ZSH_VERSION+set}" ; then 19735 setopt NO_GLOB_SUBST 19736 fi 19737 19738 cfgfile="${ofile}T" 19739 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19740 $RM "$cfgfile" 19741 19742 cat <<_LT_EOF >> "$cfgfile" 19743#! $SHELL 19744 19745# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19746# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19747# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19748# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19749# 19750# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19751# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19752# Foundation, Inc. 19753# Written by Gordon Matzigkeit, 1996 19754# 19755# This file is part of GNU Libtool. 19756# 19757# GNU Libtool is free software; you can redistribute it and/or 19758# modify it under the terms of the GNU General Public License as 19759# published by the Free Software Foundation; either version 2 of 19760# the License, or (at your option) any later version. 19761# 19762# As a special exception to the GNU General Public License, 19763# if you distribute this file as part of a program or library that 19764# is built using GNU Libtool, you may include this file under the 19765# same distribution terms that you use for the rest of that program. 19766# 19767# GNU Libtool is distributed in the hope that it will be useful, 19768# but WITHOUT ANY WARRANTY; without even the implied warranty of 19769# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19770# GNU General Public License for more details. 19771# 19772# You should have received a copy of the GNU General Public License 19773# along with GNU Libtool; see the file COPYING. If not, a copy 19774# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19775# obtained by writing to the Free Software Foundation, Inc., 19776# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19777 19778 19779# The names of the tagged configurations supported by this script. 19780available_tags="" 19781 19782# ### BEGIN LIBTOOL CONFIG 19783 19784# Which release of libtool.m4 was used? 19785macro_version=$macro_version 19786macro_revision=$macro_revision 19787 19788# Whether or not to build shared libraries. 19789build_libtool_libs=$enable_shared 19790 19791# Whether or not to build static libraries. 19792build_old_libs=$enable_static 19793 19794# What type of objects to build. 19795pic_mode=$pic_mode 19796 19797# Whether or not to optimize for fast installation. 19798fast_install=$enable_fast_install 19799 19800# Shell to use when invoking shell scripts. 19801SHELL=$lt_SHELL 19802 19803# An echo program that protects backslashes. 19804ECHO=$lt_ECHO 19805 19806# The PATH separator for the build system. 19807PATH_SEPARATOR=$lt_PATH_SEPARATOR 19808 19809# The host system. 19810host_alias=$host_alias 19811host=$host 19812host_os=$host_os 19813 19814# The build system. 19815build_alias=$build_alias 19816build=$build 19817build_os=$build_os 19818 19819# A sed program that does not truncate output. 19820SED=$lt_SED 19821 19822# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19823Xsed="\$SED -e 1s/^X//" 19824 19825# A grep program that handles long lines. 19826GREP=$lt_GREP 19827 19828# An ERE matcher. 19829EGREP=$lt_EGREP 19830 19831# A literal string matcher. 19832FGREP=$lt_FGREP 19833 19834# A BSD- or MS-compatible name lister. 19835NM=$lt_NM 19836 19837# Whether we need soft or hard links. 19838LN_S=$lt_LN_S 19839 19840# What is the maximum length of a command? 19841max_cmd_len=$max_cmd_len 19842 19843# Object file suffix (normally "o"). 19844objext=$ac_objext 19845 19846# Executable file suffix (normally ""). 19847exeext=$exeext 19848 19849# whether the shell understands "unset". 19850lt_unset=$lt_unset 19851 19852# turn spaces into newlines. 19853SP2NL=$lt_lt_SP2NL 19854 19855# turn newlines into spaces. 19856NL2SP=$lt_lt_NL2SP 19857 19858# convert \$build file names to \$host format. 19859to_host_file_cmd=$lt_cv_to_host_file_cmd 19860 19861# convert \$build files to toolchain format. 19862to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19863 19864# An object symbol dumper. 19865OBJDUMP=$lt_OBJDUMP 19866 19867# Method to check whether dependent libraries are shared objects. 19868deplibs_check_method=$lt_deplibs_check_method 19869 19870# Command to use when deplibs_check_method = "file_magic". 19871file_magic_cmd=$lt_file_magic_cmd 19872 19873# How to find potential files when deplibs_check_method = "file_magic". 19874file_magic_glob=$lt_file_magic_glob 19875 19876# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19877want_nocaseglob=$lt_want_nocaseglob 19878 19879# DLL creation program. 19880DLLTOOL=$lt_DLLTOOL 19881 19882# Command to associate shared and link libraries. 19883sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19884 19885# The archiver. 19886AR=$lt_AR 19887 19888# Flags to create an archive. 19889AR_FLAGS=$lt_AR_FLAGS 19890 19891# How to feed a file listing to the archiver. 19892archiver_list_spec=$lt_archiver_list_spec 19893 19894# A symbol stripping program. 19895STRIP=$lt_STRIP 19896 19897# Commands used to install an old-style archive. 19898RANLIB=$lt_RANLIB 19899old_postinstall_cmds=$lt_old_postinstall_cmds 19900old_postuninstall_cmds=$lt_old_postuninstall_cmds 19901 19902# Whether to use a lock for old archive extraction. 19903lock_old_archive_extraction=$lock_old_archive_extraction 19904 19905# A C compiler. 19906LTCC=$lt_CC 19907 19908# LTCC compiler flags. 19909LTCFLAGS=$lt_CFLAGS 19910 19911# Take the output of nm and produce a listing of raw symbols and C names. 19912global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19913 19914# Transform the output of nm in a proper C declaration. 19915global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19916 19917# Transform the output of nm in a C name address pair. 19918global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19919 19920# Transform the output of nm in a C name address pair when lib prefix is needed. 19921global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19922 19923# Specify filename containing input files for \$NM. 19924nm_file_list_spec=$lt_nm_file_list_spec 19925 19926# The root where to search for dependent libraries,and in which our libraries should be installed. 19927lt_sysroot=$lt_sysroot 19928 19929# The name of the directory that contains temporary libtool files. 19930objdir=$objdir 19931 19932# Used to examine libraries when file_magic_cmd begins with "file". 19933MAGIC_CMD=$MAGIC_CMD 19934 19935# Must we lock files when doing compilation? 19936need_locks=$lt_need_locks 19937 19938# Manifest tool. 19939MANIFEST_TOOL=$lt_MANIFEST_TOOL 19940 19941# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19942DSYMUTIL=$lt_DSYMUTIL 19943 19944# Tool to change global to local symbols on Mac OS X. 19945NMEDIT=$lt_NMEDIT 19946 19947# Tool to manipulate fat objects and archives on Mac OS X. 19948LIPO=$lt_LIPO 19949 19950# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19951OTOOL=$lt_OTOOL 19952 19953# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19954OTOOL64=$lt_OTOOL64 19955 19956# Old archive suffix (normally "a"). 19957libext=$libext 19958 19959# Shared library suffix (normally ".so"). 19960shrext_cmds=$lt_shrext_cmds 19961 19962# The commands to extract the exported symbol list from a shared archive. 19963extract_expsyms_cmds=$lt_extract_expsyms_cmds 19964 19965# Variables whose values should be saved in libtool wrapper scripts and 19966# restored at link time. 19967variables_saved_for_relink=$lt_variables_saved_for_relink 19968 19969# Do we need the "lib" prefix for modules? 19970need_lib_prefix=$need_lib_prefix 19971 19972# Do we need a version for libraries? 19973need_version=$need_version 19974 19975# Library versioning type. 19976version_type=$version_type 19977 19978# Shared library runtime path variable. 19979runpath_var=$runpath_var 19980 19981# Shared library path variable. 19982shlibpath_var=$shlibpath_var 19983 19984# Is shlibpath searched before the hard-coded library search path? 19985shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19986 19987# Format of library name prefix. 19988libname_spec=$lt_libname_spec 19989 19990# List of archive names. First name is the real one, the rest are links. 19991# The last name is the one that the linker finds with -lNAME 19992library_names_spec=$lt_library_names_spec 19993 19994# The coded name of the library, if different from the real name. 19995soname_spec=$lt_soname_spec 19996 19997# Permission mode override for installation of shared libraries. 19998install_override_mode=$lt_install_override_mode 19999 20000# Command to use after installation of a shared archive. 20001postinstall_cmds=$lt_postinstall_cmds 20002 20003# Command to use after uninstallation of a shared archive. 20004postuninstall_cmds=$lt_postuninstall_cmds 20005 20006# Commands used to finish a libtool library installation in a directory. 20007finish_cmds=$lt_finish_cmds 20008 20009# As "finish_cmds", except a single script fragment to be evaled but 20010# not shown. 20011finish_eval=$lt_finish_eval 20012 20013# Whether we should hardcode library paths into libraries. 20014hardcode_into_libs=$hardcode_into_libs 20015 20016# Compile-time system search path for libraries. 20017sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20018 20019# Run-time system search path for libraries. 20020sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20021 20022# Whether dlopen is supported. 20023dlopen_support=$enable_dlopen 20024 20025# Whether dlopen of programs is supported. 20026dlopen_self=$enable_dlopen_self 20027 20028# Whether dlopen of statically linked programs is supported. 20029dlopen_self_static=$enable_dlopen_self_static 20030 20031# Commands to strip libraries. 20032old_striplib=$lt_old_striplib 20033striplib=$lt_striplib 20034 20035 20036# The linker used to build libraries. 20037LD=$lt_LD 20038 20039# How to create reloadable object files. 20040reload_flag=$lt_reload_flag 20041reload_cmds=$lt_reload_cmds 20042 20043# Commands used to build an old-style archive. 20044old_archive_cmds=$lt_old_archive_cmds 20045 20046# A language specific compiler. 20047CC=$lt_compiler 20048 20049# Is the compiler the GNU compiler? 20050with_gcc=$GCC 20051 20052# Compiler flag to turn off builtin functions. 20053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20054 20055# Additional compiler flags for building library objects. 20056pic_flag=$lt_lt_prog_compiler_pic 20057 20058# How to pass a linker flag through the compiler. 20059wl=$lt_lt_prog_compiler_wl 20060 20061# Compiler flag to prevent dynamic linking. 20062link_static_flag=$lt_lt_prog_compiler_static 20063 20064# Does compiler simultaneously support -c and -o options? 20065compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20066 20067# Whether or not to add -lc for building shared libraries. 20068build_libtool_need_lc=$archive_cmds_need_lc 20069 20070# Whether or not to disallow shared libs when runtime libs are static. 20071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20072 20073# Compiler flag to allow reflexive dlopens. 20074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20075 20076# Compiler flag to generate shared objects directly from archives. 20077whole_archive_flag_spec=$lt_whole_archive_flag_spec 20078 20079# Whether the compiler copes with passing no objects directly. 20080compiler_needs_object=$lt_compiler_needs_object 20081 20082# Create an old-style archive from a shared archive. 20083old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20084 20085# Create a temporary old-style archive to link instead of a shared archive. 20086old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20087 20088# Commands used to build a shared archive. 20089archive_cmds=$lt_archive_cmds 20090archive_expsym_cmds=$lt_archive_expsym_cmds 20091 20092# Commands used to build a loadable module if different from building 20093# a shared archive. 20094module_cmds=$lt_module_cmds 20095module_expsym_cmds=$lt_module_expsym_cmds 20096 20097# Whether we are building with GNU ld or not. 20098with_gnu_ld=$lt_with_gnu_ld 20099 20100# Flag that allows shared libraries with undefined symbols to be built. 20101allow_undefined_flag=$lt_allow_undefined_flag 20102 20103# Flag that enforces no undefined symbols. 20104no_undefined_flag=$lt_no_undefined_flag 20105 20106# Flag to hardcode \$libdir into a binary during linking. 20107# This must work even if \$libdir does not exist 20108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20109 20110# Whether we need a single "-rpath" flag with a separated argument. 20111hardcode_libdir_separator=$lt_hardcode_libdir_separator 20112 20113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20114# DIR into the resulting binary. 20115hardcode_direct=$hardcode_direct 20116 20117# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20118# DIR into the resulting binary and the resulting library dependency is 20119# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20120# library is relocated. 20121hardcode_direct_absolute=$hardcode_direct_absolute 20122 20123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20124# into the resulting binary. 20125hardcode_minus_L=$hardcode_minus_L 20126 20127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20128# into the resulting binary. 20129hardcode_shlibpath_var=$hardcode_shlibpath_var 20130 20131# Set to "yes" if building a shared library automatically hardcodes DIR 20132# into the library and all subsequent libraries and executables linked 20133# against it. 20134hardcode_automatic=$hardcode_automatic 20135 20136# Set to yes if linker adds runtime paths of dependent libraries 20137# to runtime path list. 20138inherit_rpath=$inherit_rpath 20139 20140# Whether libtool must link a program against all its dependency libraries. 20141link_all_deplibs=$link_all_deplibs 20142 20143# Set to "yes" if exported symbols are required. 20144always_export_symbols=$always_export_symbols 20145 20146# The commands to list exported symbols. 20147export_symbols_cmds=$lt_export_symbols_cmds 20148 20149# Symbols that should not be listed in the preloaded symbols. 20150exclude_expsyms=$lt_exclude_expsyms 20151 20152# Symbols that must always be exported. 20153include_expsyms=$lt_include_expsyms 20154 20155# Commands necessary for linking programs (against libraries) with templates. 20156prelink_cmds=$lt_prelink_cmds 20157 20158# Commands necessary for finishing linking programs. 20159postlink_cmds=$lt_postlink_cmds 20160 20161# Specify filename containing input files. 20162file_list_spec=$lt_file_list_spec 20163 20164# How to hardcode a shared library path into an executable. 20165hardcode_action=$hardcode_action 20166 20167# ### END LIBTOOL CONFIG 20168 20169_LT_EOF 20170 20171 case $host_os in 20172 aix3*) 20173 cat <<\_LT_EOF >> "$cfgfile" 20174# AIX sometimes has problems with the GCC collect2 program. For some 20175# reason, if we set the COLLECT_NAMES environment variable, the problems 20176# vanish in a puff of smoke. 20177if test "X${COLLECT_NAMES+set}" != Xset; then 20178 COLLECT_NAMES= 20179 export COLLECT_NAMES 20180fi 20181_LT_EOF 20182 ;; 20183 esac 20184 20185 20186ltmain="$ac_aux_dir/ltmain.sh" 20187 20188 20189 # We use sed instead of cat because bash on DJGPP gets confused if 20190 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20191 # text mode, it properly converts lines to CR/LF. This bash problem 20192 # is reportedly fixed, but why not run on old versions too? 20193 sed '$q' "$ltmain" >> "$cfgfile" \ 20194 || (rm -f "$cfgfile"; exit 1) 20195 20196 if test x"$xsi_shell" = xyes; then 20197 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20198func_dirname ()\ 20199{\ 20200\ case ${1} in\ 20201\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20202\ * ) func_dirname_result="${3}" ;;\ 20203\ esac\ 20204} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20205 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20207test 0 -eq $? || _lt_function_replace_fail=: 20208 20209 20210 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20211func_basename ()\ 20212{\ 20213\ func_basename_result="${1##*/}"\ 20214} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20215 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20217test 0 -eq $? || _lt_function_replace_fail=: 20218 20219 20220 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20221func_dirname_and_basename ()\ 20222{\ 20223\ case ${1} in\ 20224\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20225\ * ) func_dirname_result="${3}" ;;\ 20226\ esac\ 20227\ func_basename_result="${1##*/}"\ 20228} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20229 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20231test 0 -eq $? || _lt_function_replace_fail=: 20232 20233 20234 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20235func_stripname ()\ 20236{\ 20237\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20238\ # positional parameters, so assign one to ordinary parameter first.\ 20239\ func_stripname_result=${3}\ 20240\ func_stripname_result=${func_stripname_result#"${1}"}\ 20241\ func_stripname_result=${func_stripname_result%"${2}"}\ 20242} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20243 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20245test 0 -eq $? || _lt_function_replace_fail=: 20246 20247 20248 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20249func_split_long_opt ()\ 20250{\ 20251\ func_split_long_opt_name=${1%%=*}\ 20252\ func_split_long_opt_arg=${1#*=}\ 20253} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20254 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20256test 0 -eq $? || _lt_function_replace_fail=: 20257 20258 20259 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20260func_split_short_opt ()\ 20261{\ 20262\ func_split_short_opt_arg=${1#??}\ 20263\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20264} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20265 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20267test 0 -eq $? || _lt_function_replace_fail=: 20268 20269 20270 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20271func_lo2o ()\ 20272{\ 20273\ case ${1} in\ 20274\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20275\ *) func_lo2o_result=${1} ;;\ 20276\ esac\ 20277} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20278 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20280test 0 -eq $? || _lt_function_replace_fail=: 20281 20282 20283 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20284func_xform ()\ 20285{\ 20286 func_xform_result=${1%.*}.lo\ 20287} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20288 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20290test 0 -eq $? || _lt_function_replace_fail=: 20291 20292 20293 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20294func_arith ()\ 20295{\ 20296 func_arith_result=$(( $* ))\ 20297} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20298 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20300test 0 -eq $? || _lt_function_replace_fail=: 20301 20302 20303 sed -e '/^func_len ()$/,/^} # func_len /c\ 20304func_len ()\ 20305{\ 20306 func_len_result=${#1}\ 20307} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20308 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20310test 0 -eq $? || _lt_function_replace_fail=: 20311 20312fi 20313 20314if test x"$lt_shell_append" = xyes; then 20315 sed -e '/^func_append ()$/,/^} # func_append /c\ 20316func_append ()\ 20317{\ 20318 eval "${1}+=\\${2}"\ 20319} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20320 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20322test 0 -eq $? || _lt_function_replace_fail=: 20323 20324 20325 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20326func_append_quoted ()\ 20327{\ 20328\ func_quote_for_eval "${2}"\ 20329\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20330} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20331 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20333test 0 -eq $? || _lt_function_replace_fail=: 20334 20335 20336 # Save a `func_append' function call where possible by direct use of '+=' 20337 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20338 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20340 test 0 -eq $? || _lt_function_replace_fail=: 20341else 20342 # Save a `func_append' function call even when '+=' is not available 20343 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20344 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20346 test 0 -eq $? || _lt_function_replace_fail=: 20347fi 20348 20349if test x"$_lt_function_replace_fail" = x":"; then 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20351$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20352fi 20353 20354 20355 mv -f "$cfgfile" "$ofile" || 20356 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20357 chmod +x "$ofile" 20358 20359 ;; 20360 20361 esac 20362done # for ac_tag 20363 20364 20365as_fn_exit 0 20366_ACEOF 20367ac_clean_files=$ac_clean_files_save 20368 20369test $ac_write_fail = 0 || 20370 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20371 20372 20373# configure is writing to config.log, and then calls config.status. 20374# config.status does its own redirection, appending to config.log. 20375# Unfortunately, on DOS this fails, as config.log is still kept open 20376# by configure, so config.status won't be able to write to it; its 20377# output is simply discarded. So we exec the FD to /dev/null, 20378# effectively closing config.log, so it can be properly (re)opened and 20379# appended to by config.status. When coming back to configure, we 20380# need to make the FD available again. 20381if test "$no_create" != yes; then 20382 ac_cs_success=: 20383 ac_config_status_args= 20384 test "$silent" = yes && 20385 ac_config_status_args="$ac_config_status_args --quiet" 20386 exec 5>/dev/null 20387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20388 exec 5>>config.log 20389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20390 # would make configure fail if this is the last instruction. 20391 $ac_cs_success || as_fn_exit 1 20392fi 20393if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20395$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20396fi 20397 20398