1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for hwloc 2.4.1rc3-git. 4# 5# Report bugs to <https://github.com/open-mpi/hwloc/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://github.com/open-mpi/hwloc/issues about your 279$0: system, including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='hwloc' 592PACKAGE_TARNAME='hwloc' 593PACKAGE_VERSION='2.4.1rc3-git' 594PACKAGE_STRING='hwloc 2.4.1rc3-git' 595PACKAGE_BUGREPORT='https://github.com/open-mpi/hwloc/issues' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638FOUND_XZ_FALSE 639FOUND_XZ_TRUE 640BUILD_MPITOOLS_FALSE 641BUILD_MPITOOLS_TRUE 642BUILD_NETLOCSCOTCH_FALSE 643BUILD_NETLOCSCOTCH_TRUE 644BUILD_NETLOC_FALSE 645BUILD_NETLOC_TRUE 646HWLOC_HAVE_CXX_FALSE 647HWLOC_HAVE_CXX_TRUE 648HWLOC_XML_LIBXML_BUILD_STATIC_FALSE 649HWLOC_XML_LIBXML_BUILD_STATIC_TRUE 650HWLOC_GL_BUILD_STATIC_FALSE 651HWLOC_GL_BUILD_STATIC_TRUE 652HWLOC_RSMI_BUILD_STATIC_FALSE 653HWLOC_RSMI_BUILD_STATIC_TRUE 654HWLOC_NVML_BUILD_STATIC_FALSE 655HWLOC_NVML_BUILD_STATIC_TRUE 656HWLOC_CUDA_BUILD_STATIC_FALSE 657HWLOC_CUDA_BUILD_STATIC_TRUE 658HWLOC_OPENCL_BUILD_STATIC_FALSE 659HWLOC_OPENCL_BUILD_STATIC_TRUE 660HWLOC_PCI_BUILD_STATIC_FALSE 661HWLOC_PCI_BUILD_STATIC_TRUE 662HWLOC_HAVE_PLUGINS_FALSE 663HWLOC_HAVE_PLUGINS_TRUE 664HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE 665HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE 666HWLOC_HAVE_X86_CPUID_FALSE 667HWLOC_HAVE_X86_CPUID_TRUE 668HWLOC_HAVE_X86_64_FALSE 669HWLOC_HAVE_X86_64_TRUE 670HWLOC_HAVE_X86_32_FALSE 671HWLOC_HAVE_X86_32_TRUE 672HWLOC_HAVE_X86_FALSE 673HWLOC_HAVE_X86_TRUE 674HWLOC_HAVE_MINGW32_FALSE 675HWLOC_HAVE_MINGW32_TRUE 676HWLOC_HAVE_WINDOWS_FALSE 677HWLOC_HAVE_WINDOWS_TRUE 678HWLOC_HAVE_HPUX_FALSE 679HWLOC_HAVE_HPUX_TRUE 680HWLOC_HAVE_AIX_FALSE 681HWLOC_HAVE_AIX_TRUE 682HWLOC_HAVE_SOLARIS_FALSE 683HWLOC_HAVE_SOLARIS_TRUE 684HWLOC_HAVE_NETBSD_FALSE 685HWLOC_HAVE_NETBSD_TRUE 686HWLOC_HAVE_FREEBSD_FALSE 687HWLOC_HAVE_FREEBSD_TRUE 688HWLOC_HAVE_DARWIN_FALSE 689HWLOC_HAVE_DARWIN_TRUE 690HWLOC_HAVE_IRIX_FALSE 691HWLOC_HAVE_IRIX_TRUE 692HWLOC_HAVE_BGQ_FALSE 693HWLOC_HAVE_BGQ_TRUE 694HWLOC_HAVE_LINUX_FALSE 695HWLOC_HAVE_LINUX_TRUE 696HWLOC_INSTALL_DOXYGEN_FALSE 697HWLOC_INSTALL_DOXYGEN_TRUE 698HWLOC_BUILD_README_FALSE 699HWLOC_BUILD_README_TRUE 700HWLOC_BUILD_DOXYGEN_FALSE 701HWLOC_BUILD_DOXYGEN_TRUE 702HWLOC_HAVE_USER32_FALSE 703HWLOC_HAVE_USER32_TRUE 704HWLOC_HAVE_BUNZIPP_FALSE 705HWLOC_HAVE_BUNZIPP_TRUE 706HWLOC_HAVE_RSMI_FALSE 707HWLOC_HAVE_RSMI_TRUE 708HWLOC_HAVE_NVML_FALSE 709HWLOC_HAVE_NVML_TRUE 710HWLOC_HAVE_OPENCL_FALSE 711HWLOC_HAVE_OPENCL_TRUE 712HWLOC_HAVE_PCIACCESS_FALSE 713HWLOC_HAVE_PCIACCESS_TRUE 714HWLOC_HAVE_CAIRO_FALSE 715HWLOC_HAVE_CAIRO_TRUE 716HWLOC_HAVE_LIBXML2_FALSE 717HWLOC_HAVE_LIBXML2_TRUE 718HWLOC_HAVE_CUDART_FALSE 719HWLOC_HAVE_CUDART_TRUE 720HWLOC_HAVE_GL_FALSE 721HWLOC_HAVE_GL_TRUE 722HWLOC_HAVE_CUDA_FALSE 723HWLOC_HAVE_CUDA_TRUE 724HWLOC_HAVE_LIBIBVERBS_FALSE 725HWLOC_HAVE_LIBIBVERBS_TRUE 726HWLOC_HAVE_LINUX_LIBNUMA_FALSE 727HWLOC_HAVE_LINUX_LIBNUMA_TRUE 728HWLOC_HAVE_PTHREAD_FALSE 729HWLOC_HAVE_PTHREAD_TRUE 730HWLOC_HAVE_SCHED_SETAFFINITY_FALSE 731HWLOC_HAVE_SCHED_SETAFFINITY_TRUE 732HWLOC_HAVE_OPENAT_FALSE 733HWLOC_HAVE_OPENAT_TRUE 734HWLOC_HAVE_MS_LIB_FALSE 735HWLOC_HAVE_MS_LIB_TRUE 736HWLOC_HAVE_GCC_FALSE 737HWLOC_HAVE_GCC_TRUE 738HWLOC_BUILD_STANDALONE_FALSE 739HWLOC_BUILD_STANDALONE_TRUE 740BUNZIPP 741XMLLINT 742HWLOC_NUMA_LIBS 743HWLOC_NUMA_CFLAGS 744HWLOC_PS_LIBS 745HWLOC_DIFF_W 746HWLOC_DIFF_U 747DIFF 748HWLOC_TERMCAP_LIBS 749HWLOC_XML_LOCALIZED 750HWLOC_CAIRO_LIBS 751HWLOC_CAIRO_CFLAGS 752HWLOC_X11_LIBS 753HWLOC_X11_CPPFLAGS 754HWLOC_runstatedir 755HWLOC_W3_GENERATOR 756LYNX 757W3M 758EPSTOPDF 759GS 760FIG2DEV 761MAKEINDEX 762PDFLATEX 763DOXYGEN 764CONFIGURE_DEPENDENCIES 765NETLOC_EMBEDDED_LIBS 766NETLOC_EMBEDDED_LDADD 767NETLOC_EMBEDDED_CPPFLAGS 768NETLOC_EMBEDDED_CFLAGS 769NETLOC_LIBS_PRIVATE 770NETLOC_LIBS 771NETLOC_LDFLAGS 772NETLOC_CPPFLAGS 773NETLOC_CFLAGS 774xz 775MPI_LDADD 776MPI_CPPFLAGS 777libnetloc_so_version 778HWLOC_EMBEDDED_LIBS 779HWLOC_EMBEDDED_LDADD 780HWLOC_EMBEDDED_LDFLAGS 781HWLOC_EMBEDDED_CPPFLAGS 782HWLOC_EMBEDDED_CFLAGS 783HWLOC_LIBS_PRIVATE 784HWLOC_LIBS 785HWLOC_LDFLAGS 786HWLOC_CPPFLAGS 787HWLOC_CFLAGS 788HWLOC_REQUIRES 789HWLOC_PLUGINS_DIR 790HWLOC_PLUGINS_PATH 791HWLOC_LTDL_LIBS 792HWLOC_DL_LIBS 793HWLOC_HAVE_LIBXML2 794HWLOC_LIBXML2_LIBS 795HWLOC_LIBXML2_CFLAGS 796HWLOC_GL_LIBS 797X_EXTRA_LIBS 798X_LIBS 799X_PRE_LIBS 800X_CFLAGS 801XMKMF 802HWLOC_HAVE_RSMI 803HWLOC_RSMI_LIBS 804HWLOC_HAVE_NVML 805HWLOC_NVML_LIBS 806HWLOC_CUDA_LIBS 807HWLOC_HAVE_OPENCL 808HWLOC_OPENCL_LDFLAGS 809HWLOC_OPENCL_LIBS 810HWLOC_OPENCL_CFLAGS 811HWLOC_PCIACCESS_LIBS 812HWLOC_PCIACCESS_CFLAGS 813PKG_CONFIG 814BASH 815HWLOC_MS_LIB 816HWLOC_MS_LIB_ARCH 817HWLOC_RELEASE_DATE 818HWLOC_VERSION 819HWLOC_top_srcdir 820HWLOC_top_builddir 821libhwloc_so_version 822CC_FOR_BUILD 823CXXCPP 824am__fastdepCXX_FALSE 825am__fastdepCXX_TRUE 826CXXDEPMODE 827ac_ct_CXX 828CXXFLAGS 829CXX 830LT_SYS_LIBRARY_PATH 831OTOOL64 832OTOOL 833LIPO 834NMEDIT 835DSYMUTIL 836MANIFEST_TOOL 837RANLIB 838LN_S 839NM 840ac_ct_DUMPBIN 841DUMPBIN 842LD 843FGREP 844SED 845LIBTOOL 846OBJDUMP 847DLLTOOL 848AS 849ac_ct_AR 850AR 851EGREP 852GREP 853CPP 854am__fastdepCC_FALSE 855am__fastdepCC_TRUE 856CCDEPMODE 857am__nodep 858AMDEPBACKSLASH 859AMDEP_FALSE 860AMDEP_TRUE 861am__quote 862am__include 863DEPDIR 864OBJEXT 865EXEEXT 866ac_ct_CC 867CPPFLAGS 868LDFLAGS 869CFLAGS 870CC 871AM_BACKSLASH 872AM_DEFAULT_VERBOSITY 873AM_DEFAULT_V 874AM_V 875am__untar 876am__tar 877AMTAR 878am__leading_dot 879SET_MAKE 880AWK 881mkdir_p 882MKDIR_P 883INSTALL_STRIP_PROGRAM 884STRIP 885install_sh 886MAKEINFO 887AUTOHEADER 888AUTOMAKE 889AUTOCONF 890ACLOCAL 891VERSION 892PACKAGE 893CYGPATH_W 894am__isrc 895INSTALL_DATA 896INSTALL_SCRIPT 897INSTALL_PROGRAM 898target_os 899target_vendor 900target_cpu 901target 902host_os 903host_vendor 904host_cpu 905host 906build_os 907build_vendor 908build_cpu 909build 910target_alias 911host_alias 912build_alias 913LIBS 914ECHO_T 915ECHO_N 916ECHO_C 917DEFS 918mandir 919localedir 920libdir 921psdir 922pdfdir 923dvidir 924htmldir 925infodir 926docdir 927oldincludedir 928includedir 929localstatedir 930sharedstatedir 931sysconfdir 932datadir 933datarootdir 934libexecdir 935sbindir 936bindir 937program_transform_name 938prefix 939exec_prefix 940PACKAGE_URL 941PACKAGE_BUGREPORT 942PACKAGE_STRING 943PACKAGE_VERSION 944PACKAGE_TARNAME 945PACKAGE_NAME 946PATH_SEPARATOR 947SHELL' 948ac_subst_files='' 949ac_user_opts=' 950enable_option_checking 951enable_silent_rules 952enable_dependency_tracking 953enable_shared 954enable_static 955with_pic 956enable_fast_install 957with_aix_soname 958with_gnu_ld 959with_sysroot 960enable_libtool_lock 961enable_embedded_mode 962with_hwloc_symbol_prefix 963enable_debug 964enable_doxygen 965enable_picky 966enable_cairo 967enable_cpuid 968enable_libxml2 969enable_io 970enable_pci 971enable_32bits_pci_domain 972enable_opencl 973enable_cuda 974enable_nvml 975enable_rsmi 976enable_gl 977enable_libudev 978enable_plugins 979enable_plugin_dlopen 980enable_plugin_ltdl 981enable_visibility 982with_x 983with_hwloc_plugins_path 984enable_netloc 985' 986 ac_precious_vars='build_alias 987host_alias 988target_alias 989CC 990CFLAGS 991LDFLAGS 992LIBS 993CPPFLAGS 994CPP 995LT_SYS_LIBRARY_PATH 996CXX 997CXXFLAGS 998CCC 999CXXCPP 1000CC_FOR_BUILD 1001HWLOC_MS_LIB 1002PKG_CONFIG 1003HWLOC_PCIACCESS_CFLAGS 1004HWLOC_PCIACCESS_LIBS 1005XMKMF 1006HWLOC_LIBXML2_CFLAGS 1007HWLOC_LIBXML2_LIBS 1008DOXYGEN 1009PDFLATEX 1010MAKEINDEX 1011FIG2DEV 1012GS 1013EPSTOPDF 1014W3M 1015LYNX 1016HWLOC_CAIRO_CFLAGS 1017HWLOC_CAIRO_LIBS 1018DIFF 1019HWLOC_NUMA_CFLAGS 1020HWLOC_NUMA_LIBS' 1021 1022 1023# Initialize some variables set by options. 1024ac_init_help= 1025ac_init_version=false 1026ac_unrecognized_opts= 1027ac_unrecognized_sep= 1028# The variables have the same names as the options, with 1029# dashes changed to underlines. 1030cache_file=/dev/null 1031exec_prefix=NONE 1032no_create= 1033no_recursion= 1034prefix=NONE 1035program_prefix=NONE 1036program_suffix=NONE 1037program_transform_name=s,x,x, 1038silent= 1039site= 1040srcdir= 1041verbose= 1042x_includes=NONE 1043x_libraries=NONE 1044 1045# Installation directory options. 1046# These are left unexpanded so users can "make install exec_prefix=/foo" 1047# and all the variables that are supposed to be based on exec_prefix 1048# by default will actually change. 1049# Use braces instead of parens because sh, perl, etc. also accept them. 1050# (The list follows the same order as the GNU Coding Standards.) 1051bindir='${exec_prefix}/bin' 1052sbindir='${exec_prefix}/sbin' 1053libexecdir='${exec_prefix}/libexec' 1054datarootdir='${prefix}/share' 1055datadir='${datarootdir}' 1056sysconfdir='${prefix}/etc' 1057sharedstatedir='${prefix}/com' 1058localstatedir='${prefix}/var' 1059includedir='${prefix}/include' 1060oldincludedir='/usr/include' 1061docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1062infodir='${datarootdir}/info' 1063htmldir='${docdir}' 1064dvidir='${docdir}' 1065pdfdir='${docdir}' 1066psdir='${docdir}' 1067libdir='${exec_prefix}/lib' 1068localedir='${datarootdir}/locale' 1069mandir='${datarootdir}/man' 1070 1071ac_prev= 1072ac_dashdash= 1073for ac_option 1074do 1075 # If the previous option needs an argument, assign it. 1076 if test -n "$ac_prev"; then 1077 eval $ac_prev=\$ac_option 1078 ac_prev= 1079 continue 1080 fi 1081 1082 case $ac_option in 1083 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1084 *=) ac_optarg= ;; 1085 *) ac_optarg=yes ;; 1086 esac 1087 1088 # Accept the important Cygnus configure options, so we can diagnose typos. 1089 1090 case $ac_dashdash$ac_option in 1091 --) 1092 ac_dashdash=yes ;; 1093 1094 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1095 ac_prev=bindir ;; 1096 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1097 bindir=$ac_optarg ;; 1098 1099 -build | --build | --buil | --bui | --bu) 1100 ac_prev=build_alias ;; 1101 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1102 build_alias=$ac_optarg ;; 1103 1104 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1106 ac_prev=cache_file ;; 1107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1109 cache_file=$ac_optarg ;; 1110 1111 --config-cache | -C) 1112 cache_file=config.cache ;; 1113 1114 -datadir | --datadir | --datadi | --datad) 1115 ac_prev=datadir ;; 1116 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1117 datadir=$ac_optarg ;; 1118 1119 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1120 | --dataroo | --dataro | --datar) 1121 ac_prev=datarootdir ;; 1122 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1123 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1124 datarootdir=$ac_optarg ;; 1125 1126 -disable-* | --disable-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid feature name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"enable_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval enable_$ac_useropt=no ;; 1141 1142 -docdir | --docdir | --docdi | --doc | --do) 1143 ac_prev=docdir ;; 1144 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1145 docdir=$ac_optarg ;; 1146 1147 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1148 ac_prev=dvidir ;; 1149 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1150 dvidir=$ac_optarg ;; 1151 1152 -enable-* | --enable-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid feature name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"enable_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval enable_$ac_useropt=\$ac_optarg ;; 1167 1168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1170 | --exec | --exe | --ex) 1171 ac_prev=exec_prefix ;; 1172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1174 | --exec=* | --exe=* | --ex=*) 1175 exec_prefix=$ac_optarg ;; 1176 1177 -gas | --gas | --ga | --g) 1178 # Obsolete; use --with-gas. 1179 with_gas=yes ;; 1180 1181 -help | --help | --hel | --he | -h) 1182 ac_init_help=long ;; 1183 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1184 ac_init_help=recursive ;; 1185 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1186 ac_init_help=short ;; 1187 1188 -host | --host | --hos | --ho) 1189 ac_prev=host_alias ;; 1190 -host=* | --host=* | --hos=* | --ho=*) 1191 host_alias=$ac_optarg ;; 1192 1193 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1194 ac_prev=htmldir ;; 1195 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1196 | --ht=*) 1197 htmldir=$ac_optarg ;; 1198 1199 -includedir | --includedir | --includedi | --included | --include \ 1200 | --includ | --inclu | --incl | --inc) 1201 ac_prev=includedir ;; 1202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1203 | --includ=* | --inclu=* | --incl=* | --inc=*) 1204 includedir=$ac_optarg ;; 1205 1206 -infodir | --infodir | --infodi | --infod | --info | --inf) 1207 ac_prev=infodir ;; 1208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1209 infodir=$ac_optarg ;; 1210 1211 -libdir | --libdir | --libdi | --libd) 1212 ac_prev=libdir ;; 1213 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1214 libdir=$ac_optarg ;; 1215 1216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1217 | --libexe | --libex | --libe) 1218 ac_prev=libexecdir ;; 1219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1220 | --libexe=* | --libex=* | --libe=*) 1221 libexecdir=$ac_optarg ;; 1222 1223 -localedir | --localedir | --localedi | --localed | --locale) 1224 ac_prev=localedir ;; 1225 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1226 localedir=$ac_optarg ;; 1227 1228 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1229 | --localstate | --localstat | --localsta | --localst | --locals) 1230 ac_prev=localstatedir ;; 1231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1232 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1233 localstatedir=$ac_optarg ;; 1234 1235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1236 ac_prev=mandir ;; 1237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1238 mandir=$ac_optarg ;; 1239 1240 -nfp | --nfp | --nf) 1241 # Obsolete; use --without-fp. 1242 with_fp=no ;; 1243 1244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1245 | --no-cr | --no-c | -n) 1246 no_create=yes ;; 1247 1248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1250 no_recursion=yes ;; 1251 1252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1254 | --oldin | --oldi | --old | --ol | --o) 1255 ac_prev=oldincludedir ;; 1256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1259 oldincludedir=$ac_optarg ;; 1260 1261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1262 ac_prev=prefix ;; 1263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1264 prefix=$ac_optarg ;; 1265 1266 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1267 | --program-pre | --program-pr | --program-p) 1268 ac_prev=program_prefix ;; 1269 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1271 program_prefix=$ac_optarg ;; 1272 1273 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1274 | --program-suf | --program-su | --program-s) 1275 ac_prev=program_suffix ;; 1276 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1278 program_suffix=$ac_optarg ;; 1279 1280 -program-transform-name | --program-transform-name \ 1281 | --program-transform-nam | --program-transform-na \ 1282 | --program-transform-n | --program-transform- \ 1283 | --program-transform | --program-transfor \ 1284 | --program-transfo | --program-transf \ 1285 | --program-trans | --program-tran \ 1286 | --progr-tra | --program-tr | --program-t) 1287 ac_prev=program_transform_name ;; 1288 -program-transform-name=* | --program-transform-name=* \ 1289 | --program-transform-nam=* | --program-transform-na=* \ 1290 | --program-transform-n=* | --program-transform-=* \ 1291 | --program-transform=* | --program-transfor=* \ 1292 | --program-transfo=* | --program-transf=* \ 1293 | --program-trans=* | --program-tran=* \ 1294 | --progr-tra=* | --program-tr=* | --program-t=*) 1295 program_transform_name=$ac_optarg ;; 1296 1297 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1298 ac_prev=pdfdir ;; 1299 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1300 pdfdir=$ac_optarg ;; 1301 1302 -psdir | --psdir | --psdi | --psd | --ps) 1303 ac_prev=psdir ;; 1304 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1305 psdir=$ac_optarg ;; 1306 1307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1308 | -silent | --silent | --silen | --sile | --sil) 1309 silent=yes ;; 1310 1311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1312 ac_prev=sbindir ;; 1313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1314 | --sbi=* | --sb=*) 1315 sbindir=$ac_optarg ;; 1316 1317 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1319 | --sharedst | --shareds | --shared | --share | --shar \ 1320 | --sha | --sh) 1321 ac_prev=sharedstatedir ;; 1322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1325 | --sha=* | --sh=*) 1326 sharedstatedir=$ac_optarg ;; 1327 1328 -site | --site | --sit) 1329 ac_prev=site ;; 1330 -site=* | --site=* | --sit=*) 1331 site=$ac_optarg ;; 1332 1333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1334 ac_prev=srcdir ;; 1335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1336 srcdir=$ac_optarg ;; 1337 1338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1339 | --syscon | --sysco | --sysc | --sys | --sy) 1340 ac_prev=sysconfdir ;; 1341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1343 sysconfdir=$ac_optarg ;; 1344 1345 -target | --target | --targe | --targ | --tar | --ta | --t) 1346 ac_prev=target_alias ;; 1347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1348 target_alias=$ac_optarg ;; 1349 1350 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1351 verbose=yes ;; 1352 1353 -version | --version | --versio | --versi | --vers | -V) 1354 ac_init_version=: ;; 1355 1356 -with-* | --with-*) 1357 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1358 # Reject names that are not valid shell variable names. 1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1360 as_fn_error $? "invalid package name: $ac_useropt" 1361 ac_useropt_orig=$ac_useropt 1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1363 case $ac_user_opts in 1364 *" 1365"with_$ac_useropt" 1366"*) ;; 1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1368 ac_unrecognized_sep=', ';; 1369 esac 1370 eval with_$ac_useropt=\$ac_optarg ;; 1371 1372 -without-* | --without-*) 1373 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1374 # Reject names that are not valid shell variable names. 1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1376 as_fn_error $? "invalid package name: $ac_useropt" 1377 ac_useropt_orig=$ac_useropt 1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1379 case $ac_user_opts in 1380 *" 1381"with_$ac_useropt" 1382"*) ;; 1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1384 ac_unrecognized_sep=', ';; 1385 esac 1386 eval with_$ac_useropt=no ;; 1387 1388 --x) 1389 # Obsolete; use --with-x. 1390 with_x=yes ;; 1391 1392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1393 | --x-incl | --x-inc | --x-in | --x-i) 1394 ac_prev=x_includes ;; 1395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1397 x_includes=$ac_optarg ;; 1398 1399 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1401 ac_prev=x_libraries ;; 1402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1404 x_libraries=$ac_optarg ;; 1405 1406 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1407Try \`$0 --help' for more information" 1408 ;; 1409 1410 *=*) 1411 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1412 # Reject names that are not valid shell variable names. 1413 case $ac_envvar in #( 1414 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1415 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1416 esac 1417 eval $ac_envvar=\$ac_optarg 1418 export $ac_envvar ;; 1419 1420 *) 1421 # FIXME: should be removed in autoconf 3.0. 1422 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1424 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1425 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1426 ;; 1427 1428 esac 1429done 1430 1431if test -n "$ac_prev"; then 1432 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1433 as_fn_error $? "missing argument to $ac_option" 1434fi 1435 1436if test -n "$ac_unrecognized_opts"; then 1437 case $enable_option_checking in 1438 no) ;; 1439 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1441 esac 1442fi 1443 1444# Check all directory arguments for consistency. 1445for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1446 datadir sysconfdir sharedstatedir localstatedir includedir \ 1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1448 libdir localedir mandir 1449do 1450 eval ac_val=\$$ac_var 1451 # Remove trailing slashes. 1452 case $ac_val in 1453 */ ) 1454 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1455 eval $ac_var=\$ac_val;; 1456 esac 1457 # Be sure to have absolute directory names. 1458 case $ac_val in 1459 [\\/$]* | ?:[\\/]* ) continue;; 1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1461 esac 1462 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1463done 1464 1465# There might be people who depend on the old broken behavior: `$host' 1466# used to hold the argument of --host etc. 1467# FIXME: To remove some day. 1468build=$build_alias 1469host=$host_alias 1470target=$target_alias 1471 1472# FIXME: To remove some day. 1473if test "x$host_alias" != x; then 1474 if test "x$build_alias" = x; then 1475 cross_compiling=maybe 1476 elif test "x$build_alias" != "x$host_alias"; then 1477 cross_compiling=yes 1478 fi 1479fi 1480 1481ac_tool_prefix= 1482test -n "$host_alias" && ac_tool_prefix=$host_alias- 1483 1484test "$silent" = yes && exec 6>/dev/null 1485 1486 1487ac_pwd=`pwd` && test -n "$ac_pwd" && 1488ac_ls_di=`ls -di .` && 1489ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1490 as_fn_error $? "working directory cannot be determined" 1491test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1492 as_fn_error $? "pwd does not report name of working directory" 1493 1494 1495# Find the source files, if location was not specified. 1496if test -z "$srcdir"; then 1497 ac_srcdir_defaulted=yes 1498 # Try the directory containing this script, then the parent directory. 1499 ac_confdir=`$as_dirname -- "$as_myself" || 1500$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1501 X"$as_myself" : 'X\(//\)[^/]' \| \ 1502 X"$as_myself" : 'X\(//\)$' \| \ 1503 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1504$as_echo X"$as_myself" | 1505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1506 s//\1/ 1507 q 1508 } 1509 /^X\(\/\/\)[^/].*/{ 1510 s//\1/ 1511 q 1512 } 1513 /^X\(\/\/\)$/{ 1514 s//\1/ 1515 q 1516 } 1517 /^X\(\/\).*/{ 1518 s//\1/ 1519 q 1520 } 1521 s/.*/./; q'` 1522 srcdir=$ac_confdir 1523 if test ! -r "$srcdir/$ac_unique_file"; then 1524 srcdir=.. 1525 fi 1526else 1527 ac_srcdir_defaulted=no 1528fi 1529if test ! -r "$srcdir/$ac_unique_file"; then 1530 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1531 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1532fi 1533ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1534ac_abs_confdir=`( 1535 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1536 pwd)` 1537# When building in place, set srcdir=. 1538if test "$ac_abs_confdir" = "$ac_pwd"; then 1539 srcdir=. 1540fi 1541# Remove unnecessary trailing slashes from srcdir. 1542# Double slashes in file names in object file debugging info 1543# mess up M-x gdb in Emacs. 1544case $srcdir in 1545*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1546esac 1547for ac_var in $ac_precious_vars; do 1548 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1549 eval ac_env_${ac_var}_value=\$${ac_var} 1550 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1551 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1552done 1553 1554# 1555# Report the --help message. 1556# 1557if test "$ac_init_help" = "long"; then 1558 # Omit some internal or obsolete options to make the list less imposing. 1559 # This message is too long to be a string in the A/UX 3.1 sh. 1560 cat <<_ACEOF 1561\`configure' configures hwloc 2.4.1rc3-git to adapt to many kinds of systems. 1562 1563Usage: $0 [OPTION]... [VAR=VALUE]... 1564 1565To assign environment variables (e.g., CC, CFLAGS...), specify them as 1566VAR=VALUE. See below for descriptions of some of the useful variables. 1567 1568Defaults for the options are specified in brackets. 1569 1570Configuration: 1571 -h, --help display this help and exit 1572 --help=short display options specific to this package 1573 --help=recursive display the short help of all the included packages 1574 -V, --version display version information and exit 1575 -q, --quiet, --silent do not print \`checking ...' messages 1576 --cache-file=FILE cache test results in FILE [disabled] 1577 -C, --config-cache alias for \`--cache-file=config.cache' 1578 -n, --no-create do not create output files 1579 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1580 1581Installation directories: 1582 --prefix=PREFIX install architecture-independent files in PREFIX 1583 [$ac_default_prefix] 1584 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1585 [PREFIX] 1586 1587By default, \`make install' will install all the files in 1588\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1589an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1590for instance \`--prefix=\$HOME'. 1591 1592For better control, use the options below. 1593 1594Fine tuning of the installation directories: 1595 --bindir=DIR user executables [EPREFIX/bin] 1596 --sbindir=DIR system admin executables [EPREFIX/sbin] 1597 --libexecdir=DIR program executables [EPREFIX/libexec] 1598 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1599 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1600 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1601 --libdir=DIR object code libraries [EPREFIX/lib] 1602 --includedir=DIR C header files [PREFIX/include] 1603 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1604 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1605 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1606 --infodir=DIR info documentation [DATAROOTDIR/info] 1607 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1608 --mandir=DIR man documentation [DATAROOTDIR/man] 1609 --docdir=DIR documentation root [DATAROOTDIR/doc/hwloc] 1610 --htmldir=DIR html documentation [DOCDIR] 1611 --dvidir=DIR dvi documentation [DOCDIR] 1612 --pdfdir=DIR pdf documentation [DOCDIR] 1613 --psdir=DIR ps documentation [DOCDIR] 1614_ACEOF 1615 1616 cat <<\_ACEOF 1617 1618Program names: 1619 --program-prefix=PREFIX prepend PREFIX to installed program names 1620 --program-suffix=SUFFIX append SUFFIX to installed program names 1621 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1622 1623X features: 1624 --x-includes=DIR X include files are in DIR 1625 --x-libraries=DIR X library files are in DIR 1626 1627System types: 1628 --build=BUILD configure for building on BUILD [guessed] 1629 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1630 --target=TARGET configure for building compilers for TARGET [HOST] 1631_ACEOF 1632fi 1633 1634if test -n "$ac_init_help"; then 1635 case $ac_init_help in 1636 short | recursive ) echo "Configuration of hwloc 2.4.1rc3-git:";; 1637 esac 1638 cat <<\_ACEOF 1639 1640Optional Features: 1641 --disable-option-checking ignore unrecognized --enable/--with options 1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1644 --enable-silent-rules less verbose build output (undo: "make V=1") 1645 --disable-silent-rules verbose build output (undo: "make V=0") 1646 --enable-dependency-tracking 1647 do not reject slow dependency extractors 1648 --disable-dependency-tracking 1649 speeds up one-time build 1650 --enable-shared[=PKGS] build shared libraries [default=yes] 1651 --enable-static[=PKGS] build static libraries [default=no] 1652 --enable-fast-install[=PKGS] 1653 optimize for fast installation [default=yes] 1654 --disable-libtool-lock avoid locking (might break parallel builds) 1655 --enable-embedded-mode Using --enable-embedded-mode puts the HWLOC into 1656 "embedded" mode. The default is 1657 --disable-embedded-mode, meaning that the HWLOC is 1658 in "standalone" mode. 1659 --enable-debug Using --enable-debug enables various hwloc 1660 maintainer-level debugging controls. This option is 1661 not recomended for end users. 1662 --enable-doxygen enable support for building Doxygen documentation 1663 (note that this option is ONLY relevant in developer 1664 builds; Doxygen documentation is pre-built for 1665 tarball builds and this option is therefore ignored) 1666 --disable-picky When in developer checkouts of hwloc and compiling 1667 with gcc, the default is to enable maximum compiler 1668 pickyness. Using --disable-picky or --enable-picky 1669 overrides any default setting 1670 --disable-cairo Disable the Cairo back-end of hwloc's lstopo command 1671 --disable-cpuid Disable the cpuid-based architecture specific 1672 support (x86 component) 1673 --disable-libxml2 Do not use libxml2 for XML support, use a custom 1674 minimalistic support 1675 --disable-io Disable I/O discovery build entirely (PCI, LinuxIO, 1676 CUDA, OpenCL, NVML, RSMI, GL) instead of only 1677 disabling it at runtime by default 1678 --disable-pci Disable the PCI device discovery build (instead of 1679 only disabling PCI at runtime by default) 1680 --enable-32bits-pci-domain 1681 Enable 32 bits PCI domains (domains > 16bits are 1682 ignored by default). WARNING: This breaks the 1683 library ABI, don't enable unless really needed. 1684 --disable-opencl Disable the OpenCL device discovery build (instead 1685 of only disabling OpenCL at runtime by default) 1686 --disable-cuda Disable the CUDA device discovery build using 1687 libcudart (instead of only disabling CUDA at runtime 1688 by default) 1689 --disable-nvml Disable the NVML device discovery build (instead of 1690 only disabling NVML at runtime by default) 1691 --disable-rsmi Disable the ROCm SMI device discovery 1692 --disable-gl Disable the GL display device discovery (instead of 1693 only disabling GL at runtime by default) 1694 --disable-libudev Disable the Linux libudev 1695 --enable-plugins=name,... 1696 Build the given components as dynamically-loaded 1697 plugins 1698 --disable-plugin-dlopen Do not use dlopen for loading plugins. 1699 --disable-plugin-ltdl Do not use ltdl for loading plugins. 1700 --enable-visibility enable visibility feature of certain 1701 compilers/linkers (default: enabled on platforms 1702 that support it) 1703 --enable-netloc The Netloc functionality is disabled by default. 1704 Using --enable-netloc will cause configure to abort 1705 if Netloc cannot be build (e.g., not supported on 1706 your platform). 1707 1708 1709Optional Packages: 1710 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1711 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1712 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1713 both] 1714 --with-aix-soname=aix|svr4|both 1715 shared library versioning (aka "SONAME") variant to 1716 provide on AIX, [default=aix]. 1717 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1718 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1719 compiler's sysroot if not specified). 1720 --with-hwloc-symbol-prefix=STRING 1721 STRING can be any valid C symbol name. It will be 1722 prefixed to all public HWLOC symbols. Default: 1723 "hwloc_" 1724 --with-x use the X Window System 1725 --with-hwloc-plugins-path=dir:... 1726 Colon-separated list of plugin directories. Default: 1727 "$prefix/lib/hwloc". Plugins will be installed in 1728 the first directory. They will be loaded from all of 1729 them, in order. 1730 1731Some influential environment variables: 1732 CC C compiler command 1733 CFLAGS C compiler flags 1734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1735 nonstandard directory <lib dir> 1736 LIBS libraries to pass to the linker, e.g. -l<library> 1737 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1738 you have headers in a nonstandard directory <include dir> 1739 CPP C preprocessor 1740 LT_SYS_LIBRARY_PATH 1741 User-defined run-time library search path. 1742 CXX C++ compiler command 1743 CXXFLAGS C++ compiler flags 1744 CXXCPP C++ preprocessor 1745 CC_FOR_BUILD 1746 build system C compiler 1747 HWLOC_MS_LIB 1748 Path to Microsoft's Visual Studio `lib' tool 1749 PKG_CONFIG path to pkg-config utility 1750 HWLOC_PCIACCESS_CFLAGS 1751 C compiler flags for PCIACCESS, overriding pkg-config 1752 HWLOC_PCIACCESS_LIBS 1753 linker flags for PCIACCESS, overriding pkg-config 1754 XMKMF Path to xmkmf, Makefile generator for X Window System 1755 HWLOC_LIBXML2_CFLAGS 1756 C compiler flags for LIBXML2, overriding pkg-config 1757 HWLOC_LIBXML2_LIBS 1758 linker flags for LIBXML2, overriding pkg-config 1759 DOXYGEN Location of the doxygen program (required for building the hwloc 1760 doxygen documentation) 1761 PDFLATEX Location of the pdflatex program (required for building the 1762 hwloc doxygen documentation) 1763 MAKEINDEX Location of the makeindex program (required for building the 1764 hwloc doxygen documentation) 1765 FIG2DEV Location of the fig2dev program (required for building the hwloc 1766 doxygen documentation) 1767 GS Location of the gs program (required for building the hwloc 1768 doxygen documentation) 1769 EPSTOPDF Location of the epstopdf program (required for building the 1770 hwloc doxygen documentation) 1771 W3M Location of the w3m program (required to building the top-level 1772 hwloc README file) 1773 LYNX Location of the lynx program (required to building the top-level 1774 hwloc README file) 1775 HWLOC_CAIRO_CFLAGS 1776 C compiler flags for CAIRO, overriding pkg-config 1777 HWLOC_CAIRO_LIBS 1778 linker flags for CAIRO, overriding pkg-config 1779 DIFF diff tool 1780 HWLOC_NUMA_CFLAGS 1781 C compiler flags for NUMA, overriding pkg-config 1782 HWLOC_NUMA_LIBS 1783 linker flags for NUMA, overriding pkg-config 1784 1785Use these variables to override the choices made by `configure' or to help 1786it to find libraries and programs with nonstandard names/locations. 1787 1788Report bugs to <https://github.com/open-mpi/hwloc/issues>. 1789_ACEOF 1790ac_status=$? 1791fi 1792 1793if test "$ac_init_help" = "recursive"; then 1794 # If there are subdirs, report their specific --help. 1795 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1796 test -d "$ac_dir" || 1797 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1798 continue 1799 ac_builddir=. 1800 1801case "$ac_dir" in 1802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1803*) 1804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1805 # A ".." for each directory in $ac_dir_suffix. 1806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1807 case $ac_top_builddir_sub in 1808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1810 esac ;; 1811esac 1812ac_abs_top_builddir=$ac_pwd 1813ac_abs_builddir=$ac_pwd$ac_dir_suffix 1814# for backward compatibility: 1815ac_top_builddir=$ac_top_build_prefix 1816 1817case $srcdir in 1818 .) # We are building in place. 1819 ac_srcdir=. 1820 ac_top_srcdir=$ac_top_builddir_sub 1821 ac_abs_top_srcdir=$ac_pwd ;; 1822 [\\/]* | ?:[\\/]* ) # Absolute name. 1823 ac_srcdir=$srcdir$ac_dir_suffix; 1824 ac_top_srcdir=$srcdir 1825 ac_abs_top_srcdir=$srcdir ;; 1826 *) # Relative name. 1827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1828 ac_top_srcdir=$ac_top_build_prefix$srcdir 1829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1830esac 1831ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1832 1833 cd "$ac_dir" || { ac_status=$?; continue; } 1834 # Check for guested configure. 1835 if test -f "$ac_srcdir/configure.gnu"; then 1836 echo && 1837 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1838 elif test -f "$ac_srcdir/configure"; then 1839 echo && 1840 $SHELL "$ac_srcdir/configure" --help=recursive 1841 else 1842 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1843 fi || ac_status=$? 1844 cd "$ac_pwd" || { ac_status=$?; break; } 1845 done 1846fi 1847 1848test -n "$ac_init_help" && exit $ac_status 1849if $ac_init_version; then 1850 cat <<\_ACEOF 1851hwloc configure 2.4.1rc3-git 1852generated by GNU Autoconf 2.69 1853 1854Copyright (C) 2012 Free Software Foundation, Inc. 1855This configure script is free software; the Free Software Foundation 1856gives unlimited permission to copy, distribute and modify it. 1857_ACEOF 1858 exit 1859fi 1860 1861## ------------------------ ## 1862## Autoconf initialization. ## 1863## ------------------------ ## 1864 1865# ac_fn_c_try_compile LINENO 1866# -------------------------- 1867# Try to compile conftest.$ac_ext, and return whether this succeeded. 1868ac_fn_c_try_compile () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 rm -f conftest.$ac_objext 1872 if { { ac_try="$ac_compile" 1873case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_compile") 2>conftest.err 1880 ac_status=$? 1881 if test -s conftest.err; then 1882 grep -v '^ *+' conftest.err >conftest.er1 1883 cat conftest.er1 >&5 1884 mv -f conftest.er1 conftest.err 1885 fi 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } && { 1888 test -z "$ac_c_werror_flag" || 1889 test ! -s conftest.err 1890 } && test -s conftest.$ac_objext; then : 1891 ac_retval=0 1892else 1893 $as_echo "$as_me: failed program was:" >&5 1894sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=1 1897fi 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 as_fn_set_status $ac_retval 1900 1901} # ac_fn_c_try_compile 1902 1903# ac_fn_c_try_cpp LINENO 1904# ---------------------- 1905# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1906ac_fn_c_try_cpp () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 if { { ac_try="$ac_cpp conftest.$ac_ext" 1910case "(($ac_try" in 1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1912 *) ac_try_echo=$ac_try;; 1913esac 1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1915$as_echo "$ac_try_echo"; } >&5 1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1917 ac_status=$? 1918 if test -s conftest.err; then 1919 grep -v '^ *+' conftest.err >conftest.er1 1920 cat conftest.er1 >&5 1921 mv -f conftest.er1 conftest.err 1922 fi 1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1924 test $ac_status = 0; } > conftest.i && { 1925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1926 test ! -s conftest.err 1927 }; then : 1928 ac_retval=0 1929else 1930 $as_echo "$as_me: failed program was:" >&5 1931sed 's/^/| /' conftest.$ac_ext >&5 1932 1933 ac_retval=1 1934fi 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 as_fn_set_status $ac_retval 1937 1938} # ac_fn_c_try_cpp 1939 1940# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1941# ------------------------------------------------------- 1942# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1943# the include files in INCLUDES and setting the cache variable VAR 1944# accordingly. 1945ac_fn_c_check_header_mongrel () 1946{ 1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1948 if eval \${$3+:} false; then : 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1950$as_echo_n "checking for $2... " >&6; } 1951if eval \${$3+:} false; then : 1952 $as_echo_n "(cached) " >&6 1953fi 1954eval ac_res=\$$3 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956$as_echo "$ac_res" >&6; } 1957else 1958 # Is the header compilable? 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1960$as_echo_n "checking $2 usability... " >&6; } 1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963$4 1964#include <$2> 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 ac_header_compiler=yes 1968else 1969 ac_header_compiler=no 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1973$as_echo "$ac_header_compiler" >&6; } 1974 1975# Is the header present? 1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1977$as_echo_n "checking $2 presence... " >&6; } 1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1979/* end confdefs.h. */ 1980#include <$2> 1981_ACEOF 1982if ac_fn_c_try_cpp "$LINENO"; then : 1983 ac_header_preproc=yes 1984else 1985 ac_header_preproc=no 1986fi 1987rm -f conftest.err conftest.i conftest.$ac_ext 1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1989$as_echo "$ac_header_preproc" >&6; } 1990 1991# So? What about this header? 1992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1993 yes:no: ) 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1995$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1998 ;; 1999 no:yes:* ) 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2001$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2003$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2005$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2007$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2010( $as_echo "## ------------------------------------------------------- ## 2011## Report this to https://github.com/open-mpi/hwloc/issues ## 2012## ------------------------------------------------------- ##" 2013 ) | sed "s/^/$as_me: WARNING: /" >&2 2014 ;; 2015esac 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017$as_echo_n "checking for $2... " >&6; } 2018if eval \${$3+:} false; then : 2019 $as_echo_n "(cached) " >&6 2020else 2021 eval "$3=\$ac_header_compiler" 2022fi 2023eval ac_res=\$$3 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025$as_echo "$ac_res" >&6; } 2026fi 2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2028 2029} # ac_fn_c_check_header_mongrel 2030 2031# ac_fn_c_try_run LINENO 2032# ---------------------- 2033# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2034# that executables *can* be run. 2035ac_fn_c_try_run () 2036{ 2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 if { { ac_try="$ac_link" 2039case "(($ac_try" in 2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2041 *) ac_try_echo=$ac_try;; 2042esac 2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2044$as_echo "$ac_try_echo"; } >&5 2045 (eval "$ac_link") 2>&5 2046 ac_status=$? 2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2048 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2049 { { case "(($ac_try" in 2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2051 *) ac_try_echo=$ac_try;; 2052esac 2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2054$as_echo "$ac_try_echo"; } >&5 2055 (eval "$ac_try") 2>&5 2056 ac_status=$? 2057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2058 test $ac_status = 0; }; }; then : 2059 ac_retval=0 2060else 2061 $as_echo "$as_me: program exited with status $ac_status" >&5 2062 $as_echo "$as_me: failed program was:" >&5 2063sed 's/^/| /' conftest.$ac_ext >&5 2064 2065 ac_retval=$ac_status 2066fi 2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2069 as_fn_set_status $ac_retval 2070 2071} # ac_fn_c_try_run 2072 2073# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2074# ------------------------------------------------------- 2075# Tests whether HEADER exists and can be compiled using the include files in 2076# INCLUDES, setting the cache variable VAR accordingly. 2077ac_fn_c_check_header_compile () 2078{ 2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2081$as_echo_n "checking for $2... " >&6; } 2082if eval \${$3+:} false; then : 2083 $as_echo_n "(cached) " >&6 2084else 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$4 2088#include <$2> 2089_ACEOF 2090if ac_fn_c_try_compile "$LINENO"; then : 2091 eval "$3=yes" 2092else 2093 eval "$3=no" 2094fi 2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2096fi 2097eval ac_res=\$$3 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099$as_echo "$ac_res" >&6; } 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2101 2102} # ac_fn_c_check_header_compile 2103 2104# ac_fn_c_try_link LINENO 2105# ----------------------- 2106# Try to link conftest.$ac_ext, and return whether this succeeded. 2107ac_fn_c_try_link () 2108{ 2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2110 rm -f conftest.$ac_objext conftest$ac_exeext 2111 if { { ac_try="$ac_link" 2112case "(($ac_try" in 2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2114 *) ac_try_echo=$ac_try;; 2115esac 2116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2117$as_echo "$ac_try_echo"; } >&5 2118 (eval "$ac_link") 2>conftest.err 2119 ac_status=$? 2120 if test -s conftest.err; then 2121 grep -v '^ *+' conftest.err >conftest.er1 2122 cat conftest.er1 >&5 2123 mv -f conftest.er1 conftest.err 2124 fi 2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2126 test $ac_status = 0; } && { 2127 test -z "$ac_c_werror_flag" || 2128 test ! -s conftest.err 2129 } && test -s conftest$ac_exeext && { 2130 test "$cross_compiling" = yes || 2131 test -x conftest$ac_exeext 2132 }; then : 2133 ac_retval=0 2134else 2135 $as_echo "$as_me: failed program was:" >&5 2136sed 's/^/| /' conftest.$ac_ext >&5 2137 2138 ac_retval=1 2139fi 2140 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2141 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2142 # interfere with the next link command; also delete a directory that is 2143 # left behind by Apple's compiler. We do this before executing the actions. 2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2146 as_fn_set_status $ac_retval 2147 2148} # ac_fn_c_try_link 2149 2150# ac_fn_c_check_func LINENO FUNC VAR 2151# ---------------------------------- 2152# Tests whether FUNC exists, setting the cache variable VAR accordingly 2153ac_fn_c_check_func () 2154{ 2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2157$as_echo_n "checking for $2... " >&6; } 2158if eval \${$3+:} false; then : 2159 $as_echo_n "(cached) " >&6 2160else 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2164 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2165#define $2 innocuous_$2 2166 2167/* System header to define __stub macros and hopefully few prototypes, 2168 which can conflict with char $2 (); below. 2169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2170 <limits.h> exists even on freestanding compilers. */ 2171 2172#ifdef __STDC__ 2173# include <limits.h> 2174#else 2175# include <assert.h> 2176#endif 2177 2178#undef $2 2179 2180/* Override any GCC internal prototype to avoid an error. 2181 Use char because int might match the return type of a GCC 2182 builtin and then its argument prototype would still apply. */ 2183#ifdef __cplusplus 2184extern "C" 2185#endif 2186char $2 (); 2187/* The GNU C library defines this for functions which it implements 2188 to always fail with ENOSYS. Some functions are actually named 2189 something starting with __ and the normal name is an alias. */ 2190#if defined __stub_$2 || defined __stub___$2 2191choke me 2192#endif 2193 2194int 2195main () 2196{ 2197return $2 (); 2198 ; 2199 return 0; 2200} 2201_ACEOF 2202if ac_fn_c_try_link "$LINENO"; then : 2203 eval "$3=yes" 2204else 2205 eval "$3=no" 2206fi 2207rm -f core conftest.err conftest.$ac_objext \ 2208 conftest$ac_exeext conftest.$ac_ext 2209fi 2210eval ac_res=\$$3 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2212$as_echo "$ac_res" >&6; } 2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2214 2215} # ac_fn_c_check_func 2216 2217# ac_fn_cxx_try_compile LINENO 2218# ---------------------------- 2219# Try to compile conftest.$ac_ext, and return whether this succeeded. 2220ac_fn_cxx_try_compile () 2221{ 2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2223 rm -f conftest.$ac_objext 2224 if { { ac_try="$ac_compile" 2225case "(($ac_try" in 2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2227 *) ac_try_echo=$ac_try;; 2228esac 2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2230$as_echo "$ac_try_echo"; } >&5 2231 (eval "$ac_compile") 2>conftest.err 2232 ac_status=$? 2233 if test -s conftest.err; then 2234 grep -v '^ *+' conftest.err >conftest.er1 2235 cat conftest.er1 >&5 2236 mv -f conftest.er1 conftest.err 2237 fi 2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2239 test $ac_status = 0; } && { 2240 test -z "$ac_cxx_werror_flag" || 2241 test ! -s conftest.err 2242 } && test -s conftest.$ac_objext; then : 2243 ac_retval=0 2244else 2245 $as_echo "$as_me: failed program was:" >&5 2246sed 's/^/| /' conftest.$ac_ext >&5 2247 2248 ac_retval=1 2249fi 2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2251 as_fn_set_status $ac_retval 2252 2253} # ac_fn_cxx_try_compile 2254 2255# ac_fn_cxx_try_cpp LINENO 2256# ------------------------ 2257# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2258ac_fn_cxx_try_cpp () 2259{ 2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2261 if { { ac_try="$ac_cpp conftest.$ac_ext" 2262case "(($ac_try" in 2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2264 *) ac_try_echo=$ac_try;; 2265esac 2266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2267$as_echo "$ac_try_echo"; } >&5 2268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2269 ac_status=$? 2270 if test -s conftest.err; then 2271 grep -v '^ *+' conftest.err >conftest.er1 2272 cat conftest.er1 >&5 2273 mv -f conftest.er1 conftest.err 2274 fi 2275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2276 test $ac_status = 0; } > conftest.i && { 2277 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2278 test ! -s conftest.err 2279 }; then : 2280 ac_retval=0 2281else 2282 $as_echo "$as_me: failed program was:" >&5 2283sed 's/^/| /' conftest.$ac_ext >&5 2284 2285 ac_retval=1 2286fi 2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2288 as_fn_set_status $ac_retval 2289 2290} # ac_fn_cxx_try_cpp 2291 2292# ac_fn_cxx_try_link LINENO 2293# ------------------------- 2294# Try to link conftest.$ac_ext, and return whether this succeeded. 2295ac_fn_cxx_try_link () 2296{ 2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2298 rm -f conftest.$ac_objext conftest$ac_exeext 2299 if { { ac_try="$ac_link" 2300case "(($ac_try" in 2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2302 *) ac_try_echo=$ac_try;; 2303esac 2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2305$as_echo "$ac_try_echo"; } >&5 2306 (eval "$ac_link") 2>conftest.err 2307 ac_status=$? 2308 if test -s conftest.err; then 2309 grep -v '^ *+' conftest.err >conftest.er1 2310 cat conftest.er1 >&5 2311 mv -f conftest.er1 conftest.err 2312 fi 2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2314 test $ac_status = 0; } && { 2315 test -z "$ac_cxx_werror_flag" || 2316 test ! -s conftest.err 2317 } && test -s conftest$ac_exeext && { 2318 test "$cross_compiling" = yes || 2319 test -x conftest$ac_exeext 2320 }; then : 2321 ac_retval=0 2322else 2323 $as_echo "$as_me: failed program was:" >&5 2324sed 's/^/| /' conftest.$ac_ext >&5 2325 2326 ac_retval=1 2327fi 2328 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2329 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2330 # interfere with the next link command; also delete a directory that is 2331 # left behind by Apple's compiler. We do this before executing the actions. 2332 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2334 as_fn_set_status $ac_retval 2335 2336} # ac_fn_cxx_try_link 2337 2338# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2339# -------------------------------------------- 2340# Tries to find the compile-time value of EXPR in a program that includes 2341# INCLUDES, setting VAR accordingly. Returns whether the value could be 2342# computed 2343ac_fn_c_compute_int () 2344{ 2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2346 if test "$cross_compiling" = yes; then 2347 # Depending upon the size, compute the lo and hi bounds. 2348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2349/* end confdefs.h. */ 2350$4 2351int 2352main () 2353{ 2354static int test_array [1 - 2 * !(($2) >= 0)]; 2355test_array [0] = 0; 2356return test_array [0]; 2357 2358 ; 2359 return 0; 2360} 2361_ACEOF 2362if ac_fn_c_try_compile "$LINENO"; then : 2363 ac_lo=0 ac_mid=0 2364 while :; do 2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2366/* end confdefs.h. */ 2367$4 2368int 2369main () 2370{ 2371static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2372test_array [0] = 0; 2373return test_array [0]; 2374 2375 ; 2376 return 0; 2377} 2378_ACEOF 2379if ac_fn_c_try_compile "$LINENO"; then : 2380 ac_hi=$ac_mid; break 2381else 2382 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2383 if test $ac_lo -le $ac_mid; then 2384 ac_lo= ac_hi= 2385 break 2386 fi 2387 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2388fi 2389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2390 done 2391else 2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2393/* end confdefs.h. */ 2394$4 2395int 2396main () 2397{ 2398static int test_array [1 - 2 * !(($2) < 0)]; 2399test_array [0] = 0; 2400return test_array [0]; 2401 2402 ; 2403 return 0; 2404} 2405_ACEOF 2406if ac_fn_c_try_compile "$LINENO"; then : 2407 ac_hi=-1 ac_mid=-1 2408 while :; do 2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2410/* end confdefs.h. */ 2411$4 2412int 2413main () 2414{ 2415static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2416test_array [0] = 0; 2417return test_array [0]; 2418 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423if ac_fn_c_try_compile "$LINENO"; then : 2424 ac_lo=$ac_mid; break 2425else 2426 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2427 if test $ac_mid -le $ac_hi; then 2428 ac_lo= ac_hi= 2429 break 2430 fi 2431 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2432fi 2433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2434 done 2435else 2436 ac_lo= ac_hi= 2437fi 2438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2439fi 2440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2441# Binary search between lo and hi bounds. 2442while test "x$ac_lo" != "x$ac_hi"; do 2443 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2445/* end confdefs.h. */ 2446$4 2447int 2448main () 2449{ 2450static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2451test_array [0] = 0; 2452return test_array [0]; 2453 2454 ; 2455 return 0; 2456} 2457_ACEOF 2458if ac_fn_c_try_compile "$LINENO"; then : 2459 ac_hi=$ac_mid 2460else 2461 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2462fi 2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2464done 2465case $ac_lo in #(( 2466?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2467'') ac_retval=1 ;; 2468esac 2469 else 2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2471/* end confdefs.h. */ 2472$4 2473static long int longval () { return $2; } 2474static unsigned long int ulongval () { return $2; } 2475#include <stdio.h> 2476#include <stdlib.h> 2477int 2478main () 2479{ 2480 2481 FILE *f = fopen ("conftest.val", "w"); 2482 if (! f) 2483 return 1; 2484 if (($2) < 0) 2485 { 2486 long int i = longval (); 2487 if (i != ($2)) 2488 return 1; 2489 fprintf (f, "%ld", i); 2490 } 2491 else 2492 { 2493 unsigned long int i = ulongval (); 2494 if (i != ($2)) 2495 return 1; 2496 fprintf (f, "%lu", i); 2497 } 2498 /* Do not output a trailing newline, as this causes \r\n confusion 2499 on some platforms. */ 2500 return ferror (f) || fclose (f) != 0; 2501 2502 ; 2503 return 0; 2504} 2505_ACEOF 2506if ac_fn_c_try_run "$LINENO"; then : 2507 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2508else 2509 ac_retval=1 2510fi 2511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2512 conftest.$ac_objext conftest.beam conftest.$ac_ext 2513rm -f conftest.val 2514 2515 fi 2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2517 as_fn_set_status $ac_retval 2518 2519} # ac_fn_c_compute_int 2520 2521# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2522# --------------------------------------------- 2523# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2524# accordingly. 2525ac_fn_c_check_decl () 2526{ 2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2528 as_decl_name=`echo $2|sed 's/ *(.*//'` 2529 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2531$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2532if eval \${$3+:} false; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2536/* end confdefs.h. */ 2537$4 2538int 2539main () 2540{ 2541#ifndef $as_decl_name 2542#ifdef __cplusplus 2543 (void) $as_decl_use; 2544#else 2545 (void) $as_decl_name; 2546#endif 2547#endif 2548 2549 ; 2550 return 0; 2551} 2552_ACEOF 2553if ac_fn_c_try_compile "$LINENO"; then : 2554 eval "$3=yes" 2555else 2556 eval "$3=no" 2557fi 2558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2559fi 2560eval ac_res=\$$3 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2562$as_echo "$ac_res" >&6; } 2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2564 2565} # ac_fn_c_check_decl 2566 2567# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2568# ------------------------------------------- 2569# Tests whether TYPE exists after having included INCLUDES, setting cache 2570# variable VAR accordingly. 2571ac_fn_c_check_type () 2572{ 2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2575$as_echo_n "checking for $2... " >&6; } 2576if eval \${$3+:} false; then : 2577 $as_echo_n "(cached) " >&6 2578else 2579 eval "$3=no" 2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2581/* end confdefs.h. */ 2582$4 2583int 2584main () 2585{ 2586if (sizeof ($2)) 2587 return 0; 2588 ; 2589 return 0; 2590} 2591_ACEOF 2592if ac_fn_c_try_compile "$LINENO"; then : 2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2594/* end confdefs.h. */ 2595$4 2596int 2597main () 2598{ 2599if (sizeof (($2))) 2600 return 0; 2601 ; 2602 return 0; 2603} 2604_ACEOF 2605if ac_fn_c_try_compile "$LINENO"; then : 2606 2607else 2608 eval "$3=yes" 2609fi 2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2611fi 2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2613fi 2614eval ac_res=\$$3 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2616$as_echo "$ac_res" >&6; } 2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2618 2619} # ac_fn_c_check_type 2620cat >config.log <<_ACEOF 2621This file contains any messages produced by compilers while 2622running configure, to aid debugging if configure makes a mistake. 2623 2624It was created by hwloc $as_me 2.4.1rc3-git, which was 2625generated by GNU Autoconf 2.69. Invocation command line was 2626 2627 $ $0 $@ 2628 2629_ACEOF 2630exec 5>>config.log 2631{ 2632cat <<_ASUNAME 2633## --------- ## 2634## Platform. ## 2635## --------- ## 2636 2637hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2638uname -m = `(uname -m) 2>/dev/null || echo unknown` 2639uname -r = `(uname -r) 2>/dev/null || echo unknown` 2640uname -s = `(uname -s) 2>/dev/null || echo unknown` 2641uname -v = `(uname -v) 2>/dev/null || echo unknown` 2642 2643/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2644/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2645 2646/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2647/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2648/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2649/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2650/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2651/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2652/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2653 2654_ASUNAME 2655 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 $as_echo "PATH: $as_dir" 2662 done 2663IFS=$as_save_IFS 2664 2665} >&5 2666 2667cat >&5 <<_ACEOF 2668 2669 2670## ----------- ## 2671## Core tests. ## 2672## ----------- ## 2673 2674_ACEOF 2675 2676 2677# Keep a trace of the command line. 2678# Strip out --no-create and --no-recursion so they do not pile up. 2679# Strip out --silent because we don't want to record it for future runs. 2680# Also quote any args containing shell meta-characters. 2681# Make two passes to allow for proper duplicate-argument suppression. 2682ac_configure_args= 2683ac_configure_args0= 2684ac_configure_args1= 2685ac_must_keep_next=false 2686for ac_pass in 1 2 2687do 2688 for ac_arg 2689 do 2690 case $ac_arg in 2691 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2693 | -silent | --silent | --silen | --sile | --sil) 2694 continue ;; 2695 *\'*) 2696 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2697 esac 2698 case $ac_pass in 2699 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2700 2) 2701 as_fn_append ac_configure_args1 " '$ac_arg'" 2702 if test $ac_must_keep_next = true; then 2703 ac_must_keep_next=false # Got value, back to normal. 2704 else 2705 case $ac_arg in 2706 *=* | --config-cache | -C | -disable-* | --disable-* \ 2707 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2708 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2709 | -with-* | --with-* | -without-* | --without-* | --x) 2710 case "$ac_configure_args0 " in 2711 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2712 esac 2713 ;; 2714 -* ) ac_must_keep_next=true ;; 2715 esac 2716 fi 2717 as_fn_append ac_configure_args " '$ac_arg'" 2718 ;; 2719 esac 2720 done 2721done 2722{ ac_configure_args0=; unset ac_configure_args0;} 2723{ ac_configure_args1=; unset ac_configure_args1;} 2724 2725# When interrupted or exit'd, cleanup temporary files, and complete 2726# config.log. We remove comments because anyway the quotes in there 2727# would cause problems or look ugly. 2728# WARNING: Use '\'' to represent an apostrophe within the trap. 2729# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2730trap 'exit_status=$? 2731 # Save into config.log some information that might help in debugging. 2732 { 2733 echo 2734 2735 $as_echo "## ---------------- ## 2736## Cache variables. ## 2737## ---------------- ##" 2738 echo 2739 # The following way of writing the cache mishandles newlines in values, 2740( 2741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2742 eval ac_val=\$$ac_var 2743 case $ac_val in #( 2744 *${as_nl}*) 2745 case $ac_var in #( 2746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2747$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2748 esac 2749 case $ac_var in #( 2750 _ | IFS | as_nl) ;; #( 2751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2752 *) { eval $ac_var=; unset $ac_var;} ;; 2753 esac ;; 2754 esac 2755 done 2756 (set) 2>&1 | 2757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2758 *${as_nl}ac_space=\ *) 2759 sed -n \ 2760 "s/'\''/'\''\\\\'\'''\''/g; 2761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2762 ;; #( 2763 *) 2764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2765 ;; 2766 esac | 2767 sort 2768) 2769 echo 2770 2771 $as_echo "## ----------------- ## 2772## Output variables. ## 2773## ----------------- ##" 2774 echo 2775 for ac_var in $ac_subst_vars 2776 do 2777 eval ac_val=\$$ac_var 2778 case $ac_val in 2779 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2780 esac 2781 $as_echo "$ac_var='\''$ac_val'\''" 2782 done | sort 2783 echo 2784 2785 if test -n "$ac_subst_files"; then 2786 $as_echo "## ------------------- ## 2787## File substitutions. ## 2788## ------------------- ##" 2789 echo 2790 for ac_var in $ac_subst_files 2791 do 2792 eval ac_val=\$$ac_var 2793 case $ac_val in 2794 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2795 esac 2796 $as_echo "$ac_var='\''$ac_val'\''" 2797 done | sort 2798 echo 2799 fi 2800 2801 if test -s confdefs.h; then 2802 $as_echo "## ----------- ## 2803## confdefs.h. ## 2804## ----------- ##" 2805 echo 2806 cat confdefs.h 2807 echo 2808 fi 2809 test "$ac_signal" != 0 && 2810 $as_echo "$as_me: caught signal $ac_signal" 2811 $as_echo "$as_me: exit $exit_status" 2812 } >&5 2813 rm -f core *.core core.conftest.* && 2814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2815 exit $exit_status 2816' 0 2817for ac_signal in 1 2 13 15; do 2818 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2819done 2820ac_signal=0 2821 2822# confdefs.h avoids OS command line length limits that DEFS can exceed. 2823rm -f -r conftest* confdefs.h 2824 2825$as_echo "/* confdefs.h */" > confdefs.h 2826 2827# Predefined preprocessor variables. 2828 2829cat >>confdefs.h <<_ACEOF 2830#define PACKAGE_NAME "$PACKAGE_NAME" 2831_ACEOF 2832 2833cat >>confdefs.h <<_ACEOF 2834#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2835_ACEOF 2836 2837cat >>confdefs.h <<_ACEOF 2838#define PACKAGE_VERSION "$PACKAGE_VERSION" 2839_ACEOF 2840 2841cat >>confdefs.h <<_ACEOF 2842#define PACKAGE_STRING "$PACKAGE_STRING" 2843_ACEOF 2844 2845cat >>confdefs.h <<_ACEOF 2846#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2847_ACEOF 2848 2849cat >>confdefs.h <<_ACEOF 2850#define PACKAGE_URL "$PACKAGE_URL" 2851_ACEOF 2852 2853 2854# Let the site file select an alternate cache file if it wants to. 2855# Prefer an explicitly selected file to automatically selected ones. 2856ac_site_file1=NONE 2857ac_site_file2=NONE 2858if test -n "$CONFIG_SITE"; then 2859 # We do not want a PATH search for config.site. 2860 case $CONFIG_SITE in #(( 2861 -*) ac_site_file1=./$CONFIG_SITE;; 2862 */*) ac_site_file1=$CONFIG_SITE;; 2863 *) ac_site_file1=./$CONFIG_SITE;; 2864 esac 2865elif test "x$prefix" != xNONE; then 2866 ac_site_file1=$prefix/share/config.site 2867 ac_site_file2=$prefix/etc/config.site 2868else 2869 ac_site_file1=$ac_default_prefix/share/config.site 2870 ac_site_file2=$ac_default_prefix/etc/config.site 2871fi 2872for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2873do 2874 test "x$ac_site_file" = xNONE && continue 2875 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2877$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2878 sed 's/^/| /' "$ac_site_file" >&5 2879 . "$ac_site_file" \ 2880 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882as_fn_error $? "failed to load site script $ac_site_file 2883See \`config.log' for more details" "$LINENO" 5; } 2884 fi 2885done 2886 2887if test -r "$cache_file"; then 2888 # Some versions of bash will fail to source /dev/null (special files 2889 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2890 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2892$as_echo "$as_me: loading cache $cache_file" >&6;} 2893 case $cache_file in 2894 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2895 *) . "./$cache_file";; 2896 esac 2897 fi 2898else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2900$as_echo "$as_me: creating cache $cache_file" >&6;} 2901 >$cache_file 2902fi 2903 2904# Check that the precious variables saved in the cache have kept the same 2905# value. 2906ac_cache_corrupted=false 2907for ac_var in $ac_precious_vars; do 2908 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2909 eval ac_new_set=\$ac_env_${ac_var}_set 2910 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2911 eval ac_new_val=\$ac_env_${ac_var}_value 2912 case $ac_old_set,$ac_new_set in 2913 set,) 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2915$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2916 ac_cache_corrupted=: ;; 2917 ,set) 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2919$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2920 ac_cache_corrupted=: ;; 2921 ,);; 2922 *) 2923 if test "x$ac_old_val" != "x$ac_new_val"; then 2924 # differences in whitespace do not lead to failure. 2925 ac_old_val_w=`echo x $ac_old_val` 2926 ac_new_val_w=`echo x $ac_new_val` 2927 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2929$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2930 ac_cache_corrupted=: 2931 else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2933$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2934 eval $ac_var=\$ac_old_val 2935 fi 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2937$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2939$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2940 fi;; 2941 esac 2942 # Pass precious variables to config.status. 2943 if test "$ac_new_set" = set; then 2944 case $ac_new_val in 2945 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2946 *) ac_arg=$ac_var=$ac_new_val ;; 2947 esac 2948 case " $ac_configure_args " in 2949 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2950 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2951 esac 2952 fi 2953done 2954if $ac_cache_corrupted; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2958$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2959 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2960fi 2961## -------------------- ## 2962## Main body of script. ## 2963## -------------------- ## 2964 2965ac_ext=c 2966ac_cpp='$CPP $CPPFLAGS' 2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2969ac_compiler_gnu=$ac_cv_c_compiler_gnu 2970 2971 2972 2973ac_aux_dir= 2974for ac_dir in ./config "$srcdir"/./config; do 2975 if test -f "$ac_dir/install-sh"; then 2976 ac_aux_dir=$ac_dir 2977 ac_install_sh="$ac_aux_dir/install-sh -c" 2978 break 2979 elif test -f "$ac_dir/install.sh"; then 2980 ac_aux_dir=$ac_dir 2981 ac_install_sh="$ac_aux_dir/install.sh -c" 2982 break 2983 elif test -f "$ac_dir/shtool"; then 2984 ac_aux_dir=$ac_dir 2985 ac_install_sh="$ac_aux_dir/shtool install -c" 2986 break 2987 fi 2988done 2989if test -z "$ac_aux_dir"; then 2990 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./config \"$srcdir\"/./config" "$LINENO" 5 2991fi 2992 2993# These three variables are undocumented and unsupported, 2994# and are intended to be withdrawn in a future Autoconf release. 2995# They can cause serious problems if a builder's source tree is in a directory 2996# whose full name contains unusual characters. 2997ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2998ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2999ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3000 3001 3002# Note that this directory must *exactly* match what was specified via 3003# -I in ACLOCAL_AMFLAGS in the top-level Makefile.am. 3004 3005 3006cat <<EOF 3007 3008### 3009### Configuring hwloc distribution tarball 3010### Startup tests 3011### 3012EOF 3013 3014# This must be before AM_INIT_AUTOMAKE 3015# Make sure we can run config.sub. 3016$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3017 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3018 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3020$as_echo_n "checking build system type... " >&6; } 3021if ${ac_cv_build+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 ac_build_alias=$build_alias 3025test "x$ac_build_alias" = x && 3026 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3027test "x$ac_build_alias" = x && 3028 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3029ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3030 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3031 3032fi 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3034$as_echo "$ac_cv_build" >&6; } 3035case $ac_cv_build in 3036*-*-*) ;; 3037*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3038esac 3039build=$ac_cv_build 3040ac_save_IFS=$IFS; IFS='-' 3041set x $ac_cv_build 3042shift 3043build_cpu=$1 3044build_vendor=$2 3045shift; shift 3046# Remember, the first character of IFS is used to create $*, 3047# except with old shells: 3048build_os=$* 3049IFS=$ac_save_IFS 3050case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3051 3052 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3054$as_echo_n "checking host system type... " >&6; } 3055if ${ac_cv_host+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 if test "x$host_alias" = x; then 3059 ac_cv_host=$ac_cv_build 3060else 3061 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3062 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3063fi 3064 3065fi 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3067$as_echo "$ac_cv_host" >&6; } 3068case $ac_cv_host in 3069*-*-*) ;; 3070*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3071esac 3072host=$ac_cv_host 3073ac_save_IFS=$IFS; IFS='-' 3074set x $ac_cv_host 3075shift 3076host_cpu=$1 3077host_vendor=$2 3078shift; shift 3079# Remember, the first character of IFS is used to create $*, 3080# except with old shells: 3081host_os=$* 3082IFS=$ac_save_IFS 3083case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3084 3085 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3087$as_echo_n "checking target system type... " >&6; } 3088if ${ac_cv_target+:} false; then : 3089 $as_echo_n "(cached) " >&6 3090else 3091 if test "x$target_alias" = x; then 3092 ac_cv_target=$ac_cv_host 3093else 3094 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3096fi 3097 3098fi 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3100$as_echo "$ac_cv_target" >&6; } 3101case $ac_cv_target in 3102*-*-*) ;; 3103*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3104esac 3105target=$ac_cv_target 3106ac_save_IFS=$IFS; IFS='-' 3107set x $ac_cv_target 3108shift 3109target_cpu=$1 3110target_vendor=$2 3111shift; shift 3112# Remember, the first character of IFS is used to create $*, 3113# except with old shells: 3114target_os=$* 3115IFS=$ac_save_IFS 3116case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3117 3118 3119# The aliases save the names the user supplied, while $host etc. 3120# will get canonicalized. 3121test -n "$target_alias" && 3122 test "$program_prefix$program_suffix$program_transform_name" = \ 3123 NONENONEs,x,x, && 3124 program_prefix=${target_alias}- 3125 3126# Init automake 3127am__api_version='1.15' 3128 3129# Find a good install program. We prefer a C program (faster), 3130# so one script is as good as another. But avoid the broken or 3131# incompatible versions: 3132# SysV /etc/install, /usr/sbin/install 3133# SunOS /usr/etc/install 3134# IRIX /sbin/install 3135# AIX /bin/install 3136# AmigaOS /C/install, which installs bootblocks on floppy discs 3137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3138# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3140# OS/2's system install, which has a completely different semantic 3141# ./install, which can be erroneously created by make from ./install.sh. 3142# Reject install programs that cannot install multiple files. 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3144$as_echo_n "checking for a BSD-compatible install... " >&6; } 3145if test -z "$INSTALL"; then 3146if ${ac_cv_path_install+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 # Account for people who put trailing slashes in PATH elements. 3155case $as_dir/ in #(( 3156 ./ | .// | /[cC]/* | \ 3157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3158 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3159 /usr/ucb/* ) ;; 3160 *) 3161 # OSF1 and SCO ODT 3.0 have their own names for install. 3162 # Don't use installbsd from OSF since it installs stuff as root 3163 # by default. 3164 for ac_prog in ginstall scoinst install; do 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3167 if test $ac_prog = install && 3168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3169 # AIX install. It has an incompatible calling convention. 3170 : 3171 elif test $ac_prog = install && 3172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3173 # program-specific install script used by HP pwplus--don't use. 3174 : 3175 else 3176 rm -rf conftest.one conftest.two conftest.dir 3177 echo one > conftest.one 3178 echo two > conftest.two 3179 mkdir conftest.dir 3180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3181 test -s conftest.one && test -s conftest.two && 3182 test -s conftest.dir/conftest.one && 3183 test -s conftest.dir/conftest.two 3184 then 3185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3186 break 3 3187 fi 3188 fi 3189 fi 3190 done 3191 done 3192 ;; 3193esac 3194 3195 done 3196IFS=$as_save_IFS 3197 3198rm -rf conftest.one conftest.two conftest.dir 3199 3200fi 3201 if test "${ac_cv_path_install+set}" = set; then 3202 INSTALL=$ac_cv_path_install 3203 else 3204 # As a last resort, use the slow shell script. Don't cache a 3205 # value for INSTALL within a source directory, because that will 3206 # break other packages using the cache if that directory is 3207 # removed, or if the value is a relative name. 3208 INSTALL=$ac_install_sh 3209 fi 3210fi 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3212$as_echo "$INSTALL" >&6; } 3213 3214# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3215# It thinks the first close brace ends the variable substitution. 3216test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3217 3218test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3219 3220test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3221 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3223$as_echo_n "checking whether build environment is sane... " >&6; } 3224# Reject unsafe characters in $srcdir or the absolute working directory 3225# name. Accept space and tab only in the latter. 3226am_lf=' 3227' 3228case `pwd` in 3229 *[\\\"\#\$\&\'\`$am_lf]*) 3230 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3231esac 3232case $srcdir in 3233 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3234 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3235esac 3236 3237# Do 'set' in a subshell so we don't clobber the current shell's 3238# arguments. Must try -L first in case configure is actually a 3239# symlink; some systems play weird games with the mod time of symlinks 3240# (eg FreeBSD returns the mod time of the symlink's containing 3241# directory). 3242if ( 3243 am_has_slept=no 3244 for am_try in 1 2; do 3245 echo "timestamp, slept: $am_has_slept" > conftest.file 3246 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3247 if test "$*" = "X"; then 3248 # -L didn't work. 3249 set X `ls -t "$srcdir/configure" conftest.file` 3250 fi 3251 if test "$*" != "X $srcdir/configure conftest.file" \ 3252 && test "$*" != "X conftest.file $srcdir/configure"; then 3253 3254 # If neither matched, then we have a broken ls. This can happen 3255 # if, for instance, CONFIG_SHELL is bash and it inherits a 3256 # broken ls alias from the environment. This has actually 3257 # happened. Such a system could not be considered "sane". 3258 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3259 alias in your environment" "$LINENO" 5 3260 fi 3261 if test "$2" = conftest.file || test $am_try -eq 2; then 3262 break 3263 fi 3264 # Just in case. 3265 sleep 1 3266 am_has_slept=yes 3267 done 3268 test "$2" = conftest.file 3269 ) 3270then 3271 # Ok. 3272 : 3273else 3274 as_fn_error $? "newly created file is older than distributed files! 3275Check your system clock" "$LINENO" 5 3276fi 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3278$as_echo "yes" >&6; } 3279# If we didn't sleep, we still need to ensure time stamps of config.status and 3280# generated files are strictly newer. 3281am_sleep_pid= 3282if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3283 ( sleep 1 ) & 3284 am_sleep_pid=$! 3285fi 3286 3287rm -f conftest.file 3288 3289test "$program_prefix" != NONE && 3290 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3291# Use a double $ so make ignores it. 3292test "$program_suffix" != NONE && 3293 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3294# Double any \ or $. 3295# By default was `s,x,x', remove it if useless. 3296ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3297program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3298 3299# Expand $ac_aux_dir to an absolute path. 3300am_aux_dir=`cd "$ac_aux_dir" && pwd` 3301 3302if test x"${MISSING+set}" != xset; then 3303 case $am_aux_dir in 3304 *\ * | *\ *) 3305 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3306 *) 3307 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3308 esac 3309fi 3310# Use eval to expand $SHELL 3311if eval "$MISSING --is-lightweight"; then 3312 am_missing_run="$MISSING " 3313else 3314 am_missing_run= 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3316$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3317fi 3318 3319if test x"${install_sh+set}" != xset; then 3320 case $am_aux_dir in 3321 *\ * | *\ *) 3322 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3323 *) 3324 install_sh="\${SHELL} $am_aux_dir/install-sh" 3325 esac 3326fi 3327 3328# Installed binaries are usually stripped using 'strip' when the user 3329# run "make install-strip". However 'strip' might not be the right 3330# tool to use in cross-compilation environments, therefore Automake 3331# will honor the 'STRIP' environment variable to overrule this program. 3332if test "$cross_compiling" != no; then 3333 if test -n "$ac_tool_prefix"; then 3334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3335set dummy ${ac_tool_prefix}strip; ac_word=$2 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3337$as_echo_n "checking for $ac_word... " >&6; } 3338if ${ac_cv_prog_STRIP+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 if test -n "$STRIP"; then 3342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3343else 3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3351 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3353 break 2 3354 fi 3355done 3356 done 3357IFS=$as_save_IFS 3358 3359fi 3360fi 3361STRIP=$ac_cv_prog_STRIP 3362if test -n "$STRIP"; then 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3364$as_echo "$STRIP" >&6; } 3365else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367$as_echo "no" >&6; } 3368fi 3369 3370 3371fi 3372if test -z "$ac_cv_prog_STRIP"; then 3373 ac_ct_STRIP=$STRIP 3374 # Extract the first word of "strip", so it can be a program name with args. 3375set dummy strip; ac_word=$2 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3377$as_echo_n "checking for $ac_word... " >&6; } 3378if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3379 $as_echo_n "(cached) " >&6 3380else 3381 if test -n "$ac_ct_STRIP"; then 3382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3383else 3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3385for as_dir in $PATH 3386do 3387 IFS=$as_save_IFS 3388 test -z "$as_dir" && as_dir=. 3389 for ac_exec_ext in '' $ac_executable_extensions; do 3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3391 ac_cv_prog_ac_ct_STRIP="strip" 3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3393 break 2 3394 fi 3395done 3396 done 3397IFS=$as_save_IFS 3398 3399fi 3400fi 3401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3402if test -n "$ac_ct_STRIP"; then 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3404$as_echo "$ac_ct_STRIP" >&6; } 3405else 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407$as_echo "no" >&6; } 3408fi 3409 3410 if test "x$ac_ct_STRIP" = x; then 3411 STRIP=":" 3412 else 3413 case $cross_compiling:$ac_tool_warned in 3414yes:) 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3417ac_tool_warned=yes ;; 3418esac 3419 STRIP=$ac_ct_STRIP 3420 fi 3421else 3422 STRIP="$ac_cv_prog_STRIP" 3423fi 3424 3425fi 3426INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3427 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3429$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3430if test -z "$MKDIR_P"; then 3431 if ${ac_cv_path_mkdir+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3435for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3436do 3437 IFS=$as_save_IFS 3438 test -z "$as_dir" && as_dir=. 3439 for ac_prog in mkdir gmkdir; do 3440 for ac_exec_ext in '' $ac_executable_extensions; do 3441 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3443 'mkdir (GNU coreutils) '* | \ 3444 'mkdir (coreutils) '* | \ 3445 'mkdir (fileutils) '4.1*) 3446 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3447 break 3;; 3448 esac 3449 done 3450 done 3451 done 3452IFS=$as_save_IFS 3453 3454fi 3455 3456 test -d ./--version && rmdir ./--version 3457 if test "${ac_cv_path_mkdir+set}" = set; then 3458 MKDIR_P="$ac_cv_path_mkdir -p" 3459 else 3460 # As a last resort, use the slow shell script. Don't cache a 3461 # value for MKDIR_P within a source directory, because that will 3462 # break other packages using the cache if that directory is 3463 # removed, or if the value is a relative name. 3464 MKDIR_P="$ac_install_sh -d" 3465 fi 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3468$as_echo "$MKDIR_P" >&6; } 3469 3470for ac_prog in gawk mawk nawk awk 3471do 3472 # Extract the first word of "$ac_prog", so it can be a program name with args. 3473set dummy $ac_prog; ac_word=$2 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475$as_echo_n "checking for $ac_word... " >&6; } 3476if ${ac_cv_prog_AWK+:} false; then : 3477 $as_echo_n "(cached) " >&6 3478else 3479 if test -n "$AWK"; then 3480 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3481else 3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3483for as_dir in $PATH 3484do 3485 IFS=$as_save_IFS 3486 test -z "$as_dir" && as_dir=. 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3489 ac_cv_prog_AWK="$ac_prog" 3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3491 break 2 3492 fi 3493done 3494 done 3495IFS=$as_save_IFS 3496 3497fi 3498fi 3499AWK=$ac_cv_prog_AWK 3500if test -n "$AWK"; then 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3502$as_echo "$AWK" >&6; } 3503else 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3505$as_echo "no" >&6; } 3506fi 3507 3508 3509 test -n "$AWK" && break 3510done 3511 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3513$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3514set x ${MAKE-make} 3515ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3516if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3517 $as_echo_n "(cached) " >&6 3518else 3519 cat >conftest.make <<\_ACEOF 3520SHELL = /bin/sh 3521all: 3522 @echo '@@@%%%=$(MAKE)=@@@%%%' 3523_ACEOF 3524# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3525case `${MAKE-make} -f conftest.make 2>/dev/null` in 3526 *@@@%%%=?*=@@@%%%*) 3527 eval ac_cv_prog_make_${ac_make}_set=yes;; 3528 *) 3529 eval ac_cv_prog_make_${ac_make}_set=no;; 3530esac 3531rm -f conftest.make 3532fi 3533if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3535$as_echo "yes" >&6; } 3536 SET_MAKE= 3537else 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3539$as_echo "no" >&6; } 3540 SET_MAKE="MAKE=${MAKE-make}" 3541fi 3542 3543rm -rf .tst 2>/dev/null 3544mkdir .tst 2>/dev/null 3545if test -d .tst; then 3546 am__leading_dot=. 3547else 3548 am__leading_dot=_ 3549fi 3550rmdir .tst 2>/dev/null 3551 3552# Check whether --enable-silent-rules was given. 3553if test "${enable_silent_rules+set}" = set; then : 3554 enableval=$enable_silent_rules; 3555fi 3556 3557case $enable_silent_rules in # ((( 3558 yes) AM_DEFAULT_VERBOSITY=0;; 3559 no) AM_DEFAULT_VERBOSITY=1;; 3560 *) AM_DEFAULT_VERBOSITY=1;; 3561esac 3562am_make=${MAKE-make} 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3564$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3565if ${am_cv_make_support_nested_variables+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 if $as_echo 'TRUE=$(BAR$(V)) 3569BAR0=false 3570BAR1=true 3571V=1 3572am__doit: 3573 @$(TRUE) 3574.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3575 am_cv_make_support_nested_variables=yes 3576else 3577 am_cv_make_support_nested_variables=no 3578fi 3579fi 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3581$as_echo "$am_cv_make_support_nested_variables" >&6; } 3582if test $am_cv_make_support_nested_variables = yes; then 3583 AM_V='$(V)' 3584 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3585else 3586 AM_V=$AM_DEFAULT_VERBOSITY 3587 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3588fi 3589AM_BACKSLASH='\' 3590 3591if test "`cd $srcdir && pwd`" != "`pwd`"; then 3592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3593 # is not polluted with repeated "-I." 3594 am__isrc=' -I$(srcdir)' 3595 # test to see if srcdir already configured 3596 if test -f $srcdir/config.status; then 3597 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3598 fi 3599fi 3600 3601# test whether we have cygpath 3602if test -z "$CYGPATH_W"; then 3603 if (cygpath --version) >/dev/null 2>/dev/null; then 3604 CYGPATH_W='cygpath -w' 3605 else 3606 CYGPATH_W=echo 3607 fi 3608fi 3609 3610 3611# Define the identity of the package. 3612 PACKAGE='hwloc' 3613 VERSION='2.4.1rc3-git' 3614 3615 3616cat >>confdefs.h <<_ACEOF 3617#define PACKAGE "$PACKAGE" 3618_ACEOF 3619 3620 3621cat >>confdefs.h <<_ACEOF 3622#define VERSION "$VERSION" 3623_ACEOF 3624 3625# Some tools Automake needs. 3626 3627ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3628 3629 3630AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3631 3632 3633AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3634 3635 3636AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3637 3638 3639MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3640 3641# For better backward compatibility. To be removed once Automake 1.9.x 3642# dies out for good. For more background, see: 3643# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3644# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3645mkdir_p='$(MKDIR_P)' 3646 3647# We need awk for the "check" target (and possibly the TAP driver). The 3648# system "awk" is bad on some platforms. 3649# Always define AMTAR for backward compatibility. Yes, it's still used 3650# in the wild :-( We should find a proper way to deprecate it ... 3651AMTAR='$${TAR-tar}' 3652 3653 3654# We'll loop over all known methods to create a tar archive until one works. 3655_am_tools='gnutar plaintar pax cpio none' 3656 3657# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3658 # There is notably a 21 bits limit for the UID and the GID. In fact, 3659 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3660 # and bug#13588). 3661 am_max_uid=2097151 # 2^21 - 1 3662 am_max_gid=$am_max_uid 3663 # The $UID and $GID variables are not portable, so we need to resort 3664 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3665 # below are definitely unexpected, so allow the users to see them 3666 # (that is, avoid stderr redirection). 3667 am_uid=`id -u || echo unknown` 3668 am_gid=`id -g || echo unknown` 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3670$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3671 if test $am_uid -le $am_max_uid; then 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3673$as_echo "yes" >&6; } 3674 else 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3676$as_echo "no" >&6; } 3677 _am_tools=none 3678 fi 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3680$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3681 if test $am_gid -le $am_max_gid; then 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3683$as_echo "yes" >&6; } 3684 else 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3686$as_echo "no" >&6; } 3687 _am_tools=none 3688 fi 3689 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3691$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3692 3693 # Go ahead even if we have the value already cached. We do so because we 3694 # need to set the values for the 'am__tar' and 'am__untar' variables. 3695 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3696 3697 for _am_tool in $_am_tools; do 3698 case $_am_tool in 3699 gnutar) 3700 for _am_tar in tar gnutar gtar; do 3701 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3702 ($_am_tar --version) >&5 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); } && break 3706 done 3707 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3708 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3709 am__untar="$_am_tar -xf -" 3710 ;; 3711 plaintar) 3712 # Must skip GNU tar: if it does not support --format= it doesn't create 3713 # ustar tarball either. 3714 (tar --version) >/dev/null 2>&1 && continue 3715 am__tar='tar chf - "$$tardir"' 3716 am__tar_='tar chf - "$tardir"' 3717 am__untar='tar xf -' 3718 ;; 3719 pax) 3720 am__tar='pax -L -x ustar -w "$$tardir"' 3721 am__tar_='pax -L -x ustar -w "$tardir"' 3722 am__untar='pax -r' 3723 ;; 3724 cpio) 3725 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3726 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3727 am__untar='cpio -i -H ustar -d' 3728 ;; 3729 none) 3730 am__tar=false 3731 am__tar_=false 3732 am__untar=false 3733 ;; 3734 esac 3735 3736 # If the value was cached, stop now. We just wanted to have am__tar 3737 # and am__untar set. 3738 test -n "${am_cv_prog_tar_ustar}" && break 3739 3740 # tar/untar a dummy directory, and stop if the command works. 3741 rm -rf conftest.dir 3742 mkdir conftest.dir 3743 echo GrepMe > conftest.dir/file 3744 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3745 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); } 3749 rm -rf conftest.dir 3750 if test -s conftest.tar; then 3751 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3752 ($am__untar <conftest.tar) >&5 2>&5 3753 ac_status=$? 3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3755 (exit $ac_status); } 3756 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3757 (cat conftest.dir/file) >&5 2>&5 3758 ac_status=$? 3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3760 (exit $ac_status); } 3761 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3762 fi 3763 done 3764 rm -rf conftest.dir 3765 3766 if ${am_cv_prog_tar_ustar+:} false; then : 3767 $as_echo_n "(cached) " >&6 3768else 3769 am_cv_prog_tar_ustar=$_am_tool 3770fi 3771 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3773$as_echo "$am_cv_prog_tar_ustar" >&6; } 3774 3775 3776 3777 3778 3779 3780# POSIX will say in a future version that running "rm -f" with no argument 3781# is OK; and we want to be able to make that assumption in our Makefile 3782# recipes. So use an aggressive probe to check that the usage we want is 3783# actually supported "in the wild" to an acceptable degree. 3784# See automake bug#10828. 3785# To make any issue more visible, cause the running configure to be aborted 3786# by default if the 'rm' program in use doesn't match our expectations; the 3787# user can still override this though. 3788if rm -f && rm -fr && rm -rf; then : OK; else 3789 cat >&2 <<'END' 3790Oops! 3791 3792Your 'rm' program seems unable to run without file operands specified 3793on the command line, even when the '-f' option is present. This is contrary 3794to the behaviour of most rm programs out there, and not conforming with 3795the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3796 3797Please tell bug-automake@gnu.org about your system, including the value 3798of your $PATH and any error possibly output before this message. This 3799can help us improve future automake versions. 3800 3801END 3802 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3803 echo 'Configuration will proceed anyway, since you have set the' >&2 3804 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3805 echo >&2 3806 else 3807 cat >&2 <<'END' 3808Aborting the configuration process, to ensure you take notice of the issue. 3809 3810You can download and install GNU coreutils to get an 'rm' implementation 3811that behaves properly: <http://www.gnu.org/software/coreutils/>. 3812 3813If you want to complete the configuration process using your problematic 3814'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3815to "yes", and re-run configure. 3816 3817END 3818 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3819 fi 3820fi 3821 3822# Check whether --enable-silent-rules was given. 3823if test "${enable_silent_rules+set}" = set; then : 3824 enableval=$enable_silent_rules; 3825fi 3826 3827case $enable_silent_rules in # ((( 3828 yes) AM_DEFAULT_VERBOSITY=0;; 3829 no) AM_DEFAULT_VERBOSITY=1;; 3830 *) AM_DEFAULT_VERBOSITY=0;; 3831esac 3832am_make=${MAKE-make} 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3834$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3835if ${am_cv_make_support_nested_variables+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 if $as_echo 'TRUE=$(BAR$(V)) 3839BAR0=false 3840BAR1=true 3841V=1 3842am__doit: 3843 @$(TRUE) 3844.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3845 am_cv_make_support_nested_variables=yes 3846else 3847 am_cv_make_support_nested_variables=no 3848fi 3849fi 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3851$as_echo "$am_cv_make_support_nested_variables" >&6; } 3852if test $am_cv_make_support_nested_variables = yes; then 3853 AM_V='$(V)' 3854 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3855else 3856 AM_V=$AM_DEFAULT_VERBOSITY 3857 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3858fi 3859AM_BACKSLASH='\' 3860 3861 3862ac_ext=c 3863ac_cpp='$CPP $CPPFLAGS' 3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3866ac_compiler_gnu=$ac_cv_c_compiler_gnu 3867 3868DEPDIR="${am__leading_dot}deps" 3869 3870ac_config_commands="$ac_config_commands depfiles" 3871 3872 3873am_make=${MAKE-make} 3874cat > confinc << 'END' 3875am__doit: 3876 @echo this is the am__doit target 3877.PHONY: am__doit 3878END 3879# If we don't find an include directive, just comment out the code. 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3881$as_echo_n "checking for style of include used by $am_make... " >&6; } 3882am__include="#" 3883am__quote= 3884_am_result=none 3885# First try GNU make style include. 3886echo "include confinc" > confmf 3887# Ignore all kinds of additional output from 'make'. 3888case `$am_make -s -f confmf 2> /dev/null` in #( 3889*the\ am__doit\ target*) 3890 am__include=include 3891 am__quote= 3892 _am_result=GNU 3893 ;; 3894esac 3895# Now try BSD make style include. 3896if test "$am__include" = "#"; then 3897 echo '.include "confinc"' > confmf 3898 case `$am_make -s -f confmf 2> /dev/null` in #( 3899 *the\ am__doit\ target*) 3900 am__include=.include 3901 am__quote="\"" 3902 _am_result=BSD 3903 ;; 3904 esac 3905fi 3906 3907 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3909$as_echo "$_am_result" >&6; } 3910rm -f confinc confmf 3911 3912# Check whether --enable-dependency-tracking was given. 3913if test "${enable_dependency_tracking+set}" = set; then : 3914 enableval=$enable_dependency_tracking; 3915fi 3916 3917if test "x$enable_dependency_tracking" != xno; then 3918 am_depcomp="$ac_aux_dir/depcomp" 3919 AMDEPBACKSLASH='\' 3920 am__nodep='_no' 3921fi 3922 if test "x$enable_dependency_tracking" != xno; then 3923 AMDEP_TRUE= 3924 AMDEP_FALSE='#' 3925else 3926 AMDEP_TRUE='#' 3927 AMDEP_FALSE= 3928fi 3929 3930 3931ac_ext=c 3932ac_cpp='$CPP $CPPFLAGS' 3933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3935ac_compiler_gnu=$ac_cv_c_compiler_gnu 3936if test -n "$ac_tool_prefix"; then 3937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3938set dummy ${ac_tool_prefix}gcc; ac_word=$2 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3940$as_echo_n "checking for $ac_word... " >&6; } 3941if ${ac_cv_prog_CC+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 if test -n "$CC"; then 3945 ac_cv_prog_CC="$CC" # Let the user override the test. 3946else 3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3948for as_dir in $PATH 3949do 3950 IFS=$as_save_IFS 3951 test -z "$as_dir" && as_dir=. 3952 for ac_exec_ext in '' $ac_executable_extensions; do 3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3954 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3956 break 2 3957 fi 3958done 3959 done 3960IFS=$as_save_IFS 3961 3962fi 3963fi 3964CC=$ac_cv_prog_CC 3965if test -n "$CC"; then 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3967$as_echo "$CC" >&6; } 3968else 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3970$as_echo "no" >&6; } 3971fi 3972 3973 3974fi 3975if test -z "$ac_cv_prog_CC"; then 3976 ac_ct_CC=$CC 3977 # Extract the first word of "gcc", so it can be a program name with args. 3978set dummy gcc; ac_word=$2 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3980$as_echo_n "checking for $ac_word... " >&6; } 3981if ${ac_cv_prog_ac_ct_CC+:} false; then : 3982 $as_echo_n "(cached) " >&6 3983else 3984 if test -n "$ac_ct_CC"; then 3985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3986else 3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3988for as_dir in $PATH 3989do 3990 IFS=$as_save_IFS 3991 test -z "$as_dir" && as_dir=. 3992 for ac_exec_ext in '' $ac_executable_extensions; do 3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3994 ac_cv_prog_ac_ct_CC="gcc" 3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3996 break 2 3997 fi 3998done 3999 done 4000IFS=$as_save_IFS 4001 4002fi 4003fi 4004ac_ct_CC=$ac_cv_prog_ac_ct_CC 4005if test -n "$ac_ct_CC"; then 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4007$as_echo "$ac_ct_CC" >&6; } 4008else 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4010$as_echo "no" >&6; } 4011fi 4012 4013 if test "x$ac_ct_CC" = x; then 4014 CC="" 4015 else 4016 case $cross_compiling:$ac_tool_warned in 4017yes:) 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4020ac_tool_warned=yes ;; 4021esac 4022 CC=$ac_ct_CC 4023 fi 4024else 4025 CC="$ac_cv_prog_CC" 4026fi 4027 4028if test -z "$CC"; then 4029 if test -n "$ac_tool_prefix"; then 4030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4031set dummy ${ac_tool_prefix}cc; ac_word=$2 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4033$as_echo_n "checking for $ac_word... " >&6; } 4034if ${ac_cv_prog_CC+:} false; then : 4035 $as_echo_n "(cached) " >&6 4036else 4037 if test -n "$CC"; then 4038 ac_cv_prog_CC="$CC" # Let the user override the test. 4039else 4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041for as_dir in $PATH 4042do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4047 ac_cv_prog_CC="${ac_tool_prefix}cc" 4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4049 break 2 4050 fi 4051done 4052 done 4053IFS=$as_save_IFS 4054 4055fi 4056fi 4057CC=$ac_cv_prog_CC 4058if test -n "$CC"; then 4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4060$as_echo "$CC" >&6; } 4061else 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4063$as_echo "no" >&6; } 4064fi 4065 4066 4067 fi 4068fi 4069if test -z "$CC"; then 4070 # Extract the first word of "cc", so it can be a program name with args. 4071set dummy cc; ac_word=$2 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4073$as_echo_n "checking for $ac_word... " >&6; } 4074if ${ac_cv_prog_CC+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 if test -n "$CC"; then 4078 ac_cv_prog_CC="$CC" # Let the user override the test. 4079else 4080 ac_prog_rejected=no 4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH 4083do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_exec_ext in '' $ac_executable_extensions; do 4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4089 ac_prog_rejected=yes 4090 continue 4091 fi 4092 ac_cv_prog_CC="cc" 4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4094 break 2 4095 fi 4096done 4097 done 4098IFS=$as_save_IFS 4099 4100if test $ac_prog_rejected = yes; then 4101 # We found a bogon in the path, so make sure we never use it. 4102 set dummy $ac_cv_prog_CC 4103 shift 4104 if test $# != 0; then 4105 # We chose a different compiler from the bogus one. 4106 # However, it has the same basename, so the bogon will be chosen 4107 # first if we set CC to just the basename; use the full file name. 4108 shift 4109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4110 fi 4111fi 4112fi 4113fi 4114CC=$ac_cv_prog_CC 4115if test -n "$CC"; then 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4117$as_echo "$CC" >&6; } 4118else 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4120$as_echo "no" >&6; } 4121fi 4122 4123 4124fi 4125if test -z "$CC"; then 4126 if test -n "$ac_tool_prefix"; then 4127 for ac_prog in cl.exe 4128 do 4129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4130set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4132$as_echo_n "checking for $ac_word... " >&6; } 4133if ${ac_cv_prog_CC+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 if test -n "$CC"; then 4137 ac_cv_prog_CC="$CC" # Let the user override the test. 4138else 4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4140for as_dir in $PATH 4141do 4142 IFS=$as_save_IFS 4143 test -z "$as_dir" && as_dir=. 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4148 break 2 4149 fi 4150done 4151 done 4152IFS=$as_save_IFS 4153 4154fi 4155fi 4156CC=$ac_cv_prog_CC 4157if test -n "$CC"; then 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4159$as_echo "$CC" >&6; } 4160else 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4162$as_echo "no" >&6; } 4163fi 4164 4165 4166 test -n "$CC" && break 4167 done 4168fi 4169if test -z "$CC"; then 4170 ac_ct_CC=$CC 4171 for ac_prog in cl.exe 4172do 4173 # Extract the first word of "$ac_prog", so it can be a program name with args. 4174set dummy $ac_prog; ac_word=$2 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4176$as_echo_n "checking for $ac_word... " >&6; } 4177if ${ac_cv_prog_ac_ct_CC+:} false; then : 4178 $as_echo_n "(cached) " >&6 4179else 4180 if test -n "$ac_ct_CC"; then 4181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4182else 4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4184for as_dir in $PATH 4185do 4186 IFS=$as_save_IFS 4187 test -z "$as_dir" && as_dir=. 4188 for ac_exec_ext in '' $ac_executable_extensions; do 4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4190 ac_cv_prog_ac_ct_CC="$ac_prog" 4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4192 break 2 4193 fi 4194done 4195 done 4196IFS=$as_save_IFS 4197 4198fi 4199fi 4200ac_ct_CC=$ac_cv_prog_ac_ct_CC 4201if test -n "$ac_ct_CC"; then 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4203$as_echo "$ac_ct_CC" >&6; } 4204else 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4206$as_echo "no" >&6; } 4207fi 4208 4209 4210 test -n "$ac_ct_CC" && break 4211done 4212 4213 if test "x$ac_ct_CC" = x; then 4214 CC="" 4215 else 4216 case $cross_compiling:$ac_tool_warned in 4217yes:) 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4220ac_tool_warned=yes ;; 4221esac 4222 CC=$ac_ct_CC 4223 fi 4224fi 4225 4226fi 4227 4228 4229test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4231as_fn_error $? "no acceptable C compiler found in \$PATH 4232See \`config.log' for more details" "$LINENO" 5; } 4233 4234# Provide some information about the compiler. 4235$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4236set X $ac_compile 4237ac_compiler=$2 4238for ac_option in --version -v -V -qversion; do 4239 { { ac_try="$ac_compiler $ac_option >&5" 4240case "(($ac_try" in 4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4242 *) ac_try_echo=$ac_try;; 4243esac 4244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4245$as_echo "$ac_try_echo"; } >&5 4246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4247 ac_status=$? 4248 if test -s conftest.err; then 4249 sed '10a\ 4250... rest of stderr output deleted ... 4251 10q' conftest.err >conftest.er1 4252 cat conftest.er1 >&5 4253 fi 4254 rm -f conftest.er1 conftest.err 4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4256 test $ac_status = 0; } 4257done 4258 4259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261 4262int 4263main () 4264{ 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270ac_clean_files_save=$ac_clean_files 4271ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4272# Try to create an executable without -o first, disregard a.out. 4273# It will help us diagnose broken compilers, and finding out an intuition 4274# of exeext. 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4276$as_echo_n "checking whether the C compiler works... " >&6; } 4277ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4278 4279# The possible output files: 4280ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4281 4282ac_rmfiles= 4283for ac_file in $ac_files 4284do 4285 case $ac_file in 4286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4287 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4288 esac 4289done 4290rm -f $ac_rmfiles 4291 4292if { { ac_try="$ac_link_default" 4293case "(($ac_try" in 4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4295 *) ac_try_echo=$ac_try;; 4296esac 4297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4298$as_echo "$ac_try_echo"; } >&5 4299 (eval "$ac_link_default") 2>&5 4300 ac_status=$? 4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4302 test $ac_status = 0; }; then : 4303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4304# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4305# in a Makefile. We should not override ac_cv_exeext if it was cached, 4306# so that the user can short-circuit this test for compilers unknown to 4307# Autoconf. 4308for ac_file in $ac_files '' 4309do 4310 test -f "$ac_file" || continue 4311 case $ac_file in 4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4313 ;; 4314 [ab].out ) 4315 # We found the default executable, but exeext='' is most 4316 # certainly right. 4317 break;; 4318 *.* ) 4319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4320 then :; else 4321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4322 fi 4323 # We set ac_cv_exeext here because the later test for it is not 4324 # safe: cross compilers may not add the suffix if given an `-o' 4325 # argument, so we may need to know it at that point already. 4326 # Even if this section looks crufty: it has the advantage of 4327 # actually working. 4328 break;; 4329 * ) 4330 break;; 4331 esac 4332done 4333test "$ac_cv_exeext" = no && ac_cv_exeext= 4334 4335else 4336 ac_file='' 4337fi 4338if test -z "$ac_file"; then : 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4340$as_echo "no" >&6; } 4341$as_echo "$as_me: failed program was:" >&5 4342sed 's/^/| /' conftest.$ac_ext >&5 4343 4344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4346as_fn_error 77 "C compiler cannot create executables 4347See \`config.log' for more details" "$LINENO" 5; } 4348else 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4350$as_echo "yes" >&6; } 4351fi 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4353$as_echo_n "checking for C compiler default output file name... " >&6; } 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4355$as_echo "$ac_file" >&6; } 4356ac_exeext=$ac_cv_exeext 4357 4358rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4359ac_clean_files=$ac_clean_files_save 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4361$as_echo_n "checking for suffix of executables... " >&6; } 4362if { { ac_try="$ac_link" 4363case "(($ac_try" in 4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4365 *) ac_try_echo=$ac_try;; 4366esac 4367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4368$as_echo "$ac_try_echo"; } >&5 4369 (eval "$ac_link") 2>&5 4370 ac_status=$? 4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4372 test $ac_status = 0; }; then : 4373 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4374# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4375# work properly (i.e., refer to `conftest.exe'), while it won't with 4376# `rm'. 4377for ac_file in conftest.exe conftest conftest.*; do 4378 test -f "$ac_file" || continue 4379 case $ac_file in 4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4382 break;; 4383 * ) break;; 4384 esac 4385done 4386else 4387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4389as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4390See \`config.log' for more details" "$LINENO" 5; } 4391fi 4392rm -f conftest conftest$ac_cv_exeext 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4394$as_echo "$ac_cv_exeext" >&6; } 4395 4396rm -f conftest.$ac_ext 4397EXEEXT=$ac_cv_exeext 4398ac_exeext=$EXEEXT 4399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401#include <stdio.h> 4402int 4403main () 4404{ 4405FILE *f = fopen ("conftest.out", "w"); 4406 return ferror (f) || fclose (f) != 0; 4407 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412ac_clean_files="$ac_clean_files conftest.out" 4413# Check that the compiler produces executables we can run. If not, either 4414# the compiler is broken, or we cross compile. 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4416$as_echo_n "checking whether we are cross compiling... " >&6; } 4417if test "$cross_compiling" != yes; then 4418 { { ac_try="$ac_link" 4419case "(($ac_try" in 4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4421 *) ac_try_echo=$ac_try;; 4422esac 4423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4424$as_echo "$ac_try_echo"; } >&5 4425 (eval "$ac_link") 2>&5 4426 ac_status=$? 4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4428 test $ac_status = 0; } 4429 if { ac_try='./conftest$ac_cv_exeext' 4430 { { case "(($ac_try" in 4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4432 *) ac_try_echo=$ac_try;; 4433esac 4434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4435$as_echo "$ac_try_echo"; } >&5 4436 (eval "$ac_try") 2>&5 4437 ac_status=$? 4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4439 test $ac_status = 0; }; }; then 4440 cross_compiling=no 4441 else 4442 if test "$cross_compiling" = maybe; then 4443 cross_compiling=yes 4444 else 4445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4447as_fn_error $? "cannot run C compiled programs. 4448If you meant to cross compile, use \`--host'. 4449See \`config.log' for more details" "$LINENO" 5; } 4450 fi 4451 fi 4452fi 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4454$as_echo "$cross_compiling" >&6; } 4455 4456rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4457ac_clean_files=$ac_clean_files_save 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4459$as_echo_n "checking for suffix of object files... " >&6; } 4460if ${ac_cv_objext+:} false; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464/* end confdefs.h. */ 4465 4466int 4467main () 4468{ 4469 4470 ; 4471 return 0; 4472} 4473_ACEOF 4474rm -f conftest.o conftest.obj 4475if { { ac_try="$ac_compile" 4476case "(($ac_try" in 4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4478 *) ac_try_echo=$ac_try;; 4479esac 4480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4481$as_echo "$ac_try_echo"; } >&5 4482 (eval "$ac_compile") 2>&5 4483 ac_status=$? 4484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4485 test $ac_status = 0; }; then : 4486 for ac_file in conftest.o conftest.obj conftest.*; do 4487 test -f "$ac_file" || continue; 4488 case $ac_file in 4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4491 break;; 4492 esac 4493done 4494else 4495 $as_echo "$as_me: failed program was:" >&5 4496sed 's/^/| /' conftest.$ac_ext >&5 4497 4498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4500as_fn_error $? "cannot compute suffix of object files: cannot compile 4501See \`config.log' for more details" "$LINENO" 5; } 4502fi 4503rm -f conftest.$ac_cv_objext conftest.$ac_ext 4504fi 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4506$as_echo "$ac_cv_objext" >&6; } 4507OBJEXT=$ac_cv_objext 4508ac_objext=$OBJEXT 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4510$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4511if ${ac_cv_c_compiler_gnu+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4515/* end confdefs.h. */ 4516 4517int 4518main () 4519{ 4520#ifndef __GNUC__ 4521 choke me 4522#endif 4523 4524 ; 4525 return 0; 4526} 4527_ACEOF 4528if ac_fn_c_try_compile "$LINENO"; then : 4529 ac_compiler_gnu=yes 4530else 4531 ac_compiler_gnu=no 4532fi 4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4534ac_cv_c_compiler_gnu=$ac_compiler_gnu 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4538$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4539if test $ac_compiler_gnu = yes; then 4540 GCC=yes 4541else 4542 GCC= 4543fi 4544ac_test_CFLAGS=${CFLAGS+set} 4545ac_save_CFLAGS=$CFLAGS 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4547$as_echo_n "checking whether $CC accepts -g... " >&6; } 4548if ${ac_cv_prog_cc_g+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 ac_save_c_werror_flag=$ac_c_werror_flag 4552 ac_c_werror_flag=yes 4553 ac_cv_prog_cc_g=no 4554 CFLAGS="-g" 4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557 4558int 4559main () 4560{ 4561 4562 ; 4563 return 0; 4564} 4565_ACEOF 4566if ac_fn_c_try_compile "$LINENO"; then : 4567 ac_cv_prog_cc_g=yes 4568else 4569 CFLAGS="" 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571/* end confdefs.h. */ 4572 4573int 4574main () 4575{ 4576 4577 ; 4578 return 0; 4579} 4580_ACEOF 4581if ac_fn_c_try_compile "$LINENO"; then : 4582 4583else 4584 ac_c_werror_flag=$ac_save_c_werror_flag 4585 CFLAGS="-g" 4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4587/* end confdefs.h. */ 4588 4589int 4590main () 4591{ 4592 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597if ac_fn_c_try_compile "$LINENO"; then : 4598 ac_cv_prog_cc_g=yes 4599fi 4600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4601fi 4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4603fi 4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4605 ac_c_werror_flag=$ac_save_c_werror_flag 4606fi 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4608$as_echo "$ac_cv_prog_cc_g" >&6; } 4609if test "$ac_test_CFLAGS" = set; then 4610 CFLAGS=$ac_save_CFLAGS 4611elif test $ac_cv_prog_cc_g = yes; then 4612 if test "$GCC" = yes; then 4613 CFLAGS="-g -O2" 4614 else 4615 CFLAGS="-g" 4616 fi 4617else 4618 if test "$GCC" = yes; then 4619 CFLAGS="-O2" 4620 else 4621 CFLAGS= 4622 fi 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4625$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4626if ${ac_cv_prog_cc_c89+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628else 4629 ac_cv_prog_cc_c89=no 4630ac_save_CC=$CC 4631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4632/* end confdefs.h. */ 4633#include <stdarg.h> 4634#include <stdio.h> 4635struct stat; 4636/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4637struct buf { int x; }; 4638FILE * (*rcsopen) (struct buf *, struct stat *, int); 4639static char *e (p, i) 4640 char **p; 4641 int i; 4642{ 4643 return p[i]; 4644} 4645static char *f (char * (*g) (char **, int), char **p, ...) 4646{ 4647 char *s; 4648 va_list v; 4649 va_start (v,p); 4650 s = g (p, va_arg (v,int)); 4651 va_end (v); 4652 return s; 4653} 4654 4655/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4656 function prototypes and stuff, but not '\xHH' hex character constants. 4657 These don't provoke an error unfortunately, instead are silently treated 4658 as 'x'. The following induces an error, until -std is added to get 4659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4660 array size at least. It's necessary to write '\x00'==0 to get something 4661 that's true only with -std. */ 4662int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4663 4664/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4665 inside strings and character constants. */ 4666#define FOO(x) 'x' 4667int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4668 4669int test (int i, double x); 4670struct s1 {int (*f) (int a);}; 4671struct s2 {int (*f) (double a);}; 4672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4673int argc; 4674char **argv; 4675int 4676main () 4677{ 4678return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4679 ; 4680 return 0; 4681} 4682_ACEOF 4683for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4685do 4686 CC="$ac_save_CC $ac_arg" 4687 if ac_fn_c_try_compile "$LINENO"; then : 4688 ac_cv_prog_cc_c89=$ac_arg 4689fi 4690rm -f core conftest.err conftest.$ac_objext 4691 test "x$ac_cv_prog_cc_c89" != "xno" && break 4692done 4693rm -f conftest.$ac_ext 4694CC=$ac_save_CC 4695 4696fi 4697# AC_CACHE_VAL 4698case "x$ac_cv_prog_cc_c89" in 4699 x) 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4701$as_echo "none needed" >&6; } ;; 4702 xno) 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4704$as_echo "unsupported" >&6; } ;; 4705 *) 4706 CC="$CC $ac_cv_prog_cc_c89" 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4708$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4709esac 4710if test "x$ac_cv_prog_cc_c89" != xno; then : 4711 4712fi 4713 4714ac_ext=c 4715ac_cpp='$CPP $CPPFLAGS' 4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4718ac_compiler_gnu=$ac_cv_c_compiler_gnu 4719 4720ac_ext=c 4721ac_cpp='$CPP $CPPFLAGS' 4722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4724ac_compiler_gnu=$ac_cv_c_compiler_gnu 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4726$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4727if ${am_cv_prog_cc_c_o+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732 4733int 4734main () 4735{ 4736 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741 # Make sure it works both with $CC and with simple cc. 4742 # Following AC_PROG_CC_C_O, we do the test twice because some 4743 # compilers refuse to overwrite an existing .o file with -o, 4744 # though they will create one. 4745 am_cv_prog_cc_c_o=yes 4746 for am_i in 1 2; do 4747 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4748 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4749 ac_status=$? 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 (exit $ac_status); } \ 4752 && test -f conftest2.$ac_objext; then 4753 : OK 4754 else 4755 am_cv_prog_cc_c_o=no 4756 break 4757 fi 4758 done 4759 rm -f core conftest* 4760 unset am_i 4761fi 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4763$as_echo "$am_cv_prog_cc_c_o" >&6; } 4764if test "$am_cv_prog_cc_c_o" != yes; then 4765 # Losing compiler, so override with the script. 4766 # FIXME: It is wrong to rewrite CC. 4767 # But if we don't then we get into trouble of one sort or another. 4768 # A longer-term fix would be to have automake use am__CC in this case, 4769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4770 CC="$am_aux_dir/compile $CC" 4771fi 4772ac_ext=c 4773ac_cpp='$CPP $CPPFLAGS' 4774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4776ac_compiler_gnu=$ac_cv_c_compiler_gnu 4777 4778 4779depcc="$CC" am_compiler_list= 4780 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4782$as_echo_n "checking dependency style of $depcc... " >&6; } 4783if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4784 $as_echo_n "(cached) " >&6 4785else 4786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4787 # We make a subdir and do the tests there. Otherwise we can end up 4788 # making bogus files that we don't know about and never remove. For 4789 # instance it was reported that on HP-UX the gcc test will end up 4790 # making a dummy file named 'D' -- because '-MD' means "put the output 4791 # in D". 4792 rm -rf conftest.dir 4793 mkdir conftest.dir 4794 # Copy depcomp to subdir because otherwise we won't find it if we're 4795 # using a relative directory. 4796 cp "$am_depcomp" conftest.dir 4797 cd conftest.dir 4798 # We will build objects and dependencies in a subdirectory because 4799 # it helps to detect inapplicable dependency modes. For instance 4800 # both Tru64's cc and ICC support -MD to output dependencies as a 4801 # side effect of compilation, but ICC will put the dependencies in 4802 # the current directory while Tru64 will put them in the object 4803 # directory. 4804 mkdir sub 4805 4806 am_cv_CC_dependencies_compiler_type=none 4807 if test "$am_compiler_list" = ""; then 4808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4809 fi 4810 am__universal=false 4811 case " $depcc " in #( 4812 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4813 esac 4814 4815 for depmode in $am_compiler_list; do 4816 # Setup a source with many dependencies, because some compilers 4817 # like to wrap large dependency lists on column 80 (with \), and 4818 # we should not choose a depcomp mode which is confused by this. 4819 # 4820 # We need to recreate these files for each test, as the compiler may 4821 # overwrite some of them when testing with obscure command lines. 4822 # This happens at least with the AIX C compiler. 4823 : > sub/conftest.c 4824 for i in 1 2 3 4 5 6; do 4825 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4826 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4827 # Solaris 10 /bin/sh. 4828 echo '/* dummy */' > sub/conftst$i.h 4829 done 4830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4831 4832 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4833 # mode. It turns out that the SunPro C++ compiler does not properly 4834 # handle '-M -o', and we need to detect this. Also, some Intel 4835 # versions had trouble with output in subdirs. 4836 am__obj=sub/conftest.${OBJEXT-o} 4837 am__minus_obj="-o $am__obj" 4838 case $depmode in 4839 gcc) 4840 # This depmode causes a compiler race in universal mode. 4841 test "$am__universal" = false || continue 4842 ;; 4843 nosideeffect) 4844 # After this tag, mechanisms are not by side-effect, so they'll 4845 # only be used when explicitly requested. 4846 if test "x$enable_dependency_tracking" = xyes; then 4847 continue 4848 else 4849 break 4850 fi 4851 ;; 4852 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4853 # This compiler won't grok '-c -o', but also, the minuso test has 4854 # not run yet. These depmodes are late enough in the game, and 4855 # so weak that their functioning should not be impacted. 4856 am__obj=conftest.${OBJEXT-o} 4857 am__minus_obj= 4858 ;; 4859 none) break ;; 4860 esac 4861 if depmode=$depmode \ 4862 source=sub/conftest.c object=$am__obj \ 4863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4865 >/dev/null 2>conftest.err && 4866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4870 # icc doesn't choke on unknown options, it will just issue warnings 4871 # or remarks (even with -Werror). So we grep stderr for any message 4872 # that says an option was ignored or not supported. 4873 # When given -MP, icc 7.0 and 7.1 complain thusly: 4874 # icc: Command line warning: ignoring option '-M'; no argument required 4875 # The diagnosis changed in icc 8.0: 4876 # icc: Command line remark: option '-MP' not supported 4877 if (grep 'ignoring option' conftest.err || 4878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4879 am_cv_CC_dependencies_compiler_type=$depmode 4880 break 4881 fi 4882 fi 4883 done 4884 4885 cd .. 4886 rm -rf conftest.dir 4887else 4888 am_cv_CC_dependencies_compiler_type=none 4889fi 4890 4891fi 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4893$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4894CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4895 4896 if 4897 test "x$enable_dependency_tracking" != xno \ 4898 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4899 am__fastdepCC_TRUE= 4900 am__fastdepCC_FALSE='#' 4901else 4902 am__fastdepCC_TRUE='#' 4903 am__fastdepCC_FALSE= 4904fi 4905 4906 4907 4908ac_ext=c 4909ac_cpp='$CPP $CPPFLAGS' 4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4912ac_compiler_gnu=$ac_cv_c_compiler_gnu 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4914$as_echo_n "checking how to run the C preprocessor... " >&6; } 4915# On Suns, sometimes $CPP names a directory. 4916if test -n "$CPP" && test -d "$CPP"; then 4917 CPP= 4918fi 4919if test -z "$CPP"; then 4920 if ${ac_cv_prog_CPP+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 # Double quotes because CPP needs to be expanded 4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4925 do 4926 ac_preproc_ok=false 4927for ac_c_preproc_warn_flag in '' yes 4928do 4929 # Use a header file that comes with gcc, so configuring glibc 4930 # with a fresh cross-compiler works. 4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4932 # <limits.h> exists even on freestanding compilers. 4933 # On the NeXT, cc -E runs the code through the compiler's parser, 4934 # not just through cpp. "Syntax error" is here to catch this case. 4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937#ifdef __STDC__ 4938# include <limits.h> 4939#else 4940# include <assert.h> 4941#endif 4942 Syntax error 4943_ACEOF 4944if ac_fn_c_try_cpp "$LINENO"; then : 4945 4946else 4947 # Broken: fails on valid input. 4948continue 4949fi 4950rm -f conftest.err conftest.i conftest.$ac_ext 4951 4952 # OK, works on sane cases. Now check whether nonexistent headers 4953 # can be detected and how. 4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955/* end confdefs.h. */ 4956#include <ac_nonexistent.h> 4957_ACEOF 4958if ac_fn_c_try_cpp "$LINENO"; then : 4959 # Broken: success on invalid input. 4960continue 4961else 4962 # Passes both tests. 4963ac_preproc_ok=: 4964break 4965fi 4966rm -f conftest.err conftest.i conftest.$ac_ext 4967 4968done 4969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4970rm -f conftest.i conftest.err conftest.$ac_ext 4971if $ac_preproc_ok; then : 4972 break 4973fi 4974 4975 done 4976 ac_cv_prog_CPP=$CPP 4977 4978fi 4979 CPP=$ac_cv_prog_CPP 4980else 4981 ac_cv_prog_CPP=$CPP 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4984$as_echo "$CPP" >&6; } 4985ac_preproc_ok=false 4986for ac_c_preproc_warn_flag in '' yes 4987do 4988 # Use a header file that comes with gcc, so configuring glibc 4989 # with a fresh cross-compiler works. 4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4991 # <limits.h> exists even on freestanding compilers. 4992 # On the NeXT, cc -E runs the code through the compiler's parser, 4993 # not just through cpp. "Syntax error" is here to catch this case. 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996#ifdef __STDC__ 4997# include <limits.h> 4998#else 4999# include <assert.h> 5000#endif 5001 Syntax error 5002_ACEOF 5003if ac_fn_c_try_cpp "$LINENO"; then : 5004 5005else 5006 # Broken: fails on valid input. 5007continue 5008fi 5009rm -f conftest.err conftest.i conftest.$ac_ext 5010 5011 # OK, works on sane cases. Now check whether nonexistent headers 5012 # can be detected and how. 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014/* end confdefs.h. */ 5015#include <ac_nonexistent.h> 5016_ACEOF 5017if ac_fn_c_try_cpp "$LINENO"; then : 5018 # Broken: success on invalid input. 5019continue 5020else 5021 # Passes both tests. 5022ac_preproc_ok=: 5023break 5024fi 5025rm -f conftest.err conftest.i conftest.$ac_ext 5026 5027done 5028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5029rm -f conftest.i conftest.err conftest.$ac_ext 5030if $ac_preproc_ok; then : 5031 5032else 5033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5035as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5036See \`config.log' for more details" "$LINENO" 5; } 5037fi 5038 5039ac_ext=c 5040ac_cpp='$CPP $CPPFLAGS' 5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5043ac_compiler_gnu=$ac_cv_c_compiler_gnu 5044 5045 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5047$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5048if ${ac_cv_path_GREP+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 if test -z "$GREP"; then 5052 ac_path_GREP_found=false 5053 # Loop through the user's path and test for each of PROGNAME-LIST 5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5056do 5057 IFS=$as_save_IFS 5058 test -z "$as_dir" && as_dir=. 5059 for ac_prog in grep ggrep; do 5060 for ac_exec_ext in '' $ac_executable_extensions; do 5061 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5062 as_fn_executable_p "$ac_path_GREP" || continue 5063# Check for GNU ac_path_GREP and select it if it is found. 5064 # Check for GNU $ac_path_GREP 5065case `"$ac_path_GREP" --version 2>&1` in 5066*GNU*) 5067 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5068*) 5069 ac_count=0 5070 $as_echo_n 0123456789 >"conftest.in" 5071 while : 5072 do 5073 cat "conftest.in" "conftest.in" >"conftest.tmp" 5074 mv "conftest.tmp" "conftest.in" 5075 cp "conftest.in" "conftest.nl" 5076 $as_echo 'GREP' >> "conftest.nl" 5077 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5079 as_fn_arith $ac_count + 1 && ac_count=$as_val 5080 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5081 # Best one so far, save it but keep looking for a better one 5082 ac_cv_path_GREP="$ac_path_GREP" 5083 ac_path_GREP_max=$ac_count 5084 fi 5085 # 10*(2^10) chars as input seems more than enough 5086 test $ac_count -gt 10 && break 5087 done 5088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5089esac 5090 5091 $ac_path_GREP_found && break 3 5092 done 5093 done 5094 done 5095IFS=$as_save_IFS 5096 if test -z "$ac_cv_path_GREP"; then 5097 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5098 fi 5099else 5100 ac_cv_path_GREP=$GREP 5101fi 5102 5103fi 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5105$as_echo "$ac_cv_path_GREP" >&6; } 5106 GREP="$ac_cv_path_GREP" 5107 5108 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5110$as_echo_n "checking for egrep... " >&6; } 5111if ${ac_cv_path_EGREP+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5115 then ac_cv_path_EGREP="$GREP -E" 5116 else 5117 if test -z "$EGREP"; then 5118 ac_path_EGREP_found=false 5119 # Loop through the user's path and test for each of PROGNAME-LIST 5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5121for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5122do 5123 IFS=$as_save_IFS 5124 test -z "$as_dir" && as_dir=. 5125 for ac_prog in egrep; do 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5128 as_fn_executable_p "$ac_path_EGREP" || continue 5129# Check for GNU ac_path_EGREP and select it if it is found. 5130 # Check for GNU $ac_path_EGREP 5131case `"$ac_path_EGREP" --version 2>&1` in 5132*GNU*) 5133 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5134*) 5135 ac_count=0 5136 $as_echo_n 0123456789 >"conftest.in" 5137 while : 5138 do 5139 cat "conftest.in" "conftest.in" >"conftest.tmp" 5140 mv "conftest.tmp" "conftest.in" 5141 cp "conftest.in" "conftest.nl" 5142 $as_echo 'EGREP' >> "conftest.nl" 5143 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5145 as_fn_arith $ac_count + 1 && ac_count=$as_val 5146 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5147 # Best one so far, save it but keep looking for a better one 5148 ac_cv_path_EGREP="$ac_path_EGREP" 5149 ac_path_EGREP_max=$ac_count 5150 fi 5151 # 10*(2^10) chars as input seems more than enough 5152 test $ac_count -gt 10 && break 5153 done 5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5155esac 5156 5157 $ac_path_EGREP_found && break 3 5158 done 5159 done 5160 done 5161IFS=$as_save_IFS 5162 if test -z "$ac_cv_path_EGREP"; then 5163 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5164 fi 5165else 5166 ac_cv_path_EGREP=$EGREP 5167fi 5168 5169 fi 5170fi 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5172$as_echo "$ac_cv_path_EGREP" >&6; } 5173 EGREP="$ac_cv_path_EGREP" 5174 5175 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5177$as_echo_n "checking for ANSI C header files... " >&6; } 5178if ${ac_cv_header_stdc+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182/* end confdefs.h. */ 5183#include <stdlib.h> 5184#include <stdarg.h> 5185#include <string.h> 5186#include <float.h> 5187 5188int 5189main () 5190{ 5191 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196if ac_fn_c_try_compile "$LINENO"; then : 5197 ac_cv_header_stdc=yes 5198else 5199 ac_cv_header_stdc=no 5200fi 5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5202 5203if test $ac_cv_header_stdc = yes; then 5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206/* end confdefs.h. */ 5207#include <string.h> 5208 5209_ACEOF 5210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5211 $EGREP "memchr" >/dev/null 2>&1; then : 5212 5213else 5214 ac_cv_header_stdc=no 5215fi 5216rm -f conftest* 5217 5218fi 5219 5220if test $ac_cv_header_stdc = yes; then 5221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5223/* end confdefs.h. */ 5224#include <stdlib.h> 5225 5226_ACEOF 5227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5228 $EGREP "free" >/dev/null 2>&1; then : 5229 5230else 5231 ac_cv_header_stdc=no 5232fi 5233rm -f conftest* 5234 5235fi 5236 5237if test $ac_cv_header_stdc = yes; then 5238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5239 if test "$cross_compiling" = yes; then : 5240 : 5241else 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244#include <ctype.h> 5245#include <stdlib.h> 5246#if ((' ' & 0x0FF) == 0x020) 5247# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5248# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5249#else 5250# define ISLOWER(c) \ 5251 (('a' <= (c) && (c) <= 'i') \ 5252 || ('j' <= (c) && (c) <= 'r') \ 5253 || ('s' <= (c) && (c) <= 'z')) 5254# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5255#endif 5256 5257#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5258int 5259main () 5260{ 5261 int i; 5262 for (i = 0; i < 256; i++) 5263 if (XOR (islower (i), ISLOWER (i)) 5264 || toupper (i) != TOUPPER (i)) 5265 return 2; 5266 return 0; 5267} 5268_ACEOF 5269if ac_fn_c_try_run "$LINENO"; then : 5270 5271else 5272 ac_cv_header_stdc=no 5273fi 5274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5275 conftest.$ac_objext conftest.beam conftest.$ac_ext 5276fi 5277 5278fi 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5281$as_echo "$ac_cv_header_stdc" >&6; } 5282if test $ac_cv_header_stdc = yes; then 5283 5284$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5285 5286fi 5287 5288# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5289for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5290 inttypes.h stdint.h unistd.h 5291do : 5292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5293ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5294" 5295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5296 cat >>confdefs.h <<_ACEOF 5297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5298_ACEOF 5299 5300fi 5301 5302done 5303 5304 5305 5306 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5307if test "x$ac_cv_header_minix_config_h" = xyes; then : 5308 MINIX=yes 5309else 5310 MINIX= 5311fi 5312 5313 5314 if test "$MINIX" = yes; then 5315 5316$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5317 5318 5319$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5320 5321 5322$as_echo "#define _MINIX 1" >>confdefs.h 5323 5324 fi 5325 5326 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5328$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5329if ${ac_cv_safe_to_define___extensions__+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333/* end confdefs.h. */ 5334 5335# define __EXTENSIONS__ 1 5336 $ac_includes_default 5337int 5338main () 5339{ 5340 5341 ; 5342 return 0; 5343} 5344_ACEOF 5345if ac_fn_c_try_compile "$LINENO"; then : 5346 ac_cv_safe_to_define___extensions__=yes 5347else 5348 ac_cv_safe_to_define___extensions__=no 5349fi 5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5351fi 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5353$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5354 test $ac_cv_safe_to_define___extensions__ = yes && 5355 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5356 5357 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5358 5359 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5360 5361 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5362 5363 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5364 5365 5366 5367#################################################################### 5368# Setup the configure-results header file 5369#################################################################### 5370 5371 5372 5373 5374#################################################################### 5375# Setup Libtool 5376#################################################################### 5377 5378# We want new Libtool. None of that old stuff. Pfft. 5379 5380 5381 5382# Setup libtool, but disable F77, Java and Windows Resource 5383# Compiler support -- we don't need that stuff. 5384# Check whether --enable-shared was given. 5385if test "${enable_shared+set}" = set; then : 5386 enableval=$enable_shared; p=${PACKAGE-default} 5387 case $enableval in 5388 yes) enable_shared=yes ;; 5389 no) enable_shared=no ;; 5390 *) 5391 enable_shared=no 5392 # Look at the argument we got. We use all the common list separators. 5393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 5394 for pkg in $enableval; do 5395 IFS=$lt_save_ifs 5396 if test "X$pkg" = "X$p"; then 5397 enable_shared=yes 5398 fi 5399 done 5400 IFS=$lt_save_ifs 5401 ;; 5402 esac 5403else 5404 enable_shared=yes 5405fi 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415# Check whether --enable-static was given. 5416if test "${enable_static+set}" = set; then : 5417 enableval=$enable_static; p=${PACKAGE-default} 5418 case $enableval in 5419 yes) enable_static=yes ;; 5420 no) enable_static=no ;; 5421 *) 5422 enable_static=no 5423 # Look at the argument we got. We use all the common list separators. 5424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 5425 for pkg in $enableval; do 5426 IFS=$lt_save_ifs 5427 if test "X$pkg" = "X$p"; then 5428 enable_static=yes 5429 fi 5430 done 5431 IFS=$lt_save_ifs 5432 ;; 5433 esac 5434else 5435 enable_static=no 5436fi 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447# This did not exist pre AM 1.11.x (where x is somewhere >0 and <3), 5448# but it is necessary in AM 1.12.x. 5449if test -n "$ac_tool_prefix"; then 5450 for ac_prog in ar lib "link -lib" 5451 do 5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5455$as_echo_n "checking for $ac_word... " >&6; } 5456if ${ac_cv_prog_AR+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 if test -n "$AR"; then 5460 ac_cv_prog_AR="$AR" # Let the user override the test. 5461else 5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463for as_dir in $PATH 5464do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5469 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473done 5474 done 5475IFS=$as_save_IFS 5476 5477fi 5478fi 5479AR=$ac_cv_prog_AR 5480if test -n "$AR"; then 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5482$as_echo "$AR" >&6; } 5483else 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5485$as_echo "no" >&6; } 5486fi 5487 5488 5489 test -n "$AR" && break 5490 done 5491fi 5492if test -z "$AR"; then 5493 ac_ct_AR=$AR 5494 for ac_prog in ar lib "link -lib" 5495do 5496 # Extract the first word of "$ac_prog", so it can be a program name with args. 5497set dummy $ac_prog; ac_word=$2 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499$as_echo_n "checking for $ac_word... " >&6; } 5500if ${ac_cv_prog_ac_ct_AR+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 if test -n "$ac_ct_AR"; then 5504 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5505else 5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_exec_ext in '' $ac_executable_extensions; do 5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5513 ac_cv_prog_ac_ct_AR="$ac_prog" 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5515 break 2 5516 fi 5517done 5518 done 5519IFS=$as_save_IFS 5520 5521fi 5522fi 5523ac_ct_AR=$ac_cv_prog_ac_ct_AR 5524if test -n "$ac_ct_AR"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5526$as_echo "$ac_ct_AR" >&6; } 5527else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529$as_echo "no" >&6; } 5530fi 5531 5532 5533 test -n "$ac_ct_AR" && break 5534done 5535 5536 if test "x$ac_ct_AR" = x; then 5537 AR="false" 5538 else 5539 case $cross_compiling:$ac_tool_warned in 5540yes:) 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5543ac_tool_warned=yes ;; 5544esac 5545 AR=$ac_ct_AR 5546 fi 5547fi 5548 5549: ${AR=ar} 5550 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5552$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5553if ${am_cv_ar_interface+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 ac_ext=c 5557ac_cpp='$CPP $CPPFLAGS' 5558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5560ac_compiler_gnu=$ac_cv_c_compiler_gnu 5561 5562 am_cv_ar_interface=ar 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565int some_variable = 0; 5566_ACEOF 5567if ac_fn_c_try_compile "$LINENO"; then : 5568 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5570 (eval $am_ar_try) 2>&5 5571 ac_status=$? 5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5573 test $ac_status = 0; } 5574 if test "$ac_status" -eq 0; then 5575 am_cv_ar_interface=ar 5576 else 5577 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5579 (eval $am_ar_try) 2>&5 5580 ac_status=$? 5581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5582 test $ac_status = 0; } 5583 if test "$ac_status" -eq 0; then 5584 am_cv_ar_interface=lib 5585 else 5586 am_cv_ar_interface=unknown 5587 fi 5588 fi 5589 rm -f conftest.lib libconftest.a 5590 5591fi 5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5593 ac_ext=c 5594ac_cpp='$CPP $CPPFLAGS' 5595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5597ac_compiler_gnu=$ac_cv_c_compiler_gnu 5598 5599fi 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5601$as_echo "$am_cv_ar_interface" >&6; } 5602 5603case $am_cv_ar_interface in 5604ar) 5605 ;; 5606lib) 5607 # Microsoft lib, so override with the ar-lib wrapper script. 5608 # FIXME: It is wrong to rewrite AR. 5609 # But if we don't then we get into trouble of one sort or another. 5610 # A longer-term fix would be to have automake use am__AR in this case, 5611 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5612 # similar. 5613 AR="$am_aux_dir/ar-lib $AR" 5614 ;; 5615unknown) 5616 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5617 ;; 5618esac 5619 5620 5621case `pwd` in 5622 *\ * | *\ *) 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5624$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5625esac 5626 5627 5628 5629macro_version='2.4.6' 5630macro_revision='2.4.6' 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644ltmain=$ac_aux_dir/ltmain.sh 5645 5646# Backslashify metacharacters that are still active within 5647# double-quoted strings. 5648sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5649 5650# Same as above, but do not quote variable references. 5651double_quote_subst='s/\(["`\\]\)/\\\1/g' 5652 5653# Sed substitution to delay expansion of an escaped shell variable in a 5654# double_quote_subst'ed string. 5655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5656 5657# Sed substitution to delay expansion of an escaped single quote. 5658delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5659 5660# Sed substitution to avoid accidental globbing in evaled expressions 5661no_glob_subst='s/\*/\\\*/g' 5662 5663ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5664ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5665ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5666 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5668$as_echo_n "checking how to print strings... " >&6; } 5669# Test print first, because it will be a builtin if present. 5670if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5671 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5672 ECHO='print -r --' 5673elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5674 ECHO='printf %s\n' 5675else 5676 # Use this function as a fallback that always works. 5677 func_fallback_echo () 5678 { 5679 eval 'cat <<_LTECHO_EOF 5680$1 5681_LTECHO_EOF' 5682 } 5683 ECHO='func_fallback_echo' 5684fi 5685 5686# func_echo_all arg... 5687# Invoke $ECHO with all args, space-separated. 5688func_echo_all () 5689{ 5690 $ECHO "" 5691} 5692 5693case $ECHO in 5694 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5695$as_echo "printf" >&6; } ;; 5696 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5697$as_echo "print -r" >&6; } ;; 5698 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5699$as_echo "cat" >&6; } ;; 5700esac 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5716$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5717if ${ac_cv_path_SED+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5721 for ac_i in 1 2 3 4 5 6 7; do 5722 ac_script="$ac_script$as_nl$ac_script" 5723 done 5724 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5725 { ac_script=; unset ac_script;} 5726 if test -z "$SED"; then 5727 ac_path_SED_found=false 5728 # Loop through the user's path and test for each of PROGNAME-LIST 5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5730for as_dir in $PATH 5731do 5732 IFS=$as_save_IFS 5733 test -z "$as_dir" && as_dir=. 5734 for ac_prog in sed gsed; do 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5737 as_fn_executable_p "$ac_path_SED" || continue 5738# Check for GNU ac_path_SED and select it if it is found. 5739 # Check for GNU $ac_path_SED 5740case `"$ac_path_SED" --version 2>&1` in 5741*GNU*) 5742 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5743*) 5744 ac_count=0 5745 $as_echo_n 0123456789 >"conftest.in" 5746 while : 5747 do 5748 cat "conftest.in" "conftest.in" >"conftest.tmp" 5749 mv "conftest.tmp" "conftest.in" 5750 cp "conftest.in" "conftest.nl" 5751 $as_echo '' >> "conftest.nl" 5752 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5754 as_fn_arith $ac_count + 1 && ac_count=$as_val 5755 if test $ac_count -gt ${ac_path_SED_max-0}; then 5756 # Best one so far, save it but keep looking for a better one 5757 ac_cv_path_SED="$ac_path_SED" 5758 ac_path_SED_max=$ac_count 5759 fi 5760 # 10*(2^10) chars as input seems more than enough 5761 test $ac_count -gt 10 && break 5762 done 5763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5764esac 5765 5766 $ac_path_SED_found && break 3 5767 done 5768 done 5769 done 5770IFS=$as_save_IFS 5771 if test -z "$ac_cv_path_SED"; then 5772 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5773 fi 5774else 5775 ac_cv_path_SED=$SED 5776fi 5777 5778fi 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5780$as_echo "$ac_cv_path_SED" >&6; } 5781 SED="$ac_cv_path_SED" 5782 rm -f conftest.sed 5783 5784test -z "$SED" && SED=sed 5785Xsed="$SED -e 1s/^X//" 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5798$as_echo_n "checking for fgrep... " >&6; } 5799if ${ac_cv_path_FGREP+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5803 then ac_cv_path_FGREP="$GREP -F" 5804 else 5805 if test -z "$FGREP"; then 5806 ac_path_FGREP_found=false 5807 # Loop through the user's path and test for each of PROGNAME-LIST 5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5810do 5811 IFS=$as_save_IFS 5812 test -z "$as_dir" && as_dir=. 5813 for ac_prog in fgrep; do 5814 for ac_exec_ext in '' $ac_executable_extensions; do 5815 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5816 as_fn_executable_p "$ac_path_FGREP" || continue 5817# Check for GNU ac_path_FGREP and select it if it is found. 5818 # Check for GNU $ac_path_FGREP 5819case `"$ac_path_FGREP" --version 2>&1` in 5820*GNU*) 5821 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5822*) 5823 ac_count=0 5824 $as_echo_n 0123456789 >"conftest.in" 5825 while : 5826 do 5827 cat "conftest.in" "conftest.in" >"conftest.tmp" 5828 mv "conftest.tmp" "conftest.in" 5829 cp "conftest.in" "conftest.nl" 5830 $as_echo 'FGREP' >> "conftest.nl" 5831 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5833 as_fn_arith $ac_count + 1 && ac_count=$as_val 5834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5835 # Best one so far, save it but keep looking for a better one 5836 ac_cv_path_FGREP="$ac_path_FGREP" 5837 ac_path_FGREP_max=$ac_count 5838 fi 5839 # 10*(2^10) chars as input seems more than enough 5840 test $ac_count -gt 10 && break 5841 done 5842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5843esac 5844 5845 $ac_path_FGREP_found && break 3 5846 done 5847 done 5848 done 5849IFS=$as_save_IFS 5850 if test -z "$ac_cv_path_FGREP"; then 5851 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5852 fi 5853else 5854 ac_cv_path_FGREP=$FGREP 5855fi 5856 5857 fi 5858fi 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5860$as_echo "$ac_cv_path_FGREP" >&6; } 5861 FGREP="$ac_cv_path_FGREP" 5862 5863 5864test -z "$GREP" && GREP=grep 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884# Check whether --with-gnu-ld was given. 5885if test "${with_gnu_ld+set}" = set; then : 5886 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5887else 5888 with_gnu_ld=no 5889fi 5890 5891ac_prog=ld 5892if test yes = "$GCC"; then 5893 # Check if gcc -print-prog-name=ld gives a path. 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5895$as_echo_n "checking for ld used by $CC... " >&6; } 5896 case $host in 5897 *-*-mingw*) 5898 # gcc leaves a trailing carriage return, which upsets mingw 5899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5900 *) 5901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5902 esac 5903 case $ac_prog in 5904 # Accept absolute paths. 5905 [\\/]* | ?:[\\/]*) 5906 re_direlt='/[^/][^/]*/\.\./' 5907 # Canonicalize the pathname of ld 5908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5911 done 5912 test -z "$LD" && LD=$ac_prog 5913 ;; 5914 "") 5915 # If it fails, then pretend we aren't using GCC. 5916 ac_prog=ld 5917 ;; 5918 *) 5919 # If it is relative, then search for the first ld in PATH. 5920 with_gnu_ld=unknown 5921 ;; 5922 esac 5923elif test yes = "$with_gnu_ld"; then 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5925$as_echo_n "checking for GNU ld... " >&6; } 5926else 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5928$as_echo_n "checking for non-GNU ld... " >&6; } 5929fi 5930if ${lt_cv_path_LD+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 if test -z "$LD"; then 5934 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5935 for ac_dir in $PATH; do 5936 IFS=$lt_save_ifs 5937 test -z "$ac_dir" && ac_dir=. 5938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5939 lt_cv_path_LD=$ac_dir/$ac_prog 5940 # Check to see if the program is GNU ld. I'd rather use --version, 5941 # but apparently some variants of GNU ld only accept -v. 5942 # Break only if it was the GNU/non-GNU ld that we prefer. 5943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5944 *GNU* | *'with BFD'*) 5945 test no != "$with_gnu_ld" && break 5946 ;; 5947 *) 5948 test yes != "$with_gnu_ld" && break 5949 ;; 5950 esac 5951 fi 5952 done 5953 IFS=$lt_save_ifs 5954else 5955 lt_cv_path_LD=$LD # Let the user override the test with a path. 5956fi 5957fi 5958 5959LD=$lt_cv_path_LD 5960if test -n "$LD"; then 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5962$as_echo "$LD" >&6; } 5963else 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5965$as_echo "no" >&6; } 5966fi 5967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5970if ${lt_cv_prog_gnu_ld+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5974case `$LD -v 2>&1 </dev/null` in 5975*GNU* | *'with BFD'*) 5976 lt_cv_prog_gnu_ld=yes 5977 ;; 5978*) 5979 lt_cv_prog_gnu_ld=no 5980 ;; 5981esac 5982fi 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5984$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5985with_gnu_ld=$lt_cv_prog_gnu_ld 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5997if ${lt_cv_path_NM+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -n "$NM"; then 6001 # Let the user override the test. 6002 lt_cv_path_NM=$NM 6003else 6004 lt_nm_to_check=${ac_tool_prefix}nm 6005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6006 lt_nm_to_check="$lt_nm_to_check nm" 6007 fi 6008 for lt_tmp_nm in $lt_nm_to_check; do 6009 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6010 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6011 IFS=$lt_save_ifs 6012 test -z "$ac_dir" && ac_dir=. 6013 tmp_nm=$ac_dir/$lt_tmp_nm 6014 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6015 # Check to see if the nm accepts a BSD-compat flag. 6016 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6017 # nm: unknown option "B" ignored 6018 # Tru64's nm complains that /dev/null is an invalid object file 6019 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6020 case $build_os in 6021 mingw*) lt_bad_file=conftest.nm/nofile ;; 6022 *) lt_bad_file=/dev/null ;; 6023 esac 6024 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6025 *$lt_bad_file* | *'Invalid file or object type'*) 6026 lt_cv_path_NM="$tmp_nm -B" 6027 break 2 6028 ;; 6029 *) 6030 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6031 */dev/null*) 6032 lt_cv_path_NM="$tmp_nm -p" 6033 break 2 6034 ;; 6035 *) 6036 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6037 continue # so that we can try to find one that supports BSD flags 6038 ;; 6039 esac 6040 ;; 6041 esac 6042 fi 6043 done 6044 IFS=$lt_save_ifs 6045 done 6046 : ${lt_cv_path_NM=no} 6047fi 6048fi 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6050$as_echo "$lt_cv_path_NM" >&6; } 6051if test no != "$lt_cv_path_NM"; then 6052 NM=$lt_cv_path_NM 6053else 6054 # Didn't find any BSD compatible name lister, look for dumpbin. 6055 if test -n "$DUMPBIN"; then : 6056 # Let the user override the test. 6057 else 6058 if test -n "$ac_tool_prefix"; then 6059 for ac_prog in dumpbin "link -dump" 6060 do 6061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6062set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6064$as_echo_n "checking for $ac_word... " >&6; } 6065if ${ac_cv_prog_DUMPBIN+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 if test -n "$DUMPBIN"; then 6069 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6070else 6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6072for as_dir in $PATH 6073do 6074 IFS=$as_save_IFS 6075 test -z "$as_dir" && as_dir=. 6076 for ac_exec_ext in '' $ac_executable_extensions; do 6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6078 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6080 break 2 6081 fi 6082done 6083 done 6084IFS=$as_save_IFS 6085 6086fi 6087fi 6088DUMPBIN=$ac_cv_prog_DUMPBIN 6089if test -n "$DUMPBIN"; then 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6091$as_echo "$DUMPBIN" >&6; } 6092else 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6094$as_echo "no" >&6; } 6095fi 6096 6097 6098 test -n "$DUMPBIN" && break 6099 done 6100fi 6101if test -z "$DUMPBIN"; then 6102 ac_ct_DUMPBIN=$DUMPBIN 6103 for ac_prog in dumpbin "link -dump" 6104do 6105 # Extract the first word of "$ac_prog", so it can be a program name with args. 6106set dummy $ac_prog; ac_word=$2 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6108$as_echo_n "checking for $ac_word... " >&6; } 6109if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 if test -n "$ac_ct_DUMPBIN"; then 6113 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6114else 6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116for as_dir in $PATH 6117do 6118 IFS=$as_save_IFS 6119 test -z "$as_dir" && as_dir=. 6120 for ac_exec_ext in '' $ac_executable_extensions; do 6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6124 break 2 6125 fi 6126done 6127 done 6128IFS=$as_save_IFS 6129 6130fi 6131fi 6132ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6133if test -n "$ac_ct_DUMPBIN"; then 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6135$as_echo "$ac_ct_DUMPBIN" >&6; } 6136else 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6138$as_echo "no" >&6; } 6139fi 6140 6141 6142 test -n "$ac_ct_DUMPBIN" && break 6143done 6144 6145 if test "x$ac_ct_DUMPBIN" = x; then 6146 DUMPBIN=":" 6147 else 6148 case $cross_compiling:$ac_tool_warned in 6149yes:) 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6152ac_tool_warned=yes ;; 6153esac 6154 DUMPBIN=$ac_ct_DUMPBIN 6155 fi 6156fi 6157 6158 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6159 *COFF*) 6160 DUMPBIN="$DUMPBIN -symbols -headers" 6161 ;; 6162 *) 6163 DUMPBIN=: 6164 ;; 6165 esac 6166 fi 6167 6168 if test : != "$DUMPBIN"; then 6169 NM=$DUMPBIN 6170 fi 6171fi 6172test -z "$NM" && NM=nm 6173 6174 6175 6176 6177 6178 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6180$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6181if ${lt_cv_nm_interface+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 lt_cv_nm_interface="BSD nm" 6185 echo "int some_variable = 0;" > conftest.$ac_ext 6186 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6187 (eval "$ac_compile" 2>conftest.err) 6188 cat conftest.err >&5 6189 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6191 cat conftest.err >&5 6192 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6193 cat conftest.out >&5 6194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6195 lt_cv_nm_interface="MS dumpbin" 6196 fi 6197 rm -f conftest* 6198fi 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6200$as_echo "$lt_cv_nm_interface" >&6; } 6201 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6203$as_echo_n "checking whether ln -s works... " >&6; } 6204LN_S=$as_ln_s 6205if test "$LN_S" = "ln -s"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6207$as_echo "yes" >&6; } 6208else 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6210$as_echo "no, using $LN_S" >&6; } 6211fi 6212 6213# find the maximum length of command line arguments 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6215$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6216if ${lt_cv_sys_max_cmd_len+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 i=0 6220 teststring=ABCD 6221 6222 case $build_os in 6223 msdosdjgpp*) 6224 # On DJGPP, this test can blow up pretty badly due to problems in libc 6225 # (any single argument exceeding 2000 bytes causes a buffer overrun 6226 # during glob expansion). Even if it were fixed, the result of this 6227 # check would be larger than it should be. 6228 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6229 ;; 6230 6231 gnu*) 6232 # Under GNU Hurd, this test is not required because there is 6233 # no limit to the length of command line arguments. 6234 # Libtool will interpret -1 as no limit whatsoever 6235 lt_cv_sys_max_cmd_len=-1; 6236 ;; 6237 6238 cygwin* | mingw* | cegcc*) 6239 # On Win9x/ME, this test blows up -- it succeeds, but takes 6240 # about 5 minutes as the teststring grows exponentially. 6241 # Worse, since 9x/ME are not pre-emptively multitasking, 6242 # you end up with a "frozen" computer, even though with patience 6243 # the test eventually succeeds (with a max line length of 256k). 6244 # Instead, let's just punt: use the minimum linelength reported by 6245 # all of the supported platforms: 8192 (on NT/2K/XP). 6246 lt_cv_sys_max_cmd_len=8192; 6247 ;; 6248 6249 mint*) 6250 # On MiNT this can take a long time and run out of memory. 6251 lt_cv_sys_max_cmd_len=8192; 6252 ;; 6253 6254 amigaos*) 6255 # On AmigaOS with pdksh, this test takes hours, literally. 6256 # So we just punt and use a minimum line length of 8192. 6257 lt_cv_sys_max_cmd_len=8192; 6258 ;; 6259 6260 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6261 # This has been around since 386BSD, at least. Likely further. 6262 if test -x /sbin/sysctl; then 6263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6264 elif test -x /usr/sbin/sysctl; then 6265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6266 else 6267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6268 fi 6269 # And add a safety zone 6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6272 ;; 6273 6274 interix*) 6275 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6276 lt_cv_sys_max_cmd_len=196608 6277 ;; 6278 6279 os2*) 6280 # The test takes a long time on OS/2. 6281 lt_cv_sys_max_cmd_len=8192 6282 ;; 6283 6284 osf*) 6285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6287 # nice to cause kernel panics so lets avoid the loop below. 6288 # First set a reasonable default. 6289 lt_cv_sys_max_cmd_len=16384 6290 # 6291 if test -x /sbin/sysconfig; then 6292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6293 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6294 esac 6295 fi 6296 ;; 6297 sco3.2v5*) 6298 lt_cv_sys_max_cmd_len=102400 6299 ;; 6300 sysv5* | sco5v6* | sysv4.2uw2*) 6301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6302 if test -n "$kargmax"; then 6303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6304 else 6305 lt_cv_sys_max_cmd_len=32768 6306 fi 6307 ;; 6308 *) 6309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6310 if test -n "$lt_cv_sys_max_cmd_len" && \ 6311 test undefined != "$lt_cv_sys_max_cmd_len"; then 6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6314 else 6315 # Make teststring a little bigger before we do anything with it. 6316 # a 1K string should be a reasonable start. 6317 for i in 1 2 3 4 5 6 7 8; do 6318 teststring=$teststring$teststring 6319 done 6320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6321 # If test is not a shell built-in, we'll probably end up computing a 6322 # maximum length that is only half of the actual maximum length, but 6323 # we can't tell. 6324 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6325 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6326 test 17 != "$i" # 1/2 MB should be enough 6327 do 6328 i=`expr $i + 1` 6329 teststring=$teststring$teststring 6330 done 6331 # Only check the string length outside the loop. 6332 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6333 teststring= 6334 # Add a significant safety factor because C++ compilers can tack on 6335 # massive amounts of additional arguments before passing them to the 6336 # linker. It appears as though 1/2 is a usable value. 6337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6338 fi 6339 ;; 6340 esac 6341 6342fi 6343 6344if test -n "$lt_cv_sys_max_cmd_len"; then 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6346$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6347else 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6349$as_echo "none" >&6; } 6350fi 6351max_cmd_len=$lt_cv_sys_max_cmd_len 6352 6353 6354 6355 6356 6357 6358: ${CP="cp -f"} 6359: ${MV="mv -f"} 6360: ${RM="rm -f"} 6361 6362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6363 lt_unset=unset 6364else 6365 lt_unset=false 6366fi 6367 6368 6369 6370 6371 6372# test EBCDIC or ASCII 6373case `echo X|tr X '\101'` in 6374 A) # ASCII based system 6375 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6376 lt_SP2NL='tr \040 \012' 6377 lt_NL2SP='tr \015\012 \040\040' 6378 ;; 6379 *) # EBCDIC based system 6380 lt_SP2NL='tr \100 \n' 6381 lt_NL2SP='tr \r\n \100\100' 6382 ;; 6383esac 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6394$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6395if ${lt_cv_to_host_file_cmd+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 case $host in 6399 *-*-mingw* ) 6400 case $build in 6401 *-*-mingw* ) # actually msys 6402 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6403 ;; 6404 *-*-cygwin* ) 6405 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6406 ;; 6407 * ) # otherwise, assume *nix 6408 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6409 ;; 6410 esac 6411 ;; 6412 *-*-cygwin* ) 6413 case $build in 6414 *-*-mingw* ) # actually msys 6415 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6416 ;; 6417 *-*-cygwin* ) 6418 lt_cv_to_host_file_cmd=func_convert_file_noop 6419 ;; 6420 * ) # otherwise, assume *nix 6421 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6422 ;; 6423 esac 6424 ;; 6425 * ) # unhandled hosts (and "normal" native builds) 6426 lt_cv_to_host_file_cmd=func_convert_file_noop 6427 ;; 6428esac 6429 6430fi 6431 6432to_host_file_cmd=$lt_cv_to_host_file_cmd 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6434$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6435 6436 6437 6438 6439 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6441$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6442if ${lt_cv_to_tool_file_cmd+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 #assume ordinary cross tools, or native build. 6446lt_cv_to_tool_file_cmd=func_convert_file_noop 6447case $host in 6448 *-*-mingw* ) 6449 case $build in 6450 *-*-mingw* ) # actually msys 6451 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6452 ;; 6453 esac 6454 ;; 6455esac 6456 6457fi 6458 6459to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6461$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6462 6463 6464 6465 6466 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6468$as_echo_n "checking for $LD option to reload object files... " >&6; } 6469if ${lt_cv_ld_reload_flag+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 lt_cv_ld_reload_flag='-r' 6473fi 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6475$as_echo "$lt_cv_ld_reload_flag" >&6; } 6476reload_flag=$lt_cv_ld_reload_flag 6477case $reload_flag in 6478"" | " "*) ;; 6479*) reload_flag=" $reload_flag" ;; 6480esac 6481reload_cmds='$LD$reload_flag -o $output$reload_objs' 6482case $host_os in 6483 cygwin* | mingw* | pw32* | cegcc*) 6484 if test yes != "$GCC"; then 6485 reload_cmds=false 6486 fi 6487 ;; 6488 darwin*) 6489 if test yes = "$GCC"; then 6490 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6491 else 6492 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6493 fi 6494 ;; 6495esac 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505if test -n "$ac_tool_prefix"; then 6506 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6507set dummy ${ac_tool_prefix}objdump; ac_word=$2 6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6509$as_echo_n "checking for $ac_word... " >&6; } 6510if ${ac_cv_prog_OBJDUMP+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512else 6513 if test -n "$OBJDUMP"; then 6514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6515else 6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6517for as_dir in $PATH 6518do 6519 IFS=$as_save_IFS 6520 test -z "$as_dir" && as_dir=. 6521 for ac_exec_ext in '' $ac_executable_extensions; do 6522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6525 break 2 6526 fi 6527done 6528 done 6529IFS=$as_save_IFS 6530 6531fi 6532fi 6533OBJDUMP=$ac_cv_prog_OBJDUMP 6534if test -n "$OBJDUMP"; then 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6536$as_echo "$OBJDUMP" >&6; } 6537else 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6539$as_echo "no" >&6; } 6540fi 6541 6542 6543fi 6544if test -z "$ac_cv_prog_OBJDUMP"; then 6545 ac_ct_OBJDUMP=$OBJDUMP 6546 # Extract the first word of "objdump", so it can be a program name with args. 6547set dummy objdump; ac_word=$2 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6549$as_echo_n "checking for $ac_word... " >&6; } 6550if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 if test -n "$ac_ct_OBJDUMP"; then 6554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6555else 6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 test -z "$as_dir" && as_dir=. 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6563 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567done 6568 done 6569IFS=$as_save_IFS 6570 6571fi 6572fi 6573ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6574if test -n "$ac_ct_OBJDUMP"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6576$as_echo "$ac_ct_OBJDUMP" >&6; } 6577else 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579$as_echo "no" >&6; } 6580fi 6581 6582 if test "x$ac_ct_OBJDUMP" = x; then 6583 OBJDUMP="false" 6584 else 6585 case $cross_compiling:$ac_tool_warned in 6586yes:) 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6589ac_tool_warned=yes ;; 6590esac 6591 OBJDUMP=$ac_ct_OBJDUMP 6592 fi 6593else 6594 OBJDUMP="$ac_cv_prog_OBJDUMP" 6595fi 6596 6597test -z "$OBJDUMP" && OBJDUMP=objdump 6598 6599 6600 6601 6602 6603 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6605$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6606if ${lt_cv_deplibs_check_method+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 lt_cv_file_magic_cmd='$MAGIC_CMD' 6610lt_cv_file_magic_test_file= 6611lt_cv_deplibs_check_method='unknown' 6612# Need to set the preceding variable on all platforms that support 6613# interlibrary dependencies. 6614# 'none' -- dependencies not supported. 6615# 'unknown' -- same as none, but documents that we really don't know. 6616# 'pass_all' -- all dependencies passed with no checks. 6617# 'test_compile' -- check by making test program. 6618# 'file_magic [[regex]]' -- check by looking for files in library path 6619# that responds to the $file_magic_cmd with a given extended regex. 6620# If you have 'file' or equivalent on your system and you're not sure 6621# whether 'pass_all' will *always* work, you probably want this one. 6622 6623case $host_os in 6624aix[4-9]*) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627 6628beos*) 6629 lt_cv_deplibs_check_method=pass_all 6630 ;; 6631 6632bsdi[45]*) 6633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6634 lt_cv_file_magic_cmd='/usr/bin/file -L' 6635 lt_cv_file_magic_test_file=/shlib/libc.so 6636 ;; 6637 6638cygwin*) 6639 # func_win32_libid is a shell function defined in ltmain.sh 6640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6641 lt_cv_file_magic_cmd='func_win32_libid' 6642 ;; 6643 6644mingw* | pw32*) 6645 # Base MSYS/MinGW do not provide the 'file' command needed by 6646 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6647 # unless we find 'file', for example because we are cross-compiling. 6648 if ( file / ) >/dev/null 2>&1; then 6649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6650 lt_cv_file_magic_cmd='func_win32_libid' 6651 else 6652 # Keep this pattern in sync with the one in func_win32_libid. 6653 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6654 lt_cv_file_magic_cmd='$OBJDUMP -f' 6655 fi 6656 ;; 6657 6658cegcc*) 6659 # use the weaker test based on 'objdump'. See mingw*. 6660 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6661 lt_cv_file_magic_cmd='$OBJDUMP -f' 6662 ;; 6663 6664darwin* | rhapsody*) 6665 lt_cv_deplibs_check_method=pass_all 6666 ;; 6667 6668freebsd* | dragonfly*) 6669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6670 case $host_cpu in 6671 i*86 ) 6672 # Not sure whether the presence of OpenBSD here was a mistake. 6673 # Let's accept both of them until this is cleared up. 6674 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6675 lt_cv_file_magic_cmd=/usr/bin/file 6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6677 ;; 6678 esac 6679 else 6680 lt_cv_deplibs_check_method=pass_all 6681 fi 6682 ;; 6683 6684haiku*) 6685 lt_cv_deplibs_check_method=pass_all 6686 ;; 6687 6688hpux10.20* | hpux11*) 6689 lt_cv_file_magic_cmd=/usr/bin/file 6690 case $host_cpu in 6691 ia64*) 6692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6694 ;; 6695 hppa*64*) 6696 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]' 6697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6698 ;; 6699 *) 6700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6701 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6702 ;; 6703 esac 6704 ;; 6705 6706interix[3-9]*) 6707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6709 ;; 6710 6711irix5* | irix6* | nonstopux*) 6712 case $LD in 6713 *-32|*"-32 ") libmagic=32-bit;; 6714 *-n32|*"-n32 ") libmagic=N32;; 6715 *-64|*"-64 ") libmagic=64-bit;; 6716 *) libmagic=never-match;; 6717 esac 6718 lt_cv_deplibs_check_method=pass_all 6719 ;; 6720 6721# This must be glibc/ELF. 6722linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6723 lt_cv_deplibs_check_method=pass_all 6724 ;; 6725 6726netbsd*) 6727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6729 else 6730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6731 fi 6732 ;; 6733 6734newos6*) 6735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6736 lt_cv_file_magic_cmd=/usr/bin/file 6737 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6738 ;; 6739 6740*nto* | *qnx*) 6741 lt_cv_deplibs_check_method=pass_all 6742 ;; 6743 6744openbsd* | bitrig*) 6745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6747 else 6748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6749 fi 6750 ;; 6751 6752osf3* | osf4* | osf5*) 6753 lt_cv_deplibs_check_method=pass_all 6754 ;; 6755 6756rdos*) 6757 lt_cv_deplibs_check_method=pass_all 6758 ;; 6759 6760solaris*) 6761 lt_cv_deplibs_check_method=pass_all 6762 ;; 6763 6764sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6765 lt_cv_deplibs_check_method=pass_all 6766 ;; 6767 6768sysv4 | sysv4.3*) 6769 case $host_vendor in 6770 motorola) 6771 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]' 6772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6773 ;; 6774 ncr) 6775 lt_cv_deplibs_check_method=pass_all 6776 ;; 6777 sequent) 6778 lt_cv_file_magic_cmd='/bin/file' 6779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6780 ;; 6781 sni) 6782 lt_cv_file_magic_cmd='/bin/file' 6783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6784 lt_cv_file_magic_test_file=/lib/libc.so 6785 ;; 6786 siemens) 6787 lt_cv_deplibs_check_method=pass_all 6788 ;; 6789 pc) 6790 lt_cv_deplibs_check_method=pass_all 6791 ;; 6792 esac 6793 ;; 6794 6795tpf*) 6796 lt_cv_deplibs_check_method=pass_all 6797 ;; 6798os2*) 6799 lt_cv_deplibs_check_method=pass_all 6800 ;; 6801esac 6802 6803fi 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6805$as_echo "$lt_cv_deplibs_check_method" >&6; } 6806 6807file_magic_glob= 6808want_nocaseglob=no 6809if test "$build" = "$host"; then 6810 case $host_os in 6811 mingw* | pw32*) 6812 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6813 want_nocaseglob=yes 6814 else 6815 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6816 fi 6817 ;; 6818 esac 6819fi 6820 6821file_magic_cmd=$lt_cv_file_magic_cmd 6822deplibs_check_method=$lt_cv_deplibs_check_method 6823test -z "$deplibs_check_method" && deplibs_check_method=unknown 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846if test -n "$ac_tool_prefix"; then 6847 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6848set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6850$as_echo_n "checking for $ac_word... " >&6; } 6851if ${ac_cv_prog_DLLTOOL+:} false; then : 6852 $as_echo_n "(cached) " >&6 6853else 6854 if test -n "$DLLTOOL"; then 6855 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6856else 6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6858for as_dir in $PATH 6859do 6860 IFS=$as_save_IFS 6861 test -z "$as_dir" && as_dir=. 6862 for ac_exec_ext in '' $ac_executable_extensions; do 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6864 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6866 break 2 6867 fi 6868done 6869 done 6870IFS=$as_save_IFS 6871 6872fi 6873fi 6874DLLTOOL=$ac_cv_prog_DLLTOOL 6875if test -n "$DLLTOOL"; then 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6877$as_echo "$DLLTOOL" >&6; } 6878else 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880$as_echo "no" >&6; } 6881fi 6882 6883 6884fi 6885if test -z "$ac_cv_prog_DLLTOOL"; then 6886 ac_ct_DLLTOOL=$DLLTOOL 6887 # Extract the first word of "dlltool", so it can be a program name with args. 6888set dummy dlltool; ac_word=$2 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890$as_echo_n "checking for $ac_word... " >&6; } 6891if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 if test -n "$ac_ct_DLLTOOL"; then 6895 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6915if test -n "$ac_ct_DLLTOOL"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6917$as_echo "$ac_ct_DLLTOOL" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922 6923 if test "x$ac_ct_DLLTOOL" = x; then 6924 DLLTOOL="false" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6930ac_tool_warned=yes ;; 6931esac 6932 DLLTOOL=$ac_ct_DLLTOOL 6933 fi 6934else 6935 DLLTOOL="$ac_cv_prog_DLLTOOL" 6936fi 6937 6938test -z "$DLLTOOL" && DLLTOOL=dlltool 6939 6940 6941 6942 6943 6944 6945 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6947$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6948if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 lt_cv_sharedlib_from_linklib_cmd='unknown' 6952 6953case $host_os in 6954cygwin* | mingw* | pw32* | cegcc*) 6955 # two different shell functions defined in ltmain.sh; 6956 # decide which one to use based on capabilities of $DLLTOOL 6957 case `$DLLTOOL --help 2>&1` in 6958 *--identify-strict*) 6959 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6960 ;; 6961 *) 6962 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6963 ;; 6964 esac 6965 ;; 6966*) 6967 # fallback: assume linklib IS sharedlib 6968 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6969 ;; 6970esac 6971 6972fi 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6974$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6975sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6976test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6977 6978 6979 6980 6981 6982 6983 6984if test -n "$ac_tool_prefix"; then 6985 for ac_prog in ar 6986 do 6987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6988set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6990$as_echo_n "checking for $ac_word... " >&6; } 6991if ${ac_cv_prog_AR+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 if test -n "$AR"; then 6995 ac_cv_prog_AR="$AR" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7004 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009 done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014AR=$ac_cv_prog_AR 7015if test -n "$AR"; then 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7017$as_echo "$AR" >&6; } 7018else 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7020$as_echo "no" >&6; } 7021fi 7022 7023 7024 test -n "$AR" && break 7025 done 7026fi 7027if test -z "$AR"; then 7028 ac_ct_AR=$AR 7029 for ac_prog in ar 7030do 7031 # Extract the first word of "$ac_prog", so it can be a program name with args. 7032set dummy $ac_prog; ac_word=$2 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7034$as_echo_n "checking for $ac_word... " >&6; } 7035if ${ac_cv_prog_ac_ct_AR+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 if test -n "$ac_ct_AR"; then 7039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7040else 7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7042for as_dir in $PATH 7043do 7044 IFS=$as_save_IFS 7045 test -z "$as_dir" && as_dir=. 7046 for ac_exec_ext in '' $ac_executable_extensions; do 7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7048 ac_cv_prog_ac_ct_AR="$ac_prog" 7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7050 break 2 7051 fi 7052done 7053 done 7054IFS=$as_save_IFS 7055 7056fi 7057fi 7058ac_ct_AR=$ac_cv_prog_ac_ct_AR 7059if test -n "$ac_ct_AR"; then 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7061$as_echo "$ac_ct_AR" >&6; } 7062else 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7064$as_echo "no" >&6; } 7065fi 7066 7067 7068 test -n "$ac_ct_AR" && break 7069done 7070 7071 if test "x$ac_ct_AR" = x; then 7072 AR="false" 7073 else 7074 case $cross_compiling:$ac_tool_warned in 7075yes:) 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7078ac_tool_warned=yes ;; 7079esac 7080 AR=$ac_ct_AR 7081 fi 7082fi 7083 7084: ${AR=ar} 7085: ${AR_FLAGS=cru} 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7098$as_echo_n "checking for archiver @FILE support... " >&6; } 7099if ${lt_cv_ar_at_file+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 lt_cv_ar_at_file=no 7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7104/* end confdefs.h. */ 7105 7106int 7107main () 7108{ 7109 7110 ; 7111 return 0; 7112} 7113_ACEOF 7114if ac_fn_c_try_compile "$LINENO"; then : 7115 echo conftest.$ac_objext > conftest.lst 7116 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7118 (eval $lt_ar_try) 2>&5 7119 ac_status=$? 7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7121 test $ac_status = 0; } 7122 if test 0 -eq "$ac_status"; then 7123 # Ensure the archiver fails upon bogus file names. 7124 rm -f conftest.$ac_objext libconftest.a 7125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7126 (eval $lt_ar_try) 2>&5 7127 ac_status=$? 7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7129 test $ac_status = 0; } 7130 if test 0 -ne "$ac_status"; then 7131 lt_cv_ar_at_file=@ 7132 fi 7133 fi 7134 rm -f conftest.* libconftest.a 7135 7136fi 7137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7138 7139fi 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7141$as_echo "$lt_cv_ar_at_file" >&6; } 7142 7143if test no = "$lt_cv_ar_at_file"; then 7144 archiver_list_spec= 7145else 7146 archiver_list_spec=$lt_cv_ar_at_file 7147fi 7148 7149 7150 7151 7152 7153 7154 7155if test -n "$ac_tool_prefix"; then 7156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7157set dummy ${ac_tool_prefix}strip; ac_word=$2 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7159$as_echo_n "checking for $ac_word... " >&6; } 7160if ${ac_cv_prog_STRIP+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162else 7163 if test -n "$STRIP"; then 7164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7165else 7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7167for as_dir in $PATH 7168do 7169 IFS=$as_save_IFS 7170 test -z "$as_dir" && as_dir=. 7171 for ac_exec_ext in '' $ac_executable_extensions; do 7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7173 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7175 break 2 7176 fi 7177done 7178 done 7179IFS=$as_save_IFS 7180 7181fi 7182fi 7183STRIP=$ac_cv_prog_STRIP 7184if test -n "$STRIP"; then 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7186$as_echo "$STRIP" >&6; } 7187else 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7189$as_echo "no" >&6; } 7190fi 7191 7192 7193fi 7194if test -z "$ac_cv_prog_STRIP"; then 7195 ac_ct_STRIP=$STRIP 7196 # Extract the first word of "strip", so it can be a program name with args. 7197set dummy strip; ac_word=$2 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7199$as_echo_n "checking for $ac_word... " >&6; } 7200if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7201 $as_echo_n "(cached) " >&6 7202else 7203 if test -n "$ac_ct_STRIP"; then 7204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7205else 7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7207for as_dir in $PATH 7208do 7209 IFS=$as_save_IFS 7210 test -z "$as_dir" && as_dir=. 7211 for ac_exec_ext in '' $ac_executable_extensions; do 7212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7213 ac_cv_prog_ac_ct_STRIP="strip" 7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7215 break 2 7216 fi 7217done 7218 done 7219IFS=$as_save_IFS 7220 7221fi 7222fi 7223ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7224if test -n "$ac_ct_STRIP"; then 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7226$as_echo "$ac_ct_STRIP" >&6; } 7227else 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7229$as_echo "no" >&6; } 7230fi 7231 7232 if test "x$ac_ct_STRIP" = x; then 7233 STRIP=":" 7234 else 7235 case $cross_compiling:$ac_tool_warned in 7236yes:) 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7239ac_tool_warned=yes ;; 7240esac 7241 STRIP=$ac_ct_STRIP 7242 fi 7243else 7244 STRIP="$ac_cv_prog_STRIP" 7245fi 7246 7247test -z "$STRIP" && STRIP=: 7248 7249 7250 7251 7252 7253 7254if test -n "$ac_tool_prefix"; then 7255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7256set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7258$as_echo_n "checking for $ac_word... " >&6; } 7259if ${ac_cv_prog_RANLIB+:} false; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 if test -n "$RANLIB"; then 7263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7264else 7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7266for as_dir in $PATH 7267do 7268 IFS=$as_save_IFS 7269 test -z "$as_dir" && as_dir=. 7270 for ac_exec_ext in '' $ac_executable_extensions; do 7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7274 break 2 7275 fi 7276done 7277 done 7278IFS=$as_save_IFS 7279 7280fi 7281fi 7282RANLIB=$ac_cv_prog_RANLIB 7283if test -n "$RANLIB"; then 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7285$as_echo "$RANLIB" >&6; } 7286else 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7288$as_echo "no" >&6; } 7289fi 7290 7291 7292fi 7293if test -z "$ac_cv_prog_RANLIB"; then 7294 ac_ct_RANLIB=$RANLIB 7295 # Extract the first word of "ranlib", so it can be a program name with args. 7296set dummy ranlib; ac_word=$2 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7298$as_echo_n "checking for $ac_word... " >&6; } 7299if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 if test -n "$ac_ct_RANLIB"; then 7303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7304else 7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7306for as_dir in $PATH 7307do 7308 IFS=$as_save_IFS 7309 test -z "$as_dir" && as_dir=. 7310 for ac_exec_ext in '' $ac_executable_extensions; do 7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7312 ac_cv_prog_ac_ct_RANLIB="ranlib" 7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7314 break 2 7315 fi 7316done 7317 done 7318IFS=$as_save_IFS 7319 7320fi 7321fi 7322ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7323if test -n "$ac_ct_RANLIB"; then 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7325$as_echo "$ac_ct_RANLIB" >&6; } 7326else 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7328$as_echo "no" >&6; } 7329fi 7330 7331 if test "x$ac_ct_RANLIB" = x; then 7332 RANLIB=":" 7333 else 7334 case $cross_compiling:$ac_tool_warned in 7335yes:) 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7338ac_tool_warned=yes ;; 7339esac 7340 RANLIB=$ac_ct_RANLIB 7341 fi 7342else 7343 RANLIB="$ac_cv_prog_RANLIB" 7344fi 7345 7346test -z "$RANLIB" && RANLIB=: 7347 7348 7349 7350 7351 7352 7353# Determine commands to create old-style static archives. 7354old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7355old_postinstall_cmds='chmod 644 $oldlib' 7356old_postuninstall_cmds= 7357 7358if test -n "$RANLIB"; then 7359 case $host_os in 7360 bitrig* | openbsd*) 7361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7362 ;; 7363 *) 7364 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7365 ;; 7366 esac 7367 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7368fi 7369 7370case $host_os in 7371 darwin*) 7372 lock_old_archive_extraction=yes ;; 7373 *) 7374 lock_old_archive_extraction=no ;; 7375esac 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415# If no C compiler was specified, use CC. 7416LTCC=${LTCC-"$CC"} 7417 7418# If no C compiler flags were specified, use CFLAGS. 7419LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7420 7421# Allow CC to be a program name with arguments. 7422compiler=$CC 7423 7424 7425# Check for command to grab the raw symbol name followed by C symbol from nm. 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7427$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7428if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 7432# These are sane defaults that work on at least a few old systems. 7433# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7434 7435# Character class describing NM global symbol codes. 7436symcode='[BCDEGRST]' 7437 7438# Regexp to match symbols that can be accessed directly from C. 7439sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7440 7441# Define system-specific variables. 7442case $host_os in 7443aix*) 7444 symcode='[BCDT]' 7445 ;; 7446cygwin* | mingw* | pw32* | cegcc*) 7447 symcode='[ABCDGISTW]' 7448 ;; 7449hpux*) 7450 if test ia64 = "$host_cpu"; then 7451 symcode='[ABCDEGRST]' 7452 fi 7453 ;; 7454irix* | nonstopux*) 7455 symcode='[BCDEGRST]' 7456 ;; 7457osf*) 7458 symcode='[BCDEGQRST]' 7459 ;; 7460solaris*) 7461 symcode='[BDRT]' 7462 ;; 7463sco3.2v5*) 7464 symcode='[DT]' 7465 ;; 7466sysv4.2uw2*) 7467 symcode='[DT]' 7468 ;; 7469sysv5* | sco5v6* | unixware* | OpenUNIX*) 7470 symcode='[ABDT]' 7471 ;; 7472sysv4) 7473 symcode='[DFNSTU]' 7474 ;; 7475esac 7476 7477# If we're using GNU nm, then use its standard symbol codes. 7478case `$NM -V 2>&1` in 7479*GNU* | *'with BFD'*) 7480 symcode='[ABCDGIRSTW]' ;; 7481esac 7482 7483if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7484 # Gets list of data symbols to import. 7485 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7486 # Adjust the below global symbol transforms to fixup imported variables. 7487 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7488 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7489 lt_c_name_lib_hook="\ 7490 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7491 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7492else 7493 # Disable hooks by default. 7494 lt_cv_sys_global_symbol_to_import= 7495 lt_cdecl_hook= 7496 lt_c_name_hook= 7497 lt_c_name_lib_hook= 7498fi 7499 7500# Transform an extracted symbol line into a proper C declaration. 7501# Some systems (esp. on ia64) link data and code symbols differently, 7502# so use this general approach. 7503lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7504$lt_cdecl_hook\ 7505" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7506" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7507 7508# Transform an extracted symbol line into symbol name and symbol address 7509lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7510$lt_c_name_hook\ 7511" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7512" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7513 7514# Transform an extracted symbol line into symbol name with lib prefix and 7515# symbol address. 7516lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7517$lt_c_name_lib_hook\ 7518" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7519" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7520" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7521 7522# Handle CRLF in mingw tool chain 7523opt_cr= 7524case $build_os in 7525mingw*) 7526 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7527 ;; 7528esac 7529 7530# Try without a prefix underscore, then with it. 7531for ac_symprfx in "" "_"; do 7532 7533 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7534 symxfrm="\\1 $ac_symprfx\\2 \\2" 7535 7536 # Write the raw and C identifiers. 7537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7538 # Fake it for dumpbin and say T for any non-static function, 7539 # D for any global variable and I for any imported variable. 7540 # Also find C++ and __fastcall symbols from MSVC++, 7541 # which start with @ or ?. 7542 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7543" {last_section=section; section=\$ 3};"\ 7544" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7545" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7546" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7547" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7548" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7549" \$ 0!~/External *\|/{next};"\ 7550" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7551" {if(hide[section]) next};"\ 7552" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7553" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7554" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7555" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7556" ' prfx=^$ac_symprfx" 7557 else 7558 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7559 fi 7560 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7561 7562 # Check to see that the pipe works correctly. 7563 pipe_works=no 7564 7565 rm -f conftest* 7566 cat > conftest.$ac_ext <<_LT_EOF 7567#ifdef __cplusplus 7568extern "C" { 7569#endif 7570char nm_test_var; 7571void nm_test_func(void); 7572void nm_test_func(void){} 7573#ifdef __cplusplus 7574} 7575#endif 7576int main(){nm_test_var='a';nm_test_func();return(0);} 7577_LT_EOF 7578 7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7580 (eval $ac_compile) 2>&5 7581 ac_status=$? 7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7583 test $ac_status = 0; }; then 7584 # Now try to grab the symbols. 7585 nlist=conftest.nm 7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7587 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7588 ac_status=$? 7589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7590 test $ac_status = 0; } && test -s "$nlist"; then 7591 # Try sorting and uniquifying the output. 7592 if sort "$nlist" | uniq > "$nlist"T; then 7593 mv -f "$nlist"T "$nlist" 7594 else 7595 rm -f "$nlist"T 7596 fi 7597 7598 # Make sure that we snagged all the symbols we need. 7599 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7600 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7601 cat <<_LT_EOF > conftest.$ac_ext 7602/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7603#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7604/* DATA imports from DLLs on WIN32 can't be const, because runtime 7605 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7606# define LT_DLSYM_CONST 7607#elif defined __osf__ 7608/* This system does not cope well with relocations in const data. */ 7609# define LT_DLSYM_CONST 7610#else 7611# define LT_DLSYM_CONST const 7612#endif 7613 7614#ifdef __cplusplus 7615extern "C" { 7616#endif 7617 7618_LT_EOF 7619 # Now generate the symbol file. 7620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7621 7622 cat <<_LT_EOF >> conftest.$ac_ext 7623 7624/* The mapping between symbol names and symbols. */ 7625LT_DLSYM_CONST struct { 7626 const char *name; 7627 void *address; 7628} 7629lt__PROGRAM__LTX_preloaded_symbols[] = 7630{ 7631 { "@PROGRAM@", (void *) 0 }, 7632_LT_EOF 7633 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7634 cat <<\_LT_EOF >> conftest.$ac_ext 7635 {0, (void *) 0} 7636}; 7637 7638/* This works around a problem in FreeBSD linker */ 7639#ifdef FREEBSD_WORKAROUND 7640static const void *lt_preloaded_setup() { 7641 return lt__PROGRAM__LTX_preloaded_symbols; 7642} 7643#endif 7644 7645#ifdef __cplusplus 7646} 7647#endif 7648_LT_EOF 7649 # Now try linking the two files. 7650 mv conftest.$ac_objext conftstm.$ac_objext 7651 lt_globsym_save_LIBS=$LIBS 7652 lt_globsym_save_CFLAGS=$CFLAGS 7653 LIBS=conftstm.$ac_objext 7654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7656 (eval $ac_link) 2>&5 7657 ac_status=$? 7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7659 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7660 pipe_works=yes 7661 fi 7662 LIBS=$lt_globsym_save_LIBS 7663 CFLAGS=$lt_globsym_save_CFLAGS 7664 else 7665 echo "cannot find nm_test_func in $nlist" >&5 7666 fi 7667 else 7668 echo "cannot find nm_test_var in $nlist" >&5 7669 fi 7670 else 7671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7672 fi 7673 else 7674 echo "$progname: failed program was:" >&5 7675 cat conftest.$ac_ext >&5 7676 fi 7677 rm -rf conftest* conftst* 7678 7679 # Do not use the global_symbol_pipe unless it works. 7680 if test yes = "$pipe_works"; then 7681 break 7682 else 7683 lt_cv_sys_global_symbol_pipe= 7684 fi 7685done 7686 7687fi 7688 7689if test -z "$lt_cv_sys_global_symbol_pipe"; then 7690 lt_cv_sys_global_symbol_to_cdecl= 7691fi 7692if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7694$as_echo "failed" >&6; } 7695else 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7697$as_echo "ok" >&6; } 7698fi 7699 7700# Response file support. 7701if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7702 nm_file_list_spec='@' 7703elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7704 nm_file_list_spec='@' 7705fi 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7744$as_echo_n "checking for sysroot... " >&6; } 7745 7746# Check whether --with-sysroot was given. 7747if test "${with_sysroot+set}" = set; then : 7748 withval=$with_sysroot; 7749else 7750 with_sysroot=no 7751fi 7752 7753 7754lt_sysroot= 7755case $with_sysroot in #( 7756 yes) 7757 if test yes = "$GCC"; then 7758 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7759 fi 7760 ;; #( 7761 /*) 7762 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7763 ;; #( 7764 no|'') 7765 ;; #( 7766 *) 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7768$as_echo "$with_sysroot" >&6; } 7769 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7770 ;; 7771esac 7772 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7774$as_echo "${lt_sysroot:-no}" >&6; } 7775 7776 7777 7778 7779 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7781$as_echo_n "checking for a working dd... " >&6; } 7782if ${ac_cv_path_lt_DD+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 printf 0123456789abcdef0123456789abcdef >conftest.i 7786cat conftest.i conftest.i >conftest2.i 7787: ${lt_DD:=$DD} 7788if test -z "$lt_DD"; then 7789 ac_path_lt_DD_found=false 7790 # Loop through the user's path and test for each of PROGNAME-LIST 7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7792for as_dir in $PATH 7793do 7794 IFS=$as_save_IFS 7795 test -z "$as_dir" && as_dir=. 7796 for ac_prog in dd; do 7797 for ac_exec_ext in '' $ac_executable_extensions; do 7798 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7799 as_fn_executable_p "$ac_path_lt_DD" || continue 7800if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7801 cmp -s conftest.i conftest.out \ 7802 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7803fi 7804 $ac_path_lt_DD_found && break 3 7805 done 7806 done 7807 done 7808IFS=$as_save_IFS 7809 if test -z "$ac_cv_path_lt_DD"; then 7810 : 7811 fi 7812else 7813 ac_cv_path_lt_DD=$lt_DD 7814fi 7815 7816rm -f conftest.i conftest2.i conftest.out 7817fi 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7819$as_echo "$ac_cv_path_lt_DD" >&6; } 7820 7821 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7823$as_echo_n "checking how to truncate binary pipes... " >&6; } 7824if ${lt_cv_truncate_bin+:} false; then : 7825 $as_echo_n "(cached) " >&6 7826else 7827 printf 0123456789abcdef0123456789abcdef >conftest.i 7828cat conftest.i conftest.i >conftest2.i 7829lt_cv_truncate_bin= 7830if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7831 cmp -s conftest.i conftest.out \ 7832 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7833fi 7834rm -f conftest.i conftest2.i conftest.out 7835test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7836fi 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7838$as_echo "$lt_cv_truncate_bin" >&6; } 7839 7840 7841 7842 7843 7844 7845 7846# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7847func_cc_basename () 7848{ 7849 for cc_temp in $*""; do 7850 case $cc_temp in 7851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7853 \-*) ;; 7854 *) break;; 7855 esac 7856 done 7857 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7858} 7859 7860# Check whether --enable-libtool-lock was given. 7861if test "${enable_libtool_lock+set}" = set; then : 7862 enableval=$enable_libtool_lock; 7863fi 7864 7865test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7866 7867# Some flags need to be propagated to the compiler or linker for good 7868# libtool support. 7869case $host in 7870ia64-*-hpux*) 7871 # Find out what ABI is being produced by ac_compile, and set mode 7872 # options accordingly. 7873 echo 'int i;' > conftest.$ac_ext 7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7875 (eval $ac_compile) 2>&5 7876 ac_status=$? 7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7878 test $ac_status = 0; }; then 7879 case `/usr/bin/file conftest.$ac_objext` in 7880 *ELF-32*) 7881 HPUX_IA64_MODE=32 7882 ;; 7883 *ELF-64*) 7884 HPUX_IA64_MODE=64 7885 ;; 7886 esac 7887 fi 7888 rm -rf conftest* 7889 ;; 7890*-*-irix6*) 7891 # Find out what ABI is being produced by ac_compile, and set linker 7892 # options accordingly. 7893 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7895 (eval $ac_compile) 2>&5 7896 ac_status=$? 7897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7898 test $ac_status = 0; }; then 7899 if test yes = "$lt_cv_prog_gnu_ld"; then 7900 case `/usr/bin/file conftest.$ac_objext` in 7901 *32-bit*) 7902 LD="${LD-ld} -melf32bsmip" 7903 ;; 7904 *N32*) 7905 LD="${LD-ld} -melf32bmipn32" 7906 ;; 7907 *64-bit*) 7908 LD="${LD-ld} -melf64bmip" 7909 ;; 7910 esac 7911 else 7912 case `/usr/bin/file conftest.$ac_objext` in 7913 *32-bit*) 7914 LD="${LD-ld} -32" 7915 ;; 7916 *N32*) 7917 LD="${LD-ld} -n32" 7918 ;; 7919 *64-bit*) 7920 LD="${LD-ld} -64" 7921 ;; 7922 esac 7923 fi 7924 fi 7925 rm -rf conftest* 7926 ;; 7927 7928mips64*-*linux*) 7929 # Find out what ABI is being produced by ac_compile, and set linker 7930 # options accordingly. 7931 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7933 (eval $ac_compile) 2>&5 7934 ac_status=$? 7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7936 test $ac_status = 0; }; then 7937 emul=elf 7938 case `/usr/bin/file conftest.$ac_objext` in 7939 *32-bit*) 7940 emul="${emul}32" 7941 ;; 7942 *64-bit*) 7943 emul="${emul}64" 7944 ;; 7945 esac 7946 case `/usr/bin/file conftest.$ac_objext` in 7947 *MSB*) 7948 emul="${emul}btsmip" 7949 ;; 7950 *LSB*) 7951 emul="${emul}ltsmip" 7952 ;; 7953 esac 7954 case `/usr/bin/file conftest.$ac_objext` in 7955 *N32*) 7956 emul="${emul}n32" 7957 ;; 7958 esac 7959 LD="${LD-ld} -m $emul" 7960 fi 7961 rm -rf conftest* 7962 ;; 7963 7964x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7965s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7966 # Find out what ABI is being produced by ac_compile, and set linker 7967 # options accordingly. Note that the listed cases only cover the 7968 # situations where additional linker options are needed (such as when 7969 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7970 # vice versa); the common cases where no linker options are needed do 7971 # not appear in the list. 7972 echo 'int i;' > conftest.$ac_ext 7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7974 (eval $ac_compile) 2>&5 7975 ac_status=$? 7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7977 test $ac_status = 0; }; then 7978 case `/usr/bin/file conftest.o` in 7979 *32-bit*) 7980 case $host in 7981 x86_64-*kfreebsd*-gnu) 7982 LD="${LD-ld} -m elf_i386_fbsd" 7983 ;; 7984 x86_64-*linux*) 7985 case `/usr/bin/file conftest.o` in 7986 *x86-64*) 7987 LD="${LD-ld} -m elf32_x86_64" 7988 ;; 7989 *) 7990 LD="${LD-ld} -m elf_i386" 7991 ;; 7992 esac 7993 ;; 7994 powerpc64le-*linux*) 7995 LD="${LD-ld} -m elf32lppclinux" 7996 ;; 7997 powerpc64-*linux*) 7998 LD="${LD-ld} -m elf32ppclinux" 7999 ;; 8000 s390x-*linux*) 8001 LD="${LD-ld} -m elf_s390" 8002 ;; 8003 sparc64-*linux*) 8004 LD="${LD-ld} -m elf32_sparc" 8005 ;; 8006 esac 8007 ;; 8008 *64-bit*) 8009 case $host in 8010 x86_64-*kfreebsd*-gnu) 8011 LD="${LD-ld} -m elf_x86_64_fbsd" 8012 ;; 8013 x86_64-*linux*) 8014 LD="${LD-ld} -m elf_x86_64" 8015 ;; 8016 powerpcle-*linux*) 8017 LD="${LD-ld} -m elf64lppc" 8018 ;; 8019 powerpc-*linux*) 8020 LD="${LD-ld} -m elf64ppc" 8021 ;; 8022 s390*-*linux*|s390*-*tpf*) 8023 LD="${LD-ld} -m elf64_s390" 8024 ;; 8025 sparc*-*linux*) 8026 LD="${LD-ld} -m elf64_sparc" 8027 ;; 8028 esac 8029 ;; 8030 esac 8031 fi 8032 rm -rf conftest* 8033 ;; 8034 8035*-*-sco3.2v5*) 8036 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8037 SAVE_CFLAGS=$CFLAGS 8038 CFLAGS="$CFLAGS -belf" 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8040$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8041if ${lt_cv_cc_needs_belf+:} false; then : 8042 $as_echo_n "(cached) " >&6 8043else 8044 ac_ext=c 8045ac_cpp='$CPP $CPPFLAGS' 8046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8048ac_compiler_gnu=$ac_cv_c_compiler_gnu 8049 8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8051/* end confdefs.h. */ 8052 8053int 8054main () 8055{ 8056 8057 ; 8058 return 0; 8059} 8060_ACEOF 8061if ac_fn_c_try_link "$LINENO"; then : 8062 lt_cv_cc_needs_belf=yes 8063else 8064 lt_cv_cc_needs_belf=no 8065fi 8066rm -f core conftest.err conftest.$ac_objext \ 8067 conftest$ac_exeext conftest.$ac_ext 8068 ac_ext=c 8069ac_cpp='$CPP $CPPFLAGS' 8070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8072ac_compiler_gnu=$ac_cv_c_compiler_gnu 8073 8074fi 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8076$as_echo "$lt_cv_cc_needs_belf" >&6; } 8077 if test yes != "$lt_cv_cc_needs_belf"; then 8078 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8079 CFLAGS=$SAVE_CFLAGS 8080 fi 8081 ;; 8082*-*solaris*) 8083 # Find out what ABI is being produced by ac_compile, and set linker 8084 # options accordingly. 8085 echo 'int i;' > conftest.$ac_ext 8086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8087 (eval $ac_compile) 2>&5 8088 ac_status=$? 8089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8090 test $ac_status = 0; }; then 8091 case `/usr/bin/file conftest.o` in 8092 *64-bit*) 8093 case $lt_cv_prog_gnu_ld in 8094 yes*) 8095 case $host in 8096 i?86-*-solaris*|x86_64-*-solaris*) 8097 LD="${LD-ld} -m elf_x86_64" 8098 ;; 8099 sparc*-*-solaris*) 8100 LD="${LD-ld} -m elf64_sparc" 8101 ;; 8102 esac 8103 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8104 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8105 LD=${LD-ld}_sol2 8106 fi 8107 ;; 8108 *) 8109 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8110 LD="${LD-ld} -64" 8111 fi 8112 ;; 8113 esac 8114 ;; 8115 esac 8116 fi 8117 rm -rf conftest* 8118 ;; 8119esac 8120 8121need_locks=$enable_libtool_lock 8122 8123if test -n "$ac_tool_prefix"; then 8124 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8125set dummy ${ac_tool_prefix}mt; ac_word=$2 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8127$as_echo_n "checking for $ac_word... " >&6; } 8128if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 if test -n "$MANIFEST_TOOL"; then 8132 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8133else 8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8135for as_dir in $PATH 8136do 8137 IFS=$as_save_IFS 8138 test -z "$as_dir" && as_dir=. 8139 for ac_exec_ext in '' $ac_executable_extensions; do 8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8141 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8143 break 2 8144 fi 8145done 8146 done 8147IFS=$as_save_IFS 8148 8149fi 8150fi 8151MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8152if test -n "$MANIFEST_TOOL"; then 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8154$as_echo "$MANIFEST_TOOL" >&6; } 8155else 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8157$as_echo "no" >&6; } 8158fi 8159 8160 8161fi 8162if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8163 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8164 # Extract the first word of "mt", so it can be a program name with args. 8165set dummy mt; ac_word=$2 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8167$as_echo_n "checking for $ac_word... " >&6; } 8168if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 if test -n "$ac_ct_MANIFEST_TOOL"; then 8172 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8173else 8174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8175for as_dir in $PATH 8176do 8177 IFS=$as_save_IFS 8178 test -z "$as_dir" && as_dir=. 8179 for ac_exec_ext in '' $ac_executable_extensions; do 8180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8181 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8183 break 2 8184 fi 8185done 8186 done 8187IFS=$as_save_IFS 8188 8189fi 8190fi 8191ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8192if test -n "$ac_ct_MANIFEST_TOOL"; then 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8194$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8195else 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8197$as_echo "no" >&6; } 8198fi 8199 8200 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8201 MANIFEST_TOOL=":" 8202 else 8203 case $cross_compiling:$ac_tool_warned in 8204yes:) 8205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8207ac_tool_warned=yes ;; 8208esac 8209 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8210 fi 8211else 8212 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8213fi 8214 8215test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8217$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8218if ${lt_cv_path_mainfest_tool+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 lt_cv_path_mainfest_tool=no 8222 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8223 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8224 cat conftest.err >&5 8225 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8226 lt_cv_path_mainfest_tool=yes 8227 fi 8228 rm -f conftest* 8229fi 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8231$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8232if test yes != "$lt_cv_path_mainfest_tool"; then 8233 MANIFEST_TOOL=: 8234fi 8235 8236 8237 8238 8239 8240 8241 case $host_os in 8242 rhapsody* | darwin*) 8243 if test -n "$ac_tool_prefix"; then 8244 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8245set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8247$as_echo_n "checking for $ac_word... " >&6; } 8248if ${ac_cv_prog_DSYMUTIL+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 if test -n "$DSYMUTIL"; then 8252 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8253else 8254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8255for as_dir in $PATH 8256do 8257 IFS=$as_save_IFS 8258 test -z "$as_dir" && as_dir=. 8259 for ac_exec_ext in '' $ac_executable_extensions; do 8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8261 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8263 break 2 8264 fi 8265done 8266 done 8267IFS=$as_save_IFS 8268 8269fi 8270fi 8271DSYMUTIL=$ac_cv_prog_DSYMUTIL 8272if test -n "$DSYMUTIL"; then 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8274$as_echo "$DSYMUTIL" >&6; } 8275else 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8277$as_echo "no" >&6; } 8278fi 8279 8280 8281fi 8282if test -z "$ac_cv_prog_DSYMUTIL"; then 8283 ac_ct_DSYMUTIL=$DSYMUTIL 8284 # Extract the first word of "dsymutil", so it can be a program name with args. 8285set dummy dsymutil; ac_word=$2 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287$as_echo_n "checking for $ac_word... " >&6; } 8288if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 if test -n "$ac_ct_DSYMUTIL"; then 8292 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8293else 8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295for as_dir in $PATH 8296do 8297 IFS=$as_save_IFS 8298 test -z "$as_dir" && as_dir=. 8299 for ac_exec_ext in '' $ac_executable_extensions; do 8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8301 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8303 break 2 8304 fi 8305done 8306 done 8307IFS=$as_save_IFS 8308 8309fi 8310fi 8311ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8312if test -n "$ac_ct_DSYMUTIL"; then 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8314$as_echo "$ac_ct_DSYMUTIL" >&6; } 8315else 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8317$as_echo "no" >&6; } 8318fi 8319 8320 if test "x$ac_ct_DSYMUTIL" = x; then 8321 DSYMUTIL=":" 8322 else 8323 case $cross_compiling:$ac_tool_warned in 8324yes:) 8325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8327ac_tool_warned=yes ;; 8328esac 8329 DSYMUTIL=$ac_ct_DSYMUTIL 8330 fi 8331else 8332 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8333fi 8334 8335 if test -n "$ac_tool_prefix"; then 8336 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8337set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8339$as_echo_n "checking for $ac_word... " >&6; } 8340if ${ac_cv_prog_NMEDIT+:} false; then : 8341 $as_echo_n "(cached) " >&6 8342else 8343 if test -n "$NMEDIT"; then 8344 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8345else 8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 8349 IFS=$as_save_IFS 8350 test -z "$as_dir" && as_dir=. 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8353 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357done 8358 done 8359IFS=$as_save_IFS 8360 8361fi 8362fi 8363NMEDIT=$ac_cv_prog_NMEDIT 8364if test -n "$NMEDIT"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8366$as_echo "$NMEDIT" >&6; } 8367else 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369$as_echo "no" >&6; } 8370fi 8371 8372 8373fi 8374if test -z "$ac_cv_prog_NMEDIT"; then 8375 ac_ct_NMEDIT=$NMEDIT 8376 # Extract the first word of "nmedit", so it can be a program name with args. 8377set dummy nmedit; ac_word=$2 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8379$as_echo_n "checking for $ac_word... " >&6; } 8380if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8381 $as_echo_n "(cached) " >&6 8382else 8383 if test -n "$ac_ct_NMEDIT"; then 8384 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8385else 8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8387for as_dir in $PATH 8388do 8389 IFS=$as_save_IFS 8390 test -z "$as_dir" && as_dir=. 8391 for ac_exec_ext in '' $ac_executable_extensions; do 8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8393 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8395 break 2 8396 fi 8397done 8398 done 8399IFS=$as_save_IFS 8400 8401fi 8402fi 8403ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8404if test -n "$ac_ct_NMEDIT"; then 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8406$as_echo "$ac_ct_NMEDIT" >&6; } 8407else 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8409$as_echo "no" >&6; } 8410fi 8411 8412 if test "x$ac_ct_NMEDIT" = x; then 8413 NMEDIT=":" 8414 else 8415 case $cross_compiling:$ac_tool_warned in 8416yes:) 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8419ac_tool_warned=yes ;; 8420esac 8421 NMEDIT=$ac_ct_NMEDIT 8422 fi 8423else 8424 NMEDIT="$ac_cv_prog_NMEDIT" 8425fi 8426 8427 if test -n "$ac_tool_prefix"; then 8428 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8429set dummy ${ac_tool_prefix}lipo; ac_word=$2 8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8431$as_echo_n "checking for $ac_word... " >&6; } 8432if ${ac_cv_prog_LIPO+:} false; then : 8433 $as_echo_n "(cached) " >&6 8434else 8435 if test -n "$LIPO"; then 8436 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8437else 8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8439for as_dir in $PATH 8440do 8441 IFS=$as_save_IFS 8442 test -z "$as_dir" && as_dir=. 8443 for ac_exec_ext in '' $ac_executable_extensions; do 8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8445 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8447 break 2 8448 fi 8449done 8450 done 8451IFS=$as_save_IFS 8452 8453fi 8454fi 8455LIPO=$ac_cv_prog_LIPO 8456if test -n "$LIPO"; then 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8458$as_echo "$LIPO" >&6; } 8459else 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8461$as_echo "no" >&6; } 8462fi 8463 8464 8465fi 8466if test -z "$ac_cv_prog_LIPO"; then 8467 ac_ct_LIPO=$LIPO 8468 # Extract the first word of "lipo", so it can be a program name with args. 8469set dummy lipo; ac_word=$2 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8471$as_echo_n "checking for $ac_word... " >&6; } 8472if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 if test -n "$ac_ct_LIPO"; then 8476 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8477else 8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8479for as_dir in $PATH 8480do 8481 IFS=$as_save_IFS 8482 test -z "$as_dir" && as_dir=. 8483 for ac_exec_ext in '' $ac_executable_extensions; do 8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8485 ac_cv_prog_ac_ct_LIPO="lipo" 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8487 break 2 8488 fi 8489done 8490 done 8491IFS=$as_save_IFS 8492 8493fi 8494fi 8495ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8496if test -n "$ac_ct_LIPO"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8498$as_echo "$ac_ct_LIPO" >&6; } 8499else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501$as_echo "no" >&6; } 8502fi 8503 8504 if test "x$ac_ct_LIPO" = x; then 8505 LIPO=":" 8506 else 8507 case $cross_compiling:$ac_tool_warned in 8508yes:) 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8511ac_tool_warned=yes ;; 8512esac 8513 LIPO=$ac_ct_LIPO 8514 fi 8515else 8516 LIPO="$ac_cv_prog_LIPO" 8517fi 8518 8519 if test -n "$ac_tool_prefix"; then 8520 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8521set dummy ${ac_tool_prefix}otool; ac_word=$2 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8523$as_echo_n "checking for $ac_word... " >&6; } 8524if ${ac_cv_prog_OTOOL+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 if test -n "$OTOOL"; then 8528 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8529else 8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8531for as_dir in $PATH 8532do 8533 IFS=$as_save_IFS 8534 test -z "$as_dir" && as_dir=. 8535 for ac_exec_ext in '' $ac_executable_extensions; do 8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8537 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8539 break 2 8540 fi 8541done 8542 done 8543IFS=$as_save_IFS 8544 8545fi 8546fi 8547OTOOL=$ac_cv_prog_OTOOL 8548if test -n "$OTOOL"; then 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8550$as_echo "$OTOOL" >&6; } 8551else 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8553$as_echo "no" >&6; } 8554fi 8555 8556 8557fi 8558if test -z "$ac_cv_prog_OTOOL"; then 8559 ac_ct_OTOOL=$OTOOL 8560 # Extract the first word of "otool", so it can be a program name with args. 8561set dummy otool; ac_word=$2 8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8563$as_echo_n "checking for $ac_word... " >&6; } 8564if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 if test -n "$ac_ct_OTOOL"; then 8568 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8569else 8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8571for as_dir in $PATH 8572do 8573 IFS=$as_save_IFS 8574 test -z "$as_dir" && as_dir=. 8575 for ac_exec_ext in '' $ac_executable_extensions; do 8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8577 ac_cv_prog_ac_ct_OTOOL="otool" 8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8579 break 2 8580 fi 8581done 8582 done 8583IFS=$as_save_IFS 8584 8585fi 8586fi 8587ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8588if test -n "$ac_ct_OTOOL"; then 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8590$as_echo "$ac_ct_OTOOL" >&6; } 8591else 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8593$as_echo "no" >&6; } 8594fi 8595 8596 if test "x$ac_ct_OTOOL" = x; then 8597 OTOOL=":" 8598 else 8599 case $cross_compiling:$ac_tool_warned in 8600yes:) 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8603ac_tool_warned=yes ;; 8604esac 8605 OTOOL=$ac_ct_OTOOL 8606 fi 8607else 8608 OTOOL="$ac_cv_prog_OTOOL" 8609fi 8610 8611 if test -n "$ac_tool_prefix"; then 8612 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8613set dummy ${ac_tool_prefix}otool64; ac_word=$2 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8615$as_echo_n "checking for $ac_word... " >&6; } 8616if ${ac_cv_prog_OTOOL64+:} false; then : 8617 $as_echo_n "(cached) " >&6 8618else 8619 if test -n "$OTOOL64"; then 8620 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8621else 8622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8623for as_dir in $PATH 8624do 8625 IFS=$as_save_IFS 8626 test -z "$as_dir" && as_dir=. 8627 for ac_exec_ext in '' $ac_executable_extensions; do 8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8629 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8631 break 2 8632 fi 8633done 8634 done 8635IFS=$as_save_IFS 8636 8637fi 8638fi 8639OTOOL64=$ac_cv_prog_OTOOL64 8640if test -n "$OTOOL64"; then 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8642$as_echo "$OTOOL64" >&6; } 8643else 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8645$as_echo "no" >&6; } 8646fi 8647 8648 8649fi 8650if test -z "$ac_cv_prog_OTOOL64"; then 8651 ac_ct_OTOOL64=$OTOOL64 8652 # Extract the first word of "otool64", so it can be a program name with args. 8653set dummy otool64; ac_word=$2 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8655$as_echo_n "checking for $ac_word... " >&6; } 8656if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 if test -n "$ac_ct_OTOOL64"; then 8660 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8661else 8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8663for as_dir in $PATH 8664do 8665 IFS=$as_save_IFS 8666 test -z "$as_dir" && as_dir=. 8667 for ac_exec_ext in '' $ac_executable_extensions; do 8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8669 ac_cv_prog_ac_ct_OTOOL64="otool64" 8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8671 break 2 8672 fi 8673done 8674 done 8675IFS=$as_save_IFS 8676 8677fi 8678fi 8679ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8680if test -n "$ac_ct_OTOOL64"; then 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8682$as_echo "$ac_ct_OTOOL64" >&6; } 8683else 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8685$as_echo "no" >&6; } 8686fi 8687 8688 if test "x$ac_ct_OTOOL64" = x; then 8689 OTOOL64=":" 8690 else 8691 case $cross_compiling:$ac_tool_warned in 8692yes:) 8693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8695ac_tool_warned=yes ;; 8696esac 8697 OTOOL64=$ac_ct_OTOOL64 8698 fi 8699else 8700 OTOOL64="$ac_cv_prog_OTOOL64" 8701fi 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8730$as_echo_n "checking for -single_module linker flag... " >&6; } 8731if ${lt_cv_apple_cc_single_mod+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733else 8734 lt_cv_apple_cc_single_mod=no 8735 if test -z "$LT_MULTI_MODULE"; then 8736 # By default we will add the -single_module flag. You can override 8737 # by either setting the environment variable LT_MULTI_MODULE 8738 # non-empty at configure time, or by adding -multi_module to the 8739 # link flags. 8740 rm -rf libconftest.dylib* 8741 echo "int foo(void){return 1;}" > conftest.c 8742 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8743-dynamiclib -Wl,-single_module conftest.c" >&5 8744 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8745 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8746 _lt_result=$? 8747 # If there is a non-empty error log, and "single_module" 8748 # appears in it, assume the flag caused a linker warning 8749 if test -s conftest.err && $GREP single_module conftest.err; then 8750 cat conftest.err >&5 8751 # Otherwise, if the output was created with a 0 exit code from 8752 # the compiler, it worked. 8753 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8754 lt_cv_apple_cc_single_mod=yes 8755 else 8756 cat conftest.err >&5 8757 fi 8758 rm -rf libconftest.dylib* 8759 rm -f conftest.* 8760 fi 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8763$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8764 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8766$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8767if ${lt_cv_ld_exported_symbols_list+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 lt_cv_ld_exported_symbols_list=no 8771 save_LDFLAGS=$LDFLAGS 8772 echo "_main" > conftest.sym 8773 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776 8777int 8778main () 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO"; then : 8786 lt_cv_ld_exported_symbols_list=yes 8787else 8788 lt_cv_ld_exported_symbols_list=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext \ 8791 conftest$ac_exeext conftest.$ac_ext 8792 LDFLAGS=$save_LDFLAGS 8793 8794fi 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8796$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8797 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8799$as_echo_n "checking for -force_load linker flag... " >&6; } 8800if ${lt_cv_ld_force_load+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802else 8803 lt_cv_ld_force_load=no 8804 cat > conftest.c << _LT_EOF 8805int forced_loaded() { return 2;} 8806_LT_EOF 8807 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8808 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8809 echo "$AR cru libconftest.a conftest.o" >&5 8810 $AR cru libconftest.a conftest.o 2>&5 8811 echo "$RANLIB libconftest.a" >&5 8812 $RANLIB libconftest.a 2>&5 8813 cat > conftest.c << _LT_EOF 8814int main() { return 0;} 8815_LT_EOF 8816 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8817 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8818 _lt_result=$? 8819 if test -s conftest.err && $GREP force_load conftest.err; then 8820 cat conftest.err >&5 8821 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8822 lt_cv_ld_force_load=yes 8823 else 8824 cat conftest.err >&5 8825 fi 8826 rm -f conftest.err libconftest.a conftest conftest.c 8827 rm -rf conftest.dSYM 8828 8829fi 8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8831$as_echo "$lt_cv_ld_force_load" >&6; } 8832 case $host_os in 8833 rhapsody* | darwin1.[012]) 8834 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8835 darwin1.*) 8836 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8837 darwin*) 8838 # Open MPI patched for Darwin / MacOS Big Sur. See 8839 # http://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00001.html 8840 case ${MACOSX_DEPLOYMENT_TARGET},$host in 8841 10.[012],*|,*powerpc*) 8842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8843 *) 8844 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8845 esac 8846 ;; 8847 esac 8848 if test yes = "$lt_cv_apple_cc_single_mod"; then 8849 _lt_dar_single_mod='$single_module' 8850 fi 8851 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8852 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8853 else 8854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8855 fi 8856 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8857 _lt_dsymutil='~$DSYMUTIL $lib || :' 8858 else 8859 _lt_dsymutil= 8860 fi 8861 ;; 8862 esac 8863 8864# func_munge_path_list VARIABLE PATH 8865# ----------------------------------- 8866# VARIABLE is name of variable containing _space_ separated list of 8867# directories to be munged by the contents of PATH, which is string 8868# having a format: 8869# "DIR[:DIR]:" 8870# string "DIR[ DIR]" will be prepended to VARIABLE 8871# ":DIR[:DIR]" 8872# string "DIR[ DIR]" will be appended to VARIABLE 8873# "DIRP[:DIRP]::[DIRA:]DIRA" 8874# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8875# "DIRA[ DIRA]" will be appended to VARIABLE 8876# "DIR[:DIR]" 8877# VARIABLE will be replaced by "DIR[ DIR]" 8878func_munge_path_list () 8879{ 8880 case x$2 in 8881 x) 8882 ;; 8883 *:) 8884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8885 ;; 8886 x:*) 8887 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8888 ;; 8889 *::*) 8890 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8891 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8892 ;; 8893 *) 8894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8895 ;; 8896 esac 8897} 8898 8899for ac_header in dlfcn.h 8900do : 8901 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8902" 8903if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8904 cat >>confdefs.h <<_ACEOF 8905#define HAVE_DLFCN_H 1 8906_ACEOF 8907 8908fi 8909 8910done 8911 8912 8913 8914 8915 8916# Set options 8917enable_dlopen=yes 8918enable_win32_dll=yes 8919 8920case $host in 8921*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8922 if test -n "$ac_tool_prefix"; then 8923 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8924set dummy ${ac_tool_prefix}as; ac_word=$2 8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8926$as_echo_n "checking for $ac_word... " >&6; } 8927if ${ac_cv_prog_AS+:} false; then : 8928 $as_echo_n "(cached) " >&6 8929else 8930 if test -n "$AS"; then 8931 ac_cv_prog_AS="$AS" # Let the user override the test. 8932else 8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8934for as_dir in $PATH 8935do 8936 IFS=$as_save_IFS 8937 test -z "$as_dir" && as_dir=. 8938 for ac_exec_ext in '' $ac_executable_extensions; do 8939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8940 ac_cv_prog_AS="${ac_tool_prefix}as" 8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8942 break 2 8943 fi 8944done 8945 done 8946IFS=$as_save_IFS 8947 8948fi 8949fi 8950AS=$ac_cv_prog_AS 8951if test -n "$AS"; then 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8953$as_echo "$AS" >&6; } 8954else 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8956$as_echo "no" >&6; } 8957fi 8958 8959 8960fi 8961if test -z "$ac_cv_prog_AS"; then 8962 ac_ct_AS=$AS 8963 # Extract the first word of "as", so it can be a program name with args. 8964set dummy as; ac_word=$2 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8966$as_echo_n "checking for $ac_word... " >&6; } 8967if ${ac_cv_prog_ac_ct_AS+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 8970 if test -n "$ac_ct_AS"; then 8971 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8972else 8973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8974for as_dir in $PATH 8975do 8976 IFS=$as_save_IFS 8977 test -z "$as_dir" && as_dir=. 8978 for ac_exec_ext in '' $ac_executable_extensions; do 8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8980 ac_cv_prog_ac_ct_AS="as" 8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8982 break 2 8983 fi 8984done 8985 done 8986IFS=$as_save_IFS 8987 8988fi 8989fi 8990ac_ct_AS=$ac_cv_prog_ac_ct_AS 8991if test -n "$ac_ct_AS"; then 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8993$as_echo "$ac_ct_AS" >&6; } 8994else 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8996$as_echo "no" >&6; } 8997fi 8998 8999 if test "x$ac_ct_AS" = x; then 9000 AS="false" 9001 else 9002 case $cross_compiling:$ac_tool_warned in 9003yes:) 9004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9006ac_tool_warned=yes ;; 9007esac 9008 AS=$ac_ct_AS 9009 fi 9010else 9011 AS="$ac_cv_prog_AS" 9012fi 9013 9014 if test -n "$ac_tool_prefix"; then 9015 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9016set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9018$as_echo_n "checking for $ac_word... " >&6; } 9019if ${ac_cv_prog_DLLTOOL+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 if test -n "$DLLTOOL"; then 9023 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9024else 9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9026for as_dir in $PATH 9027do 9028 IFS=$as_save_IFS 9029 test -z "$as_dir" && as_dir=. 9030 for ac_exec_ext in '' $ac_executable_extensions; do 9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9032 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9034 break 2 9035 fi 9036done 9037 done 9038IFS=$as_save_IFS 9039 9040fi 9041fi 9042DLLTOOL=$ac_cv_prog_DLLTOOL 9043if test -n "$DLLTOOL"; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9045$as_echo "$DLLTOOL" >&6; } 9046else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9048$as_echo "no" >&6; } 9049fi 9050 9051 9052fi 9053if test -z "$ac_cv_prog_DLLTOOL"; then 9054 ac_ct_DLLTOOL=$DLLTOOL 9055 # Extract the first word of "dlltool", so it can be a program name with args. 9056set dummy dlltool; ac_word=$2 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9058$as_echo_n "checking for $ac_word... " >&6; } 9059if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 if test -n "$ac_ct_DLLTOOL"; then 9063 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9064else 9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9066for as_dir in $PATH 9067do 9068 IFS=$as_save_IFS 9069 test -z "$as_dir" && as_dir=. 9070 for ac_exec_ext in '' $ac_executable_extensions; do 9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9072 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9074 break 2 9075 fi 9076done 9077 done 9078IFS=$as_save_IFS 9079 9080fi 9081fi 9082ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9083if test -n "$ac_ct_DLLTOOL"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9085$as_echo "$ac_ct_DLLTOOL" >&6; } 9086else 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9088$as_echo "no" >&6; } 9089fi 9090 9091 if test "x$ac_ct_DLLTOOL" = x; then 9092 DLLTOOL="false" 9093 else 9094 case $cross_compiling:$ac_tool_warned in 9095yes:) 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9098ac_tool_warned=yes ;; 9099esac 9100 DLLTOOL=$ac_ct_DLLTOOL 9101 fi 9102else 9103 DLLTOOL="$ac_cv_prog_DLLTOOL" 9104fi 9105 9106 if test -n "$ac_tool_prefix"; then 9107 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9108set dummy ${ac_tool_prefix}objdump; ac_word=$2 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9110$as_echo_n "checking for $ac_word... " >&6; } 9111if ${ac_cv_prog_OBJDUMP+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 if test -n "$OBJDUMP"; then 9115 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9116else 9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9118for as_dir in $PATH 9119do 9120 IFS=$as_save_IFS 9121 test -z "$as_dir" && as_dir=. 9122 for ac_exec_ext in '' $ac_executable_extensions; do 9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9124 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9126 break 2 9127 fi 9128done 9129 done 9130IFS=$as_save_IFS 9131 9132fi 9133fi 9134OBJDUMP=$ac_cv_prog_OBJDUMP 9135if test -n "$OBJDUMP"; then 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9137$as_echo "$OBJDUMP" >&6; } 9138else 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9140$as_echo "no" >&6; } 9141fi 9142 9143 9144fi 9145if test -z "$ac_cv_prog_OBJDUMP"; then 9146 ac_ct_OBJDUMP=$OBJDUMP 9147 # Extract the first word of "objdump", so it can be a program name with args. 9148set dummy objdump; ac_word=$2 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9150$as_echo_n "checking for $ac_word... " >&6; } 9151if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153else 9154 if test -n "$ac_ct_OBJDUMP"; then 9155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9156else 9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9158for as_dir in $PATH 9159do 9160 IFS=$as_save_IFS 9161 test -z "$as_dir" && as_dir=. 9162 for ac_exec_ext in '' $ac_executable_extensions; do 9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9164 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9166 break 2 9167 fi 9168done 9169 done 9170IFS=$as_save_IFS 9171 9172fi 9173fi 9174ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9175if test -n "$ac_ct_OBJDUMP"; then 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9177$as_echo "$ac_ct_OBJDUMP" >&6; } 9178else 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9180$as_echo "no" >&6; } 9181fi 9182 9183 if test "x$ac_ct_OBJDUMP" = x; then 9184 OBJDUMP="false" 9185 else 9186 case $cross_compiling:$ac_tool_warned in 9187yes:) 9188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9190ac_tool_warned=yes ;; 9191esac 9192 OBJDUMP=$ac_ct_OBJDUMP 9193 fi 9194else 9195 OBJDUMP="$ac_cv_prog_OBJDUMP" 9196fi 9197 9198 ;; 9199esac 9200 9201test -z "$AS" && AS=as 9202 9203 9204 9205 9206 9207test -z "$DLLTOOL" && DLLTOOL=dlltool 9208 9209 9210 9211 9212 9213test -z "$OBJDUMP" && OBJDUMP=objdump 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226# Check whether --with-pic was given. 9227if test "${with_pic+set}" = set; then : 9228 withval=$with_pic; lt_p=${PACKAGE-default} 9229 case $withval in 9230 yes|no) pic_mode=$withval ;; 9231 *) 9232 pic_mode=default 9233 # Look at the argument we got. We use all the common list separators. 9234 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9235 for lt_pkg in $withval; do 9236 IFS=$lt_save_ifs 9237 if test "X$lt_pkg" = "X$lt_p"; then 9238 pic_mode=yes 9239 fi 9240 done 9241 IFS=$lt_save_ifs 9242 ;; 9243 esac 9244else 9245 pic_mode=default 9246fi 9247 9248 9249 9250 9251 9252 9253 9254 9255 # Check whether --enable-fast-install was given. 9256if test "${enable_fast_install+set}" = set; then : 9257 enableval=$enable_fast_install; p=${PACKAGE-default} 9258 case $enableval in 9259 yes) enable_fast_install=yes ;; 9260 no) enable_fast_install=no ;; 9261 *) 9262 enable_fast_install=no 9263 # Look at the argument we got. We use all the common list separators. 9264 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9265 for pkg in $enableval; do 9266 IFS=$lt_save_ifs 9267 if test "X$pkg" = "X$p"; then 9268 enable_fast_install=yes 9269 fi 9270 done 9271 IFS=$lt_save_ifs 9272 ;; 9273 esac 9274else 9275 enable_fast_install=yes 9276fi 9277 9278 9279 9280 9281 9282 9283 9284 9285 shared_archive_member_spec= 9286case $host,$enable_shared in 9287power*-*-aix[5-9]*,yes) 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9289$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9290 9291# Check whether --with-aix-soname was given. 9292if test "${with_aix_soname+set}" = set; then : 9293 withval=$with_aix_soname; case $withval in 9294 aix|svr4|both) 9295 ;; 9296 *) 9297 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9298 ;; 9299 esac 9300 lt_cv_with_aix_soname=$with_aix_soname 9301else 9302 if ${lt_cv_with_aix_soname+:} false; then : 9303 $as_echo_n "(cached) " >&6 9304else 9305 lt_cv_with_aix_soname=aix 9306fi 9307 9308 with_aix_soname=$lt_cv_with_aix_soname 9309fi 9310 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9312$as_echo "$with_aix_soname" >&6; } 9313 if test aix != "$with_aix_soname"; then 9314 # For the AIX way of multilib, we name the shared archive member 9315 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9316 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9317 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9318 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9319 if test 64 = "${OBJECT_MODE-32}"; then 9320 shared_archive_member_spec=shr_64 9321 else 9322 shared_archive_member_spec=shr 9323 fi 9324 fi 9325 ;; 9326*) 9327 with_aix_soname=aix 9328 ;; 9329esac 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340# This can be used to rebuild libtool when needed 9341LIBTOOL_DEPS=$ltmain 9342 9343# Always use our own libtool. 9344LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375test -z "$LN_S" && LN_S="ln -s" 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390if test -n "${ZSH_VERSION+set}"; then 9391 setopt NO_GLOB_SUBST 9392fi 9393 9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9395$as_echo_n "checking for objdir... " >&6; } 9396if ${lt_cv_objdir+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 rm -f .libs 2>/dev/null 9400mkdir .libs 2>/dev/null 9401if test -d .libs; then 9402 lt_cv_objdir=.libs 9403else 9404 # MS-DOS does not allow filenames that begin with a dot. 9405 lt_cv_objdir=_libs 9406fi 9407rmdir .libs 2>/dev/null 9408fi 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9410$as_echo "$lt_cv_objdir" >&6; } 9411objdir=$lt_cv_objdir 9412 9413 9414 9415 9416 9417cat >>confdefs.h <<_ACEOF 9418#define LT_OBJDIR "$lt_cv_objdir/" 9419_ACEOF 9420 9421 9422 9423 9424case $host_os in 9425aix3*) 9426 # AIX sometimes has problems with the GCC collect2 program. For some 9427 # reason, if we set the COLLECT_NAMES environment variable, the problems 9428 # vanish in a puff of smoke. 9429 if test set != "${COLLECT_NAMES+set}"; then 9430 COLLECT_NAMES= 9431 export COLLECT_NAMES 9432 fi 9433 ;; 9434esac 9435 9436# Global variables: 9437ofile=libtool 9438can_build_shared=yes 9439 9440# All known linkers require a '.a' archive for static linking (except MSVC, 9441# which needs '.lib'). 9442libext=a 9443 9444with_gnu_ld=$lt_cv_prog_gnu_ld 9445 9446old_CC=$CC 9447old_CFLAGS=$CFLAGS 9448 9449# Set sane defaults for various variables 9450test -z "$CC" && CC=cc 9451test -z "$LTCC" && LTCC=$CC 9452test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9453test -z "$LD" && LD=ld 9454test -z "$ac_objext" && ac_objext=o 9455 9456func_cc_basename $compiler 9457cc_basename=$func_cc_basename_result 9458 9459 9460# Only perform the check for file, if the check method requires it 9461test -z "$MAGIC_CMD" && MAGIC_CMD=file 9462case $deplibs_check_method in 9463file_magic*) 9464 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9466$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9467if ${lt_cv_path_MAGIC_CMD+:} false; then : 9468 $as_echo_n "(cached) " >&6 9469else 9470 case $MAGIC_CMD in 9471[\\/*] | ?:[\\/]*) 9472 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9473 ;; 9474*) 9475 lt_save_MAGIC_CMD=$MAGIC_CMD 9476 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9478 for ac_dir in $ac_dummy; do 9479 IFS=$lt_save_ifs 9480 test -z "$ac_dir" && ac_dir=. 9481 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9482 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9483 if test -n "$file_magic_test_file"; then 9484 case $deplibs_check_method in 9485 "file_magic "*) 9486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9487 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9489 $EGREP "$file_magic_regex" > /dev/null; then 9490 : 9491 else 9492 cat <<_LT_EOF 1>&2 9493 9494*** Warning: the command libtool uses to detect shared libraries, 9495*** $file_magic_cmd, produces output that libtool cannot recognize. 9496*** The result is that libtool may fail to recognize shared libraries 9497*** as such. This will affect the creation of libtool libraries that 9498*** depend on shared libraries, but programs linked with such libtool 9499*** libraries will work regardless of this problem. Nevertheless, you 9500*** may want to report the problem to your system manager and/or to 9501*** bug-libtool@gnu.org 9502 9503_LT_EOF 9504 fi ;; 9505 esac 9506 fi 9507 break 9508 fi 9509 done 9510 IFS=$lt_save_ifs 9511 MAGIC_CMD=$lt_save_MAGIC_CMD 9512 ;; 9513esac 9514fi 9515 9516MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9517if test -n "$MAGIC_CMD"; then 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9519$as_echo "$MAGIC_CMD" >&6; } 9520else 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9522$as_echo "no" >&6; } 9523fi 9524 9525 9526 9527 9528 9529if test -z "$lt_cv_path_MAGIC_CMD"; then 9530 if test -n "$ac_tool_prefix"; then 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9532$as_echo_n "checking for file... " >&6; } 9533if ${lt_cv_path_MAGIC_CMD+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535else 9536 case $MAGIC_CMD in 9537[\\/*] | ?:[\\/]*) 9538 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9539 ;; 9540*) 9541 lt_save_MAGIC_CMD=$MAGIC_CMD 9542 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9544 for ac_dir in $ac_dummy; do 9545 IFS=$lt_save_ifs 9546 test -z "$ac_dir" && ac_dir=. 9547 if test -f "$ac_dir/file"; then 9548 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9549 if test -n "$file_magic_test_file"; then 9550 case $deplibs_check_method in 9551 "file_magic "*) 9552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9553 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9555 $EGREP "$file_magic_regex" > /dev/null; then 9556 : 9557 else 9558 cat <<_LT_EOF 1>&2 9559 9560*** Warning: the command libtool uses to detect shared libraries, 9561*** $file_magic_cmd, produces output that libtool cannot recognize. 9562*** The result is that libtool may fail to recognize shared libraries 9563*** as such. This will affect the creation of libtool libraries that 9564*** depend on shared libraries, but programs linked with such libtool 9565*** libraries will work regardless of this problem. Nevertheless, you 9566*** may want to report the problem to your system manager and/or to 9567*** bug-libtool@gnu.org 9568 9569_LT_EOF 9570 fi ;; 9571 esac 9572 fi 9573 break 9574 fi 9575 done 9576 IFS=$lt_save_ifs 9577 MAGIC_CMD=$lt_save_MAGIC_CMD 9578 ;; 9579esac 9580fi 9581 9582MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9583if test -n "$MAGIC_CMD"; then 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9585$as_echo "$MAGIC_CMD" >&6; } 9586else 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9588$as_echo "no" >&6; } 9589fi 9590 9591 9592 else 9593 MAGIC_CMD=: 9594 fi 9595fi 9596 9597 fi 9598 ;; 9599esac 9600 9601# Use C for the default configuration in the libtool script 9602 9603lt_save_CC=$CC 9604ac_ext=c 9605ac_cpp='$CPP $CPPFLAGS' 9606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9608ac_compiler_gnu=$ac_cv_c_compiler_gnu 9609 9610 9611# Source file extension for C test sources. 9612ac_ext=c 9613 9614# Object file extension for compiled C test sources. 9615objext=o 9616objext=$objext 9617 9618# Code to be used in simple compile tests 9619lt_simple_compile_test_code="int some_variable = 0;" 9620 9621# Code to be used in simple link tests 9622lt_simple_link_test_code='int main(){return(0);}' 9623 9624 9625 9626 9627 9628 9629 9630# If no C compiler was specified, use CC. 9631LTCC=${LTCC-"$CC"} 9632 9633# If no C compiler flags were specified, use CFLAGS. 9634LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9635 9636# Allow CC to be a program name with arguments. 9637compiler=$CC 9638 9639# Save the default compiler, since it gets overwritten when the other 9640# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9641compiler_DEFAULT=$CC 9642 9643# save warnings/boilerplate of simple test code 9644ac_outfile=conftest.$ac_objext 9645echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9647_lt_compiler_boilerplate=`cat conftest.err` 9648$RM conftest* 9649 9650ac_outfile=conftest.$ac_objext 9651echo "$lt_simple_link_test_code" >conftest.$ac_ext 9652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9653_lt_linker_boilerplate=`cat conftest.err` 9654$RM -r conftest* 9655 9656 9657## CAVEAT EMPTOR: 9658## There is no encapsulation within the following macros, do not change 9659## the running order or otherwise move them around unless you know exactly 9660## what you are doing... 9661if test -n "$compiler"; then 9662 9663lt_prog_compiler_no_builtin_flag= 9664 9665if test yes = "$GCC"; then 9666 case $cc_basename in 9667 nvcc*) 9668 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9669 *) 9670 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9671 esac 9672 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9674$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9675if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 lt_cv_prog_compiler_rtti_exceptions=no 9679 ac_outfile=conftest.$ac_objext 9680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9681 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9682 # Insert the option either (1) after the last *FLAGS variable, or 9683 # (2) before a word containing "conftest.", or (3) at the end. 9684 # Note that $ac_compile itself does not contain backslashes and begins 9685 # with a dollar sign (not a hyphen), so the echo should work correctly. 9686 # The option is referenced via a variable to avoid confusing sed. 9687 lt_compile=`echo "$ac_compile" | $SED \ 9688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9690 -e 's:$: $lt_compiler_flag:'` 9691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9692 (eval "$lt_compile" 2>conftest.err) 9693 ac_status=$? 9694 cat conftest.err >&5 9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9696 if (exit $ac_status) && test -s "$ac_outfile"; then 9697 # The compiler can only warn and ignore the option if not recognized 9698 # So say no if there are warnings other than the usual output. 9699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9702 lt_cv_prog_compiler_rtti_exceptions=yes 9703 fi 9704 fi 9705 $RM conftest* 9706 9707fi 9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9709$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9710 9711if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9712 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9713else 9714 : 9715fi 9716 9717fi 9718 9719 9720 9721 9722 9723 9724 lt_prog_compiler_wl= 9725lt_prog_compiler_pic= 9726lt_prog_compiler_static= 9727 9728 9729 if test yes = "$GCC"; then 9730 lt_prog_compiler_wl='-Wl,' 9731 lt_prog_compiler_static='-static' 9732 9733 case $host_os in 9734 aix*) 9735 # All AIX code is PIC. 9736 if test ia64 = "$host_cpu"; then 9737 # AIX 5 now supports IA64 processor 9738 lt_prog_compiler_static='-Bstatic' 9739 fi 9740 lt_prog_compiler_pic='-fPIC' 9741 ;; 9742 9743 amigaos*) 9744 case $host_cpu in 9745 powerpc) 9746 # see comment about AmigaOS4 .so support 9747 lt_prog_compiler_pic='-fPIC' 9748 ;; 9749 m68k) 9750 # FIXME: we need at least 68020 code to build shared libraries, but 9751 # adding the '-m68020' flag to GCC prevents building anything better, 9752 # like '-m68040'. 9753 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9754 ;; 9755 esac 9756 ;; 9757 9758 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9759 # PIC is the default for these OSes. 9760 ;; 9761 9762 mingw* | cygwin* | pw32* | os2* | cegcc*) 9763 # This hack is so that the source file can tell whether it is being 9764 # built for inclusion in a dll (and should export symbols for example). 9765 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9766 # (--disable-auto-import) libraries 9767 lt_prog_compiler_pic='-DDLL_EXPORT' 9768 case $host_os in 9769 os2*) 9770 lt_prog_compiler_static='$wl-static' 9771 ;; 9772 esac 9773 ;; 9774 9775 darwin* | rhapsody*) 9776 # PIC is the default on this platform 9777 # Common symbols not allowed in MH_DYLIB files 9778 lt_prog_compiler_pic='-fno-common' 9779 ;; 9780 9781 haiku*) 9782 # PIC is the default for Haiku. 9783 # The "-static" flag exists, but is broken. 9784 lt_prog_compiler_static= 9785 ;; 9786 9787 hpux*) 9788 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9789 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9790 # sets the default TLS model and affects inlining. 9791 case $host_cpu in 9792 hppa*64*) 9793 # +Z the default 9794 ;; 9795 *) 9796 lt_prog_compiler_pic='-fPIC' 9797 ;; 9798 esac 9799 ;; 9800 9801 interix[3-9]*) 9802 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9803 # Instead, we relocate shared libraries at runtime. 9804 ;; 9805 9806 msdosdjgpp*) 9807 # Just because we use GCC doesn't mean we suddenly get shared libraries 9808 # on systems that don't support them. 9809 lt_prog_compiler_can_build_shared=no 9810 enable_shared=no 9811 ;; 9812 9813 *nto* | *qnx*) 9814 # QNX uses GNU C++, but need to define -shared option too, otherwise 9815 # it will coredump. 9816 lt_prog_compiler_pic='-fPIC -shared' 9817 ;; 9818 9819 sysv4*MP*) 9820 if test -d /usr/nec; then 9821 lt_prog_compiler_pic=-Kconform_pic 9822 fi 9823 ;; 9824 9825 *) 9826 lt_prog_compiler_pic='-fPIC' 9827 ;; 9828 esac 9829 9830 case $cc_basename in 9831 nvcc*) # Cuda Compiler Driver 2.2 9832 lt_prog_compiler_wl='-Xlinker ' 9833 if test -n "$lt_prog_compiler_pic"; then 9834 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9835 fi 9836 ;; 9837 esac 9838 else 9839 # PORTME Check for flag to pass linker flags through the system compiler. 9840 case $host_os in 9841 aix*) 9842 lt_prog_compiler_wl='-Wl,' 9843 if test ia64 = "$host_cpu"; then 9844 # AIX 5 now supports IA64 processor 9845 lt_prog_compiler_static='-Bstatic' 9846 else 9847 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9848 fi 9849 ;; 9850 9851 darwin* | rhapsody*) 9852 # PIC is the default on this platform 9853 # Common symbols not allowed in MH_DYLIB files 9854 lt_prog_compiler_pic='-fno-common' 9855 case $cc_basename in 9856 nagfor*) 9857 # NAG Fortran compiler 9858 lt_prog_compiler_wl='-Wl,-Wl,,' 9859 lt_prog_compiler_pic='-PIC' 9860 lt_prog_compiler_static='-Bstatic' 9861 ;; 9862 esac 9863 ;; 9864 9865 mingw* | cygwin* | pw32* | os2* | cegcc*) 9866 # This hack is so that the source file can tell whether it is being 9867 # built for inclusion in a dll (and should export symbols for example). 9868 lt_prog_compiler_pic='-DDLL_EXPORT' 9869 case $host_os in 9870 os2*) 9871 lt_prog_compiler_static='$wl-static' 9872 ;; 9873 esac 9874 ;; 9875 9876 hpux9* | hpux10* | hpux11*) 9877 lt_prog_compiler_wl='-Wl,' 9878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9879 # not for PA HP-UX. 9880 case $host_cpu in 9881 hppa*64*|ia64*) 9882 # +Z the default 9883 ;; 9884 *) 9885 lt_prog_compiler_pic='+Z' 9886 ;; 9887 esac 9888 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9889 lt_prog_compiler_static='$wl-a ${wl}archive' 9890 ;; 9891 9892 irix5* | irix6* | nonstopux*) 9893 lt_prog_compiler_wl='-Wl,' 9894 # PIC (with -KPIC) is the default. 9895 lt_prog_compiler_static='-non_shared' 9896 ;; 9897 9898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9899 case $cc_basename in 9900 # old Intel for x86_64, which still supported -KPIC. 9901 ecc*) 9902 lt_prog_compiler_wl='-Wl,' 9903 lt_prog_compiler_pic='-KPIC' 9904 lt_prog_compiler_static='-static' 9905 ;; 9906 # icc used to be incompatible with GCC. 9907 # ICC 10 doesn't accept -KPIC any more. 9908 icc* | ifort*) 9909 lt_prog_compiler_wl='-Wl,' 9910 lt_prog_compiler_pic='-fPIC' 9911 lt_prog_compiler_static='-static' 9912 ;; 9913 # Lahey Fortran 8.1. 9914 lf95*) 9915 lt_prog_compiler_wl='-Wl,' 9916 lt_prog_compiler_pic='--shared' 9917 lt_prog_compiler_static='--static' 9918 ;; 9919 nagfor*) 9920 # NAG Fortran compiler 9921 lt_prog_compiler_wl='-Wl,-Wl,,' 9922 lt_prog_compiler_pic='-PIC' 9923 lt_prog_compiler_static='-Bstatic' 9924 ;; 9925 tcc*) 9926 # Fabrice Bellard et al's Tiny C Compiler 9927 lt_prog_compiler_wl='-Wl,' 9928 lt_prog_compiler_pic='-fPIC' 9929 lt_prog_compiler_static='-static' 9930 ;; 9931 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9932 # Portland Group compilers (*not* the Pentium gcc compiler, 9933 # which looks to be a dead project) 9934 lt_prog_compiler_wl='-Wl,' 9935 lt_prog_compiler_pic='-fpic' 9936 lt_prog_compiler_static='-Bstatic' 9937 ;; 9938 ccc*) 9939 lt_prog_compiler_wl='-Wl,' 9940 # All Alpha code is PIC. 9941 lt_prog_compiler_static='-non_shared' 9942 ;; 9943 xl* | bgxl* | bgf* | mpixl*) 9944 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9945 lt_prog_compiler_wl='-Wl,' 9946 lt_prog_compiler_pic='-qpic' 9947 lt_prog_compiler_static='-qstaticlink' 9948 ;; 9949 *) 9950 case `$CC -V 2>&1 | sed 5q` in 9951 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9952 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9953 lt_prog_compiler_pic='-KPIC' 9954 lt_prog_compiler_static='-Bstatic' 9955 lt_prog_compiler_wl='' 9956 ;; 9957 *Sun\ F* | *Sun*Fortran*) 9958 lt_prog_compiler_pic='-KPIC' 9959 lt_prog_compiler_static='-Bstatic' 9960 lt_prog_compiler_wl='-Qoption ld ' 9961 ;; 9962 *Sun\ C*) 9963 # Sun C 5.9 9964 lt_prog_compiler_pic='-KPIC' 9965 lt_prog_compiler_static='-Bstatic' 9966 lt_prog_compiler_wl='-Wl,' 9967 ;; 9968 *Intel*\ [CF]*Compiler*) 9969 lt_prog_compiler_wl='-Wl,' 9970 lt_prog_compiler_pic='-fPIC' 9971 lt_prog_compiler_static='-static' 9972 ;; 9973 *Portland\ Group*) 9974 lt_prog_compiler_wl='-Wl,' 9975 lt_prog_compiler_pic='-fpic' 9976 lt_prog_compiler_static='-Bstatic' 9977 ;; 9978 esac 9979 ;; 9980 esac 9981 ;; 9982 9983 newsos6) 9984 lt_prog_compiler_pic='-KPIC' 9985 lt_prog_compiler_static='-Bstatic' 9986 ;; 9987 9988 *nto* | *qnx*) 9989 # QNX uses GNU C++, but need to define -shared option too, otherwise 9990 # it will coredump. 9991 lt_prog_compiler_pic='-fPIC -shared' 9992 ;; 9993 9994 osf3* | osf4* | osf5*) 9995 lt_prog_compiler_wl='-Wl,' 9996 # All OSF/1 code is PIC. 9997 lt_prog_compiler_static='-non_shared' 9998 ;; 9999 10000 rdos*) 10001 lt_prog_compiler_static='-non_shared' 10002 ;; 10003 10004 solaris*) 10005 lt_prog_compiler_pic='-KPIC' 10006 lt_prog_compiler_static='-Bstatic' 10007 case $cc_basename in 10008 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10009 lt_prog_compiler_wl='-Qoption ld ';; 10010 *) 10011 lt_prog_compiler_wl='-Wl,';; 10012 esac 10013 ;; 10014 10015 sunos4*) 10016 lt_prog_compiler_wl='-Qoption ld ' 10017 lt_prog_compiler_pic='-PIC' 10018 lt_prog_compiler_static='-Bstatic' 10019 ;; 10020 10021 sysv4 | sysv4.2uw2* | sysv4.3*) 10022 lt_prog_compiler_wl='-Wl,' 10023 lt_prog_compiler_pic='-KPIC' 10024 lt_prog_compiler_static='-Bstatic' 10025 ;; 10026 10027 sysv4*MP*) 10028 if test -d /usr/nec; then 10029 lt_prog_compiler_pic='-Kconform_pic' 10030 lt_prog_compiler_static='-Bstatic' 10031 fi 10032 ;; 10033 10034 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10035 lt_prog_compiler_wl='-Wl,' 10036 lt_prog_compiler_pic='-KPIC' 10037 lt_prog_compiler_static='-Bstatic' 10038 ;; 10039 10040 unicos*) 10041 lt_prog_compiler_wl='-Wl,' 10042 lt_prog_compiler_can_build_shared=no 10043 ;; 10044 10045 uts4*) 10046 lt_prog_compiler_pic='-pic' 10047 lt_prog_compiler_static='-Bstatic' 10048 ;; 10049 10050 *) 10051 lt_prog_compiler_can_build_shared=no 10052 ;; 10053 esac 10054 fi 10055 10056case $host_os in 10057 # For platforms that do not support PIC, -DPIC is meaningless: 10058 *djgpp*) 10059 lt_prog_compiler_pic= 10060 ;; 10061 *) 10062 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10063 ;; 10064esac 10065 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10067$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10068if ${lt_cv_prog_compiler_pic+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10072fi 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10074$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10075lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10076 10077# 10078# Check to make sure the PIC flag actually works. 10079# 10080if test -n "$lt_prog_compiler_pic"; then 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10082$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10083if ${lt_cv_prog_compiler_pic_works+:} false; then : 10084 $as_echo_n "(cached) " >&6 10085else 10086 lt_cv_prog_compiler_pic_works=no 10087 ac_outfile=conftest.$ac_objext 10088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10089 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10090 # Insert the option either (1) after the last *FLAGS variable, or 10091 # (2) before a word containing "conftest.", or (3) at the end. 10092 # Note that $ac_compile itself does not contain backslashes and begins 10093 # with a dollar sign (not a hyphen), so the echo should work correctly. 10094 # The option is referenced via a variable to avoid confusing sed. 10095 lt_compile=`echo "$ac_compile" | $SED \ 10096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10098 -e 's:$: $lt_compiler_flag:'` 10099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10100 (eval "$lt_compile" 2>conftest.err) 10101 ac_status=$? 10102 cat conftest.err >&5 10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10104 if (exit $ac_status) && test -s "$ac_outfile"; then 10105 # The compiler can only warn and ignore the option if not recognized 10106 # So say no if there are warnings other than the usual output. 10107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10110 lt_cv_prog_compiler_pic_works=yes 10111 fi 10112 fi 10113 $RM conftest* 10114 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10117$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10118 10119if test yes = "$lt_cv_prog_compiler_pic_works"; then 10120 case $lt_prog_compiler_pic in 10121 "" | " "*) ;; 10122 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10123 esac 10124else 10125 lt_prog_compiler_pic= 10126 lt_prog_compiler_can_build_shared=no 10127fi 10128 10129fi 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141# 10142# Check to make sure the static flag actually works. 10143# 10144wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10146$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10147if ${lt_cv_prog_compiler_static_works+:} false; then : 10148 $as_echo_n "(cached) " >&6 10149else 10150 lt_cv_prog_compiler_static_works=no 10151 save_LDFLAGS=$LDFLAGS 10152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10153 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10155 # The linker can only warn and ignore the option if not recognized 10156 # So say no if there are warnings 10157 if test -s conftest.err; then 10158 # Append any errors to the config.log. 10159 cat conftest.err 1>&5 10160 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10162 if diff conftest.exp conftest.er2 >/dev/null; then 10163 lt_cv_prog_compiler_static_works=yes 10164 fi 10165 else 10166 lt_cv_prog_compiler_static_works=yes 10167 fi 10168 fi 10169 $RM -r conftest* 10170 LDFLAGS=$save_LDFLAGS 10171 10172fi 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10174$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10175 10176if test yes = "$lt_cv_prog_compiler_static_works"; then 10177 : 10178else 10179 lt_prog_compiler_static= 10180fi 10181 10182 10183 10184 10185 10186 10187 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10189$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10190if ${lt_cv_prog_compiler_c_o+:} false; then : 10191 $as_echo_n "(cached) " >&6 10192else 10193 lt_cv_prog_compiler_c_o=no 10194 $RM -r conftest 2>/dev/null 10195 mkdir conftest 10196 cd conftest 10197 mkdir out 10198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10199 10200 lt_compiler_flag="-o out/conftest2.$ac_objext" 10201 # Insert the option either (1) after the last *FLAGS variable, or 10202 # (2) before a word containing "conftest.", or (3) at the end. 10203 # Note that $ac_compile itself does not contain backslashes and begins 10204 # with a dollar sign (not a hyphen), so the echo should work correctly. 10205 lt_compile=`echo "$ac_compile" | $SED \ 10206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10208 -e 's:$: $lt_compiler_flag:'` 10209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10210 (eval "$lt_compile" 2>out/conftest.err) 10211 ac_status=$? 10212 cat out/conftest.err >&5 10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10214 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10215 then 10216 # The compiler can only warn and ignore the option if not recognized 10217 # So say no if there are warnings 10218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10221 lt_cv_prog_compiler_c_o=yes 10222 fi 10223 fi 10224 chmod u+w . 2>&5 10225 $RM conftest* 10226 # SGI C++ compiler will create directory out/ii_files/ for 10227 # template instantiation 10228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10229 $RM out/* && rmdir out 10230 cd .. 10231 $RM -r conftest 10232 $RM conftest* 10233 10234fi 10235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10236$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10237 10238 10239 10240 10241 10242 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10244$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10245if ${lt_cv_prog_compiler_c_o+:} false; then : 10246 $as_echo_n "(cached) " >&6 10247else 10248 lt_cv_prog_compiler_c_o=no 10249 $RM -r conftest 2>/dev/null 10250 mkdir conftest 10251 cd conftest 10252 mkdir out 10253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10254 10255 lt_compiler_flag="-o out/conftest2.$ac_objext" 10256 # Insert the option either (1) after the last *FLAGS variable, or 10257 # (2) before a word containing "conftest.", or (3) at the end. 10258 # Note that $ac_compile itself does not contain backslashes and begins 10259 # with a dollar sign (not a hyphen), so the echo should work correctly. 10260 lt_compile=`echo "$ac_compile" | $SED \ 10261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10263 -e 's:$: $lt_compiler_flag:'` 10264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10265 (eval "$lt_compile" 2>out/conftest.err) 10266 ac_status=$? 10267 cat out/conftest.err >&5 10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10269 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10270 then 10271 # The compiler can only warn and ignore the option if not recognized 10272 # So say no if there are warnings 10273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10276 lt_cv_prog_compiler_c_o=yes 10277 fi 10278 fi 10279 chmod u+w . 2>&5 10280 $RM conftest* 10281 # SGI C++ compiler will create directory out/ii_files/ for 10282 # template instantiation 10283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10284 $RM out/* && rmdir out 10285 cd .. 10286 $RM -r conftest 10287 $RM conftest* 10288 10289fi 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10291$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10292 10293 10294 10295 10296hard_links=nottested 10297if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10298 # do not overwrite the value of need_locks provided by the user 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10300$as_echo_n "checking if we can lock with hard links... " >&6; } 10301 hard_links=yes 10302 $RM conftest* 10303 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10304 touch conftest.a 10305 ln conftest.a conftest.b 2>&5 || hard_links=no 10306 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10308$as_echo "$hard_links" >&6; } 10309 if test no = "$hard_links"; then 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10311$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10312 need_locks=warn 10313 fi 10314else 10315 need_locks=no 10316fi 10317 10318 10319 10320 10321 10322 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10324$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10325 10326 runpath_var= 10327 allow_undefined_flag= 10328 always_export_symbols=no 10329 archive_cmds= 10330 archive_expsym_cmds= 10331 compiler_needs_object=no 10332 enable_shared_with_static_runtimes=no 10333 export_dynamic_flag_spec= 10334 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10335 hardcode_automatic=no 10336 hardcode_direct=no 10337 hardcode_direct_absolute=no 10338 hardcode_libdir_flag_spec= 10339 hardcode_libdir_separator= 10340 hardcode_minus_L=no 10341 hardcode_shlibpath_var=unsupported 10342 inherit_rpath=no 10343 link_all_deplibs=unknown 10344 module_cmds= 10345 module_expsym_cmds= 10346 old_archive_from_new_cmds= 10347 old_archive_from_expsyms_cmds= 10348 thread_safe_flag_spec= 10349 whole_archive_flag_spec= 10350 # include_expsyms should be a list of space-separated symbols to be *always* 10351 # included in the symbol list 10352 include_expsyms= 10353 # exclude_expsyms can be an extended regexp of symbols to exclude 10354 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10355 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10356 # as well as any symbol that contains 'd'. 10357 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10359 # platforms (ab)use it in PIC code, but their linkers get confused if 10360 # the symbol is explicitly referenced. Since portable code cannot 10361 # rely on this symbol name, it's probably fine to never include it in 10362 # preloaded symbol tables. 10363 # Exclude shared library initialization/finalization symbols. 10364 extract_expsyms_cmds= 10365 10366 case $host_os in 10367 cygwin* | mingw* | pw32* | cegcc*) 10368 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10369 # When not using gcc, we currently assume that we are using 10370 # Microsoft Visual C++. 10371 if test yes != "$GCC"; then 10372 with_gnu_ld=no 10373 fi 10374 ;; 10375 interix*) 10376 # we just hope/assume this is gcc and not c89 (= MSVC++) 10377 with_gnu_ld=yes 10378 ;; 10379 openbsd* | bitrig*) 10380 with_gnu_ld=no 10381 ;; 10382 esac 10383 10384 ld_shlibs=yes 10385 10386 # On some targets, GNU ld is compatible enough with the native linker 10387 # that we're better off using the native interface for both. 10388 lt_use_gnu_ld_interface=no 10389 if test yes = "$with_gnu_ld"; then 10390 case $host_os in 10391 aix*) 10392 # The AIX port of GNU ld has always aspired to compatibility 10393 # with the native linker. However, as the warning in the GNU ld 10394 # block says, versions before 2.19.5* couldn't really create working 10395 # shared libraries, regardless of the interface used. 10396 case `$LD -v 2>&1` in 10397 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10398 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10399 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10400 *) 10401 lt_use_gnu_ld_interface=yes 10402 ;; 10403 esac 10404 ;; 10405 *) 10406 lt_use_gnu_ld_interface=yes 10407 ;; 10408 esac 10409 fi 10410 10411 if test yes = "$lt_use_gnu_ld_interface"; then 10412 # If archive_cmds runs LD, not CC, wlarc should be empty 10413 wlarc='$wl' 10414 10415 # Set some defaults for GNU ld with shared library support. These 10416 # are reset later if shared libraries are not supported. Putting them 10417 # here allows them to be overridden if necessary. 10418 runpath_var=LD_RUN_PATH 10419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10420 export_dynamic_flag_spec='$wl--export-dynamic' 10421 # ancient GNU ld didn't support --whole-archive et. al. 10422 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10423 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10424 else 10425 whole_archive_flag_spec= 10426 fi 10427 supports_anon_versioning=no 10428 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10429 *GNU\ gold*) supports_anon_versioning=yes ;; 10430 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10431 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10432 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10433 *\ 2.11.*) ;; # other 2.11 versions 10434 *) supports_anon_versioning=yes ;; 10435 esac 10436 10437 # See if GNU ld supports shared libraries. 10438 case $host_os in 10439 aix[3-9]*) 10440 # On AIX/PPC, the GNU linker is very broken 10441 if test ia64 != "$host_cpu"; then 10442 ld_shlibs=no 10443 cat <<_LT_EOF 1>&2 10444 10445*** Warning: the GNU linker, at least up to release 2.19, is reported 10446*** to be unable to reliably create shared libraries on AIX. 10447*** Therefore, libtool is disabling shared libraries support. If you 10448*** really care for shared libraries, you may want to install binutils 10449*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10450*** You will then need to restart the configuration process. 10451 10452_LT_EOF 10453 fi 10454 ;; 10455 10456 amigaos*) 10457 case $host_cpu in 10458 powerpc) 10459 # see comment about AmigaOS4 .so support 10460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10461 archive_expsym_cmds='' 10462 ;; 10463 m68k) 10464 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)' 10465 hardcode_libdir_flag_spec='-L$libdir' 10466 hardcode_minus_L=yes 10467 ;; 10468 esac 10469 ;; 10470 10471 beos*) 10472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10473 allow_undefined_flag=unsupported 10474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10475 # support --undefined. This deserves some investigation. FIXME 10476 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10477 else 10478 ld_shlibs=no 10479 fi 10480 ;; 10481 10482 cygwin* | mingw* | pw32* | cegcc*) 10483 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10484 # as there is no search path for DLLs. 10485 hardcode_libdir_flag_spec='-L$libdir' 10486 export_dynamic_flag_spec='$wl--export-all-symbols' 10487 allow_undefined_flag=unsupported 10488 always_export_symbols=no 10489 enable_shared_with_static_runtimes=yes 10490 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' 10491 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10492 10493 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10495 # If the export-symbols file already is a .def file, use it as 10496 # is; otherwise, prepend EXPORTS... 10497 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10498 cp $export_symbols $output_objdir/$soname.def; 10499 else 10500 echo EXPORTS > $output_objdir/$soname.def; 10501 cat $export_symbols >> $output_objdir/$soname.def; 10502 fi~ 10503 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10504 else 10505 ld_shlibs=no 10506 fi 10507 ;; 10508 10509 haiku*) 10510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10511 link_all_deplibs=yes 10512 ;; 10513 10514 os2*) 10515 hardcode_libdir_flag_spec='-L$libdir' 10516 hardcode_minus_L=yes 10517 allow_undefined_flag=unsupported 10518 shrext_cmds=.dll 10519 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10520 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10521 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10522 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10523 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10524 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10525 emximp -o $lib $output_objdir/$libname.def' 10526 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10527 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10528 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10529 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10530 prefix_cmds="$SED"~ 10531 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10532 prefix_cmds="$prefix_cmds -e 1d"; 10533 fi~ 10534 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10535 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10537 emximp -o $lib $output_objdir/$libname.def' 10538 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10539 enable_shared_with_static_runtimes=yes 10540 ;; 10541 10542 interix[3-9]*) 10543 hardcode_direct=no 10544 hardcode_shlibpath_var=no 10545 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10546 export_dynamic_flag_spec='$wl-E' 10547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10548 # Instead, shared libraries are loaded at an image base (0x10000000 by 10549 # default) and relocated if they conflict, which is a slow very memory 10550 # consuming and fragmenting process. To avoid this, we pick a random, 10551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10552 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10554 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' 10555 ;; 10556 10557 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10558 tmp_diet=no 10559 if test linux-dietlibc = "$host_os"; then 10560 case $cc_basename in 10561 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10562 esac 10563 fi 10564 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10565 && test no = "$tmp_diet" 10566 then 10567 tmp_addflag=' $pic_flag' 10568 tmp_sharedflag='-shared' 10569 case $cc_basename,$host_cpu in 10570 pgcc*) # Portland Group C compiler 10571 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' 10572 tmp_addflag=' $pic_flag' 10573 ;; 10574 pgf77* | pgf90* | pgf95* | pgfortran*) 10575 # Portland Group f77 and f90 compilers 10576 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' 10577 tmp_addflag=' $pic_flag -Mnomain' ;; 10578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10579 tmp_addflag=' -i_dynamic' ;; 10580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10581 tmp_addflag=' -i_dynamic -nofor_main' ;; 10582 ifc* | ifort*) # Intel Fortran compiler 10583 tmp_addflag=' -nofor_main' ;; 10584 lf95*) # Lahey Fortran 8.1 10585 whole_archive_flag_spec= 10586 tmp_sharedflag='--shared' ;; 10587 nagfor*) # NAGFOR 5.3 10588 tmp_sharedflag='-Wl,-shared' ;; 10589 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10590 tmp_sharedflag='-qmkshrobj' 10591 tmp_addflag= ;; 10592 nvcc*) # Cuda Compiler Driver 2.2 10593 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' 10594 compiler_needs_object=yes 10595 ;; 10596 esac 10597 case `$CC -V 2>&1 | sed 5q` in 10598 *Sun\ C*) # Sun C 5.9 10599 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' 10600 compiler_needs_object=yes 10601 tmp_sharedflag='-G' ;; 10602 *Sun\ F*) # Sun Fortran 8.3 10603 tmp_sharedflag='-G' ;; 10604 esac 10605 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10606 10607 if test yes = "$supports_anon_versioning"; then 10608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10610 echo "local: *; };" >> $output_objdir/$libname.ver~ 10611 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10612 fi 10613 10614 case $cc_basename in 10615 tcc*) 10616 export_dynamic_flag_spec='-rdynamic' 10617 ;; 10618 xlf* | bgf* | bgxlf* | mpixlf*) 10619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10620 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10621 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10622 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10623 if test yes = "$supports_anon_versioning"; then 10624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10626 echo "local: *; };" >> $output_objdir/$libname.ver~ 10627 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10628 fi 10629 ;; 10630 esac 10631 else 10632 ld_shlibs=no 10633 fi 10634 ;; 10635 10636 netbsd*) 10637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10639 wlarc= 10640 else 10641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10643 fi 10644 ;; 10645 10646 solaris*) 10647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10648 ld_shlibs=no 10649 cat <<_LT_EOF 1>&2 10650 10651*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10652*** create shared libraries on Solaris systems. Therefore, libtool 10653*** is disabling shared libraries support. We urge you to upgrade GNU 10654*** binutils to release 2.9.1 or newer. Another option is to modify 10655*** your PATH or compiler configuration so that the native linker is 10656*** used, and then restart. 10657 10658_LT_EOF 10659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10662 else 10663 ld_shlibs=no 10664 fi 10665 ;; 10666 10667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10668 case `$LD -v 2>&1` in 10669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10670 ld_shlibs=no 10671 cat <<_LT_EOF 1>&2 10672 10673*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10674*** reliably create shared libraries on SCO systems. Therefore, libtool 10675*** is disabling shared libraries support. We urge you to upgrade GNU 10676*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10677*** your PATH or compiler configuration so that the native linker is 10678*** used, and then restart. 10679 10680_LT_EOF 10681 ;; 10682 *) 10683 # For security reasons, it is highly recommended that you always 10684 # use absolute paths for naming shared libraries, and exclude the 10685 # DT_RUNPATH tag from executables and libraries. But doing so 10686 # requires that you compile everything twice, which is a pain. 10687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10691 else 10692 ld_shlibs=no 10693 fi 10694 ;; 10695 esac 10696 ;; 10697 10698 sunos4*) 10699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10700 wlarc= 10701 hardcode_direct=yes 10702 hardcode_shlibpath_var=no 10703 ;; 10704 10705 *) 10706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10709 else 10710 ld_shlibs=no 10711 fi 10712 ;; 10713 esac 10714 10715 if test no = "$ld_shlibs"; then 10716 runpath_var= 10717 hardcode_libdir_flag_spec= 10718 export_dynamic_flag_spec= 10719 whole_archive_flag_spec= 10720 fi 10721 else 10722 # PORTME fill in a description of your system's linker (not GNU ld) 10723 case $host_os in 10724 aix3*) 10725 allow_undefined_flag=unsupported 10726 always_export_symbols=yes 10727 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' 10728 # Note: this linker hardcodes the directories in LIBPATH if there 10729 # are no directories specified by -L. 10730 hardcode_minus_L=yes 10731 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10732 # Neither direct hardcoding nor static linking is supported with a 10733 # broken collect2. 10734 hardcode_direct=unsupported 10735 fi 10736 ;; 10737 10738 aix[4-9]*) 10739 if test ia64 = "$host_cpu"; then 10740 # On IA64, the linker does run time linking by default, so we don't 10741 # have to do anything special. 10742 aix_use_runtimelinking=no 10743 exp_sym_flag='-Bexport' 10744 no_entry_flag= 10745 else 10746 # If we're using GNU nm, then we don't want the "-C" option. 10747 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10748 # Without the "-l" option, or with the "-B" option, AIX nm treats 10749 # weak defined symbols like other global defined symbols, whereas 10750 # GNU nm marks them as "W". 10751 # While the 'weak' keyword is ignored in the Export File, we need 10752 # it in the Import File for the 'aix-soname' feature, so we have 10753 # to replace the "-B" option with "-P" for AIX nm. 10754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10755 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10756 else 10757 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10758 fi 10759 aix_use_runtimelinking=no 10760 10761 # Test if we are trying to use run time linking or normal 10762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10763 # have runtime linking enabled, and use it for executables. 10764 # For shared libraries, we enable/disable runtime linking 10765 # depending on the kind of the shared library created - 10766 # when "with_aix_soname,aix_use_runtimelinking" is: 10767 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10768 # "aix,yes" lib.so shared, rtl:yes, for executables 10769 # lib.a static archive 10770 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10771 # lib.a(lib.so.V) shared, rtl:no, for executables 10772 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10773 # lib.a(lib.so.V) shared, rtl:no 10774 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10775 # lib.a static archive 10776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10777 for ld_flag in $LDFLAGS; do 10778 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10779 aix_use_runtimelinking=yes 10780 break 10781 fi 10782 done 10783 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10784 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10785 # so we don't have lib.a shared libs to link our executables. 10786 # We have to force runtime linking in this case. 10787 aix_use_runtimelinking=yes 10788 LDFLAGS="$LDFLAGS -Wl,-brtl" 10789 fi 10790 ;; 10791 esac 10792 10793 exp_sym_flag='-bexport' 10794 no_entry_flag='-bnoentry' 10795 fi 10796 10797 # When large executables or shared objects are built, AIX ld can 10798 # have problems creating the table of contents. If linking a library 10799 # or program results in "error TOC overflow" add -mminimal-toc to 10800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10802 10803 archive_cmds='' 10804 hardcode_direct=yes 10805 hardcode_direct_absolute=yes 10806 hardcode_libdir_separator=':' 10807 link_all_deplibs=yes 10808 file_list_spec='$wl-f,' 10809 case $with_aix_soname,$aix_use_runtimelinking in 10810 aix,*) ;; # traditional, no import file 10811 svr4,* | *,yes) # use import file 10812 # The Import File defines what to hardcode. 10813 hardcode_direct=no 10814 hardcode_direct_absolute=no 10815 ;; 10816 esac 10817 10818 if test yes = "$GCC"; then 10819 case $host_os in aix4.[012]|aix4.[012].*) 10820 # We only want to do this on AIX 4.2 and lower, the check 10821 # below for broken collect2 doesn't work under 4.3+ 10822 collect2name=`$CC -print-prog-name=collect2` 10823 if test -f "$collect2name" && 10824 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10825 then 10826 # We have reworked collect2 10827 : 10828 else 10829 # We have old collect2 10830 hardcode_direct=unsupported 10831 # It fails to find uninstalled libraries when the uninstalled 10832 # path is not listed in the libpath. Setting hardcode_minus_L 10833 # to unsupported forces relinking 10834 hardcode_minus_L=yes 10835 hardcode_libdir_flag_spec='-L$libdir' 10836 hardcode_libdir_separator= 10837 fi 10838 ;; 10839 esac 10840 shared_flag='-shared' 10841 if test yes = "$aix_use_runtimelinking"; then 10842 shared_flag="$shared_flag "'$wl-G' 10843 fi 10844 # Need to ensure runtime linking is disabled for the traditional 10845 # shared library, or the linker may eventually find shared libraries 10846 # /with/ Import File - we do not want to mix them. 10847 shared_flag_aix='-shared' 10848 shared_flag_svr4='-shared $wl-G' 10849 else 10850 # not using gcc 10851 if test ia64 = "$host_cpu"; then 10852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10853 # chokes on -Wl,-G. The following line is correct: 10854 shared_flag='-G' 10855 else 10856 if test yes = "$aix_use_runtimelinking"; then 10857 shared_flag='$wl-G' 10858 else 10859 shared_flag='$wl-bM:SRE' 10860 fi 10861 shared_flag_aix='$wl-bM:SRE' 10862 shared_flag_svr4='$wl-G' 10863 fi 10864 fi 10865 10866 export_dynamic_flag_spec='$wl-bexpall' 10867 # It seems that -bexpall does not export symbols beginning with 10868 # underscore (_), so it is better to generate a list of symbols to export. 10869 always_export_symbols=yes 10870 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10871 # Warning - without using the other runtime loading flags (-brtl), 10872 # -berok will link without error, but may produce a broken library. 10873 allow_undefined_flag='-berok' 10874 # Determine the default libpath from the value encoded in an 10875 # empty executable. 10876 if test set = "${lt_cv_aix_libpath+set}"; then 10877 aix_libpath=$lt_cv_aix_libpath 10878else 10879 if ${lt_cv_aix_libpath_+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10883/* end confdefs.h. */ 10884 10885int 10886main () 10887{ 10888 10889 ; 10890 return 0; 10891} 10892_ACEOF 10893if ac_fn_c_try_link "$LINENO"; then : 10894 10895 lt_aix_libpath_sed=' 10896 /Import File Strings/,/^$/ { 10897 /^0/ { 10898 s/^0 *\([^ ]*\) *$/\1/ 10899 p 10900 } 10901 }' 10902 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10903 # Check for a 64-bit object if we didn't find anything. 10904 if test -z "$lt_cv_aix_libpath_"; then 10905 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10906 fi 10907fi 10908rm -f core conftest.err conftest.$ac_objext \ 10909 conftest$ac_exeext conftest.$ac_ext 10910 if test -z "$lt_cv_aix_libpath_"; then 10911 lt_cv_aix_libpath_=/usr/lib:/lib 10912 fi 10913 10914fi 10915 10916 aix_libpath=$lt_cv_aix_libpath_ 10917fi 10918 10919 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10920 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10921 else 10922 if test ia64 = "$host_cpu"; then 10923 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10924 allow_undefined_flag="-z nodefs" 10925 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" 10926 else 10927 # Determine the default libpath from the value encoded in an 10928 # empty executable. 10929 if test set = "${lt_cv_aix_libpath+set}"; then 10930 aix_libpath=$lt_cv_aix_libpath 10931else 10932 if ${lt_cv_aix_libpath_+:} false; then : 10933 $as_echo_n "(cached) " >&6 10934else 10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10936/* end confdefs.h. */ 10937 10938int 10939main () 10940{ 10941 10942 ; 10943 return 0; 10944} 10945_ACEOF 10946if ac_fn_c_try_link "$LINENO"; then : 10947 10948 lt_aix_libpath_sed=' 10949 /Import File Strings/,/^$/ { 10950 /^0/ { 10951 s/^0 *\([^ ]*\) *$/\1/ 10952 p 10953 } 10954 }' 10955 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10956 # Check for a 64-bit object if we didn't find anything. 10957 if test -z "$lt_cv_aix_libpath_"; then 10958 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10959 fi 10960fi 10961rm -f core conftest.err conftest.$ac_objext \ 10962 conftest$ac_exeext conftest.$ac_ext 10963 if test -z "$lt_cv_aix_libpath_"; then 10964 lt_cv_aix_libpath_=/usr/lib:/lib 10965 fi 10966 10967fi 10968 10969 aix_libpath=$lt_cv_aix_libpath_ 10970fi 10971 10972 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10973 # Warning - without using the other run time loading flags, 10974 # -berok will link without error, but may produce a broken library. 10975 no_undefined_flag=' $wl-bernotok' 10976 allow_undefined_flag=' $wl-berok' 10977 if test yes = "$with_gnu_ld"; then 10978 # We only use this code for GNU lds that support --whole-archive. 10979 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10980 else 10981 # Exported symbols can be pulled into shared objects from archives 10982 whole_archive_flag_spec='$convenience' 10983 fi 10984 archive_cmds_need_lc=yes 10985 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10986 # -brtl affects multiple linker settings, -berok does not and is overridden later 10987 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10988 if test svr4 != "$with_aix_soname"; then 10989 # This is similar to how AIX traditionally builds its shared libraries. 10990 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10991 fi 10992 if test aix != "$with_aix_soname"; then 10993 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10994 else 10995 # used by -dlpreopen to get the symbols 10996 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10997 fi 10998 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10999 fi 11000 fi 11001 ;; 11002 11003 amigaos*) 11004 case $host_cpu in 11005 powerpc) 11006 # see comment about AmigaOS4 .so support 11007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11008 archive_expsym_cmds='' 11009 ;; 11010 m68k) 11011 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)' 11012 hardcode_libdir_flag_spec='-L$libdir' 11013 hardcode_minus_L=yes 11014 ;; 11015 esac 11016 ;; 11017 11018 bsdi[45]*) 11019 export_dynamic_flag_spec=-rdynamic 11020 ;; 11021 11022 cygwin* | mingw* | pw32* | cegcc*) 11023 # When not using gcc, we currently assume that we are using 11024 # Microsoft Visual C++. 11025 # hardcode_libdir_flag_spec is actually meaningless, as there is 11026 # no search path for DLLs. 11027 case $cc_basename in 11028 cl*) 11029 # Native MSVC 11030 hardcode_libdir_flag_spec=' ' 11031 allow_undefined_flag=unsupported 11032 always_export_symbols=yes 11033 file_list_spec='@' 11034 # Tell ltmain to make .lib files, not .a files. 11035 libext=lib 11036 # Tell ltmain to make .dll files, not .so files. 11037 shrext_cmds=.dll 11038 # FIXME: Setting linknames here is a bad hack. 11039 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11040 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11041 cp "$export_symbols" "$output_objdir/$soname.def"; 11042 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11043 else 11044 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11045 fi~ 11046 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11047 linknames=' 11048 # The linker will not automatically build a static lib if we build a DLL. 11049 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11050 enable_shared_with_static_runtimes=yes 11051 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11053 # Don't use ranlib 11054 old_postinstall_cmds='chmod 644 $oldlib' 11055 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11056 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11057 case $lt_outputfile in 11058 *.exe|*.EXE) ;; 11059 *) 11060 lt_outputfile=$lt_outputfile.exe 11061 lt_tool_outputfile=$lt_tool_outputfile.exe 11062 ;; 11063 esac~ 11064 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11065 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11066 $RM "$lt_outputfile.manifest"; 11067 fi' 11068 ;; 11069 *) 11070 # Assume MSVC wrapper 11071 hardcode_libdir_flag_spec=' ' 11072 allow_undefined_flag=unsupported 11073 # Tell ltmain to make .lib files, not .a files. 11074 libext=lib 11075 # Tell ltmain to make .dll files, not .so files. 11076 shrext_cmds=.dll 11077 # FIXME: Setting linknames here is a bad hack. 11078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11079 # The linker will automatically build a .lib file if we build a DLL. 11080 old_archive_from_new_cmds='true' 11081 # FIXME: Should let the user specify the lib program. 11082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11083 enable_shared_with_static_runtimes=yes 11084 ;; 11085 esac 11086 ;; 11087 11088 darwin* | rhapsody*) 11089 11090 11091 archive_cmds_need_lc=no 11092 hardcode_direct=no 11093 hardcode_automatic=yes 11094 hardcode_shlibpath_var=unsupported 11095 if test yes = "$lt_cv_ld_force_load"; then 11096 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\"`' 11097 11098 else 11099 whole_archive_flag_spec='' 11100 fi 11101 link_all_deplibs=yes 11102 allow_undefined_flag=$_lt_dar_allow_undefined 11103 case $cc_basename in 11104 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11105 *) _lt_dar_can_shared=$GCC ;; 11106 esac 11107 if test yes = "$_lt_dar_can_shared"; then 11108 output_verbose_link_cmd=func_echo_all 11109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11111 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" 11112 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" 11113 11114 else 11115 ld_shlibs=no 11116 fi 11117 11118 ;; 11119 11120 dgux*) 11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11122 hardcode_libdir_flag_spec='-L$libdir' 11123 hardcode_shlibpath_var=no 11124 ;; 11125 11126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11127 # support. Future versions do this automatically, but an explicit c++rt0.o 11128 # does not break anything, and helps significantly (at the cost of a little 11129 # extra space). 11130 freebsd2.2*) 11131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11132 hardcode_libdir_flag_spec='-R$libdir' 11133 hardcode_direct=yes 11134 hardcode_shlibpath_var=no 11135 ;; 11136 11137 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11138 freebsd2.*) 11139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11140 hardcode_direct=yes 11141 hardcode_minus_L=yes 11142 hardcode_shlibpath_var=no 11143 ;; 11144 11145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11146 freebsd* | dragonfly*) 11147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11148 hardcode_libdir_flag_spec='-R$libdir' 11149 hardcode_direct=yes 11150 hardcode_shlibpath_var=no 11151 ;; 11152 11153 hpux9*) 11154 if test yes = "$GCC"; then 11155 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11156 else 11157 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11158 fi 11159 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11160 hardcode_libdir_separator=: 11161 hardcode_direct=yes 11162 11163 # hardcode_minus_L: Not really in the search PATH, 11164 # but as the default location of the library. 11165 hardcode_minus_L=yes 11166 export_dynamic_flag_spec='$wl-E' 11167 ;; 11168 11169 hpux10*) 11170 if test yes,no = "$GCC,$with_gnu_ld"; then 11171 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11172 else 11173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11174 fi 11175 if test no = "$with_gnu_ld"; then 11176 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11177 hardcode_libdir_separator=: 11178 hardcode_direct=yes 11179 hardcode_direct_absolute=yes 11180 export_dynamic_flag_spec='$wl-E' 11181 # hardcode_minus_L: Not really in the search PATH, 11182 # but as the default location of the library. 11183 hardcode_minus_L=yes 11184 fi 11185 ;; 11186 11187 hpux11*) 11188 if test yes,no = "$GCC,$with_gnu_ld"; then 11189 case $host_cpu in 11190 hppa*64*) 11191 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11192 ;; 11193 ia64*) 11194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11195 ;; 11196 *) 11197 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11198 ;; 11199 esac 11200 else 11201 case $host_cpu in 11202 hppa*64*) 11203 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11204 ;; 11205 ia64*) 11206 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11207 ;; 11208 *) 11209 11210 # Older versions of the 11.00 compiler do not understand -b yet 11211 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11213$as_echo_n "checking if $CC understands -b... " >&6; } 11214if ${lt_cv_prog_compiler__b+:} false; then : 11215 $as_echo_n "(cached) " >&6 11216else 11217 lt_cv_prog_compiler__b=no 11218 save_LDFLAGS=$LDFLAGS 11219 LDFLAGS="$LDFLAGS -b" 11220 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11222 # The linker can only warn and ignore the option if not recognized 11223 # So say no if there are warnings 11224 if test -s conftest.err; then 11225 # Append any errors to the config.log. 11226 cat conftest.err 1>&5 11227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11229 if diff conftest.exp conftest.er2 >/dev/null; then 11230 lt_cv_prog_compiler__b=yes 11231 fi 11232 else 11233 lt_cv_prog_compiler__b=yes 11234 fi 11235 fi 11236 $RM -r conftest* 11237 LDFLAGS=$save_LDFLAGS 11238 11239fi 11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11241$as_echo "$lt_cv_prog_compiler__b" >&6; } 11242 11243if test yes = "$lt_cv_prog_compiler__b"; then 11244 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11245else 11246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11247fi 11248 11249 ;; 11250 esac 11251 fi 11252 if test no = "$with_gnu_ld"; then 11253 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11254 hardcode_libdir_separator=: 11255 11256 case $host_cpu in 11257 hppa*64*|ia64*) 11258 hardcode_direct=no 11259 hardcode_shlibpath_var=no 11260 ;; 11261 *) 11262 hardcode_direct=yes 11263 hardcode_direct_absolute=yes 11264 export_dynamic_flag_spec='$wl-E' 11265 11266 # hardcode_minus_L: Not really in the search PATH, 11267 # but as the default location of the library. 11268 hardcode_minus_L=yes 11269 ;; 11270 esac 11271 fi 11272 ;; 11273 11274 irix5* | irix6* | nonstopux*) 11275 if test yes = "$GCC"; then 11276 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' 11277 # Try to use the -exported_symbol ld option, if it does not 11278 # work, assume that -exports_file does not work either and 11279 # implicitly export all symbols. 11280 # This should be the same for all languages, so no per-tag cache variable. 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11282$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11283if ${lt_cv_irix_exported_symbol+:} false; then : 11284 $as_echo_n "(cached) " >&6 11285else 11286 save_LDFLAGS=$LDFLAGS 11287 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289/* end confdefs.h. */ 11290int foo (void) { return 0; } 11291_ACEOF 11292if ac_fn_c_try_link "$LINENO"; then : 11293 lt_cv_irix_exported_symbol=yes 11294else 11295 lt_cv_irix_exported_symbol=no 11296fi 11297rm -f core conftest.err conftest.$ac_objext \ 11298 conftest$ac_exeext conftest.$ac_ext 11299 LDFLAGS=$save_LDFLAGS 11300fi 11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11302$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11303 if test yes = "$lt_cv_irix_exported_symbol"; then 11304 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' 11305 fi 11306 else 11307 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' 11308 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' 11309 fi 11310 archive_cmds_need_lc='no' 11311 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11312 hardcode_libdir_separator=: 11313 inherit_rpath=yes 11314 link_all_deplibs=yes 11315 ;; 11316 11317 linux*) 11318 case $cc_basename in 11319 tcc*) 11320 # Fabrice Bellard et al's Tiny C Compiler 11321 ld_shlibs=yes 11322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11323 ;; 11324 esac 11325 ;; 11326 11327 netbsd*) 11328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11330 else 11331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11332 fi 11333 hardcode_libdir_flag_spec='-R$libdir' 11334 hardcode_direct=yes 11335 hardcode_shlibpath_var=no 11336 ;; 11337 11338 newsos6) 11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11340 hardcode_direct=yes 11341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11342 hardcode_libdir_separator=: 11343 hardcode_shlibpath_var=no 11344 ;; 11345 11346 *nto* | *qnx*) 11347 ;; 11348 11349 openbsd* | bitrig*) 11350 if test -f /usr/libexec/ld.so; then 11351 hardcode_direct=yes 11352 hardcode_shlibpath_var=no 11353 hardcode_direct_absolute=yes 11354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11356 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11357 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11358 export_dynamic_flag_spec='$wl-E' 11359 else 11360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11361 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11362 fi 11363 else 11364 ld_shlibs=no 11365 fi 11366 ;; 11367 11368 os2*) 11369 hardcode_libdir_flag_spec='-L$libdir' 11370 hardcode_minus_L=yes 11371 allow_undefined_flag=unsupported 11372 shrext_cmds=.dll 11373 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11374 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11375 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11376 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11377 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11378 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11379 emximp -o $lib $output_objdir/$libname.def' 11380 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11381 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11382 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11383 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11384 prefix_cmds="$SED"~ 11385 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11386 prefix_cmds="$prefix_cmds -e 1d"; 11387 fi~ 11388 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11389 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11390 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11391 emximp -o $lib $output_objdir/$libname.def' 11392 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11393 enable_shared_with_static_runtimes=yes 11394 ;; 11395 11396 osf3*) 11397 if test yes = "$GCC"; then 11398 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11399 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' 11400 else 11401 allow_undefined_flag=' -expect_unresolved \*' 11402 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' 11403 fi 11404 archive_cmds_need_lc='no' 11405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11406 hardcode_libdir_separator=: 11407 ;; 11408 11409 osf4* | osf5*) # as osf3* with the addition of -msym flag 11410 if test yes = "$GCC"; then 11411 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11412 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' 11413 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11414 else 11415 allow_undefined_flag=' -expect_unresolved \*' 11416 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' 11417 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~ 11418 $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' 11419 11420 # Both c and cxx compiler support -rpath directly 11421 hardcode_libdir_flag_spec='-rpath $libdir' 11422 fi 11423 archive_cmds_need_lc='no' 11424 hardcode_libdir_separator=: 11425 ;; 11426 11427 solaris*) 11428 no_undefined_flag=' -z defs' 11429 if test yes = "$GCC"; then 11430 wlarc='$wl' 11431 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11433 $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' 11434 else 11435 case `$CC -V 2>&1` in 11436 *"Compilers 5.0"*) 11437 wlarc='' 11438 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11440 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11441 ;; 11442 *) 11443 wlarc='$wl' 11444 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11446 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11447 ;; 11448 esac 11449 fi 11450 hardcode_libdir_flag_spec='-R$libdir' 11451 hardcode_shlibpath_var=no 11452 case $host_os in 11453 solaris2.[0-5] | solaris2.[0-5].*) ;; 11454 *) 11455 # The compiler driver will combine and reorder linker options, 11456 # but understands '-z linker_flag'. GCC discards it without '$wl', 11457 # but is careful enough not to reorder. 11458 # Supported since Solaris 2.6 (maybe 2.5.1?) 11459 if test yes = "$GCC"; then 11460 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11461 else 11462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11463 fi 11464 ;; 11465 esac 11466 link_all_deplibs=yes 11467 ;; 11468 11469 sunos4*) 11470 if test sequent = "$host_vendor"; then 11471 # Use $CC to link under sequent, because it throws in some extra .o 11472 # files that make .init and .fini sections work. 11473 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11474 else 11475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11476 fi 11477 hardcode_libdir_flag_spec='-L$libdir' 11478 hardcode_direct=yes 11479 hardcode_minus_L=yes 11480 hardcode_shlibpath_var=no 11481 ;; 11482 11483 sysv4) 11484 case $host_vendor in 11485 sni) 11486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11487 hardcode_direct=yes # is this really true??? 11488 ;; 11489 siemens) 11490 ## LD is ld it makes a PLAMLIB 11491 ## CC just makes a GrossModule. 11492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11493 reload_cmds='$CC -r -o $output$reload_objs' 11494 hardcode_direct=no 11495 ;; 11496 motorola) 11497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11499 ;; 11500 esac 11501 runpath_var='LD_RUN_PATH' 11502 hardcode_shlibpath_var=no 11503 ;; 11504 11505 sysv4.3*) 11506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11507 hardcode_shlibpath_var=no 11508 export_dynamic_flag_spec='-Bexport' 11509 ;; 11510 11511 sysv4*MP*) 11512 if test -d /usr/nec; then 11513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11514 hardcode_shlibpath_var=no 11515 runpath_var=LD_RUN_PATH 11516 hardcode_runpath_var=yes 11517 ld_shlibs=yes 11518 fi 11519 ;; 11520 11521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11522 no_undefined_flag='$wl-z,text' 11523 archive_cmds_need_lc=no 11524 hardcode_shlibpath_var=no 11525 runpath_var='LD_RUN_PATH' 11526 11527 if test yes = "$GCC"; then 11528 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11529 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11530 else 11531 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11532 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11533 fi 11534 ;; 11535 11536 sysv5* | sco3.2v5* | sco5v6*) 11537 # Note: We CANNOT use -z defs as we might desire, because we do not 11538 # link with -lc, and that would cause any symbols used from libc to 11539 # always be unresolved, which means just about no library would 11540 # ever link correctly. If we're not using GNU ld we use -z text 11541 # though, which does catch some bad symbols but isn't as heavy-handed 11542 # as -z defs. 11543 no_undefined_flag='$wl-z,text' 11544 allow_undefined_flag='$wl-z,nodefs' 11545 archive_cmds_need_lc=no 11546 hardcode_shlibpath_var=no 11547 hardcode_libdir_flag_spec='$wl-R,$libdir' 11548 hardcode_libdir_separator=':' 11549 link_all_deplibs=yes 11550 export_dynamic_flag_spec='$wl-Bexport' 11551 runpath_var='LD_RUN_PATH' 11552 11553 if test yes = "$GCC"; then 11554 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11555 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11556 else 11557 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11558 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11559 fi 11560 ;; 11561 11562 uts4*) 11563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11564 hardcode_libdir_flag_spec='-L$libdir' 11565 hardcode_shlibpath_var=no 11566 ;; 11567 11568 *) 11569 ld_shlibs=no 11570 ;; 11571 esac 11572 11573 if test sni = "$host_vendor"; then 11574 case $host in 11575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11576 export_dynamic_flag_spec='$wl-Blargedynsym' 11577 ;; 11578 esac 11579 fi 11580 fi 11581 11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11583$as_echo "$ld_shlibs" >&6; } 11584test no = "$ld_shlibs" && can_build_shared=no 11585 11586with_gnu_ld=$with_gnu_ld 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602# 11603# Do we need to explicitly link libc? 11604# 11605case "x$archive_cmds_need_lc" in 11606x|xyes) 11607 # Assume -lc should be added 11608 archive_cmds_need_lc=yes 11609 11610 if test yes,yes = "$GCC,$enable_shared"; then 11611 case $archive_cmds in 11612 *'~'*) 11613 # FIXME: we may have to deal with multi-command sequences. 11614 ;; 11615 '$CC '*) 11616 # Test whether the compiler implicitly links with -lc since on some 11617 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11618 # to ld, don't add -lc before -lgcc. 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11620$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11621if ${lt_cv_archive_cmds_need_lc+:} false; then : 11622 $as_echo_n "(cached) " >&6 11623else 11624 $RM conftest* 11625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11626 11627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11628 (eval $ac_compile) 2>&5 11629 ac_status=$? 11630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11631 test $ac_status = 0; } 2>conftest.err; then 11632 soname=conftest 11633 lib=conftest 11634 libobjs=conftest.$ac_objext 11635 deplibs= 11636 wl=$lt_prog_compiler_wl 11637 pic_flag=$lt_prog_compiler_pic 11638 compiler_flags=-v 11639 linker_flags=-v 11640 verstring= 11641 output_objdir=. 11642 libname=conftest 11643 lt_save_allow_undefined_flag=$allow_undefined_flag 11644 allow_undefined_flag= 11645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11646 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11647 ac_status=$? 11648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11649 test $ac_status = 0; } 11650 then 11651 lt_cv_archive_cmds_need_lc=no 11652 else 11653 lt_cv_archive_cmds_need_lc=yes 11654 fi 11655 allow_undefined_flag=$lt_save_allow_undefined_flag 11656 else 11657 cat conftest.err 1>&5 11658 fi 11659 $RM conftest* 11660 11661fi 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11663$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11664 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11665 ;; 11666 esac 11667 fi 11668 ;; 11669esac 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11823$as_echo_n "checking dynamic linker characteristics... " >&6; } 11824 11825if test yes = "$GCC"; then 11826 case $host_os in 11827 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11828 *) lt_awk_arg='/^libraries:/' ;; 11829 esac 11830 case $host_os in 11831 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11832 *) lt_sed_strip_eq='s|=/|/|g' ;; 11833 esac 11834 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11835 case $lt_search_path_spec in 11836 *\;*) 11837 # if the path contains ";" then we assume it to be the separator 11838 # otherwise default to the standard path separator (i.e. ":") - it is 11839 # assumed that no part of a normal pathname contains ";" but that should 11840 # okay in the real world where ";" in dirpaths is itself problematic. 11841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11842 ;; 11843 *) 11844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11845 ;; 11846 esac 11847 # Ok, now we have the path, separated by spaces, we can step through it 11848 # and add multilib dir if necessary... 11849 lt_tmp_lt_search_path_spec= 11850 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11851 # ...but if some path component already ends with the multilib dir we assume 11852 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11853 case "$lt_multi_os_dir; $lt_search_path_spec " in 11854 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11855 lt_multi_os_dir= 11856 ;; 11857 esac 11858 for lt_sys_path in $lt_search_path_spec; do 11859 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11861 elif test -n "$lt_multi_os_dir"; then 11862 test -d "$lt_sys_path" && \ 11863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11864 fi 11865 done 11866 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11867BEGIN {RS = " "; FS = "/|\n";} { 11868 lt_foo = ""; 11869 lt_count = 0; 11870 for (lt_i = NF; lt_i > 0; lt_i--) { 11871 if ($lt_i != "" && $lt_i != ".") { 11872 if ($lt_i == "..") { 11873 lt_count++; 11874 } else { 11875 if (lt_count == 0) { 11876 lt_foo = "/" $lt_i lt_foo; 11877 } else { 11878 lt_count--; 11879 } 11880 } 11881 } 11882 } 11883 if (lt_foo != "") { lt_freq[lt_foo]++; } 11884 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11885}'` 11886 # AWK program above erroneously prepends '/' to C:/dos/paths 11887 # for these hosts. 11888 case $host_os in 11889 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11890 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11891 esac 11892 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11893else 11894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11895fi 11896library_names_spec= 11897libname_spec='lib$name' 11898soname_spec= 11899shrext_cmds=.so 11900postinstall_cmds= 11901postuninstall_cmds= 11902finish_cmds= 11903finish_eval= 11904shlibpath_var= 11905shlibpath_overrides_runpath=unknown 11906version_type=none 11907dynamic_linker="$host_os ld.so" 11908sys_lib_dlsearch_path_spec="/lib /usr/lib" 11909need_lib_prefix=unknown 11910hardcode_into_libs=no 11911 11912# when you set need_version to no, make sure it does not cause -set_version 11913# flags to be left without arguments 11914need_version=unknown 11915 11916 11917 11918case $host_os in 11919aix3*) 11920 version_type=linux # correct to gnu/linux during the next big refactor 11921 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11922 shlibpath_var=LIBPATH 11923 11924 # AIX 3 has no versioning support, so we append a major version to the name. 11925 soname_spec='$libname$release$shared_ext$major' 11926 ;; 11927 11928aix[4-9]*) 11929 version_type=linux # correct to gnu/linux during the next big refactor 11930 need_lib_prefix=no 11931 need_version=no 11932 hardcode_into_libs=yes 11933 if test ia64 = "$host_cpu"; then 11934 # AIX 5 supports IA64 11935 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11936 shlibpath_var=LD_LIBRARY_PATH 11937 else 11938 # With GCC up to 2.95.x, collect2 would create an import file 11939 # for dependence libraries. The import file would start with 11940 # the line '#! .'. This would cause the generated library to 11941 # depend on '.', always an invalid library. This was fixed in 11942 # development snapshots of GCC prior to 3.0. 11943 case $host_os in 11944 aix4 | aix4.[01] | aix4.[01].*) 11945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11946 echo ' yes ' 11947 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11948 : 11949 else 11950 can_build_shared=no 11951 fi 11952 ;; 11953 esac 11954 # Using Import Files as archive members, it is possible to support 11955 # filename-based versioning of shared library archives on AIX. While 11956 # this would work for both with and without runtime linking, it will 11957 # prevent static linking of such archives. So we do filename-based 11958 # shared library versioning with .so extension only, which is used 11959 # when both runtime linking and shared linking is enabled. 11960 # Unfortunately, runtime linking may impact performance, so we do 11961 # not want this to be the default eventually. Also, we use the 11962 # versioned .so libs for executables only if there is the -brtl 11963 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11964 # To allow for filename-based versioning support, we need to create 11965 # libNAME.so.V as an archive file, containing: 11966 # *) an Import File, referring to the versioned filename of the 11967 # archive as well as the shared archive member, telling the 11968 # bitwidth (32 or 64) of that shared object, and providing the 11969 # list of exported symbols of that shared object, eventually 11970 # decorated with the 'weak' keyword 11971 # *) the shared object with the F_LOADONLY flag set, to really avoid 11972 # it being seen by the linker. 11973 # At run time we better use the real file rather than another symlink, 11974 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11975 11976 case $with_aix_soname,$aix_use_runtimelinking in 11977 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11978 # soname into executable. Probably we can add versioning support to 11979 # collect2, so additional links can be useful in future. 11980 aix,yes) # traditional libtool 11981 dynamic_linker='AIX unversionable lib.so' 11982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11983 # instead of lib<name>.a to let people know that these are not 11984 # typical AIX shared libraries. 11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11986 ;; 11987 aix,no) # traditional AIX only 11988 dynamic_linker='AIX lib.a(lib.so.V)' 11989 # We preserve .a as extension for shared libraries through AIX4.2 11990 # and later when we are not doing run time linking. 11991 library_names_spec='$libname$release.a $libname.a' 11992 soname_spec='$libname$release$shared_ext$major' 11993 ;; 11994 svr4,*) # full svr4 only 11995 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11996 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11997 # We do not specify a path in Import Files, so LIBPATH fires. 11998 shlibpath_overrides_runpath=yes 11999 ;; 12000 *,yes) # both, prefer svr4 12001 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12002 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12003 # unpreferred sharedlib libNAME.a needs extra handling 12004 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12005 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12006 # We do not specify a path in Import Files, so LIBPATH fires. 12007 shlibpath_overrides_runpath=yes 12008 ;; 12009 *,no) # both, prefer aix 12010 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12011 library_names_spec='$libname$release.a $libname.a' 12012 soname_spec='$libname$release$shared_ext$major' 12013 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12014 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12015 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12016 ;; 12017 esac 12018 shlibpath_var=LIBPATH 12019 fi 12020 ;; 12021 12022amigaos*) 12023 case $host_cpu in 12024 powerpc) 12025 # Since July 2007 AmigaOS4 officially supports .so libraries. 12026 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12028 ;; 12029 m68k) 12030 library_names_spec='$libname.ixlibrary $libname.a' 12031 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12032 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12033 ;; 12034 esac 12035 ;; 12036 12037beos*) 12038 library_names_spec='$libname$shared_ext' 12039 dynamic_linker="$host_os ld.so" 12040 shlibpath_var=LIBRARY_PATH 12041 ;; 12042 12043bsdi[45]*) 12044 version_type=linux # correct to gnu/linux during the next big refactor 12045 need_version=no 12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12047 soname_spec='$libname$release$shared_ext$major' 12048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12049 shlibpath_var=LD_LIBRARY_PATH 12050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12052 # the default ld.so.conf also contains /usr/contrib/lib and 12053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12054 # libtool to hard-code these into programs 12055 ;; 12056 12057cygwin* | mingw* | pw32* | cegcc*) 12058 version_type=windows 12059 shrext_cmds=.dll 12060 need_version=no 12061 need_lib_prefix=no 12062 12063 case $GCC,$cc_basename in 12064 yes,*) 12065 # gcc 12066 library_names_spec='$libname.dll.a' 12067 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12068 postinstall_cmds='base_file=`basename \$file`~ 12069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12070 dldir=$destdir/`dirname \$dlpath`~ 12071 test -d \$dldir || mkdir -p \$dldir~ 12072 $install_prog $dir/$dlname \$dldir/$dlname~ 12073 chmod a+x \$dldir/$dlname~ 12074 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12075 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12076 fi' 12077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12078 dlpath=$dir/\$dldll~ 12079 $RM \$dlpath' 12080 shlibpath_overrides_runpath=yes 12081 12082 case $host_os in 12083 cygwin*) 12084 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12085 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12086 12087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12088 ;; 12089 mingw* | cegcc*) 12090 # MinGW DLLs use traditional 'lib' prefix 12091 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12092 ;; 12093 pw32*) 12094 # pw32 DLLs use 'pw' prefix rather than 'lib' 12095 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12096 ;; 12097 esac 12098 dynamic_linker='Win32 ld.exe' 12099 ;; 12100 12101 *,cl*) 12102 # Native MSVC 12103 libname_spec='$name' 12104 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12105 library_names_spec='$libname.dll.lib' 12106 12107 case $build_os in 12108 mingw*) 12109 sys_lib_search_path_spec= 12110 lt_save_ifs=$IFS 12111 IFS=';' 12112 for lt_path in $LIB 12113 do 12114 IFS=$lt_save_ifs 12115 # Let DOS variable expansion print the short 8.3 style file name. 12116 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12117 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12118 done 12119 IFS=$lt_save_ifs 12120 # Convert to MSYS style. 12121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12122 ;; 12123 cygwin*) 12124 # Convert to unix form, then to dos form, then back to unix form 12125 # but this time dos style (no spaces!) so that the unix form looks 12126 # like /cygdrive/c/PROGRA~1:/cygdr... 12127 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12128 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12129 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12130 ;; 12131 *) 12132 sys_lib_search_path_spec=$LIB 12133 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12134 # It is most probably a Windows format PATH. 12135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12136 else 12137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12138 fi 12139 # FIXME: find the short name or the path components, as spaces are 12140 # common. (e.g. "Program Files" -> "PROGRA~1") 12141 ;; 12142 esac 12143 12144 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12145 postinstall_cmds='base_file=`basename \$file`~ 12146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12147 dldir=$destdir/`dirname \$dlpath`~ 12148 test -d \$dldir || mkdir -p \$dldir~ 12149 $install_prog $dir/$dlname \$dldir/$dlname' 12150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12151 dlpath=$dir/\$dldll~ 12152 $RM \$dlpath' 12153 shlibpath_overrides_runpath=yes 12154 dynamic_linker='Win32 link.exe' 12155 ;; 12156 12157 *) 12158 # Assume MSVC wrapper 12159 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12160 dynamic_linker='Win32 ld.exe' 12161 ;; 12162 esac 12163 # FIXME: first we should search . and the directory the executable is in 12164 shlibpath_var=PATH 12165 ;; 12166 12167darwin* | rhapsody*) 12168 dynamic_linker="$host_os dyld" 12169 version_type=darwin 12170 need_lib_prefix=no 12171 need_version=no 12172 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12173 soname_spec='$libname$release$major$shared_ext' 12174 shlibpath_overrides_runpath=yes 12175 shlibpath_var=DYLD_LIBRARY_PATH 12176 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12177 12178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12180 ;; 12181 12182dgux*) 12183 version_type=linux # correct to gnu/linux during the next big refactor 12184 need_lib_prefix=no 12185 need_version=no 12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12187 soname_spec='$libname$release$shared_ext$major' 12188 shlibpath_var=LD_LIBRARY_PATH 12189 ;; 12190 12191freebsd* | dragonfly*) 12192 # DragonFly does not have aout. When/if they implement a new 12193 # versioning mechanism, adjust this. 12194 if test -x /usr/bin/objformat; then 12195 objformat=`/usr/bin/objformat` 12196 else 12197 case $host_os in 12198 freebsd[23].*) objformat=aout ;; 12199 *) objformat=elf ;; 12200 esac 12201 fi 12202 version_type=freebsd-$objformat 12203 case $version_type in 12204 freebsd-elf*) 12205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12206 soname_spec='$libname$release$shared_ext$major' 12207 need_version=no 12208 need_lib_prefix=no 12209 ;; 12210 freebsd-*) 12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12212 need_version=yes 12213 ;; 12214 esac 12215 shlibpath_var=LD_LIBRARY_PATH 12216 case $host_os in 12217 freebsd2.*) 12218 shlibpath_overrides_runpath=yes 12219 ;; 12220 freebsd3.[01]* | freebsdelf3.[01]*) 12221 shlibpath_overrides_runpath=yes 12222 hardcode_into_libs=yes 12223 ;; 12224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12226 shlibpath_overrides_runpath=no 12227 hardcode_into_libs=yes 12228 ;; 12229 *) # from 4.6 on, and DragonFly 12230 shlibpath_overrides_runpath=yes 12231 hardcode_into_libs=yes 12232 ;; 12233 esac 12234 ;; 12235 12236haiku*) 12237 version_type=linux # correct to gnu/linux during the next big refactor 12238 need_lib_prefix=no 12239 need_version=no 12240 dynamic_linker="$host_os runtime_loader" 12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12242 soname_spec='$libname$release$shared_ext$major' 12243 shlibpath_var=LIBRARY_PATH 12244 shlibpath_overrides_runpath=no 12245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12246 hardcode_into_libs=yes 12247 ;; 12248 12249hpux9* | hpux10* | hpux11*) 12250 # Give a soname corresponding to the major version so that dld.sl refuses to 12251 # link against other versions. 12252 version_type=sunos 12253 need_lib_prefix=no 12254 need_version=no 12255 case $host_cpu in 12256 ia64*) 12257 shrext_cmds='.so' 12258 hardcode_into_libs=yes 12259 dynamic_linker="$host_os dld.so" 12260 shlibpath_var=LD_LIBRARY_PATH 12261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12263 soname_spec='$libname$release$shared_ext$major' 12264 if test 32 = "$HPUX_IA64_MODE"; then 12265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12266 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12267 else 12268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12269 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12270 fi 12271 ;; 12272 hppa*64*) 12273 shrext_cmds='.sl' 12274 hardcode_into_libs=yes 12275 dynamic_linker="$host_os dld.sl" 12276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12279 soname_spec='$libname$release$shared_ext$major' 12280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12282 ;; 12283 *) 12284 shrext_cmds='.sl' 12285 dynamic_linker="$host_os dld.sl" 12286 shlibpath_var=SHLIB_PATH 12287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12289 soname_spec='$libname$release$shared_ext$major' 12290 ;; 12291 esac 12292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12293 postinstall_cmds='chmod 555 $lib' 12294 # or fails outright, so override atomically: 12295 install_override_mode=555 12296 ;; 12297 12298interix[3-9]*) 12299 version_type=linux # correct to gnu/linux during the next big refactor 12300 need_lib_prefix=no 12301 need_version=no 12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12303 soname_spec='$libname$release$shared_ext$major' 12304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12305 shlibpath_var=LD_LIBRARY_PATH 12306 shlibpath_overrides_runpath=no 12307 hardcode_into_libs=yes 12308 ;; 12309 12310irix5* | irix6* | nonstopux*) 12311 case $host_os in 12312 nonstopux*) version_type=nonstopux ;; 12313 *) 12314 if test yes = "$lt_cv_prog_gnu_ld"; then 12315 version_type=linux # correct to gnu/linux during the next big refactor 12316 else 12317 version_type=irix 12318 fi ;; 12319 esac 12320 need_lib_prefix=no 12321 need_version=no 12322 soname_spec='$libname$release$shared_ext$major' 12323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12324 case $host_os in 12325 irix5* | nonstopux*) 12326 libsuff= shlibsuff= 12327 ;; 12328 *) 12329 case $LD in # libtool.m4 will add one of these switches to LD 12330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12331 libsuff= shlibsuff= libmagic=32-bit;; 12332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12333 libsuff=32 shlibsuff=N32 libmagic=N32;; 12334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12335 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12336 *) libsuff= shlibsuff= libmagic=never-match;; 12337 esac 12338 ;; 12339 esac 12340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12341 shlibpath_overrides_runpath=no 12342 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12343 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12344 hardcode_into_libs=yes 12345 ;; 12346 12347# No shared lib support for Linux oldld, aout, or coff. 12348linux*oldld* | linux*aout* | linux*coff*) 12349 dynamic_linker=no 12350 ;; 12351 12352linux*android*) 12353 version_type=none # Android doesn't support versioned libraries. 12354 need_lib_prefix=no 12355 need_version=no 12356 library_names_spec='$libname$release$shared_ext' 12357 soname_spec='$libname$release$shared_ext' 12358 finish_cmds= 12359 shlibpath_var=LD_LIBRARY_PATH 12360 shlibpath_overrides_runpath=yes 12361 12362 # This implies no fast_install, which is unacceptable. 12363 # Some rework will be needed to allow for fast_install 12364 # before this can be enabled. 12365 hardcode_into_libs=yes 12366 12367 dynamic_linker='Android linker' 12368 # Don't embed -rpath directories since the linker doesn't support them. 12369 hardcode_libdir_flag_spec='-L$libdir' 12370 ;; 12371 12372# This must be glibc/ELF. 12373linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12374 version_type=linux # correct to gnu/linux during the next big refactor 12375 need_lib_prefix=no 12376 need_version=no 12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12378 soname_spec='$libname$release$shared_ext$major' 12379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12380 shlibpath_var=LD_LIBRARY_PATH 12381 shlibpath_overrides_runpath=no 12382 12383 # Some binutils ld are patched to set DT_RUNPATH 12384 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12385 $as_echo_n "(cached) " >&6 12386else 12387 lt_cv_shlibpath_overrides_runpath=no 12388 save_LDFLAGS=$LDFLAGS 12389 save_libdir=$libdir 12390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394 12395int 12396main () 12397{ 12398 12399 ; 12400 return 0; 12401} 12402_ACEOF 12403if ac_fn_c_try_link "$LINENO"; then : 12404 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12405 lt_cv_shlibpath_overrides_runpath=yes 12406fi 12407fi 12408rm -f core conftest.err conftest.$ac_objext \ 12409 conftest$ac_exeext conftest.$ac_ext 12410 LDFLAGS=$save_LDFLAGS 12411 libdir=$save_libdir 12412 12413fi 12414 12415 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12416 12417 # This implies no fast_install, which is unacceptable. 12418 # Some rework will be needed to allow for fast_install 12419 # before this can be enabled. 12420 hardcode_into_libs=yes 12421 12422 # Ideally, we could use ldconfig to report *all* directores which are 12423 # searched for libraries, however this is still not possible. Aside from not 12424 # being certain /sbin/ldconfig is available, command 12425 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12426 # even though it is searched at run-time. Try to do the best guess by 12427 # appending ld.so.conf contents (and includes) to the search path. 12428 if test -f /etc/ld.so.conf; then 12429 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' ' '` 12430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12431 fi 12432 12433 # We used to test for /lib/ld.so.1 and disable shared libraries on 12434 # powerpc, because MkLinux only supported shared libraries with the 12435 # GNU dynamic linker. Since this was broken with cross compilers, 12436 # most powerpc-linux boxes support dynamic linking these days and 12437 # people can always --disable-shared, the test was removed, and we 12438 # assume the GNU/Linux dynamic linker is in use. 12439 dynamic_linker='GNU/Linux ld.so' 12440 ;; 12441 12442netbsd*) 12443 version_type=sunos 12444 need_lib_prefix=no 12445 need_version=no 12446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12449 dynamic_linker='NetBSD (a.out) ld.so' 12450 else 12451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12452 soname_spec='$libname$release$shared_ext$major' 12453 dynamic_linker='NetBSD ld.elf_so' 12454 fi 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=yes 12457 hardcode_into_libs=yes 12458 ;; 12459 12460newsos6) 12461 version_type=linux # correct to gnu/linux during the next big refactor 12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12463 shlibpath_var=LD_LIBRARY_PATH 12464 shlibpath_overrides_runpath=yes 12465 ;; 12466 12467*nto* | *qnx*) 12468 version_type=qnx 12469 need_lib_prefix=no 12470 need_version=no 12471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12472 soname_spec='$libname$release$shared_ext$major' 12473 shlibpath_var=LD_LIBRARY_PATH 12474 shlibpath_overrides_runpath=no 12475 hardcode_into_libs=yes 12476 dynamic_linker='ldqnx.so' 12477 ;; 12478 12479openbsd* | bitrig*) 12480 version_type=sunos 12481 sys_lib_dlsearch_path_spec=/usr/lib 12482 need_lib_prefix=no 12483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12484 need_version=no 12485 else 12486 need_version=yes 12487 fi 12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12490 shlibpath_var=LD_LIBRARY_PATH 12491 shlibpath_overrides_runpath=yes 12492 ;; 12493 12494os2*) 12495 libname_spec='$name' 12496 version_type=windows 12497 shrext_cmds=.dll 12498 need_version=no 12499 need_lib_prefix=no 12500 # OS/2 can only load a DLL with a base name of 8 characters or less. 12501 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12502 v=$($ECHO $release$versuffix | tr -d .-); 12503 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12504 $ECHO $n$v`$shared_ext' 12505 library_names_spec='${libname}_dll.$libext' 12506 dynamic_linker='OS/2 ld.exe' 12507 shlibpath_var=BEGINLIBPATH 12508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12510 postinstall_cmds='base_file=`basename \$file`~ 12511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12512 dldir=$destdir/`dirname \$dlpath`~ 12513 test -d \$dldir || mkdir -p \$dldir~ 12514 $install_prog $dir/$dlname \$dldir/$dlname~ 12515 chmod a+x \$dldir/$dlname~ 12516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12518 fi' 12519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12520 dlpath=$dir/\$dldll~ 12521 $RM \$dlpath' 12522 ;; 12523 12524osf3* | osf4* | osf5*) 12525 version_type=osf 12526 need_lib_prefix=no 12527 need_version=no 12528 soname_spec='$libname$release$shared_ext$major' 12529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12530 shlibpath_var=LD_LIBRARY_PATH 12531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12533 ;; 12534 12535rdos*) 12536 dynamic_linker=no 12537 ;; 12538 12539solaris*) 12540 version_type=linux # correct to gnu/linux during the next big refactor 12541 need_lib_prefix=no 12542 need_version=no 12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12544 soname_spec='$libname$release$shared_ext$major' 12545 shlibpath_var=LD_LIBRARY_PATH 12546 shlibpath_overrides_runpath=yes 12547 hardcode_into_libs=yes 12548 # ldd complains unless libraries are executable 12549 postinstall_cmds='chmod +x $lib' 12550 ;; 12551 12552sunos4*) 12553 version_type=sunos 12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12556 shlibpath_var=LD_LIBRARY_PATH 12557 shlibpath_overrides_runpath=yes 12558 if test yes = "$with_gnu_ld"; then 12559 need_lib_prefix=no 12560 fi 12561 need_version=yes 12562 ;; 12563 12564sysv4 | sysv4.3*) 12565 version_type=linux # correct to gnu/linux during the next big refactor 12566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12567 soname_spec='$libname$release$shared_ext$major' 12568 shlibpath_var=LD_LIBRARY_PATH 12569 case $host_vendor in 12570 sni) 12571 shlibpath_overrides_runpath=no 12572 need_lib_prefix=no 12573 runpath_var=LD_RUN_PATH 12574 ;; 12575 siemens) 12576 need_lib_prefix=no 12577 ;; 12578 motorola) 12579 need_lib_prefix=no 12580 need_version=no 12581 shlibpath_overrides_runpath=no 12582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12583 ;; 12584 esac 12585 ;; 12586 12587sysv4*MP*) 12588 if test -d /usr/nec; then 12589 version_type=linux # correct to gnu/linux during the next big refactor 12590 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12591 soname_spec='$libname$shared_ext.$major' 12592 shlibpath_var=LD_LIBRARY_PATH 12593 fi 12594 ;; 12595 12596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12597 version_type=sco 12598 need_lib_prefix=no 12599 need_version=no 12600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12601 soname_spec='$libname$release$shared_ext$major' 12602 shlibpath_var=LD_LIBRARY_PATH 12603 shlibpath_overrides_runpath=yes 12604 hardcode_into_libs=yes 12605 if test yes = "$with_gnu_ld"; then 12606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12607 else 12608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12609 case $host_os in 12610 sco3.2v5*) 12611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12612 ;; 12613 esac 12614 fi 12615 sys_lib_dlsearch_path_spec='/usr/lib' 12616 ;; 12617 12618tpf*) 12619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12620 version_type=linux # correct to gnu/linux during the next big refactor 12621 need_lib_prefix=no 12622 need_version=no 12623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12624 shlibpath_var=LD_LIBRARY_PATH 12625 shlibpath_overrides_runpath=no 12626 hardcode_into_libs=yes 12627 ;; 12628 12629uts4*) 12630 version_type=linux # correct to gnu/linux during the next big refactor 12631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12632 soname_spec='$libname$release$shared_ext$major' 12633 shlibpath_var=LD_LIBRARY_PATH 12634 ;; 12635 12636*) 12637 dynamic_linker=no 12638 ;; 12639esac 12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12641$as_echo "$dynamic_linker" >&6; } 12642test no = "$dynamic_linker" && can_build_shared=no 12643 12644variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12645if test yes = "$GCC"; then 12646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12647fi 12648 12649if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12650 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12651fi 12652 12653if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12654 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12655fi 12656 12657# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12658configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12659 12660# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12661func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12662 12663# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12664configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12763$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12764hardcode_action= 12765if test -n "$hardcode_libdir_flag_spec" || 12766 test -n "$runpath_var" || 12767 test yes = "$hardcode_automatic"; then 12768 12769 # We can hardcode non-existent directories. 12770 if test no != "$hardcode_direct" && 12771 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12772 # have to relink, otherwise we might link with an installed library 12773 # when we should be linking with a yet-to-be-installed one 12774 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12775 test no != "$hardcode_minus_L"; then 12776 # Linking always hardcodes the temporary library directory. 12777 hardcode_action=relink 12778 else 12779 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12780 hardcode_action=immediate 12781 fi 12782else 12783 # We cannot hardcode anything, or else we can only hardcode existing 12784 # directories. 12785 hardcode_action=unsupported 12786fi 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12788$as_echo "$hardcode_action" >&6; } 12789 12790if test relink = "$hardcode_action" || 12791 test yes = "$inherit_rpath"; then 12792 # Fast installation is not supported 12793 enable_fast_install=no 12794elif test yes = "$shlibpath_overrides_runpath" || 12795 test no = "$enable_shared"; then 12796 # Fast installation is not necessary 12797 enable_fast_install=needless 12798fi 12799 12800 12801 12802 12803 12804 12805 if test yes != "$enable_dlopen"; then 12806 enable_dlopen=unknown 12807 enable_dlopen_self=unknown 12808 enable_dlopen_self_static=unknown 12809else 12810 lt_cv_dlopen=no 12811 lt_cv_dlopen_libs= 12812 12813 case $host_os in 12814 beos*) 12815 lt_cv_dlopen=load_add_on 12816 lt_cv_dlopen_libs= 12817 lt_cv_dlopen_self=yes 12818 ;; 12819 12820 mingw* | pw32* | cegcc*) 12821 lt_cv_dlopen=LoadLibrary 12822 lt_cv_dlopen_libs= 12823 ;; 12824 12825 cygwin*) 12826 lt_cv_dlopen=dlopen 12827 lt_cv_dlopen_libs= 12828 ;; 12829 12830 darwin*) 12831 # if libdl is installed we need to link against it 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12833$as_echo_n "checking for dlopen in -ldl... " >&6; } 12834if ${ac_cv_lib_dl_dlopen+:} false; then : 12835 $as_echo_n "(cached) " >&6 12836else 12837 ac_check_lib_save_LIBS=$LIBS 12838LIBS="-ldl $LIBS" 12839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841 12842/* Override any GCC internal prototype to avoid an error. 12843 Use char because int might match the return type of a GCC 12844 builtin and then its argument prototype would still apply. */ 12845#ifdef __cplusplus 12846extern "C" 12847#endif 12848char dlopen (); 12849int 12850main () 12851{ 12852return dlopen (); 12853 ; 12854 return 0; 12855} 12856_ACEOF 12857if ac_fn_c_try_link "$LINENO"; then : 12858 ac_cv_lib_dl_dlopen=yes 12859else 12860 ac_cv_lib_dl_dlopen=no 12861fi 12862rm -f core conftest.err conftest.$ac_objext \ 12863 conftest$ac_exeext conftest.$ac_ext 12864LIBS=$ac_check_lib_save_LIBS 12865fi 12866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12867$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12868if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12869 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12870else 12871 12872 lt_cv_dlopen=dyld 12873 lt_cv_dlopen_libs= 12874 lt_cv_dlopen_self=yes 12875 12876fi 12877 12878 ;; 12879 12880 tpf*) 12881 # Don't try to run any link tests for TPF. We know it's impossible 12882 # because TPF is a cross-compiler, and we know how we open DSOs. 12883 lt_cv_dlopen=dlopen 12884 lt_cv_dlopen_libs= 12885 lt_cv_dlopen_self=no 12886 ;; 12887 12888 *) 12889 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12890if test "x$ac_cv_func_shl_load" = xyes; then : 12891 lt_cv_dlopen=shl_load 12892else 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12894$as_echo_n "checking for shl_load in -ldld... " >&6; } 12895if ${ac_cv_lib_dld_shl_load+:} false; then : 12896 $as_echo_n "(cached) " >&6 12897else 12898 ac_check_lib_save_LIBS=$LIBS 12899LIBS="-ldld $LIBS" 12900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12901/* end confdefs.h. */ 12902 12903/* Override any GCC internal prototype to avoid an error. 12904 Use char because int might match the return type of a GCC 12905 builtin and then its argument prototype would still apply. */ 12906#ifdef __cplusplus 12907extern "C" 12908#endif 12909char shl_load (); 12910int 12911main () 12912{ 12913return shl_load (); 12914 ; 12915 return 0; 12916} 12917_ACEOF 12918if ac_fn_c_try_link "$LINENO"; then : 12919 ac_cv_lib_dld_shl_load=yes 12920else 12921 ac_cv_lib_dld_shl_load=no 12922fi 12923rm -f core conftest.err conftest.$ac_objext \ 12924 conftest$ac_exeext conftest.$ac_ext 12925LIBS=$ac_check_lib_save_LIBS 12926fi 12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12928$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12929if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12930 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12931else 12932 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12933if test "x$ac_cv_func_dlopen" = xyes; then : 12934 lt_cv_dlopen=dlopen 12935else 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12937$as_echo_n "checking for dlopen in -ldl... " >&6; } 12938if ${ac_cv_lib_dl_dlopen+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 ac_check_lib_save_LIBS=$LIBS 12942LIBS="-ldl $LIBS" 12943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12944/* end confdefs.h. */ 12945 12946/* Override any GCC internal prototype to avoid an error. 12947 Use char because int might match the return type of a GCC 12948 builtin and then its argument prototype would still apply. */ 12949#ifdef __cplusplus 12950extern "C" 12951#endif 12952char dlopen (); 12953int 12954main () 12955{ 12956return dlopen (); 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961if ac_fn_c_try_link "$LINENO"; then : 12962 ac_cv_lib_dl_dlopen=yes 12963else 12964 ac_cv_lib_dl_dlopen=no 12965fi 12966rm -f core conftest.err conftest.$ac_objext \ 12967 conftest$ac_exeext conftest.$ac_ext 12968LIBS=$ac_check_lib_save_LIBS 12969fi 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12971$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12972if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12973 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12974else 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12976$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12977if ${ac_cv_lib_svld_dlopen+:} false; then : 12978 $as_echo_n "(cached) " >&6 12979else 12980 ac_check_lib_save_LIBS=$LIBS 12981LIBS="-lsvld $LIBS" 12982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984 12985/* Override any GCC internal prototype to avoid an error. 12986 Use char because int might match the return type of a GCC 12987 builtin and then its argument prototype would still apply. */ 12988#ifdef __cplusplus 12989extern "C" 12990#endif 12991char dlopen (); 12992int 12993main () 12994{ 12995return dlopen (); 12996 ; 12997 return 0; 12998} 12999_ACEOF 13000if ac_fn_c_try_link "$LINENO"; then : 13001 ac_cv_lib_svld_dlopen=yes 13002else 13003 ac_cv_lib_svld_dlopen=no 13004fi 13005rm -f core conftest.err conftest.$ac_objext \ 13006 conftest$ac_exeext conftest.$ac_ext 13007LIBS=$ac_check_lib_save_LIBS 13008fi 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13010$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13011if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13012 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13013else 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13015$as_echo_n "checking for dld_link in -ldld... " >&6; } 13016if ${ac_cv_lib_dld_dld_link+:} false; then : 13017 $as_echo_n "(cached) " >&6 13018else 13019 ac_check_lib_save_LIBS=$LIBS 13020LIBS="-ldld $LIBS" 13021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13022/* end confdefs.h. */ 13023 13024/* Override any GCC internal prototype to avoid an error. 13025 Use char because int might match the return type of a GCC 13026 builtin and then its argument prototype would still apply. */ 13027#ifdef __cplusplus 13028extern "C" 13029#endif 13030char dld_link (); 13031int 13032main () 13033{ 13034return dld_link (); 13035 ; 13036 return 0; 13037} 13038_ACEOF 13039if ac_fn_c_try_link "$LINENO"; then : 13040 ac_cv_lib_dld_dld_link=yes 13041else 13042 ac_cv_lib_dld_dld_link=no 13043fi 13044rm -f core conftest.err conftest.$ac_objext \ 13045 conftest$ac_exeext conftest.$ac_ext 13046LIBS=$ac_check_lib_save_LIBS 13047fi 13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13049$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13050if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13051 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13052fi 13053 13054 13055fi 13056 13057 13058fi 13059 13060 13061fi 13062 13063 13064fi 13065 13066 13067fi 13068 13069 ;; 13070 esac 13071 13072 if test no = "$lt_cv_dlopen"; then 13073 enable_dlopen=no 13074 else 13075 enable_dlopen=yes 13076 fi 13077 13078 case $lt_cv_dlopen in 13079 dlopen) 13080 save_CPPFLAGS=$CPPFLAGS 13081 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13082 13083 save_LDFLAGS=$LDFLAGS 13084 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13085 13086 save_LIBS=$LIBS 13087 LIBS="$lt_cv_dlopen_libs $LIBS" 13088 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13090$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13091if ${lt_cv_dlopen_self+:} false; then : 13092 $as_echo_n "(cached) " >&6 13093else 13094 if test yes = "$cross_compiling"; then : 13095 lt_cv_dlopen_self=cross 13096else 13097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13098 lt_status=$lt_dlunknown 13099 cat > conftest.$ac_ext <<_LT_EOF 13100#line $LINENO "configure" 13101#include "confdefs.h" 13102 13103#if HAVE_DLFCN_H 13104#include <dlfcn.h> 13105#endif 13106 13107#include <stdio.h> 13108 13109#ifdef RTLD_GLOBAL 13110# define LT_DLGLOBAL RTLD_GLOBAL 13111#else 13112# ifdef DL_GLOBAL 13113# define LT_DLGLOBAL DL_GLOBAL 13114# else 13115# define LT_DLGLOBAL 0 13116# endif 13117#endif 13118 13119/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13120 find out it does not work in some platform. */ 13121#ifndef LT_DLLAZY_OR_NOW 13122# ifdef RTLD_LAZY 13123# define LT_DLLAZY_OR_NOW RTLD_LAZY 13124# else 13125# ifdef DL_LAZY 13126# define LT_DLLAZY_OR_NOW DL_LAZY 13127# else 13128# ifdef RTLD_NOW 13129# define LT_DLLAZY_OR_NOW RTLD_NOW 13130# else 13131# ifdef DL_NOW 13132# define LT_DLLAZY_OR_NOW DL_NOW 13133# else 13134# define LT_DLLAZY_OR_NOW 0 13135# endif 13136# endif 13137# endif 13138# endif 13139#endif 13140 13141/* When -fvisibility=hidden is used, assume the code has been annotated 13142 correspondingly for the symbols needed. */ 13143#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13144int fnord () __attribute__((visibility("default"))); 13145#endif 13146 13147int fnord () { return 42; } 13148int main () 13149{ 13150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13151 int status = $lt_dlunknown; 13152 13153 if (self) 13154 { 13155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13156 else 13157 { 13158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13159 else puts (dlerror ()); 13160 } 13161 /* dlclose (self); */ 13162 } 13163 else 13164 puts (dlerror ()); 13165 13166 return status; 13167} 13168_LT_EOF 13169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13170 (eval $ac_link) 2>&5 13171 ac_status=$? 13172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13173 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13174 (./conftest; exit; ) >&5 2>/dev/null 13175 lt_status=$? 13176 case x$lt_status in 13177 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13178 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13179 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13180 esac 13181 else : 13182 # compilation failed 13183 lt_cv_dlopen_self=no 13184 fi 13185fi 13186rm -fr conftest* 13187 13188 13189fi 13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13191$as_echo "$lt_cv_dlopen_self" >&6; } 13192 13193 if test yes = "$lt_cv_dlopen_self"; then 13194 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13196$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13197if ${lt_cv_dlopen_self_static+:} false; then : 13198 $as_echo_n "(cached) " >&6 13199else 13200 if test yes = "$cross_compiling"; then : 13201 lt_cv_dlopen_self_static=cross 13202else 13203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13204 lt_status=$lt_dlunknown 13205 cat > conftest.$ac_ext <<_LT_EOF 13206#line $LINENO "configure" 13207#include "confdefs.h" 13208 13209#if HAVE_DLFCN_H 13210#include <dlfcn.h> 13211#endif 13212 13213#include <stdio.h> 13214 13215#ifdef RTLD_GLOBAL 13216# define LT_DLGLOBAL RTLD_GLOBAL 13217#else 13218# ifdef DL_GLOBAL 13219# define LT_DLGLOBAL DL_GLOBAL 13220# else 13221# define LT_DLGLOBAL 0 13222# endif 13223#endif 13224 13225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13226 find out it does not work in some platform. */ 13227#ifndef LT_DLLAZY_OR_NOW 13228# ifdef RTLD_LAZY 13229# define LT_DLLAZY_OR_NOW RTLD_LAZY 13230# else 13231# ifdef DL_LAZY 13232# define LT_DLLAZY_OR_NOW DL_LAZY 13233# else 13234# ifdef RTLD_NOW 13235# define LT_DLLAZY_OR_NOW RTLD_NOW 13236# else 13237# ifdef DL_NOW 13238# define LT_DLLAZY_OR_NOW DL_NOW 13239# else 13240# define LT_DLLAZY_OR_NOW 0 13241# endif 13242# endif 13243# endif 13244# endif 13245#endif 13246 13247/* When -fvisibility=hidden is used, assume the code has been annotated 13248 correspondingly for the symbols needed. */ 13249#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13250int fnord () __attribute__((visibility("default"))); 13251#endif 13252 13253int fnord () { return 42; } 13254int main () 13255{ 13256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13257 int status = $lt_dlunknown; 13258 13259 if (self) 13260 { 13261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13262 else 13263 { 13264 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13265 else puts (dlerror ()); 13266 } 13267 /* dlclose (self); */ 13268 } 13269 else 13270 puts (dlerror ()); 13271 13272 return status; 13273} 13274_LT_EOF 13275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13276 (eval $ac_link) 2>&5 13277 ac_status=$? 13278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13279 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13280 (./conftest; exit; ) >&5 2>/dev/null 13281 lt_status=$? 13282 case x$lt_status in 13283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13285 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13286 esac 13287 else : 13288 # compilation failed 13289 lt_cv_dlopen_self_static=no 13290 fi 13291fi 13292rm -fr conftest* 13293 13294 13295fi 13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13297$as_echo "$lt_cv_dlopen_self_static" >&6; } 13298 fi 13299 13300 CPPFLAGS=$save_CPPFLAGS 13301 LDFLAGS=$save_LDFLAGS 13302 LIBS=$save_LIBS 13303 ;; 13304 esac 13305 13306 case $lt_cv_dlopen_self in 13307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13308 *) enable_dlopen_self=unknown ;; 13309 esac 13310 13311 case $lt_cv_dlopen_self_static in 13312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13313 *) enable_dlopen_self_static=unknown ;; 13314 esac 13315fi 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333striplib= 13334old_striplib= 13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13336$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13337if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13338 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13339 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13341$as_echo "yes" >&6; } 13342else 13343# FIXME - insert some real tests, host_os isn't really good enough 13344 case $host_os in 13345 darwin*) 13346 if test -n "$STRIP"; then 13347 striplib="$STRIP -x" 13348 old_striplib="$STRIP -S" 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13350$as_echo "yes" >&6; } 13351 else 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13353$as_echo "no" >&6; } 13354 fi 13355 ;; 13356 *) 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13358$as_echo "no" >&6; } 13359 ;; 13360 esac 13361fi 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 # Report what library types will actually be built 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13376$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13378$as_echo "$can_build_shared" >&6; } 13379 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13381$as_echo_n "checking whether to build shared libraries... " >&6; } 13382 test no = "$can_build_shared" && enable_shared=no 13383 13384 # On AIX, shared libraries and static libraries use the same namespace, and 13385 # are all built from PIC. 13386 case $host_os in 13387 aix3*) 13388 test yes = "$enable_shared" && enable_static=no 13389 if test -n "$RANLIB"; then 13390 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13391 postinstall_cmds='$RANLIB $lib' 13392 fi 13393 ;; 13394 13395 aix[4-9]*) 13396 if test ia64 != "$host_cpu"; then 13397 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13398 yes,aix,yes) ;; # shared object as lib.so file only 13399 yes,svr4,*) ;; # shared object as lib.so archive member only 13400 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13401 esac 13402 fi 13403 ;; 13404 esac 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13406$as_echo "$enable_shared" >&6; } 13407 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13409$as_echo_n "checking whether to build static libraries... " >&6; } 13410 # Make sure either enable_shared or enable_static is yes. 13411 test yes = "$enable_shared" || enable_static=yes 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13413$as_echo "$enable_static" >&6; } 13414 13415 13416 13417 13418fi 13419ac_ext=c 13420ac_cpp='$CPP $CPPFLAGS' 13421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13423ac_compiler_gnu=$ac_cv_c_compiler_gnu 13424 13425CC=$lt_save_CC 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 ac_config_commands="$ac_config_commands libtool" 13442 13443 13444 13445 13446# Only expand once: 13447 13448 13449 13450ac_ext=cpp 13451ac_cpp='$CXXCPP $CPPFLAGS' 13452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13455if test -z "$CXX"; then 13456 if test -n "$CCC"; then 13457 CXX=$CCC 13458 else 13459 if test -n "$ac_tool_prefix"; then 13460 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13461 do 13462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13463set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13465$as_echo_n "checking for $ac_word... " >&6; } 13466if ${ac_cv_prog_CXX+:} false; then : 13467 $as_echo_n "(cached) " >&6 13468else 13469 if test -n "$CXX"; then 13470 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13471else 13472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13473for as_dir in $PATH 13474do 13475 IFS=$as_save_IFS 13476 test -z "$as_dir" && as_dir=. 13477 for ac_exec_ext in '' $ac_executable_extensions; do 13478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13479 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13481 break 2 13482 fi 13483done 13484 done 13485IFS=$as_save_IFS 13486 13487fi 13488fi 13489CXX=$ac_cv_prog_CXX 13490if test -n "$CXX"; then 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13492$as_echo "$CXX" >&6; } 13493else 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13495$as_echo "no" >&6; } 13496fi 13497 13498 13499 test -n "$CXX" && break 13500 done 13501fi 13502if test -z "$CXX"; then 13503 ac_ct_CXX=$CXX 13504 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13505do 13506 # Extract the first word of "$ac_prog", so it can be a program name with args. 13507set dummy $ac_prog; ac_word=$2 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13509$as_echo_n "checking for $ac_word... " >&6; } 13510if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 if test -n "$ac_ct_CXX"; then 13514 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13515else 13516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13517for as_dir in $PATH 13518do 13519 IFS=$as_save_IFS 13520 test -z "$as_dir" && as_dir=. 13521 for ac_exec_ext in '' $ac_executable_extensions; do 13522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13523 ac_cv_prog_ac_ct_CXX="$ac_prog" 13524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13525 break 2 13526 fi 13527done 13528 done 13529IFS=$as_save_IFS 13530 13531fi 13532fi 13533ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13534if test -n "$ac_ct_CXX"; then 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13536$as_echo "$ac_ct_CXX" >&6; } 13537else 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13539$as_echo "no" >&6; } 13540fi 13541 13542 13543 test -n "$ac_ct_CXX" && break 13544done 13545 13546 if test "x$ac_ct_CXX" = x; then 13547 CXX="g++" 13548 else 13549 case $cross_compiling:$ac_tool_warned in 13550yes:) 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13553ac_tool_warned=yes ;; 13554esac 13555 CXX=$ac_ct_CXX 13556 fi 13557fi 13558 13559 fi 13560fi 13561# Provide some information about the compiler. 13562$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13563set X $ac_compile 13564ac_compiler=$2 13565for ac_option in --version -v -V -qversion; do 13566 { { ac_try="$ac_compiler $ac_option >&5" 13567case "(($ac_try" in 13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13569 *) ac_try_echo=$ac_try;; 13570esac 13571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13572$as_echo "$ac_try_echo"; } >&5 13573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13574 ac_status=$? 13575 if test -s conftest.err; then 13576 sed '10a\ 13577... rest of stderr output deleted ... 13578 10q' conftest.err >conftest.er1 13579 cat conftest.er1 >&5 13580 fi 13581 rm -f conftest.er1 conftest.err 13582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13583 test $ac_status = 0; } 13584done 13585 13586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13587$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13588if ${ac_cv_cxx_compiler_gnu+:} false; then : 13589 $as_echo_n "(cached) " >&6 13590else 13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593 13594int 13595main () 13596{ 13597#ifndef __GNUC__ 13598 choke me 13599#endif 13600 13601 ; 13602 return 0; 13603} 13604_ACEOF 13605if ac_fn_cxx_try_compile "$LINENO"; then : 13606 ac_compiler_gnu=yes 13607else 13608 ac_compiler_gnu=no 13609fi 13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13611ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13612 13613fi 13614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13615$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13616if test $ac_compiler_gnu = yes; then 13617 GXX=yes 13618else 13619 GXX= 13620fi 13621ac_test_CXXFLAGS=${CXXFLAGS+set} 13622ac_save_CXXFLAGS=$CXXFLAGS 13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13624$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13625if ${ac_cv_prog_cxx_g+:} false; then : 13626 $as_echo_n "(cached) " >&6 13627else 13628 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13629 ac_cxx_werror_flag=yes 13630 ac_cv_prog_cxx_g=no 13631 CXXFLAGS="-g" 13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13633/* end confdefs.h. */ 13634 13635int 13636main () 13637{ 13638 13639 ; 13640 return 0; 13641} 13642_ACEOF 13643if ac_fn_cxx_try_compile "$LINENO"; then : 13644 ac_cv_prog_cxx_g=yes 13645else 13646 CXXFLAGS="" 13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13648/* end confdefs.h. */ 13649 13650int 13651main () 13652{ 13653 13654 ; 13655 return 0; 13656} 13657_ACEOF 13658if ac_fn_cxx_try_compile "$LINENO"; then : 13659 13660else 13661 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13662 CXXFLAGS="-g" 13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13664/* end confdefs.h. */ 13665 13666int 13667main () 13668{ 13669 13670 ; 13671 return 0; 13672} 13673_ACEOF 13674if ac_fn_cxx_try_compile "$LINENO"; then : 13675 ac_cv_prog_cxx_g=yes 13676fi 13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13678fi 13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13680fi 13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13682 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13683fi 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13685$as_echo "$ac_cv_prog_cxx_g" >&6; } 13686if test "$ac_test_CXXFLAGS" = set; then 13687 CXXFLAGS=$ac_save_CXXFLAGS 13688elif test $ac_cv_prog_cxx_g = yes; then 13689 if test "$GXX" = yes; then 13690 CXXFLAGS="-g -O2" 13691 else 13692 CXXFLAGS="-g" 13693 fi 13694else 13695 if test "$GXX" = yes; then 13696 CXXFLAGS="-O2" 13697 else 13698 CXXFLAGS= 13699 fi 13700fi 13701ac_ext=c 13702ac_cpp='$CPP $CPPFLAGS' 13703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13705ac_compiler_gnu=$ac_cv_c_compiler_gnu 13706 13707depcc="$CXX" am_compiler_list= 13708 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13710$as_echo_n "checking dependency style of $depcc... " >&6; } 13711if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13712 $as_echo_n "(cached) " >&6 13713else 13714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13715 # We make a subdir and do the tests there. Otherwise we can end up 13716 # making bogus files that we don't know about and never remove. For 13717 # instance it was reported that on HP-UX the gcc test will end up 13718 # making a dummy file named 'D' -- because '-MD' means "put the output 13719 # in D". 13720 rm -rf conftest.dir 13721 mkdir conftest.dir 13722 # Copy depcomp to subdir because otherwise we won't find it if we're 13723 # using a relative directory. 13724 cp "$am_depcomp" conftest.dir 13725 cd conftest.dir 13726 # We will build objects and dependencies in a subdirectory because 13727 # it helps to detect inapplicable dependency modes. For instance 13728 # both Tru64's cc and ICC support -MD to output dependencies as a 13729 # side effect of compilation, but ICC will put the dependencies in 13730 # the current directory while Tru64 will put them in the object 13731 # directory. 13732 mkdir sub 13733 13734 am_cv_CXX_dependencies_compiler_type=none 13735 if test "$am_compiler_list" = ""; then 13736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13737 fi 13738 am__universal=false 13739 case " $depcc " in #( 13740 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13741 esac 13742 13743 for depmode in $am_compiler_list; do 13744 # Setup a source with many dependencies, because some compilers 13745 # like to wrap large dependency lists on column 80 (with \), and 13746 # we should not choose a depcomp mode which is confused by this. 13747 # 13748 # We need to recreate these files for each test, as the compiler may 13749 # overwrite some of them when testing with obscure command lines. 13750 # This happens at least with the AIX C compiler. 13751 : > sub/conftest.c 13752 for i in 1 2 3 4 5 6; do 13753 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13754 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13755 # Solaris 10 /bin/sh. 13756 echo '/* dummy */' > sub/conftst$i.h 13757 done 13758 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13759 13760 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13761 # mode. It turns out that the SunPro C++ compiler does not properly 13762 # handle '-M -o', and we need to detect this. Also, some Intel 13763 # versions had trouble with output in subdirs. 13764 am__obj=sub/conftest.${OBJEXT-o} 13765 am__minus_obj="-o $am__obj" 13766 case $depmode in 13767 gcc) 13768 # This depmode causes a compiler race in universal mode. 13769 test "$am__universal" = false || continue 13770 ;; 13771 nosideeffect) 13772 # After this tag, mechanisms are not by side-effect, so they'll 13773 # only be used when explicitly requested. 13774 if test "x$enable_dependency_tracking" = xyes; then 13775 continue 13776 else 13777 break 13778 fi 13779 ;; 13780 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13781 # This compiler won't grok '-c -o', but also, the minuso test has 13782 # not run yet. These depmodes are late enough in the game, and 13783 # so weak that their functioning should not be impacted. 13784 am__obj=conftest.${OBJEXT-o} 13785 am__minus_obj= 13786 ;; 13787 none) break ;; 13788 esac 13789 if depmode=$depmode \ 13790 source=sub/conftest.c object=$am__obj \ 13791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13792 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13793 >/dev/null 2>conftest.err && 13794 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13795 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13796 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13797 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13798 # icc doesn't choke on unknown options, it will just issue warnings 13799 # or remarks (even with -Werror). So we grep stderr for any message 13800 # that says an option was ignored or not supported. 13801 # When given -MP, icc 7.0 and 7.1 complain thusly: 13802 # icc: Command line warning: ignoring option '-M'; no argument required 13803 # The diagnosis changed in icc 8.0: 13804 # icc: Command line remark: option '-MP' not supported 13805 if (grep 'ignoring option' conftest.err || 13806 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13807 am_cv_CXX_dependencies_compiler_type=$depmode 13808 break 13809 fi 13810 fi 13811 done 13812 13813 cd .. 13814 rm -rf conftest.dir 13815else 13816 am_cv_CXX_dependencies_compiler_type=none 13817fi 13818 13819fi 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13821$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13822CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13823 13824 if 13825 test "x$enable_dependency_tracking" != xno \ 13826 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13827 am__fastdepCXX_TRUE= 13828 am__fastdepCXX_FALSE='#' 13829else 13830 am__fastdepCXX_TRUE='#' 13831 am__fastdepCXX_FALSE= 13832fi 13833 13834 13835 13836 13837 13838func_stripname_cnf () 13839{ 13840 case $2 in 13841 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13842 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13843 esac 13844} # func_stripname_cnf 13845 13846 if test -n "$CXX" && ( test no != "$CXX" && 13847 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13848 (test g++ != "$CXX"))); then 13849 ac_ext=cpp 13850ac_cpp='$CXXCPP $CPPFLAGS' 13851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13855$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13856if test -z "$CXXCPP"; then 13857 if ${ac_cv_prog_CXXCPP+:} false; then : 13858 $as_echo_n "(cached) " >&6 13859else 13860 # Double quotes because CXXCPP needs to be expanded 13861 for CXXCPP in "$CXX -E" "/lib/cpp" 13862 do 13863 ac_preproc_ok=false 13864for ac_cxx_preproc_warn_flag in '' yes 13865do 13866 # Use a header file that comes with gcc, so configuring glibc 13867 # with a fresh cross-compiler works. 13868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13869 # <limits.h> exists even on freestanding compilers. 13870 # On the NeXT, cc -E runs the code through the compiler's parser, 13871 # not just through cpp. "Syntax error" is here to catch this case. 13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873/* end confdefs.h. */ 13874#ifdef __STDC__ 13875# include <limits.h> 13876#else 13877# include <assert.h> 13878#endif 13879 Syntax error 13880_ACEOF 13881if ac_fn_cxx_try_cpp "$LINENO"; then : 13882 13883else 13884 # Broken: fails on valid input. 13885continue 13886fi 13887rm -f conftest.err conftest.i conftest.$ac_ext 13888 13889 # OK, works on sane cases. Now check whether nonexistent headers 13890 # can be detected and how. 13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893#include <ac_nonexistent.h> 13894_ACEOF 13895if ac_fn_cxx_try_cpp "$LINENO"; then : 13896 # Broken: success on invalid input. 13897continue 13898else 13899 # Passes both tests. 13900ac_preproc_ok=: 13901break 13902fi 13903rm -f conftest.err conftest.i conftest.$ac_ext 13904 13905done 13906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13907rm -f conftest.i conftest.err conftest.$ac_ext 13908if $ac_preproc_ok; then : 13909 break 13910fi 13911 13912 done 13913 ac_cv_prog_CXXCPP=$CXXCPP 13914 13915fi 13916 CXXCPP=$ac_cv_prog_CXXCPP 13917else 13918 ac_cv_prog_CXXCPP=$CXXCPP 13919fi 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13921$as_echo "$CXXCPP" >&6; } 13922ac_preproc_ok=false 13923for ac_cxx_preproc_warn_flag in '' yes 13924do 13925 # Use a header file that comes with gcc, so configuring glibc 13926 # with a fresh cross-compiler works. 13927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13928 # <limits.h> exists even on freestanding compilers. 13929 # On the NeXT, cc -E runs the code through the compiler's parser, 13930 # not just through cpp. "Syntax error" is here to catch this case. 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933#ifdef __STDC__ 13934# include <limits.h> 13935#else 13936# include <assert.h> 13937#endif 13938 Syntax error 13939_ACEOF 13940if ac_fn_cxx_try_cpp "$LINENO"; then : 13941 13942else 13943 # Broken: fails on valid input. 13944continue 13945fi 13946rm -f conftest.err conftest.i conftest.$ac_ext 13947 13948 # OK, works on sane cases. Now check whether nonexistent headers 13949 # can be detected and how. 13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13951/* end confdefs.h. */ 13952#include <ac_nonexistent.h> 13953_ACEOF 13954if ac_fn_cxx_try_cpp "$LINENO"; then : 13955 # Broken: success on invalid input. 13956continue 13957else 13958 # Passes both tests. 13959ac_preproc_ok=: 13960break 13961fi 13962rm -f conftest.err conftest.i conftest.$ac_ext 13963 13964done 13965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13966rm -f conftest.i conftest.err conftest.$ac_ext 13967if $ac_preproc_ok; then : 13968 13969else 13970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13972as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13973See \`config.log' for more details" "$LINENO" 5; } 13974fi 13975 13976ac_ext=c 13977ac_cpp='$CPP $CPPFLAGS' 13978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13980ac_compiler_gnu=$ac_cv_c_compiler_gnu 13981 13982else 13983 _lt_caught_CXX_error=yes 13984fi 13985 13986ac_ext=cpp 13987ac_cpp='$CXXCPP $CPPFLAGS' 13988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13991 13992archive_cmds_need_lc_CXX=no 13993allow_undefined_flag_CXX= 13994always_export_symbols_CXX=no 13995archive_expsym_cmds_CXX= 13996compiler_needs_object_CXX=no 13997export_dynamic_flag_spec_CXX= 13998hardcode_direct_CXX=no 13999hardcode_direct_absolute_CXX=no 14000hardcode_libdir_flag_spec_CXX= 14001hardcode_libdir_separator_CXX= 14002hardcode_minus_L_CXX=no 14003hardcode_shlibpath_var_CXX=unsupported 14004hardcode_automatic_CXX=no 14005inherit_rpath_CXX=no 14006module_cmds_CXX= 14007module_expsym_cmds_CXX= 14008link_all_deplibs_CXX=unknown 14009old_archive_cmds_CXX=$old_archive_cmds 14010reload_flag_CXX=$reload_flag 14011reload_cmds_CXX=$reload_cmds 14012no_undefined_flag_CXX= 14013whole_archive_flag_spec_CXX= 14014enable_shared_with_static_runtimes_CXX=no 14015 14016# Source file extension for C++ test sources. 14017ac_ext=cpp 14018 14019# Object file extension for compiled C++ test sources. 14020objext=o 14021objext_CXX=$objext 14022 14023# No sense in running all these tests if we already determined that 14024# the CXX compiler isn't working. Some variables (like enable_shared) 14025# are currently assumed to apply to all compilers on this platform, 14026# and will be corrupted by setting them based on a non-working compiler. 14027if test yes != "$_lt_caught_CXX_error"; then 14028 # Code to be used in simple compile tests 14029 lt_simple_compile_test_code="int some_variable = 0;" 14030 14031 # Code to be used in simple link tests 14032 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14033 14034 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14035 14036 14037 14038 14039 14040 14041# If no C compiler was specified, use CC. 14042LTCC=${LTCC-"$CC"} 14043 14044# If no C compiler flags were specified, use CFLAGS. 14045LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14046 14047# Allow CC to be a program name with arguments. 14048compiler=$CC 14049 14050 14051 # save warnings/boilerplate of simple test code 14052 ac_outfile=conftest.$ac_objext 14053echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14054eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14055_lt_compiler_boilerplate=`cat conftest.err` 14056$RM conftest* 14057 14058 ac_outfile=conftest.$ac_objext 14059echo "$lt_simple_link_test_code" >conftest.$ac_ext 14060eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14061_lt_linker_boilerplate=`cat conftest.err` 14062$RM -r conftest* 14063 14064 14065 # Allow CC to be a program name with arguments. 14066 lt_save_CC=$CC 14067 lt_save_CFLAGS=$CFLAGS 14068 lt_save_LD=$LD 14069 lt_save_GCC=$GCC 14070 GCC=$GXX 14071 lt_save_with_gnu_ld=$with_gnu_ld 14072 lt_save_path_LD=$lt_cv_path_LD 14073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14074 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14075 else 14076 $as_unset lt_cv_prog_gnu_ld 14077 fi 14078 if test -n "${lt_cv_path_LDCXX+set}"; then 14079 lt_cv_path_LD=$lt_cv_path_LDCXX 14080 else 14081 $as_unset lt_cv_path_LD 14082 fi 14083 test -z "${LDCXX+set}" || LD=$LDCXX 14084 CC=${CXX-"c++"} 14085 CFLAGS=$CXXFLAGS 14086 compiler=$CC 14087 compiler_CXX=$CC 14088 func_cc_basename $compiler 14089cc_basename=$func_cc_basename_result 14090 14091 14092 if test -n "$compiler"; then 14093 # We don't want -fno-exception when compiling C++ code, so set the 14094 # no_builtin_flag separately 14095 if test yes = "$GXX"; then 14096 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14097 else 14098 lt_prog_compiler_no_builtin_flag_CXX= 14099 fi 14100 14101 if test yes = "$GXX"; then 14102 # Set up default GNU C++ configuration 14103 14104 14105 14106# Check whether --with-gnu-ld was given. 14107if test "${with_gnu_ld+set}" = set; then : 14108 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14109else 14110 with_gnu_ld=no 14111fi 14112 14113ac_prog=ld 14114if test yes = "$GCC"; then 14115 # Check if gcc -print-prog-name=ld gives a path. 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14117$as_echo_n "checking for ld used by $CC... " >&6; } 14118 case $host in 14119 *-*-mingw*) 14120 # gcc leaves a trailing carriage return, which upsets mingw 14121 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14122 *) 14123 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14124 esac 14125 case $ac_prog in 14126 # Accept absolute paths. 14127 [\\/]* | ?:[\\/]*) 14128 re_direlt='/[^/][^/]*/\.\./' 14129 # Canonicalize the pathname of ld 14130 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14131 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14132 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14133 done 14134 test -z "$LD" && LD=$ac_prog 14135 ;; 14136 "") 14137 # If it fails, then pretend we aren't using GCC. 14138 ac_prog=ld 14139 ;; 14140 *) 14141 # If it is relative, then search for the first ld in PATH. 14142 with_gnu_ld=unknown 14143 ;; 14144 esac 14145elif test yes = "$with_gnu_ld"; then 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14147$as_echo_n "checking for GNU ld... " >&6; } 14148else 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14150$as_echo_n "checking for non-GNU ld... " >&6; } 14151fi 14152if ${lt_cv_path_LD+:} false; then : 14153 $as_echo_n "(cached) " >&6 14154else 14155 if test -z "$LD"; then 14156 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14157 for ac_dir in $PATH; do 14158 IFS=$lt_save_ifs 14159 test -z "$ac_dir" && ac_dir=. 14160 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14161 lt_cv_path_LD=$ac_dir/$ac_prog 14162 # Check to see if the program is GNU ld. I'd rather use --version, 14163 # but apparently some variants of GNU ld only accept -v. 14164 # Break only if it was the GNU/non-GNU ld that we prefer. 14165 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14166 *GNU* | *'with BFD'*) 14167 test no != "$with_gnu_ld" && break 14168 ;; 14169 *) 14170 test yes != "$with_gnu_ld" && break 14171 ;; 14172 esac 14173 fi 14174 done 14175 IFS=$lt_save_ifs 14176else 14177 lt_cv_path_LD=$LD # Let the user override the test with a path. 14178fi 14179fi 14180 14181LD=$lt_cv_path_LD 14182if test -n "$LD"; then 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14184$as_echo "$LD" >&6; } 14185else 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14187$as_echo "no" >&6; } 14188fi 14189test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14191$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14192if ${lt_cv_prog_gnu_ld+:} false; then : 14193 $as_echo_n "(cached) " >&6 14194else 14195 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14196case `$LD -v 2>&1 </dev/null` in 14197*GNU* | *'with BFD'*) 14198 lt_cv_prog_gnu_ld=yes 14199 ;; 14200*) 14201 lt_cv_prog_gnu_ld=no 14202 ;; 14203esac 14204fi 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14206$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14207with_gnu_ld=$lt_cv_prog_gnu_ld 14208 14209 14210 14211 14212 14213 14214 14215 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14216 # archiving commands below assume that GNU ld is being used. 14217 if test yes = "$with_gnu_ld"; then 14218 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14219 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14220 14221 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14222 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14223 14224 # If archive_cmds runs LD, not CC, wlarc should be empty 14225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14226 # investigate it a little bit more. (MM) 14227 wlarc='$wl' 14228 14229 # ancient GNU ld didn't support --whole-archive et. al. 14230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14231 $GREP 'no-whole-archive' > /dev/null; then 14232 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14233 else 14234 whole_archive_flag_spec_CXX= 14235 fi 14236 else 14237 with_gnu_ld=no 14238 wlarc= 14239 14240 # A generic and very simple default shared library creation 14241 # command for GNU C++ for the case where it uses the native 14242 # linker, instead of GNU ld. If possible, this setting should 14243 # overridden to take advantage of the native linker features on 14244 # the platform it is being used on. 14245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14246 fi 14247 14248 # Commands to make compiler produce verbose output that lists 14249 # what "hidden" libraries, object files and flags are used when 14250 # linking a shared library. 14251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14252 14253 else 14254 GXX=no 14255 with_gnu_ld=no 14256 wlarc= 14257 fi 14258 14259 # PORTME: fill in a description of your system's C++ link characteristics 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14261$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14262 ld_shlibs_CXX=yes 14263 case $host_os in 14264 aix3*) 14265 # FIXME: insert proper C++ library support 14266 ld_shlibs_CXX=no 14267 ;; 14268 aix[4-9]*) 14269 if test ia64 = "$host_cpu"; then 14270 # On IA64, the linker does run time linking by default, so we don't 14271 # have to do anything special. 14272 aix_use_runtimelinking=no 14273 exp_sym_flag='-Bexport' 14274 no_entry_flag= 14275 else 14276 aix_use_runtimelinking=no 14277 14278 # Test if we are trying to use run time linking or normal 14279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14280 # have runtime linking enabled, and use it for executables. 14281 # For shared libraries, we enable/disable runtime linking 14282 # depending on the kind of the shared library created - 14283 # when "with_aix_soname,aix_use_runtimelinking" is: 14284 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14285 # "aix,yes" lib.so shared, rtl:yes, for executables 14286 # lib.a static archive 14287 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14288 # lib.a(lib.so.V) shared, rtl:no, for executables 14289 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14290 # lib.a(lib.so.V) shared, rtl:no 14291 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14292 # lib.a static archive 14293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14294 for ld_flag in $LDFLAGS; do 14295 case $ld_flag in 14296 *-brtl*) 14297 aix_use_runtimelinking=yes 14298 break 14299 ;; 14300 esac 14301 done 14302 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14303 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14304 # so we don't have lib.a shared libs to link our executables. 14305 # We have to force runtime linking in this case. 14306 aix_use_runtimelinking=yes 14307 LDFLAGS="$LDFLAGS -Wl,-brtl" 14308 fi 14309 ;; 14310 esac 14311 14312 exp_sym_flag='-bexport' 14313 no_entry_flag='-bnoentry' 14314 fi 14315 14316 # When large executables or shared objects are built, AIX ld can 14317 # have problems creating the table of contents. If linking a library 14318 # or program results in "error TOC overflow" add -mminimal-toc to 14319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14321 14322 archive_cmds_CXX='' 14323 hardcode_direct_CXX=yes 14324 hardcode_direct_absolute_CXX=yes 14325 hardcode_libdir_separator_CXX=':' 14326 link_all_deplibs_CXX=yes 14327 file_list_spec_CXX='$wl-f,' 14328 case $with_aix_soname,$aix_use_runtimelinking in 14329 aix,*) ;; # no import file 14330 svr4,* | *,yes) # use import file 14331 # The Import File defines what to hardcode. 14332 hardcode_direct_CXX=no 14333 hardcode_direct_absolute_CXX=no 14334 ;; 14335 esac 14336 14337 if test yes = "$GXX"; then 14338 case $host_os in aix4.[012]|aix4.[012].*) 14339 # We only want to do this on AIX 4.2 and lower, the check 14340 # below for broken collect2 doesn't work under 4.3+ 14341 collect2name=`$CC -print-prog-name=collect2` 14342 if test -f "$collect2name" && 14343 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14344 then 14345 # We have reworked collect2 14346 : 14347 else 14348 # We have old collect2 14349 hardcode_direct_CXX=unsupported 14350 # It fails to find uninstalled libraries when the uninstalled 14351 # path is not listed in the libpath. Setting hardcode_minus_L 14352 # to unsupported forces relinking 14353 hardcode_minus_L_CXX=yes 14354 hardcode_libdir_flag_spec_CXX='-L$libdir' 14355 hardcode_libdir_separator_CXX= 14356 fi 14357 esac 14358 shared_flag='-shared' 14359 if test yes = "$aix_use_runtimelinking"; then 14360 shared_flag=$shared_flag' $wl-G' 14361 fi 14362 # Need to ensure runtime linking is disabled for the traditional 14363 # shared library, or the linker may eventually find shared libraries 14364 # /with/ Import File - we do not want to mix them. 14365 shared_flag_aix='-shared' 14366 shared_flag_svr4='-shared $wl-G' 14367 else 14368 # not using gcc 14369 if test ia64 = "$host_cpu"; then 14370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14371 # chokes on -Wl,-G. The following line is correct: 14372 shared_flag='-G' 14373 else 14374 if test yes = "$aix_use_runtimelinking"; then 14375 shared_flag='$wl-G' 14376 else 14377 shared_flag='$wl-bM:SRE' 14378 fi 14379 shared_flag_aix='$wl-bM:SRE' 14380 shared_flag_svr4='$wl-G' 14381 fi 14382 fi 14383 14384 export_dynamic_flag_spec_CXX='$wl-bexpall' 14385 # It seems that -bexpall does not export symbols beginning with 14386 # underscore (_), so it is better to generate a list of symbols to 14387 # export. 14388 always_export_symbols_CXX=yes 14389 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14390 # Warning - without using the other runtime loading flags (-brtl), 14391 # -berok will link without error, but may produce a broken library. 14392 # The "-G" linker flag allows undefined symbols. 14393 no_undefined_flag_CXX='-bernotok' 14394 # Determine the default libpath from the value encoded in an empty 14395 # executable. 14396 if test set = "${lt_cv_aix_libpath+set}"; then 14397 aix_libpath=$lt_cv_aix_libpath 14398else 14399 if ${lt_cv_aix_libpath__CXX+:} false; then : 14400 $as_echo_n "(cached) " >&6 14401else 14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14403/* end confdefs.h. */ 14404 14405int 14406main () 14407{ 14408 14409 ; 14410 return 0; 14411} 14412_ACEOF 14413if ac_fn_cxx_try_link "$LINENO"; then : 14414 14415 lt_aix_libpath_sed=' 14416 /Import File Strings/,/^$/ { 14417 /^0/ { 14418 s/^0 *\([^ ]*\) *$/\1/ 14419 p 14420 } 14421 }' 14422 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14423 # Check for a 64-bit object if we didn't find anything. 14424 if test -z "$lt_cv_aix_libpath__CXX"; then 14425 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14426 fi 14427fi 14428rm -f core conftest.err conftest.$ac_objext \ 14429 conftest$ac_exeext conftest.$ac_ext 14430 if test -z "$lt_cv_aix_libpath__CXX"; then 14431 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14432 fi 14433 14434fi 14435 14436 aix_libpath=$lt_cv_aix_libpath__CXX 14437fi 14438 14439 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14440 14441 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14442 else 14443 if test ia64 = "$host_cpu"; then 14444 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14445 allow_undefined_flag_CXX="-z nodefs" 14446 archive_expsym_cmds_CXX="\$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" 14447 else 14448 # Determine the default libpath from the value encoded in an 14449 # empty executable. 14450 if test set = "${lt_cv_aix_libpath+set}"; then 14451 aix_libpath=$lt_cv_aix_libpath 14452else 14453 if ${lt_cv_aix_libpath__CXX+:} false; then : 14454 $as_echo_n "(cached) " >&6 14455else 14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14457/* end confdefs.h. */ 14458 14459int 14460main () 14461{ 14462 14463 ; 14464 return 0; 14465} 14466_ACEOF 14467if ac_fn_cxx_try_link "$LINENO"; then : 14468 14469 lt_aix_libpath_sed=' 14470 /Import File Strings/,/^$/ { 14471 /^0/ { 14472 s/^0 *\([^ ]*\) *$/\1/ 14473 p 14474 } 14475 }' 14476 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14477 # Check for a 64-bit object if we didn't find anything. 14478 if test -z "$lt_cv_aix_libpath__CXX"; then 14479 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14480 fi 14481fi 14482rm -f core conftest.err conftest.$ac_objext \ 14483 conftest$ac_exeext conftest.$ac_ext 14484 if test -z "$lt_cv_aix_libpath__CXX"; then 14485 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14486 fi 14487 14488fi 14489 14490 aix_libpath=$lt_cv_aix_libpath__CXX 14491fi 14492 14493 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14494 # Warning - without using the other run time loading flags, 14495 # -berok will link without error, but may produce a broken library. 14496 no_undefined_flag_CXX=' $wl-bernotok' 14497 allow_undefined_flag_CXX=' $wl-berok' 14498 if test yes = "$with_gnu_ld"; then 14499 # We only use this code for GNU lds that support --whole-archive. 14500 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14501 else 14502 # Exported symbols can be pulled into shared objects from archives 14503 whole_archive_flag_spec_CXX='$convenience' 14504 fi 14505 archive_cmds_need_lc_CXX=yes 14506 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14507 # -brtl affects multiple linker settings, -berok does not and is overridden later 14508 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14509 if test svr4 != "$with_aix_soname"; then 14510 # This is similar to how AIX traditionally builds its shared 14511 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14512 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14513 fi 14514 if test aix != "$with_aix_soname"; then 14515 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14516 else 14517 # used by -dlpreopen to get the symbols 14518 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14519 fi 14520 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14521 fi 14522 fi 14523 ;; 14524 14525 beos*) 14526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14527 allow_undefined_flag_CXX=unsupported 14528 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14529 # support --undefined. This deserves some investigation. FIXME 14530 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14531 else 14532 ld_shlibs_CXX=no 14533 fi 14534 ;; 14535 14536 chorus*) 14537 case $cc_basename in 14538 *) 14539 # FIXME: insert proper C++ library support 14540 ld_shlibs_CXX=no 14541 ;; 14542 esac 14543 ;; 14544 14545 cygwin* | mingw* | pw32* | cegcc*) 14546 case $GXX,$cc_basename in 14547 ,cl* | no,cl*) 14548 # Native MSVC 14549 # hardcode_libdir_flag_spec is actually meaningless, as there is 14550 # no search path for DLLs. 14551 hardcode_libdir_flag_spec_CXX=' ' 14552 allow_undefined_flag_CXX=unsupported 14553 always_export_symbols_CXX=yes 14554 file_list_spec_CXX='@' 14555 # Tell ltmain to make .lib files, not .a files. 14556 libext=lib 14557 # Tell ltmain to make .dll files, not .so files. 14558 shrext_cmds=.dll 14559 # FIXME: Setting linknames here is a bad hack. 14560 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14561 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14562 cp "$export_symbols" "$output_objdir/$soname.def"; 14563 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14564 else 14565 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14566 fi~ 14567 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14568 linknames=' 14569 # The linker will not automatically build a static lib if we build a DLL. 14570 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14571 enable_shared_with_static_runtimes_CXX=yes 14572 # Don't use ranlib 14573 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14574 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14575 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14576 case $lt_outputfile in 14577 *.exe|*.EXE) ;; 14578 *) 14579 lt_outputfile=$lt_outputfile.exe 14580 lt_tool_outputfile=$lt_tool_outputfile.exe 14581 ;; 14582 esac~ 14583 func_to_tool_file "$lt_outputfile"~ 14584 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14586 $RM "$lt_outputfile.manifest"; 14587 fi' 14588 ;; 14589 *) 14590 # g++ 14591 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14592 # as there is no search path for DLLs. 14593 hardcode_libdir_flag_spec_CXX='-L$libdir' 14594 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14595 allow_undefined_flag_CXX=unsupported 14596 always_export_symbols_CXX=no 14597 enable_shared_with_static_runtimes_CXX=yes 14598 14599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14600 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14601 # If the export-symbols file already is a .def file, use it as 14602 # is; otherwise, prepend EXPORTS... 14603 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14604 cp $export_symbols $output_objdir/$soname.def; 14605 else 14606 echo EXPORTS > $output_objdir/$soname.def; 14607 cat $export_symbols >> $output_objdir/$soname.def; 14608 fi~ 14609 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14610 else 14611 ld_shlibs_CXX=no 14612 fi 14613 ;; 14614 esac 14615 ;; 14616 darwin* | rhapsody*) 14617 14618 14619 archive_cmds_need_lc_CXX=no 14620 hardcode_direct_CXX=no 14621 hardcode_automatic_CXX=yes 14622 hardcode_shlibpath_var_CXX=unsupported 14623 if test yes = "$lt_cv_ld_force_load"; then 14624 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14625 14626 else 14627 whole_archive_flag_spec_CXX='' 14628 fi 14629 link_all_deplibs_CXX=yes 14630 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14631 case $cc_basename in 14632 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14633 *) _lt_dar_can_shared=$GCC ;; 14634 esac 14635 if test yes = "$_lt_dar_can_shared"; then 14636 output_verbose_link_cmd=func_echo_all 14637 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14638 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14639 archive_expsym_cmds_CXX="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" 14640 module_expsym_cmds_CXX="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" 14641 if test yes != "$lt_cv_apple_cc_single_mod"; then 14642 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14643 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14644 fi 14645 14646 else 14647 ld_shlibs_CXX=no 14648 fi 14649 14650 ;; 14651 14652 os2*) 14653 hardcode_libdir_flag_spec_CXX='-L$libdir' 14654 hardcode_minus_L_CXX=yes 14655 allow_undefined_flag_CXX=unsupported 14656 shrext_cmds=.dll 14657 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14658 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14659 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14660 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14661 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14662 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14663 emximp -o $lib $output_objdir/$libname.def' 14664 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14667 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14668 prefix_cmds="$SED"~ 14669 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14670 prefix_cmds="$prefix_cmds -e 1d"; 14671 fi~ 14672 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14673 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14674 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14675 emximp -o $lib $output_objdir/$libname.def' 14676 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14677 enable_shared_with_static_runtimes_CXX=yes 14678 ;; 14679 14680 dgux*) 14681 case $cc_basename in 14682 ec++*) 14683 # FIXME: insert proper C++ library support 14684 ld_shlibs_CXX=no 14685 ;; 14686 ghcx*) 14687 # Green Hills C++ Compiler 14688 # FIXME: insert proper C++ library support 14689 ld_shlibs_CXX=no 14690 ;; 14691 *) 14692 # FIXME: insert proper C++ library support 14693 ld_shlibs_CXX=no 14694 ;; 14695 esac 14696 ;; 14697 14698 freebsd2.*) 14699 # C++ shared libraries reported to be fairly broken before 14700 # switch to ELF 14701 ld_shlibs_CXX=no 14702 ;; 14703 14704 freebsd-elf*) 14705 archive_cmds_need_lc_CXX=no 14706 ;; 14707 14708 freebsd* | dragonfly*) 14709 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14710 # conventions 14711 ld_shlibs_CXX=yes 14712 ;; 14713 14714 haiku*) 14715 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14716 link_all_deplibs_CXX=yes 14717 ;; 14718 14719 hpux9*) 14720 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14721 hardcode_libdir_separator_CXX=: 14722 export_dynamic_flag_spec_CXX='$wl-E' 14723 hardcode_direct_CXX=yes 14724 hardcode_minus_L_CXX=yes # Not in the search PATH, 14725 # but as the default 14726 # location of the library. 14727 14728 case $cc_basename in 14729 CC*) 14730 # FIXME: insert proper C++ library support 14731 ld_shlibs_CXX=no 14732 ;; 14733 aCC*) 14734 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14735 # Commands to make compiler produce verbose output that lists 14736 # what "hidden" libraries, object files and flags are used when 14737 # linking a shared library. 14738 # 14739 # There doesn't appear to be a way to prevent this compiler from 14740 # explicitly linking system object files so we need to strip them 14741 # from the output so that they don't get included in the library 14742 # dependencies. 14743 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14744 ;; 14745 *) 14746 if test yes = "$GXX"; then 14747 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14748 else 14749 # FIXME: insert proper C++ library support 14750 ld_shlibs_CXX=no 14751 fi 14752 ;; 14753 esac 14754 ;; 14755 14756 hpux10*|hpux11*) 14757 if test no = "$with_gnu_ld"; then 14758 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14759 hardcode_libdir_separator_CXX=: 14760 14761 case $host_cpu in 14762 hppa*64*|ia64*) 14763 ;; 14764 *) 14765 export_dynamic_flag_spec_CXX='$wl-E' 14766 ;; 14767 esac 14768 fi 14769 case $host_cpu in 14770 hppa*64*|ia64*) 14771 hardcode_direct_CXX=no 14772 hardcode_shlibpath_var_CXX=no 14773 ;; 14774 *) 14775 hardcode_direct_CXX=yes 14776 hardcode_direct_absolute_CXX=yes 14777 hardcode_minus_L_CXX=yes # Not in the search PATH, 14778 # but as the default 14779 # location of the library. 14780 ;; 14781 esac 14782 14783 case $cc_basename in 14784 CC*) 14785 # FIXME: insert proper C++ library support 14786 ld_shlibs_CXX=no 14787 ;; 14788 aCC*) 14789 case $host_cpu in 14790 hppa*64*) 14791 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14792 ;; 14793 ia64*) 14794 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14795 ;; 14796 *) 14797 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14798 ;; 14799 esac 14800 # Commands to make compiler produce verbose output that lists 14801 # what "hidden" libraries, object files and flags are used when 14802 # linking a shared library. 14803 # 14804 # There doesn't appear to be a way to prevent this compiler from 14805 # explicitly linking system object files so we need to strip them 14806 # from the output so that they don't get included in the library 14807 # dependencies. 14808 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14809 ;; 14810 *) 14811 if test yes = "$GXX"; then 14812 if test no = "$with_gnu_ld"; then 14813 case $host_cpu in 14814 hppa*64*) 14815 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14816 ;; 14817 ia64*) 14818 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14819 ;; 14820 *) 14821 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14822 ;; 14823 esac 14824 fi 14825 else 14826 # FIXME: insert proper C++ library support 14827 ld_shlibs_CXX=no 14828 fi 14829 ;; 14830 esac 14831 ;; 14832 14833 interix[3-9]*) 14834 hardcode_direct_CXX=no 14835 hardcode_shlibpath_var_CXX=no 14836 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14837 export_dynamic_flag_spec_CXX='$wl-E' 14838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14839 # Instead, shared libraries are loaded at an image base (0x10000000 by 14840 # default) and relocated if they conflict, which is a slow very memory 14841 # consuming and fragmenting process. To avoid this, we pick a random, 14842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14843 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14844 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14845 archive_expsym_cmds_CXX='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' 14846 ;; 14847 irix5* | irix6*) 14848 case $cc_basename in 14849 CC*) 14850 # SGI C++ 14851 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14852 14853 # Archives containing C++ object files must be created using 14854 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14855 # necessary to make sure instantiated templates are included 14856 # in the archive. 14857 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14858 ;; 14859 *) 14860 if test yes = "$GXX"; then 14861 if test no = "$with_gnu_ld"; then 14862 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 14863 else 14864 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14865 fi 14866 fi 14867 link_all_deplibs_CXX=yes 14868 ;; 14869 esac 14870 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14871 hardcode_libdir_separator_CXX=: 14872 inherit_rpath_CXX=yes 14873 ;; 14874 14875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14876 case $cc_basename in 14877 KCC*) 14878 # Kuck and Associates, Inc. (KAI) C++ Compiler 14879 14880 # KCC will only create a shared library if the output file 14881 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14882 # to its proper name (with version) after linking. 14883 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14884 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14885 # Commands to make compiler produce verbose output that lists 14886 # what "hidden" libraries, object files and flags are used when 14887 # linking a shared library. 14888 # 14889 # There doesn't appear to be a way to prevent this compiler from 14890 # explicitly linking system object files so we need to strip them 14891 # from the output so that they don't get included in the library 14892 # dependencies. 14893 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14894 14895 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14896 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14897 14898 # Archives containing C++ object files must be created using 14899 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14900 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14901 ;; 14902 icpc* | ecpc* ) 14903 # Intel C++ 14904 with_gnu_ld=yes 14905 # version 8.0 and above of icpc choke on multiply defined symbols 14906 # if we add $predep_objects and $postdep_objects, however 7.1 and 14907 # earlier do not add the objects themselves. 14908 case `$CC -V 2>&1` in 14909 *"Version 7."*) 14910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14911 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14912 ;; 14913 *) # Version 8.0 or newer 14914 tmp_idyn= 14915 case $host_cpu in 14916 ia64*) tmp_idyn=' -i_dynamic';; 14917 esac 14918 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14919 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14920 ;; 14921 esac 14922 archive_cmds_need_lc_CXX=no 14923 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14924 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14925 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14926 ;; 14927 pgCC* | pgcpp*) 14928 # Portland Group C++ compiler 14929 case `$CC -V` in 14930 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14931 prelink_cmds_CXX='tpldir=Template.dir~ 14932 rm -rf $tpldir~ 14933 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14934 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14935 old_archive_cmds_CXX='tpldir=Template.dir~ 14936 rm -rf $tpldir~ 14937 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14938 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14939 $RANLIB $oldlib' 14940 archive_cmds_CXX='tpldir=Template.dir~ 14941 rm -rf $tpldir~ 14942 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14943 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14944 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14945 rm -rf $tpldir~ 14946 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14947 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14948 ;; 14949 *) # Version 6 and above use weak symbols 14950 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14951 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14952 ;; 14953 esac 14954 14955 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14956 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14957 whole_archive_flag_spec_CXX='$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' 14958 ;; 14959 cxx*) 14960 # Compaq C++ 14961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14962 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14963 14964 runpath_var=LD_RUN_PATH 14965 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14966 hardcode_libdir_separator_CXX=: 14967 14968 # Commands to make compiler produce verbose output that lists 14969 # what "hidden" libraries, object files and flags are used when 14970 # linking a shared library. 14971 # 14972 # There doesn't appear to be a way to prevent this compiler from 14973 # explicitly linking system object files so we need to strip them 14974 # from the output so that they don't get included in the library 14975 # dependencies. 14976 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14977 ;; 14978 xl* | mpixl* | bgxl*) 14979 # IBM XL 8.0 on PPC, with GNU ld 14980 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14981 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14982 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14983 if test yes = "$supports_anon_versioning"; then 14984 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14986 echo "local: *; };" >> $output_objdir/$libname.ver~ 14987 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14988 fi 14989 ;; 14990 *) 14991 case `$CC -V 2>&1 | sed 5q` in 14992 *Sun\ C*) 14993 # Sun C++ 5.9 14994 no_undefined_flag_CXX=' -zdefs' 14995 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14996 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14997 hardcode_libdir_flag_spec_CXX='-R$libdir' 14998 whole_archive_flag_spec_CXX='$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' 14999 compiler_needs_object_CXX=yes 15000 15001 # Not sure whether something based on 15002 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15003 # would be better. 15004 output_verbose_link_cmd='func_echo_all' 15005 15006 # Archives containing C++ object files must be created using 15007 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15008 # necessary to make sure instantiated templates are included 15009 # in the archive. 15010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15011 ;; 15012 esac 15013 ;; 15014 esac 15015 ;; 15016 15017 lynxos*) 15018 # FIXME: insert proper C++ library support 15019 ld_shlibs_CXX=no 15020 ;; 15021 15022 m88k*) 15023 # FIXME: insert proper C++ library support 15024 ld_shlibs_CXX=no 15025 ;; 15026 15027 mvs*) 15028 case $cc_basename in 15029 cxx*) 15030 # FIXME: insert proper C++ library support 15031 ld_shlibs_CXX=no 15032 ;; 15033 *) 15034 # FIXME: insert proper C++ library support 15035 ld_shlibs_CXX=no 15036 ;; 15037 esac 15038 ;; 15039 15040 netbsd*) 15041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15042 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15043 wlarc= 15044 hardcode_libdir_flag_spec_CXX='-R$libdir' 15045 hardcode_direct_CXX=yes 15046 hardcode_shlibpath_var_CXX=no 15047 fi 15048 # Workaround some broken pre-1.5 toolchains 15049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15050 ;; 15051 15052 *nto* | *qnx*) 15053 ld_shlibs_CXX=yes 15054 ;; 15055 15056 openbsd* | bitrig*) 15057 if test -f /usr/libexec/ld.so; then 15058 hardcode_direct_CXX=yes 15059 hardcode_shlibpath_var_CXX=no 15060 hardcode_direct_absolute_CXX=yes 15061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15062 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15064 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15065 export_dynamic_flag_spec_CXX='$wl-E' 15066 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15067 fi 15068 output_verbose_link_cmd=func_echo_all 15069 else 15070 ld_shlibs_CXX=no 15071 fi 15072 ;; 15073 15074 osf3* | osf4* | osf5*) 15075 case $cc_basename in 15076 KCC*) 15077 # Kuck and Associates, Inc. (KAI) C++ Compiler 15078 15079 # KCC will only create a shared library if the output file 15080 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15081 # to its proper name (with version) after linking. 15082 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15083 15084 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15085 hardcode_libdir_separator_CXX=: 15086 15087 # Archives containing C++ object files must be created using 15088 # the KAI C++ compiler. 15089 case $host in 15090 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15091 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15092 esac 15093 ;; 15094 RCC*) 15095 # Rational C++ 2.4.1 15096 # FIXME: insert proper C++ library support 15097 ld_shlibs_CXX=no 15098 ;; 15099 cxx*) 15100 case $host in 15101 osf3*) 15102 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15103 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15104 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15105 ;; 15106 *) 15107 allow_undefined_flag_CXX=' -expect_unresolved \*' 15108 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15109 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15110 echo "-hidden">> $lib.exp~ 15111 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 15112 $RM $lib.exp' 15113 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15114 ;; 15115 esac 15116 15117 hardcode_libdir_separator_CXX=: 15118 15119 # Commands to make compiler produce verbose output that lists 15120 # what "hidden" libraries, object files and flags are used when 15121 # linking a shared library. 15122 # 15123 # There doesn't appear to be a way to prevent this compiler from 15124 # explicitly linking system object files so we need to strip them 15125 # from the output so that they don't get included in the library 15126 # dependencies. 15127 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15128 ;; 15129 *) 15130 if test yes,no = "$GXX,$with_gnu_ld"; then 15131 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15132 case $host in 15133 osf3*) 15134 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 15135 ;; 15136 *) 15137 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 15138 ;; 15139 esac 15140 15141 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15142 hardcode_libdir_separator_CXX=: 15143 15144 # Commands to make compiler produce verbose output that lists 15145 # what "hidden" libraries, object files and flags are used when 15146 # linking a shared library. 15147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15148 15149 else 15150 # FIXME: insert proper C++ library support 15151 ld_shlibs_CXX=no 15152 fi 15153 ;; 15154 esac 15155 ;; 15156 15157 psos*) 15158 # FIXME: insert proper C++ library support 15159 ld_shlibs_CXX=no 15160 ;; 15161 15162 sunos4*) 15163 case $cc_basename in 15164 CC*) 15165 # Sun C++ 4.x 15166 # FIXME: insert proper C++ library support 15167 ld_shlibs_CXX=no 15168 ;; 15169 lcc*) 15170 # Lucid 15171 # FIXME: insert proper C++ library support 15172 ld_shlibs_CXX=no 15173 ;; 15174 *) 15175 # FIXME: insert proper C++ library support 15176 ld_shlibs_CXX=no 15177 ;; 15178 esac 15179 ;; 15180 15181 solaris*) 15182 case $cc_basename in 15183 CC* | sunCC*) 15184 # Sun C++ 4.2, 5.x and Centerline C++ 15185 archive_cmds_need_lc_CXX=yes 15186 no_undefined_flag_CXX=' -zdefs' 15187 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15188 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15189 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15190 15191 hardcode_libdir_flag_spec_CXX='-R$libdir' 15192 hardcode_shlibpath_var_CXX=no 15193 case $host_os in 15194 solaris2.[0-5] | solaris2.[0-5].*) ;; 15195 *) 15196 # The compiler driver will combine and reorder linker options, 15197 # but understands '-z linker_flag'. 15198 # Supported since Solaris 2.6 (maybe 2.5.1?) 15199 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15200 ;; 15201 esac 15202 link_all_deplibs_CXX=yes 15203 15204 output_verbose_link_cmd='func_echo_all' 15205 15206 # Archives containing C++ object files must be created using 15207 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15208 # necessary to make sure instantiated templates are included 15209 # in the archive. 15210 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15211 ;; 15212 gcx*) 15213 # Green Hills C++ Compiler 15214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15215 15216 # The C++ compiler must be used to create the archive. 15217 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15218 ;; 15219 *) 15220 # GNU C++ compiler with Solaris linker 15221 if test yes,no = "$GXX,$with_gnu_ld"; then 15222 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15223 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15224 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15225 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15226 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15227 15228 # Commands to make compiler produce verbose output that lists 15229 # what "hidden" libraries, object files and flags are used when 15230 # linking a shared library. 15231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15232 else 15233 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15234 # platform. 15235 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15236 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15237 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15238 15239 # Commands to make compiler produce verbose output that lists 15240 # what "hidden" libraries, object files and flags are used when 15241 # linking a shared library. 15242 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15243 fi 15244 15245 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15246 case $host_os in 15247 solaris2.[0-5] | solaris2.[0-5].*) ;; 15248 *) 15249 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15250 ;; 15251 esac 15252 fi 15253 ;; 15254 esac 15255 ;; 15256 15257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15258 no_undefined_flag_CXX='$wl-z,text' 15259 archive_cmds_need_lc_CXX=no 15260 hardcode_shlibpath_var_CXX=no 15261 runpath_var='LD_RUN_PATH' 15262 15263 case $cc_basename in 15264 CC*) 15265 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15266 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15267 ;; 15268 *) 15269 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15270 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15271 ;; 15272 esac 15273 ;; 15274 15275 sysv5* | sco3.2v5* | sco5v6*) 15276 # Note: We CANNOT use -z defs as we might desire, because we do not 15277 # link with -lc, and that would cause any symbols used from libc to 15278 # always be unresolved, which means just about no library would 15279 # ever link correctly. If we're not using GNU ld we use -z text 15280 # though, which does catch some bad symbols but isn't as heavy-handed 15281 # as -z defs. 15282 no_undefined_flag_CXX='$wl-z,text' 15283 allow_undefined_flag_CXX='$wl-z,nodefs' 15284 archive_cmds_need_lc_CXX=no 15285 hardcode_shlibpath_var_CXX=no 15286 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15287 hardcode_libdir_separator_CXX=':' 15288 link_all_deplibs_CXX=yes 15289 export_dynamic_flag_spec_CXX='$wl-Bexport' 15290 runpath_var='LD_RUN_PATH' 15291 15292 case $cc_basename in 15293 CC*) 15294 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15295 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15296 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15297 '"$old_archive_cmds_CXX" 15298 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15299 '"$reload_cmds_CXX" 15300 ;; 15301 *) 15302 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15303 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15304 ;; 15305 esac 15306 ;; 15307 15308 tandem*) 15309 case $cc_basename in 15310 NCC*) 15311 # NonStop-UX NCC 3.20 15312 # FIXME: insert proper C++ library support 15313 ld_shlibs_CXX=no 15314 ;; 15315 *) 15316 # FIXME: insert proper C++ library support 15317 ld_shlibs_CXX=no 15318 ;; 15319 esac 15320 ;; 15321 15322 vxworks*) 15323 # FIXME: insert proper C++ library support 15324 ld_shlibs_CXX=no 15325 ;; 15326 15327 *) 15328 # FIXME: insert proper C++ library support 15329 ld_shlibs_CXX=no 15330 ;; 15331 esac 15332 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15334$as_echo "$ld_shlibs_CXX" >&6; } 15335 test no = "$ld_shlibs_CXX" && can_build_shared=no 15336 15337 GCC_CXX=$GXX 15338 LD_CXX=$LD 15339 15340 ## CAVEAT EMPTOR: 15341 ## There is no encapsulation within the following macros, do not change 15342 ## the running order or otherwise move them around unless you know exactly 15343 ## what you are doing... 15344 # Dependencies to place before and after the object being linked: 15345predep_objects_CXX= 15346postdep_objects_CXX= 15347predeps_CXX= 15348postdeps_CXX= 15349compiler_lib_search_path_CXX= 15350 15351cat > conftest.$ac_ext <<_LT_EOF 15352class Foo 15353{ 15354public: 15355 Foo (void) { a = 0; } 15356private: 15357 int a; 15358}; 15359_LT_EOF 15360 15361 15362_lt_libdeps_save_CFLAGS=$CFLAGS 15363case "$CC $CFLAGS " in #( 15364*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15365*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15366*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15367esac 15368 15369if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15370 (eval $ac_compile) 2>&5 15371 ac_status=$? 15372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15373 test $ac_status = 0; }; then 15374 # Parse the compiler output and extract the necessary 15375 # objects, libraries and library flags. 15376 15377 # Sentinel used to keep track of whether or not we are before 15378 # the conftest object file. 15379 pre_test_object_deps_done=no 15380 15381 for p in `eval "$output_verbose_link_cmd"`; do 15382 case $prev$p in 15383 15384 -L* | -R* | -l*) 15385 # Some compilers place space between "-{L,R}" and the path. 15386 # Remove the space. 15387 if test x-L = "$p" || 15388 test x-R = "$p"; then 15389 prev=$p 15390 continue 15391 fi 15392 15393 # Expand the sysroot to ease extracting the directories later. 15394 if test -z "$prev"; then 15395 case $p in 15396 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15397 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15398 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15399 esac 15400 fi 15401 case $p in 15402 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15403 esac 15404 if test no = "$pre_test_object_deps_done"; then 15405 case $prev in 15406 -L | -R) 15407 # Internal compiler library paths should come after those 15408 # provided the user. The postdeps already come after the 15409 # user supplied libs so there is no need to process them. 15410 if test -z "$compiler_lib_search_path_CXX"; then 15411 compiler_lib_search_path_CXX=$prev$p 15412 else 15413 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15414 fi 15415 ;; 15416 # The "-l" case would never come before the object being 15417 # linked, so don't bother handling this case. 15418 esac 15419 else 15420 if test -z "$postdeps_CXX"; then 15421 postdeps_CXX=$prev$p 15422 else 15423 postdeps_CXX="${postdeps_CXX} $prev$p" 15424 fi 15425 fi 15426 prev= 15427 ;; 15428 15429 *.lto.$objext) ;; # Ignore GCC LTO objects 15430 *.$objext) 15431 # This assumes that the test object file only shows up 15432 # once in the compiler output. 15433 if test "$p" = "conftest.$objext"; then 15434 pre_test_object_deps_done=yes 15435 continue 15436 fi 15437 15438 if test no = "$pre_test_object_deps_done"; then 15439 if test -z "$predep_objects_CXX"; then 15440 predep_objects_CXX=$p 15441 else 15442 predep_objects_CXX="$predep_objects_CXX $p" 15443 fi 15444 else 15445 if test -z "$postdep_objects_CXX"; then 15446 postdep_objects_CXX=$p 15447 else 15448 postdep_objects_CXX="$postdep_objects_CXX $p" 15449 fi 15450 fi 15451 ;; 15452 15453 *) ;; # Ignore the rest. 15454 15455 esac 15456 done 15457 15458 # Clean up. 15459 rm -f a.out a.exe 15460else 15461 echo "libtool.m4: error: problem compiling CXX test program" 15462fi 15463 15464$RM -f confest.$objext 15465CFLAGS=$_lt_libdeps_save_CFLAGS 15466 15467# PORTME: override above test on systems where it is broken 15468case $host_os in 15469interix[3-9]*) 15470 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15471 # hack all around it, let's just trust "g++" to DTRT. 15472 predep_objects_CXX= 15473 postdep_objects_CXX= 15474 postdeps_CXX= 15475 ;; 15476esac 15477 15478 15479case " $postdeps_CXX " in 15480*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15481esac 15482 compiler_lib_search_dirs_CXX= 15483if test -n "${compiler_lib_search_path_CXX}"; then 15484 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15485fi 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 lt_prog_compiler_wl_CXX= 15518lt_prog_compiler_pic_CXX= 15519lt_prog_compiler_static_CXX= 15520 15521 15522 # C++ specific cases for pic, static, wl, etc. 15523 if test yes = "$GXX"; then 15524 lt_prog_compiler_wl_CXX='-Wl,' 15525 lt_prog_compiler_static_CXX='-static' 15526 15527 case $host_os in 15528 aix*) 15529 # All AIX code is PIC. 15530 if test ia64 = "$host_cpu"; then 15531 # AIX 5 now supports IA64 processor 15532 lt_prog_compiler_static_CXX='-Bstatic' 15533 fi 15534 lt_prog_compiler_pic_CXX='-fPIC' 15535 ;; 15536 15537 amigaos*) 15538 case $host_cpu in 15539 powerpc) 15540 # see comment about AmigaOS4 .so support 15541 lt_prog_compiler_pic_CXX='-fPIC' 15542 ;; 15543 m68k) 15544 # FIXME: we need at least 68020 code to build shared libraries, but 15545 # adding the '-m68020' flag to GCC prevents building anything better, 15546 # like '-m68040'. 15547 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15548 ;; 15549 esac 15550 ;; 15551 15552 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15553 # PIC is the default for these OSes. 15554 ;; 15555 mingw* | cygwin* | os2* | pw32* | cegcc*) 15556 # This hack is so that the source file can tell whether it is being 15557 # built for inclusion in a dll (and should export symbols for example). 15558 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15559 # (--disable-auto-import) libraries 15560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15561 case $host_os in 15562 os2*) 15563 lt_prog_compiler_static_CXX='$wl-static' 15564 ;; 15565 esac 15566 ;; 15567 darwin* | rhapsody*) 15568 # PIC is the default on this platform 15569 # Common symbols not allowed in MH_DYLIB files 15570 lt_prog_compiler_pic_CXX='-fno-common' 15571 ;; 15572 *djgpp*) 15573 # DJGPP does not support shared libraries at all 15574 lt_prog_compiler_pic_CXX= 15575 ;; 15576 haiku*) 15577 # PIC is the default for Haiku. 15578 # The "-static" flag exists, but is broken. 15579 lt_prog_compiler_static_CXX= 15580 ;; 15581 interix[3-9]*) 15582 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15583 # Instead, we relocate shared libraries at runtime. 15584 ;; 15585 sysv4*MP*) 15586 if test -d /usr/nec; then 15587 lt_prog_compiler_pic_CXX=-Kconform_pic 15588 fi 15589 ;; 15590 hpux*) 15591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15593 # sets the default TLS model and affects inlining. 15594 case $host_cpu in 15595 hppa*64*) 15596 ;; 15597 *) 15598 lt_prog_compiler_pic_CXX='-fPIC' 15599 ;; 15600 esac 15601 ;; 15602 *qnx* | *nto*) 15603 # QNX uses GNU C++, but need to define -shared option too, otherwise 15604 # it will coredump. 15605 lt_prog_compiler_pic_CXX='-fPIC -shared' 15606 ;; 15607 *) 15608 lt_prog_compiler_pic_CXX='-fPIC' 15609 ;; 15610 esac 15611 else 15612 case $host_os in 15613 aix[4-9]*) 15614 # All AIX code is PIC. 15615 if test ia64 = "$host_cpu"; then 15616 # AIX 5 now supports IA64 processor 15617 lt_prog_compiler_static_CXX='-Bstatic' 15618 else 15619 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15620 fi 15621 ;; 15622 chorus*) 15623 case $cc_basename in 15624 cxch68*) 15625 # Green Hills C++ Compiler 15626 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15627 ;; 15628 esac 15629 ;; 15630 mingw* | cygwin* | os2* | pw32* | cegcc*) 15631 # This hack is so that the source file can tell whether it is being 15632 # built for inclusion in a dll (and should export symbols for example). 15633 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15634 ;; 15635 dgux*) 15636 case $cc_basename in 15637 ec++*) 15638 lt_prog_compiler_pic_CXX='-KPIC' 15639 ;; 15640 ghcx*) 15641 # Green Hills C++ Compiler 15642 lt_prog_compiler_pic_CXX='-pic' 15643 ;; 15644 *) 15645 ;; 15646 esac 15647 ;; 15648 freebsd* | dragonfly*) 15649 # FreeBSD uses GNU C++ 15650 ;; 15651 hpux9* | hpux10* | hpux11*) 15652 case $cc_basename in 15653 CC*) 15654 lt_prog_compiler_wl_CXX='-Wl,' 15655 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15656 if test ia64 != "$host_cpu"; then 15657 lt_prog_compiler_pic_CXX='+Z' 15658 fi 15659 ;; 15660 aCC*) 15661 lt_prog_compiler_wl_CXX='-Wl,' 15662 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15663 case $host_cpu in 15664 hppa*64*|ia64*) 15665 # +Z the default 15666 ;; 15667 *) 15668 lt_prog_compiler_pic_CXX='+Z' 15669 ;; 15670 esac 15671 ;; 15672 *) 15673 ;; 15674 esac 15675 ;; 15676 interix*) 15677 # This is c89, which is MS Visual C++ (no shared libs) 15678 # Anyone wants to do a port? 15679 ;; 15680 irix5* | irix6* | nonstopux*) 15681 case $cc_basename in 15682 CC*) 15683 lt_prog_compiler_wl_CXX='-Wl,' 15684 lt_prog_compiler_static_CXX='-non_shared' 15685 # CC pic flag -KPIC is the default. 15686 ;; 15687 *) 15688 ;; 15689 esac 15690 ;; 15691 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15692 case $cc_basename in 15693 KCC*) 15694 # KAI C++ Compiler 15695 lt_prog_compiler_wl_CXX='--backend -Wl,' 15696 lt_prog_compiler_pic_CXX='-fPIC' 15697 ;; 15698 ecpc* ) 15699 # old Intel C++ for x86_64, which still supported -KPIC. 15700 lt_prog_compiler_wl_CXX='-Wl,' 15701 lt_prog_compiler_pic_CXX='-KPIC' 15702 lt_prog_compiler_static_CXX='-static' 15703 ;; 15704 icpc* ) 15705 # Intel C++, used to be incompatible with GCC. 15706 # ICC 10 doesn't accept -KPIC any more. 15707 lt_prog_compiler_wl_CXX='-Wl,' 15708 lt_prog_compiler_pic_CXX='-fPIC' 15709 lt_prog_compiler_static_CXX='-static' 15710 ;; 15711 pgCC* | pgcpp*) 15712 # Portland Group C++ compiler 15713 lt_prog_compiler_wl_CXX='-Wl,' 15714 lt_prog_compiler_pic_CXX='-fpic' 15715 lt_prog_compiler_static_CXX='-Bstatic' 15716 ;; 15717 cxx*) 15718 # Compaq C++ 15719 # Make sure the PIC flag is empty. It appears that all Alpha 15720 # Linux and Compaq Tru64 Unix objects are PIC. 15721 lt_prog_compiler_pic_CXX= 15722 lt_prog_compiler_static_CXX='-non_shared' 15723 ;; 15724 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15725 # IBM XL 8.0, 9.0 on PPC and BlueGene 15726 lt_prog_compiler_wl_CXX='-Wl,' 15727 lt_prog_compiler_pic_CXX='-qpic' 15728 lt_prog_compiler_static_CXX='-qstaticlink' 15729 ;; 15730 *) 15731 case `$CC -V 2>&1 | sed 5q` in 15732 *Sun\ C*) 15733 # Sun C++ 5.9 15734 lt_prog_compiler_pic_CXX='-KPIC' 15735 lt_prog_compiler_static_CXX='-Bstatic' 15736 lt_prog_compiler_wl_CXX='-Qoption ld ' 15737 ;; 15738 esac 15739 ;; 15740 esac 15741 ;; 15742 lynxos*) 15743 ;; 15744 m88k*) 15745 ;; 15746 mvs*) 15747 case $cc_basename in 15748 cxx*) 15749 lt_prog_compiler_pic_CXX='-W c,exportall' 15750 ;; 15751 *) 15752 ;; 15753 esac 15754 ;; 15755 netbsd*) 15756 ;; 15757 *qnx* | *nto*) 15758 # QNX uses GNU C++, but need to define -shared option too, otherwise 15759 # it will coredump. 15760 lt_prog_compiler_pic_CXX='-fPIC -shared' 15761 ;; 15762 osf3* | osf4* | osf5*) 15763 case $cc_basename in 15764 KCC*) 15765 lt_prog_compiler_wl_CXX='--backend -Wl,' 15766 ;; 15767 RCC*) 15768 # Rational C++ 2.4.1 15769 lt_prog_compiler_pic_CXX='-pic' 15770 ;; 15771 cxx*) 15772 # Digital/Compaq C++ 15773 lt_prog_compiler_wl_CXX='-Wl,' 15774 # Make sure the PIC flag is empty. It appears that all Alpha 15775 # Linux and Compaq Tru64 Unix objects are PIC. 15776 lt_prog_compiler_pic_CXX= 15777 lt_prog_compiler_static_CXX='-non_shared' 15778 ;; 15779 *) 15780 ;; 15781 esac 15782 ;; 15783 psos*) 15784 ;; 15785 solaris*) 15786 case $cc_basename in 15787 CC* | sunCC*) 15788 # Sun C++ 4.2, 5.x and Centerline C++ 15789 lt_prog_compiler_pic_CXX='-KPIC' 15790 lt_prog_compiler_static_CXX='-Bstatic' 15791 lt_prog_compiler_wl_CXX='-Qoption ld ' 15792 ;; 15793 gcx*) 15794 # Green Hills C++ Compiler 15795 lt_prog_compiler_pic_CXX='-PIC' 15796 ;; 15797 *) 15798 ;; 15799 esac 15800 ;; 15801 sunos4*) 15802 case $cc_basename in 15803 CC*) 15804 # Sun C++ 4.x 15805 lt_prog_compiler_pic_CXX='-pic' 15806 lt_prog_compiler_static_CXX='-Bstatic' 15807 ;; 15808 lcc*) 15809 # Lucid 15810 lt_prog_compiler_pic_CXX='-pic' 15811 ;; 15812 *) 15813 ;; 15814 esac 15815 ;; 15816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15817 case $cc_basename in 15818 CC*) 15819 lt_prog_compiler_wl_CXX='-Wl,' 15820 lt_prog_compiler_pic_CXX='-KPIC' 15821 lt_prog_compiler_static_CXX='-Bstatic' 15822 ;; 15823 esac 15824 ;; 15825 tandem*) 15826 case $cc_basename in 15827 NCC*) 15828 # NonStop-UX NCC 3.20 15829 lt_prog_compiler_pic_CXX='-KPIC' 15830 ;; 15831 *) 15832 ;; 15833 esac 15834 ;; 15835 vxworks*) 15836 ;; 15837 *) 15838 lt_prog_compiler_can_build_shared_CXX=no 15839 ;; 15840 esac 15841 fi 15842 15843case $host_os in 15844 # For platforms that do not support PIC, -DPIC is meaningless: 15845 *djgpp*) 15846 lt_prog_compiler_pic_CXX= 15847 ;; 15848 *) 15849 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15850 ;; 15851esac 15852 15853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15854$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15855if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15856 $as_echo_n "(cached) " >&6 15857else 15858 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15859fi 15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15861$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15862lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15863 15864# 15865# Check to make sure the PIC flag actually works. 15866# 15867if test -n "$lt_prog_compiler_pic_CXX"; then 15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15869$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15870if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15871 $as_echo_n "(cached) " >&6 15872else 15873 lt_cv_prog_compiler_pic_works_CXX=no 15874 ac_outfile=conftest.$ac_objext 15875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15876 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15877 # Insert the option either (1) after the last *FLAGS variable, or 15878 # (2) before a word containing "conftest.", or (3) at the end. 15879 # Note that $ac_compile itself does not contain backslashes and begins 15880 # with a dollar sign (not a hyphen), so the echo should work correctly. 15881 # The option is referenced via a variable to avoid confusing sed. 15882 lt_compile=`echo "$ac_compile" | $SED \ 15883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15885 -e 's:$: $lt_compiler_flag:'` 15886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15887 (eval "$lt_compile" 2>conftest.err) 15888 ac_status=$? 15889 cat conftest.err >&5 15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15891 if (exit $ac_status) && test -s "$ac_outfile"; then 15892 # The compiler can only warn and ignore the option if not recognized 15893 # So say no if there are warnings other than the usual output. 15894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15896 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15897 lt_cv_prog_compiler_pic_works_CXX=yes 15898 fi 15899 fi 15900 $RM conftest* 15901 15902fi 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15904$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15905 15906if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15907 case $lt_prog_compiler_pic_CXX in 15908 "" | " "*) ;; 15909 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15910 esac 15911else 15912 lt_prog_compiler_pic_CXX= 15913 lt_prog_compiler_can_build_shared_CXX=no 15914fi 15915 15916fi 15917 15918 15919 15920 15921 15922# 15923# Check to make sure the static flag actually works. 15924# 15925wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15927$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15928if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15929 $as_echo_n "(cached) " >&6 15930else 15931 lt_cv_prog_compiler_static_works_CXX=no 15932 save_LDFLAGS=$LDFLAGS 15933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15934 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15936 # The linker can only warn and ignore the option if not recognized 15937 # So say no if there are warnings 15938 if test -s conftest.err; then 15939 # Append any errors to the config.log. 15940 cat conftest.err 1>&5 15941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15943 if diff conftest.exp conftest.er2 >/dev/null; then 15944 lt_cv_prog_compiler_static_works_CXX=yes 15945 fi 15946 else 15947 lt_cv_prog_compiler_static_works_CXX=yes 15948 fi 15949 fi 15950 $RM -r conftest* 15951 LDFLAGS=$save_LDFLAGS 15952 15953fi 15954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15955$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15956 15957if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15958 : 15959else 15960 lt_prog_compiler_static_CXX= 15961fi 15962 15963 15964 15965 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15968if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 lt_cv_prog_compiler_c_o_CXX=no 15972 $RM -r conftest 2>/dev/null 15973 mkdir conftest 15974 cd conftest 15975 mkdir out 15976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15977 15978 lt_compiler_flag="-o out/conftest2.$ac_objext" 15979 # Insert the option either (1) after the last *FLAGS variable, or 15980 # (2) before a word containing "conftest.", or (3) at the end. 15981 # Note that $ac_compile itself does not contain backslashes and begins 15982 # with a dollar sign (not a hyphen), so the echo should work correctly. 15983 lt_compile=`echo "$ac_compile" | $SED \ 15984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15986 -e 's:$: $lt_compiler_flag:'` 15987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15988 (eval "$lt_compile" 2>out/conftest.err) 15989 ac_status=$? 15990 cat out/conftest.err >&5 15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15992 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15993 then 15994 # The compiler can only warn and ignore the option if not recognized 15995 # So say no if there are warnings 15996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15999 lt_cv_prog_compiler_c_o_CXX=yes 16000 fi 16001 fi 16002 chmod u+w . 2>&5 16003 $RM conftest* 16004 # SGI C++ compiler will create directory out/ii_files/ for 16005 # template instantiation 16006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16007 $RM out/* && rmdir out 16008 cd .. 16009 $RM -r conftest 16010 $RM conftest* 16011 16012fi 16013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16014$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16015 16016 16017 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16020if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16021 $as_echo_n "(cached) " >&6 16022else 16023 lt_cv_prog_compiler_c_o_CXX=no 16024 $RM -r conftest 2>/dev/null 16025 mkdir conftest 16026 cd conftest 16027 mkdir out 16028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16029 16030 lt_compiler_flag="-o out/conftest2.$ac_objext" 16031 # Insert the option either (1) after the last *FLAGS variable, or 16032 # (2) before a word containing "conftest.", or (3) at the end. 16033 # Note that $ac_compile itself does not contain backslashes and begins 16034 # with a dollar sign (not a hyphen), so the echo should work correctly. 16035 lt_compile=`echo "$ac_compile" | $SED \ 16036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16038 -e 's:$: $lt_compiler_flag:'` 16039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16040 (eval "$lt_compile" 2>out/conftest.err) 16041 ac_status=$? 16042 cat out/conftest.err >&5 16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16045 then 16046 # The compiler can only warn and ignore the option if not recognized 16047 # So say no if there are warnings 16048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16051 lt_cv_prog_compiler_c_o_CXX=yes 16052 fi 16053 fi 16054 chmod u+w . 2>&5 16055 $RM conftest* 16056 # SGI C++ compiler will create directory out/ii_files/ for 16057 # template instantiation 16058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16059 $RM out/* && rmdir out 16060 cd .. 16061 $RM -r conftest 16062 $RM conftest* 16063 16064fi 16065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16066$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16067 16068 16069 16070 16071hard_links=nottested 16072if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16073 # do not overwrite the value of need_locks provided by the user 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16075$as_echo_n "checking if we can lock with hard links... " >&6; } 16076 hard_links=yes 16077 $RM conftest* 16078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16079 touch conftest.a 16080 ln conftest.a conftest.b 2>&5 || hard_links=no 16081 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16083$as_echo "$hard_links" >&6; } 16084 if test no = "$hard_links"; then 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16086$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16087 need_locks=warn 16088 fi 16089else 16090 need_locks=no 16091fi 16092 16093 16094 16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16096$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16097 16098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16099 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16100 case $host_os in 16101 aix[4-9]*) 16102 # If we're using GNU nm, then we don't want the "-C" option. 16103 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16104 # Without the "-l" option, or with the "-B" option, AIX nm treats 16105 # weak defined symbols like other global defined symbols, whereas 16106 # GNU nm marks them as "W". 16107 # While the 'weak' keyword is ignored in the Export File, we need 16108 # it in the Import File for the 'aix-soname' feature, so we have 16109 # to replace the "-B" option with "-P" for AIX nm. 16110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16111 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16112 else 16113 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16114 fi 16115 ;; 16116 pw32*) 16117 export_symbols_cmds_CXX=$ltdll_cmds 16118 ;; 16119 cygwin* | mingw* | cegcc*) 16120 case $cc_basename in 16121 cl*) 16122 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16123 ;; 16124 *) 16125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16126 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16127 ;; 16128 esac 16129 ;; 16130 *) 16131 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16132 ;; 16133 esac 16134 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16136$as_echo "$ld_shlibs_CXX" >&6; } 16137test no = "$ld_shlibs_CXX" && can_build_shared=no 16138 16139with_gnu_ld_CXX=$with_gnu_ld 16140 16141 16142 16143 16144 16145 16146# 16147# Do we need to explicitly link libc? 16148# 16149case "x$archive_cmds_need_lc_CXX" in 16150x|xyes) 16151 # Assume -lc should be added 16152 archive_cmds_need_lc_CXX=yes 16153 16154 if test yes,yes = "$GCC,$enable_shared"; then 16155 case $archive_cmds_CXX in 16156 *'~'*) 16157 # FIXME: we may have to deal with multi-command sequences. 16158 ;; 16159 '$CC '*) 16160 # Test whether the compiler implicitly links with -lc since on some 16161 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16162 # to ld, don't add -lc before -lgcc. 16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16164$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16165if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16166 $as_echo_n "(cached) " >&6 16167else 16168 $RM conftest* 16169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16170 16171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16172 (eval $ac_compile) 2>&5 16173 ac_status=$? 16174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16175 test $ac_status = 0; } 2>conftest.err; then 16176 soname=conftest 16177 lib=conftest 16178 libobjs=conftest.$ac_objext 16179 deplibs= 16180 wl=$lt_prog_compiler_wl_CXX 16181 pic_flag=$lt_prog_compiler_pic_CXX 16182 compiler_flags=-v 16183 linker_flags=-v 16184 verstring= 16185 output_objdir=. 16186 libname=conftest 16187 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16188 allow_undefined_flag_CXX= 16189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16190 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16191 ac_status=$? 16192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16193 test $ac_status = 0; } 16194 then 16195 lt_cv_archive_cmds_need_lc_CXX=no 16196 else 16197 lt_cv_archive_cmds_need_lc_CXX=yes 16198 fi 16199 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16200 else 16201 cat conftest.err 1>&5 16202 fi 16203 $RM conftest* 16204 16205fi 16206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16207$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16208 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16209 ;; 16210 esac 16211 fi 16212 ;; 16213esac 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16277$as_echo_n "checking dynamic linker characteristics... " >&6; } 16278 16279library_names_spec= 16280libname_spec='lib$name' 16281soname_spec= 16282shrext_cmds=.so 16283postinstall_cmds= 16284postuninstall_cmds= 16285finish_cmds= 16286finish_eval= 16287shlibpath_var= 16288shlibpath_overrides_runpath=unknown 16289version_type=none 16290dynamic_linker="$host_os ld.so" 16291sys_lib_dlsearch_path_spec="/lib /usr/lib" 16292need_lib_prefix=unknown 16293hardcode_into_libs=no 16294 16295# when you set need_version to no, make sure it does not cause -set_version 16296# flags to be left without arguments 16297need_version=unknown 16298 16299 16300 16301case $host_os in 16302aix3*) 16303 version_type=linux # correct to gnu/linux during the next big refactor 16304 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16305 shlibpath_var=LIBPATH 16306 16307 # AIX 3 has no versioning support, so we append a major version to the name. 16308 soname_spec='$libname$release$shared_ext$major' 16309 ;; 16310 16311aix[4-9]*) 16312 version_type=linux # correct to gnu/linux during the next big refactor 16313 need_lib_prefix=no 16314 need_version=no 16315 hardcode_into_libs=yes 16316 if test ia64 = "$host_cpu"; then 16317 # AIX 5 supports IA64 16318 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16319 shlibpath_var=LD_LIBRARY_PATH 16320 else 16321 # With GCC up to 2.95.x, collect2 would create an import file 16322 # for dependence libraries. The import file would start with 16323 # the line '#! .'. This would cause the generated library to 16324 # depend on '.', always an invalid library. This was fixed in 16325 # development snapshots of GCC prior to 3.0. 16326 case $host_os in 16327 aix4 | aix4.[01] | aix4.[01].*) 16328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16329 echo ' yes ' 16330 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16331 : 16332 else 16333 can_build_shared=no 16334 fi 16335 ;; 16336 esac 16337 # Using Import Files as archive members, it is possible to support 16338 # filename-based versioning of shared library archives on AIX. While 16339 # this would work for both with and without runtime linking, it will 16340 # prevent static linking of such archives. So we do filename-based 16341 # shared library versioning with .so extension only, which is used 16342 # when both runtime linking and shared linking is enabled. 16343 # Unfortunately, runtime linking may impact performance, so we do 16344 # not want this to be the default eventually. Also, we use the 16345 # versioned .so libs for executables only if there is the -brtl 16346 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16347 # To allow for filename-based versioning support, we need to create 16348 # libNAME.so.V as an archive file, containing: 16349 # *) an Import File, referring to the versioned filename of the 16350 # archive as well as the shared archive member, telling the 16351 # bitwidth (32 or 64) of that shared object, and providing the 16352 # list of exported symbols of that shared object, eventually 16353 # decorated with the 'weak' keyword 16354 # *) the shared object with the F_LOADONLY flag set, to really avoid 16355 # it being seen by the linker. 16356 # At run time we better use the real file rather than another symlink, 16357 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16358 16359 case $with_aix_soname,$aix_use_runtimelinking in 16360 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16361 # soname into executable. Probably we can add versioning support to 16362 # collect2, so additional links can be useful in future. 16363 aix,yes) # traditional libtool 16364 dynamic_linker='AIX unversionable lib.so' 16365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16366 # instead of lib<name>.a to let people know that these are not 16367 # typical AIX shared libraries. 16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16369 ;; 16370 aix,no) # traditional AIX only 16371 dynamic_linker='AIX lib.a(lib.so.V)' 16372 # We preserve .a as extension for shared libraries through AIX4.2 16373 # and later when we are not doing run time linking. 16374 library_names_spec='$libname$release.a $libname.a' 16375 soname_spec='$libname$release$shared_ext$major' 16376 ;; 16377 svr4,*) # full svr4 only 16378 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16379 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16380 # We do not specify a path in Import Files, so LIBPATH fires. 16381 shlibpath_overrides_runpath=yes 16382 ;; 16383 *,yes) # both, prefer svr4 16384 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16385 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16386 # unpreferred sharedlib libNAME.a needs extra handling 16387 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16388 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16389 # We do not specify a path in Import Files, so LIBPATH fires. 16390 shlibpath_overrides_runpath=yes 16391 ;; 16392 *,no) # both, prefer aix 16393 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16394 library_names_spec='$libname$release.a $libname.a' 16395 soname_spec='$libname$release$shared_ext$major' 16396 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16397 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16398 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16399 ;; 16400 esac 16401 shlibpath_var=LIBPATH 16402 fi 16403 ;; 16404 16405amigaos*) 16406 case $host_cpu in 16407 powerpc) 16408 # Since July 2007 AmigaOS4 officially supports .so libraries. 16409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16411 ;; 16412 m68k) 16413 library_names_spec='$libname.ixlibrary $libname.a' 16414 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16415 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16416 ;; 16417 esac 16418 ;; 16419 16420beos*) 16421 library_names_spec='$libname$shared_ext' 16422 dynamic_linker="$host_os ld.so" 16423 shlibpath_var=LIBRARY_PATH 16424 ;; 16425 16426bsdi[45]*) 16427 version_type=linux # correct to gnu/linux during the next big refactor 16428 need_version=no 16429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16430 soname_spec='$libname$release$shared_ext$major' 16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16432 shlibpath_var=LD_LIBRARY_PATH 16433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16435 # the default ld.so.conf also contains /usr/contrib/lib and 16436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16437 # libtool to hard-code these into programs 16438 ;; 16439 16440cygwin* | mingw* | pw32* | cegcc*) 16441 version_type=windows 16442 shrext_cmds=.dll 16443 need_version=no 16444 need_lib_prefix=no 16445 16446 case $GCC,$cc_basename in 16447 yes,*) 16448 # gcc 16449 library_names_spec='$libname.dll.a' 16450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16451 postinstall_cmds='base_file=`basename \$file`~ 16452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16453 dldir=$destdir/`dirname \$dlpath`~ 16454 test -d \$dldir || mkdir -p \$dldir~ 16455 $install_prog $dir/$dlname \$dldir/$dlname~ 16456 chmod a+x \$dldir/$dlname~ 16457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16459 fi' 16460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16461 dlpath=$dir/\$dldll~ 16462 $RM \$dlpath' 16463 shlibpath_overrides_runpath=yes 16464 16465 case $host_os in 16466 cygwin*) 16467 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16468 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16469 16470 ;; 16471 mingw* | cegcc*) 16472 # MinGW DLLs use traditional 'lib' prefix 16473 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16474 ;; 16475 pw32*) 16476 # pw32 DLLs use 'pw' prefix rather than 'lib' 16477 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16478 ;; 16479 esac 16480 dynamic_linker='Win32 ld.exe' 16481 ;; 16482 16483 *,cl*) 16484 # Native MSVC 16485 libname_spec='$name' 16486 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16487 library_names_spec='$libname.dll.lib' 16488 16489 case $build_os in 16490 mingw*) 16491 sys_lib_search_path_spec= 16492 lt_save_ifs=$IFS 16493 IFS=';' 16494 for lt_path in $LIB 16495 do 16496 IFS=$lt_save_ifs 16497 # Let DOS variable expansion print the short 8.3 style file name. 16498 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16499 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16500 done 16501 IFS=$lt_save_ifs 16502 # Convert to MSYS style. 16503 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16504 ;; 16505 cygwin*) 16506 # Convert to unix form, then to dos form, then back to unix form 16507 # but this time dos style (no spaces!) so that the unix form looks 16508 # like /cygdrive/c/PROGRA~1:/cygdr... 16509 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16510 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16511 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16512 ;; 16513 *) 16514 sys_lib_search_path_spec=$LIB 16515 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16516 # It is most probably a Windows format PATH. 16517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16518 else 16519 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16520 fi 16521 # FIXME: find the short name or the path components, as spaces are 16522 # common. (e.g. "Program Files" -> "PROGRA~1") 16523 ;; 16524 esac 16525 16526 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16527 postinstall_cmds='base_file=`basename \$file`~ 16528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16529 dldir=$destdir/`dirname \$dlpath`~ 16530 test -d \$dldir || mkdir -p \$dldir~ 16531 $install_prog $dir/$dlname \$dldir/$dlname' 16532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16533 dlpath=$dir/\$dldll~ 16534 $RM \$dlpath' 16535 shlibpath_overrides_runpath=yes 16536 dynamic_linker='Win32 link.exe' 16537 ;; 16538 16539 *) 16540 # Assume MSVC wrapper 16541 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16542 dynamic_linker='Win32 ld.exe' 16543 ;; 16544 esac 16545 # FIXME: first we should search . and the directory the executable is in 16546 shlibpath_var=PATH 16547 ;; 16548 16549darwin* | rhapsody*) 16550 dynamic_linker="$host_os dyld" 16551 version_type=darwin 16552 need_lib_prefix=no 16553 need_version=no 16554 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16555 soname_spec='$libname$release$major$shared_ext' 16556 shlibpath_overrides_runpath=yes 16557 shlibpath_var=DYLD_LIBRARY_PATH 16558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16559 16560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16561 ;; 16562 16563dgux*) 16564 version_type=linux # correct to gnu/linux during the next big refactor 16565 need_lib_prefix=no 16566 need_version=no 16567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16568 soname_spec='$libname$release$shared_ext$major' 16569 shlibpath_var=LD_LIBRARY_PATH 16570 ;; 16571 16572freebsd* | dragonfly*) 16573 # DragonFly does not have aout. When/if they implement a new 16574 # versioning mechanism, adjust this. 16575 if test -x /usr/bin/objformat; then 16576 objformat=`/usr/bin/objformat` 16577 else 16578 case $host_os in 16579 freebsd[23].*) objformat=aout ;; 16580 *) objformat=elf ;; 16581 esac 16582 fi 16583 version_type=freebsd-$objformat 16584 case $version_type in 16585 freebsd-elf*) 16586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16587 soname_spec='$libname$release$shared_ext$major' 16588 need_version=no 16589 need_lib_prefix=no 16590 ;; 16591 freebsd-*) 16592 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16593 need_version=yes 16594 ;; 16595 esac 16596 shlibpath_var=LD_LIBRARY_PATH 16597 case $host_os in 16598 freebsd2.*) 16599 shlibpath_overrides_runpath=yes 16600 ;; 16601 freebsd3.[01]* | freebsdelf3.[01]*) 16602 shlibpath_overrides_runpath=yes 16603 hardcode_into_libs=yes 16604 ;; 16605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16607 shlibpath_overrides_runpath=no 16608 hardcode_into_libs=yes 16609 ;; 16610 *) # from 4.6 on, and DragonFly 16611 shlibpath_overrides_runpath=yes 16612 hardcode_into_libs=yes 16613 ;; 16614 esac 16615 ;; 16616 16617haiku*) 16618 version_type=linux # correct to gnu/linux during the next big refactor 16619 need_lib_prefix=no 16620 need_version=no 16621 dynamic_linker="$host_os runtime_loader" 16622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16623 soname_spec='$libname$release$shared_ext$major' 16624 shlibpath_var=LIBRARY_PATH 16625 shlibpath_overrides_runpath=no 16626 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16627 hardcode_into_libs=yes 16628 ;; 16629 16630hpux9* | hpux10* | hpux11*) 16631 # Give a soname corresponding to the major version so that dld.sl refuses to 16632 # link against other versions. 16633 version_type=sunos 16634 need_lib_prefix=no 16635 need_version=no 16636 case $host_cpu in 16637 ia64*) 16638 shrext_cmds='.so' 16639 hardcode_into_libs=yes 16640 dynamic_linker="$host_os dld.so" 16641 shlibpath_var=LD_LIBRARY_PATH 16642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16644 soname_spec='$libname$release$shared_ext$major' 16645 if test 32 = "$HPUX_IA64_MODE"; then 16646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16647 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16648 else 16649 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16650 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16651 fi 16652 ;; 16653 hppa*64*) 16654 shrext_cmds='.sl' 16655 hardcode_into_libs=yes 16656 dynamic_linker="$host_os dld.sl" 16657 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16660 soname_spec='$libname$release$shared_ext$major' 16661 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16663 ;; 16664 *) 16665 shrext_cmds='.sl' 16666 dynamic_linker="$host_os dld.sl" 16667 shlibpath_var=SHLIB_PATH 16668 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16670 soname_spec='$libname$release$shared_ext$major' 16671 ;; 16672 esac 16673 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16674 postinstall_cmds='chmod 555 $lib' 16675 # or fails outright, so override atomically: 16676 install_override_mode=555 16677 ;; 16678 16679interix[3-9]*) 16680 version_type=linux # correct to gnu/linux during the next big refactor 16681 need_lib_prefix=no 16682 need_version=no 16683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16684 soname_spec='$libname$release$shared_ext$major' 16685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16686 shlibpath_var=LD_LIBRARY_PATH 16687 shlibpath_overrides_runpath=no 16688 hardcode_into_libs=yes 16689 ;; 16690 16691irix5* | irix6* | nonstopux*) 16692 case $host_os in 16693 nonstopux*) version_type=nonstopux ;; 16694 *) 16695 if test yes = "$lt_cv_prog_gnu_ld"; then 16696 version_type=linux # correct to gnu/linux during the next big refactor 16697 else 16698 version_type=irix 16699 fi ;; 16700 esac 16701 need_lib_prefix=no 16702 need_version=no 16703 soname_spec='$libname$release$shared_ext$major' 16704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16705 case $host_os in 16706 irix5* | nonstopux*) 16707 libsuff= shlibsuff= 16708 ;; 16709 *) 16710 case $LD in # libtool.m4 will add one of these switches to LD 16711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16712 libsuff= shlibsuff= libmagic=32-bit;; 16713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16714 libsuff=32 shlibsuff=N32 libmagic=N32;; 16715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16716 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16717 *) libsuff= shlibsuff= libmagic=never-match;; 16718 esac 16719 ;; 16720 esac 16721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16722 shlibpath_overrides_runpath=no 16723 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16724 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16725 hardcode_into_libs=yes 16726 ;; 16727 16728# No shared lib support for Linux oldld, aout, or coff. 16729linux*oldld* | linux*aout* | linux*coff*) 16730 dynamic_linker=no 16731 ;; 16732 16733linux*android*) 16734 version_type=none # Android doesn't support versioned libraries. 16735 need_lib_prefix=no 16736 need_version=no 16737 library_names_spec='$libname$release$shared_ext' 16738 soname_spec='$libname$release$shared_ext' 16739 finish_cmds= 16740 shlibpath_var=LD_LIBRARY_PATH 16741 shlibpath_overrides_runpath=yes 16742 16743 # This implies no fast_install, which is unacceptable. 16744 # Some rework will be needed to allow for fast_install 16745 # before this can be enabled. 16746 hardcode_into_libs=yes 16747 16748 dynamic_linker='Android linker' 16749 # Don't embed -rpath directories since the linker doesn't support them. 16750 hardcode_libdir_flag_spec_CXX='-L$libdir' 16751 ;; 16752 16753# This must be glibc/ELF. 16754linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16755 version_type=linux # correct to gnu/linux during the next big refactor 16756 need_lib_prefix=no 16757 need_version=no 16758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16759 soname_spec='$libname$release$shared_ext$major' 16760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16761 shlibpath_var=LD_LIBRARY_PATH 16762 shlibpath_overrides_runpath=no 16763 16764 # Some binutils ld are patched to set DT_RUNPATH 16765 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16766 $as_echo_n "(cached) " >&6 16767else 16768 lt_cv_shlibpath_overrides_runpath=no 16769 save_LDFLAGS=$LDFLAGS 16770 save_libdir=$libdir 16771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775 16776int 16777main () 16778{ 16779 16780 ; 16781 return 0; 16782} 16783_ACEOF 16784if ac_fn_cxx_try_link "$LINENO"; then : 16785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16786 lt_cv_shlibpath_overrides_runpath=yes 16787fi 16788fi 16789rm -f core conftest.err conftest.$ac_objext \ 16790 conftest$ac_exeext conftest.$ac_ext 16791 LDFLAGS=$save_LDFLAGS 16792 libdir=$save_libdir 16793 16794fi 16795 16796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16797 16798 # This implies no fast_install, which is unacceptable. 16799 # Some rework will be needed to allow for fast_install 16800 # before this can be enabled. 16801 hardcode_into_libs=yes 16802 16803 # Ideally, we could use ldconfig to report *all* directores which are 16804 # searched for libraries, however this is still not possible. Aside from not 16805 # being certain /sbin/ldconfig is available, command 16806 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16807 # even though it is searched at run-time. Try to do the best guess by 16808 # appending ld.so.conf contents (and includes) to the search path. 16809 if test -f /etc/ld.so.conf; then 16810 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' ' '` 16811 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16812 fi 16813 16814 # We used to test for /lib/ld.so.1 and disable shared libraries on 16815 # powerpc, because MkLinux only supported shared libraries with the 16816 # GNU dynamic linker. Since this was broken with cross compilers, 16817 # most powerpc-linux boxes support dynamic linking these days and 16818 # people can always --disable-shared, the test was removed, and we 16819 # assume the GNU/Linux dynamic linker is in use. 16820 dynamic_linker='GNU/Linux ld.so' 16821 ;; 16822 16823netbsd*) 16824 version_type=sunos 16825 need_lib_prefix=no 16826 need_version=no 16827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16828 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16830 dynamic_linker='NetBSD (a.out) ld.so' 16831 else 16832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16833 soname_spec='$libname$release$shared_ext$major' 16834 dynamic_linker='NetBSD ld.elf_so' 16835 fi 16836 shlibpath_var=LD_LIBRARY_PATH 16837 shlibpath_overrides_runpath=yes 16838 hardcode_into_libs=yes 16839 ;; 16840 16841newsos6) 16842 version_type=linux # correct to gnu/linux during the next big refactor 16843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16844 shlibpath_var=LD_LIBRARY_PATH 16845 shlibpath_overrides_runpath=yes 16846 ;; 16847 16848*nto* | *qnx*) 16849 version_type=qnx 16850 need_lib_prefix=no 16851 need_version=no 16852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16853 soname_spec='$libname$release$shared_ext$major' 16854 shlibpath_var=LD_LIBRARY_PATH 16855 shlibpath_overrides_runpath=no 16856 hardcode_into_libs=yes 16857 dynamic_linker='ldqnx.so' 16858 ;; 16859 16860openbsd* | bitrig*) 16861 version_type=sunos 16862 sys_lib_dlsearch_path_spec=/usr/lib 16863 need_lib_prefix=no 16864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16865 need_version=no 16866 else 16867 need_version=yes 16868 fi 16869 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16871 shlibpath_var=LD_LIBRARY_PATH 16872 shlibpath_overrides_runpath=yes 16873 ;; 16874 16875os2*) 16876 libname_spec='$name' 16877 version_type=windows 16878 shrext_cmds=.dll 16879 need_version=no 16880 need_lib_prefix=no 16881 # OS/2 can only load a DLL with a base name of 8 characters or less. 16882 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16883 v=$($ECHO $release$versuffix | tr -d .-); 16884 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16885 $ECHO $n$v`$shared_ext' 16886 library_names_spec='${libname}_dll.$libext' 16887 dynamic_linker='OS/2 ld.exe' 16888 shlibpath_var=BEGINLIBPATH 16889 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16891 postinstall_cmds='base_file=`basename \$file`~ 16892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16893 dldir=$destdir/`dirname \$dlpath`~ 16894 test -d \$dldir || mkdir -p \$dldir~ 16895 $install_prog $dir/$dlname \$dldir/$dlname~ 16896 chmod a+x \$dldir/$dlname~ 16897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16899 fi' 16900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16901 dlpath=$dir/\$dldll~ 16902 $RM \$dlpath' 16903 ;; 16904 16905osf3* | osf4* | osf5*) 16906 version_type=osf 16907 need_lib_prefix=no 16908 need_version=no 16909 soname_spec='$libname$release$shared_ext$major' 16910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16911 shlibpath_var=LD_LIBRARY_PATH 16912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16914 ;; 16915 16916rdos*) 16917 dynamic_linker=no 16918 ;; 16919 16920solaris*) 16921 version_type=linux # correct to gnu/linux during the next big refactor 16922 need_lib_prefix=no 16923 need_version=no 16924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16925 soname_spec='$libname$release$shared_ext$major' 16926 shlibpath_var=LD_LIBRARY_PATH 16927 shlibpath_overrides_runpath=yes 16928 hardcode_into_libs=yes 16929 # ldd complains unless libraries are executable 16930 postinstall_cmds='chmod +x $lib' 16931 ;; 16932 16933sunos4*) 16934 version_type=sunos 16935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16937 shlibpath_var=LD_LIBRARY_PATH 16938 shlibpath_overrides_runpath=yes 16939 if test yes = "$with_gnu_ld"; then 16940 need_lib_prefix=no 16941 fi 16942 need_version=yes 16943 ;; 16944 16945sysv4 | sysv4.3*) 16946 version_type=linux # correct to gnu/linux during the next big refactor 16947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16948 soname_spec='$libname$release$shared_ext$major' 16949 shlibpath_var=LD_LIBRARY_PATH 16950 case $host_vendor in 16951 sni) 16952 shlibpath_overrides_runpath=no 16953 need_lib_prefix=no 16954 runpath_var=LD_RUN_PATH 16955 ;; 16956 siemens) 16957 need_lib_prefix=no 16958 ;; 16959 motorola) 16960 need_lib_prefix=no 16961 need_version=no 16962 shlibpath_overrides_runpath=no 16963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16964 ;; 16965 esac 16966 ;; 16967 16968sysv4*MP*) 16969 if test -d /usr/nec; then 16970 version_type=linux # correct to gnu/linux during the next big refactor 16971 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16972 soname_spec='$libname$shared_ext.$major' 16973 shlibpath_var=LD_LIBRARY_PATH 16974 fi 16975 ;; 16976 16977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16978 version_type=sco 16979 need_lib_prefix=no 16980 need_version=no 16981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16982 soname_spec='$libname$release$shared_ext$major' 16983 shlibpath_var=LD_LIBRARY_PATH 16984 shlibpath_overrides_runpath=yes 16985 hardcode_into_libs=yes 16986 if test yes = "$with_gnu_ld"; then 16987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16988 else 16989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16990 case $host_os in 16991 sco3.2v5*) 16992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16993 ;; 16994 esac 16995 fi 16996 sys_lib_dlsearch_path_spec='/usr/lib' 16997 ;; 16998 16999tpf*) 17000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17001 version_type=linux # correct to gnu/linux during the next big refactor 17002 need_lib_prefix=no 17003 need_version=no 17004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17005 shlibpath_var=LD_LIBRARY_PATH 17006 shlibpath_overrides_runpath=no 17007 hardcode_into_libs=yes 17008 ;; 17009 17010uts4*) 17011 version_type=linux # correct to gnu/linux during the next big refactor 17012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17013 soname_spec='$libname$release$shared_ext$major' 17014 shlibpath_var=LD_LIBRARY_PATH 17015 ;; 17016 17017*) 17018 dynamic_linker=no 17019 ;; 17020esac 17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17022$as_echo "$dynamic_linker" >&6; } 17023test no = "$dynamic_linker" && can_build_shared=no 17024 17025variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17026if test yes = "$GCC"; then 17027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17028fi 17029 17030if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17031 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17032fi 17033 17034if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17035 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17036fi 17037 17038# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17039configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17040 17041# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17042func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17043 17044# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17045configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17087$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17088hardcode_action_CXX= 17089if test -n "$hardcode_libdir_flag_spec_CXX" || 17090 test -n "$runpath_var_CXX" || 17091 test yes = "$hardcode_automatic_CXX"; then 17092 17093 # We can hardcode non-existent directories. 17094 if test no != "$hardcode_direct_CXX" && 17095 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17096 # have to relink, otherwise we might link with an installed library 17097 # when we should be linking with a yet-to-be-installed one 17098 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17099 test no != "$hardcode_minus_L_CXX"; then 17100 # Linking always hardcodes the temporary library directory. 17101 hardcode_action_CXX=relink 17102 else 17103 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17104 hardcode_action_CXX=immediate 17105 fi 17106else 17107 # We cannot hardcode anything, or else we can only hardcode existing 17108 # directories. 17109 hardcode_action_CXX=unsupported 17110fi 17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17112$as_echo "$hardcode_action_CXX" >&6; } 17113 17114if test relink = "$hardcode_action_CXX" || 17115 test yes = "$inherit_rpath_CXX"; then 17116 # Fast installation is not supported 17117 enable_fast_install=no 17118elif test yes = "$shlibpath_overrides_runpath" || 17119 test no = "$enable_shared"; then 17120 # Fast installation is not necessary 17121 enable_fast_install=needless 17122fi 17123 17124 17125 17126 17127 17128 17129 17130 fi # test -n "$compiler" 17131 17132 CC=$lt_save_CC 17133 CFLAGS=$lt_save_CFLAGS 17134 LDCXX=$LD 17135 LD=$lt_save_LD 17136 GCC=$lt_save_GCC 17137 with_gnu_ld=$lt_save_with_gnu_ld 17138 lt_cv_path_LDCXX=$lt_cv_path_LD 17139 lt_cv_path_LD=$lt_save_path_LD 17140 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17141 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17142fi # test yes != "$_lt_caught_CXX_error" 17143 17144ac_ext=c 17145ac_cpp='$CPP $CPPFLAGS' 17146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17148ac_compiler_gnu=$ac_cv_c_compiler_gnu 17149 17150 17151 17152#################################################################### 17153# Setup C, C++ compilers 17154#################################################################### 17155 17156CFLAGS_save=$CFLAGS 17157ac_ext=c 17158ac_cpp='$CPP $CPPFLAGS' 17159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17161ac_compiler_gnu=$ac_cv_c_compiler_gnu 17162if test -n "$ac_tool_prefix"; then 17163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 17164set dummy ${ac_tool_prefix}gcc; ac_word=$2 17165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17166$as_echo_n "checking for $ac_word... " >&6; } 17167if ${ac_cv_prog_CC+:} false; then : 17168 $as_echo_n "(cached) " >&6 17169else 17170 if test -n "$CC"; then 17171 ac_cv_prog_CC="$CC" # Let the user override the test. 17172else 17173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17174for as_dir in $PATH 17175do 17176 IFS=$as_save_IFS 17177 test -z "$as_dir" && as_dir=. 17178 for ac_exec_ext in '' $ac_executable_extensions; do 17179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17180 ac_cv_prog_CC="${ac_tool_prefix}gcc" 17181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17182 break 2 17183 fi 17184done 17185 done 17186IFS=$as_save_IFS 17187 17188fi 17189fi 17190CC=$ac_cv_prog_CC 17191if test -n "$CC"; then 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 17193$as_echo "$CC" >&6; } 17194else 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17196$as_echo "no" >&6; } 17197fi 17198 17199 17200fi 17201if test -z "$ac_cv_prog_CC"; then 17202 ac_ct_CC=$CC 17203 # Extract the first word of "gcc", so it can be a program name with args. 17204set dummy gcc; ac_word=$2 17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17206$as_echo_n "checking for $ac_word... " >&6; } 17207if ${ac_cv_prog_ac_ct_CC+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 if test -n "$ac_ct_CC"; then 17211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 17212else 17213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17214for as_dir in $PATH 17215do 17216 IFS=$as_save_IFS 17217 test -z "$as_dir" && as_dir=. 17218 for ac_exec_ext in '' $ac_executable_extensions; do 17219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17220 ac_cv_prog_ac_ct_CC="gcc" 17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17222 break 2 17223 fi 17224done 17225 done 17226IFS=$as_save_IFS 17227 17228fi 17229fi 17230ac_ct_CC=$ac_cv_prog_ac_ct_CC 17231if test -n "$ac_ct_CC"; then 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 17233$as_echo "$ac_ct_CC" >&6; } 17234else 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17236$as_echo "no" >&6; } 17237fi 17238 17239 if test "x$ac_ct_CC" = x; then 17240 CC="" 17241 else 17242 case $cross_compiling:$ac_tool_warned in 17243yes:) 17244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17246ac_tool_warned=yes ;; 17247esac 17248 CC=$ac_ct_CC 17249 fi 17250else 17251 CC="$ac_cv_prog_CC" 17252fi 17253 17254if test -z "$CC"; then 17255 if test -n "$ac_tool_prefix"; then 17256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 17257set dummy ${ac_tool_prefix}cc; ac_word=$2 17258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17259$as_echo_n "checking for $ac_word... " >&6; } 17260if ${ac_cv_prog_CC+:} false; then : 17261 $as_echo_n "(cached) " >&6 17262else 17263 if test -n "$CC"; then 17264 ac_cv_prog_CC="$CC" # Let the user override the test. 17265else 17266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17267for as_dir in $PATH 17268do 17269 IFS=$as_save_IFS 17270 test -z "$as_dir" && as_dir=. 17271 for ac_exec_ext in '' $ac_executable_extensions; do 17272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17273 ac_cv_prog_CC="${ac_tool_prefix}cc" 17274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17275 break 2 17276 fi 17277done 17278 done 17279IFS=$as_save_IFS 17280 17281fi 17282fi 17283CC=$ac_cv_prog_CC 17284if test -n "$CC"; then 17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 17286$as_echo "$CC" >&6; } 17287else 17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17289$as_echo "no" >&6; } 17290fi 17291 17292 17293 fi 17294fi 17295if test -z "$CC"; then 17296 # Extract the first word of "cc", so it can be a program name with args. 17297set dummy cc; ac_word=$2 17298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17299$as_echo_n "checking for $ac_word... " >&6; } 17300if ${ac_cv_prog_CC+:} false; then : 17301 $as_echo_n "(cached) " >&6 17302else 17303 if test -n "$CC"; then 17304 ac_cv_prog_CC="$CC" # Let the user override the test. 17305else 17306 ac_prog_rejected=no 17307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17308for as_dir in $PATH 17309do 17310 IFS=$as_save_IFS 17311 test -z "$as_dir" && as_dir=. 17312 for ac_exec_ext in '' $ac_executable_extensions; do 17313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 17315 ac_prog_rejected=yes 17316 continue 17317 fi 17318 ac_cv_prog_CC="cc" 17319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17320 break 2 17321 fi 17322done 17323 done 17324IFS=$as_save_IFS 17325 17326if test $ac_prog_rejected = yes; then 17327 # We found a bogon in the path, so make sure we never use it. 17328 set dummy $ac_cv_prog_CC 17329 shift 17330 if test $# != 0; then 17331 # We chose a different compiler from the bogus one. 17332 # However, it has the same basename, so the bogon will be chosen 17333 # first if we set CC to just the basename; use the full file name. 17334 shift 17335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 17336 fi 17337fi 17338fi 17339fi 17340CC=$ac_cv_prog_CC 17341if test -n "$CC"; then 17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 17343$as_echo "$CC" >&6; } 17344else 17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17346$as_echo "no" >&6; } 17347fi 17348 17349 17350fi 17351if test -z "$CC"; then 17352 if test -n "$ac_tool_prefix"; then 17353 for ac_prog in cl.exe 17354 do 17355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17356set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17358$as_echo_n "checking for $ac_word... " >&6; } 17359if ${ac_cv_prog_CC+:} false; then : 17360 $as_echo_n "(cached) " >&6 17361else 17362 if test -n "$CC"; then 17363 ac_cv_prog_CC="$CC" # Let the user override the test. 17364else 17365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17366for as_dir in $PATH 17367do 17368 IFS=$as_save_IFS 17369 test -z "$as_dir" && as_dir=. 17370 for ac_exec_ext in '' $ac_executable_extensions; do 17371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 17373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17374 break 2 17375 fi 17376done 17377 done 17378IFS=$as_save_IFS 17379 17380fi 17381fi 17382CC=$ac_cv_prog_CC 17383if test -n "$CC"; then 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 17385$as_echo "$CC" >&6; } 17386else 17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17388$as_echo "no" >&6; } 17389fi 17390 17391 17392 test -n "$CC" && break 17393 done 17394fi 17395if test -z "$CC"; then 17396 ac_ct_CC=$CC 17397 for ac_prog in cl.exe 17398do 17399 # Extract the first word of "$ac_prog", so it can be a program name with args. 17400set dummy $ac_prog; ac_word=$2 17401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17402$as_echo_n "checking for $ac_word... " >&6; } 17403if ${ac_cv_prog_ac_ct_CC+:} false; then : 17404 $as_echo_n "(cached) " >&6 17405else 17406 if test -n "$ac_ct_CC"; then 17407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 17408else 17409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17410for as_dir in $PATH 17411do 17412 IFS=$as_save_IFS 17413 test -z "$as_dir" && as_dir=. 17414 for ac_exec_ext in '' $ac_executable_extensions; do 17415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17416 ac_cv_prog_ac_ct_CC="$ac_prog" 17417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17418 break 2 17419 fi 17420done 17421 done 17422IFS=$as_save_IFS 17423 17424fi 17425fi 17426ac_ct_CC=$ac_cv_prog_ac_ct_CC 17427if test -n "$ac_ct_CC"; then 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 17429$as_echo "$ac_ct_CC" >&6; } 17430else 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17432$as_echo "no" >&6; } 17433fi 17434 17435 17436 test -n "$ac_ct_CC" && break 17437done 17438 17439 if test "x$ac_ct_CC" = x; then 17440 CC="" 17441 else 17442 case $cross_compiling:$ac_tool_warned in 17443yes:) 17444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17446ac_tool_warned=yes ;; 17447esac 17448 CC=$ac_ct_CC 17449 fi 17450fi 17451 17452fi 17453 17454 17455test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17457as_fn_error $? "no acceptable C compiler found in \$PATH 17458See \`config.log' for more details" "$LINENO" 5; } 17459 17460# Provide some information about the compiler. 17461$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 17462set X $ac_compile 17463ac_compiler=$2 17464for ac_option in --version -v -V -qversion; do 17465 { { ac_try="$ac_compiler $ac_option >&5" 17466case "(($ac_try" in 17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17468 *) ac_try_echo=$ac_try;; 17469esac 17470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17471$as_echo "$ac_try_echo"; } >&5 17472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 17473 ac_status=$? 17474 if test -s conftest.err; then 17475 sed '10a\ 17476... rest of stderr output deleted ... 17477 10q' conftest.err >conftest.er1 17478 cat conftest.er1 >&5 17479 fi 17480 rm -f conftest.er1 conftest.err 17481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17482 test $ac_status = 0; } 17483done 17484 17485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 17486$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 17487if ${ac_cv_c_compiler_gnu+:} false; then : 17488 $as_echo_n "(cached) " >&6 17489else 17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17491/* end confdefs.h. */ 17492 17493int 17494main () 17495{ 17496#ifndef __GNUC__ 17497 choke me 17498#endif 17499 17500 ; 17501 return 0; 17502} 17503_ACEOF 17504if ac_fn_c_try_compile "$LINENO"; then : 17505 ac_compiler_gnu=yes 17506else 17507 ac_compiler_gnu=no 17508fi 17509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17510ac_cv_c_compiler_gnu=$ac_compiler_gnu 17511 17512fi 17513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 17514$as_echo "$ac_cv_c_compiler_gnu" >&6; } 17515if test $ac_compiler_gnu = yes; then 17516 GCC=yes 17517else 17518 GCC= 17519fi 17520ac_test_CFLAGS=${CFLAGS+set} 17521ac_save_CFLAGS=$CFLAGS 17522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 17523$as_echo_n "checking whether $CC accepts -g... " >&6; } 17524if ${ac_cv_prog_cc_g+:} false; then : 17525 $as_echo_n "(cached) " >&6 17526else 17527 ac_save_c_werror_flag=$ac_c_werror_flag 17528 ac_c_werror_flag=yes 17529 ac_cv_prog_cc_g=no 17530 CFLAGS="-g" 17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17532/* end confdefs.h. */ 17533 17534int 17535main () 17536{ 17537 17538 ; 17539 return 0; 17540} 17541_ACEOF 17542if ac_fn_c_try_compile "$LINENO"; then : 17543 ac_cv_prog_cc_g=yes 17544else 17545 CFLAGS="" 17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17547/* end confdefs.h. */ 17548 17549int 17550main () 17551{ 17552 17553 ; 17554 return 0; 17555} 17556_ACEOF 17557if ac_fn_c_try_compile "$LINENO"; then : 17558 17559else 17560 ac_c_werror_flag=$ac_save_c_werror_flag 17561 CFLAGS="-g" 17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17563/* end confdefs.h. */ 17564 17565int 17566main () 17567{ 17568 17569 ; 17570 return 0; 17571} 17572_ACEOF 17573if ac_fn_c_try_compile "$LINENO"; then : 17574 ac_cv_prog_cc_g=yes 17575fi 17576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17577fi 17578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17579fi 17580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17581 ac_c_werror_flag=$ac_save_c_werror_flag 17582fi 17583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 17584$as_echo "$ac_cv_prog_cc_g" >&6; } 17585if test "$ac_test_CFLAGS" = set; then 17586 CFLAGS=$ac_save_CFLAGS 17587elif test $ac_cv_prog_cc_g = yes; then 17588 if test "$GCC" = yes; then 17589 CFLAGS="-g -O2" 17590 else 17591 CFLAGS="-g" 17592 fi 17593else 17594 if test "$GCC" = yes; then 17595 CFLAGS="-O2" 17596 else 17597 CFLAGS= 17598 fi 17599fi 17600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 17601$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 17602if ${ac_cv_prog_cc_c89+:} false; then : 17603 $as_echo_n "(cached) " >&6 17604else 17605 ac_cv_prog_cc_c89=no 17606ac_save_CC=$CC 17607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17608/* end confdefs.h. */ 17609#include <stdarg.h> 17610#include <stdio.h> 17611struct stat; 17612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 17613struct buf { int x; }; 17614FILE * (*rcsopen) (struct buf *, struct stat *, int); 17615static char *e (p, i) 17616 char **p; 17617 int i; 17618{ 17619 return p[i]; 17620} 17621static char *f (char * (*g) (char **, int), char **p, ...) 17622{ 17623 char *s; 17624 va_list v; 17625 va_start (v,p); 17626 s = g (p, va_arg (v,int)); 17627 va_end (v); 17628 return s; 17629} 17630 17631/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 17632 function prototypes and stuff, but not '\xHH' hex character constants. 17633 These don't provoke an error unfortunately, instead are silently treated 17634 as 'x'. The following induces an error, until -std is added to get 17635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 17636 array size at least. It's necessary to write '\x00'==0 to get something 17637 that's true only with -std. */ 17638int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 17639 17640/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 17641 inside strings and character constants. */ 17642#define FOO(x) 'x' 17643int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 17644 17645int test (int i, double x); 17646struct s1 {int (*f) (int a);}; 17647struct s2 {int (*f) (double a);}; 17648int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 17649int argc; 17650char **argv; 17651int 17652main () 17653{ 17654return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 17655 ; 17656 return 0; 17657} 17658_ACEOF 17659for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 17660 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 17661do 17662 CC="$ac_save_CC $ac_arg" 17663 if ac_fn_c_try_compile "$LINENO"; then : 17664 ac_cv_prog_cc_c89=$ac_arg 17665fi 17666rm -f core conftest.err conftest.$ac_objext 17667 test "x$ac_cv_prog_cc_c89" != "xno" && break 17668done 17669rm -f conftest.$ac_ext 17670CC=$ac_save_CC 17671 17672fi 17673# AC_CACHE_VAL 17674case "x$ac_cv_prog_cc_c89" in 17675 x) 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 17677$as_echo "none needed" >&6; } ;; 17678 xno) 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 17680$as_echo "unsupported" >&6; } ;; 17681 *) 17682 CC="$CC $ac_cv_prog_cc_c89" 17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 17684$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 17685esac 17686if test "x$ac_cv_prog_cc_c89" != xno; then : 17687 17688fi 17689 17690ac_ext=c 17691ac_cpp='$CPP $CPPFLAGS' 17692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17694ac_compiler_gnu=$ac_cv_c_compiler_gnu 17695 17696ac_ext=c 17697ac_cpp='$CPP $CPPFLAGS' 17698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17700ac_compiler_gnu=$ac_cv_c_compiler_gnu 17701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 17702$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 17703if ${am_cv_prog_cc_c_o+:} false; then : 17704 $as_echo_n "(cached) " >&6 17705else 17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17707/* end confdefs.h. */ 17708 17709int 17710main () 17711{ 17712 17713 ; 17714 return 0; 17715} 17716_ACEOF 17717 # Make sure it works both with $CC and with simple cc. 17718 # Following AC_PROG_CC_C_O, we do the test twice because some 17719 # compilers refuse to overwrite an existing .o file with -o, 17720 # though they will create one. 17721 am_cv_prog_cc_c_o=yes 17722 for am_i in 1 2; do 17723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 17724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 17725 ac_status=$? 17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17727 (exit $ac_status); } \ 17728 && test -f conftest2.$ac_objext; then 17729 : OK 17730 else 17731 am_cv_prog_cc_c_o=no 17732 break 17733 fi 17734 done 17735 rm -f core conftest* 17736 unset am_i 17737fi 17738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 17739$as_echo "$am_cv_prog_cc_c_o" >&6; } 17740if test "$am_cv_prog_cc_c_o" != yes; then 17741 # Losing compiler, so override with the script. 17742 # FIXME: It is wrong to rewrite CC. 17743 # But if we don't then we get into trouble of one sort or another. 17744 # A longer-term fix would be to have automake use am__CC in this case, 17745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 17746 CC="$am_aux_dir/compile $CC" 17747fi 17748ac_ext=c 17749ac_cpp='$CPP $CPPFLAGS' 17750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17752ac_compiler_gnu=$ac_cv_c_compiler_gnu 17753 17754 17755depcc="$CC" am_compiler_list= 17756 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17758$as_echo_n "checking dependency style of $depcc... " >&6; } 17759if ${am_cv_CC_dependencies_compiler_type+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761else 17762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17763 # We make a subdir and do the tests there. Otherwise we can end up 17764 # making bogus files that we don't know about and never remove. For 17765 # instance it was reported that on HP-UX the gcc test will end up 17766 # making a dummy file named 'D' -- because '-MD' means "put the output 17767 # in D". 17768 rm -rf conftest.dir 17769 mkdir conftest.dir 17770 # Copy depcomp to subdir because otherwise we won't find it if we're 17771 # using a relative directory. 17772 cp "$am_depcomp" conftest.dir 17773 cd conftest.dir 17774 # We will build objects and dependencies in a subdirectory because 17775 # it helps to detect inapplicable dependency modes. For instance 17776 # both Tru64's cc and ICC support -MD to output dependencies as a 17777 # side effect of compilation, but ICC will put the dependencies in 17778 # the current directory while Tru64 will put them in the object 17779 # directory. 17780 mkdir sub 17781 17782 am_cv_CC_dependencies_compiler_type=none 17783 if test "$am_compiler_list" = ""; then 17784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17785 fi 17786 am__universal=false 17787 case " $depcc " in #( 17788 *\ -arch\ *\ -arch\ *) am__universal=true ;; 17789 esac 17790 17791 for depmode in $am_compiler_list; do 17792 # Setup a source with many dependencies, because some compilers 17793 # like to wrap large dependency lists on column 80 (with \), and 17794 # we should not choose a depcomp mode which is confused by this. 17795 # 17796 # We need to recreate these files for each test, as the compiler may 17797 # overwrite some of them when testing with obscure command lines. 17798 # This happens at least with the AIX C compiler. 17799 : > sub/conftest.c 17800 for i in 1 2 3 4 5 6; do 17801 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17802 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17803 # Solaris 10 /bin/sh. 17804 echo '/* dummy */' > sub/conftst$i.h 17805 done 17806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17807 17808 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17809 # mode. It turns out that the SunPro C++ compiler does not properly 17810 # handle '-M -o', and we need to detect this. Also, some Intel 17811 # versions had trouble with output in subdirs. 17812 am__obj=sub/conftest.${OBJEXT-o} 17813 am__minus_obj="-o $am__obj" 17814 case $depmode in 17815 gcc) 17816 # This depmode causes a compiler race in universal mode. 17817 test "$am__universal" = false || continue 17818 ;; 17819 nosideeffect) 17820 # After this tag, mechanisms are not by side-effect, so they'll 17821 # only be used when explicitly requested. 17822 if test "x$enable_dependency_tracking" = xyes; then 17823 continue 17824 else 17825 break 17826 fi 17827 ;; 17828 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17829 # This compiler won't grok '-c -o', but also, the minuso test has 17830 # not run yet. These depmodes are late enough in the game, and 17831 # so weak that their functioning should not be impacted. 17832 am__obj=conftest.${OBJEXT-o} 17833 am__minus_obj= 17834 ;; 17835 none) break ;; 17836 esac 17837 if depmode=$depmode \ 17838 source=sub/conftest.c object=$am__obj \ 17839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17841 >/dev/null 2>conftest.err && 17842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17846 # icc doesn't choke on unknown options, it will just issue warnings 17847 # or remarks (even with -Werror). So we grep stderr for any message 17848 # that says an option was ignored or not supported. 17849 # When given -MP, icc 7.0 and 7.1 complain thusly: 17850 # icc: Command line warning: ignoring option '-M'; no argument required 17851 # The diagnosis changed in icc 8.0: 17852 # icc: Command line remark: option '-MP' not supported 17853 if (grep 'ignoring option' conftest.err || 17854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17855 am_cv_CC_dependencies_compiler_type=$depmode 17856 break 17857 fi 17858 fi 17859 done 17860 17861 cd .. 17862 rm -rf conftest.dir 17863else 17864 am_cv_CC_dependencies_compiler_type=none 17865fi 17866 17867fi 17868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 17869$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 17870CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 17871 17872 if 17873 test "x$enable_dependency_tracking" != xno \ 17874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 17875 am__fastdepCC_TRUE= 17876 am__fastdepCC_FALSE='#' 17877else 17878 am__fastdepCC_TRUE='#' 17879 am__fastdepCC_FALSE= 17880fi 17881 17882 17883 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 17885$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 17886if ${ac_cv_prog_cc_c99+:} false; then : 17887 $as_echo_n "(cached) " >&6 17888else 17889 ac_cv_prog_cc_c99=no 17890ac_save_CC=$CC 17891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892/* end confdefs.h. */ 17893#include <stdarg.h> 17894#include <stdbool.h> 17895#include <stdlib.h> 17896#include <wchar.h> 17897#include <stdio.h> 17898 17899// Check varargs macros. These examples are taken from C99 6.10.3.5. 17900#define debug(...) fprintf (stderr, __VA_ARGS__) 17901#define showlist(...) puts (#__VA_ARGS__) 17902#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 17903static void 17904test_varargs_macros (void) 17905{ 17906 int x = 1234; 17907 int y = 5678; 17908 debug ("Flag"); 17909 debug ("X = %d\n", x); 17910 showlist (The first, second, and third items.); 17911 report (x>y, "x is %d but y is %d", x, y); 17912} 17913 17914// Check long long types. 17915#define BIG64 18446744073709551615ull 17916#define BIG32 4294967295ul 17917#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 17918#if !BIG_OK 17919 your preprocessor is broken; 17920#endif 17921#if BIG_OK 17922#else 17923 your preprocessor is broken; 17924#endif 17925static long long int bignum = -9223372036854775807LL; 17926static unsigned long long int ubignum = BIG64; 17927 17928struct incomplete_array 17929{ 17930 int datasize; 17931 double data[]; 17932}; 17933 17934struct named_init { 17935 int number; 17936 const wchar_t *name; 17937 double average; 17938}; 17939 17940typedef const char *ccp; 17941 17942static inline int 17943test_restrict (ccp restrict text) 17944{ 17945 // See if C++-style comments work. 17946 // Iterate through items via the restricted pointer. 17947 // Also check for declarations in for loops. 17948 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 17949 continue; 17950 return 0; 17951} 17952 17953// Check varargs and va_copy. 17954static void 17955test_varargs (const char *format, ...) 17956{ 17957 va_list args; 17958 va_start (args, format); 17959 va_list args_copy; 17960 va_copy (args_copy, args); 17961 17962 const char *str; 17963 int number; 17964 float fnumber; 17965 17966 while (*format) 17967 { 17968 switch (*format++) 17969 { 17970 case 's': // string 17971 str = va_arg (args_copy, const char *); 17972 break; 17973 case 'd': // int 17974 number = va_arg (args_copy, int); 17975 break; 17976 case 'f': // float 17977 fnumber = va_arg (args_copy, double); 17978 break; 17979 default: 17980 break; 17981 } 17982 } 17983 va_end (args_copy); 17984 va_end (args); 17985} 17986 17987int 17988main () 17989{ 17990 17991 // Check bool. 17992 _Bool success = false; 17993 17994 // Check restrict. 17995 if (test_restrict ("String literal") == 0) 17996 success = true; 17997 char *restrict newvar = "Another string"; 17998 17999 // Check varargs. 18000 test_varargs ("s, d' f .", "string", 65, 34.234); 18001 test_varargs_macros (); 18002 18003 // Check flexible array members. 18004 struct incomplete_array *ia = 18005 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 18006 ia->datasize = 10; 18007 for (int i = 0; i < ia->datasize; ++i) 18008 ia->data[i] = i * 1.234; 18009 18010 // Check named initializers. 18011 struct named_init ni = { 18012 .number = 34, 18013 .name = L"Test wide string", 18014 .average = 543.34343, 18015 }; 18016 18017 ni.number = 58; 18018 18019 int dynamic_array[ni.number]; 18020 dynamic_array[ni.number - 1] = 543; 18021 18022 // work around unused variable warnings 18023 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 18024 || dynamic_array[ni.number - 1] != 543); 18025 18026 ; 18027 return 0; 18028} 18029_ACEOF 18030for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 18031do 18032 CC="$ac_save_CC $ac_arg" 18033 if ac_fn_c_try_compile "$LINENO"; then : 18034 ac_cv_prog_cc_c99=$ac_arg 18035fi 18036rm -f core conftest.err conftest.$ac_objext 18037 test "x$ac_cv_prog_cc_c99" != "xno" && break 18038done 18039rm -f conftest.$ac_ext 18040CC=$ac_save_CC 18041 18042fi 18043# AC_CACHE_VAL 18044case "x$ac_cv_prog_cc_c99" in 18045 x) 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18047$as_echo "none needed" >&6; } ;; 18048 xno) 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18050$as_echo "unsupported" >&6; } ;; 18051 *) 18052 CC="$CC $ac_cv_prog_cc_c99" 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 18054$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 18055esac 18056if test "x$ac_cv_prog_cc_c99" != xno; then : 18057 18058fi 18059 18060 18061CFLAGS=$CFLAGS_save 18062 18063 18064if test -z "$CC_FOR_BUILD"; then : 18065 18066 CC_FOR_BUILD=$CC 18067 18068 18069fi 18070 18071#################################################################### 18072# CLI arguments 18073#################################################################### 18074 18075# Define hwloc's configure arguments 18076 18077 # Embedded mode, or standalone? 18078 # Check whether --enable-embedded-mode was given. 18079if test "${enable_embedded_mode+set}" = set; then : 18080 enableval=$enable_embedded_mode; 18081fi 18082 18083 18084 # Change the symbol prefix? 18085 18086# Check whether --with-hwloc-symbol-prefix was given. 18087if test "${with_hwloc_symbol_prefix+set}" = set; then : 18088 withval=$with_hwloc_symbol_prefix; 18089fi 18090 18091 18092 # Debug mode? 18093 # Check whether --enable-debug was given. 18094if test "${enable_debug+set}" = set; then : 18095 enableval=$enable_debug; 18096fi 18097 18098 18099 # Doxygen? 18100 # Check whether --enable-doxygen was given. 18101if test "${enable_doxygen+set}" = set; then : 18102 enableval=$enable_doxygen; 18103fi 18104 18105 18106 # Picky? 18107 # Check whether --enable-picky was given. 18108if test "${enable_picky+set}" = set; then : 18109 enableval=$enable_picky; 18110fi 18111 18112 18113 # Cairo? 18114 # Check whether --enable-cairo was given. 18115if test "${enable_cairo+set}" = set; then : 18116 enableval=$enable_cairo; 18117fi 18118 18119 18120 # CPUID 18121 # Check whether --enable-cpuid was given. 18122if test "${enable_cpuid+set}" = set; then : 18123 enableval=$enable_cpuid; 18124fi 18125 18126 18127 # XML using libxml2? 18128 # Check whether --enable-libxml2 was given. 18129if test "${enable_libxml2+set}" = set; then : 18130 enableval=$enable_libxml2; 18131fi 18132 18133 18134 # I/O? 18135 # Check whether --enable-io was given. 18136if test "${enable_io+set}" = set; then : 18137 enableval=$enable_io; 18138fi 18139 18140 18141 # PCI? 18142 # Check whether --enable-pci was given. 18143if test "${enable_pci+set}" = set; then : 18144 enableval=$enable_pci; 18145fi 18146 18147 # 32bits_pci_domain? 18148 # Check whether --enable-32bits-pci-domain was given. 18149if test "${enable_32bits_pci_domain+set}" = set; then : 18150 enableval=$enable_32bits_pci_domain; 18151fi 18152 18153 18154 # OpenCL? 18155 # Check whether --enable-opencl was given. 18156if test "${enable_opencl+set}" = set; then : 18157 enableval=$enable_opencl; 18158fi 18159 18160 18161 # CUDA? 18162 # Check whether --enable-cuda was given. 18163if test "${enable_cuda+set}" = set; then : 18164 enableval=$enable_cuda; 18165fi 18166 18167 18168 # NVML? 18169 # Check whether --enable-nvml was given. 18170if test "${enable_nvml+set}" = set; then : 18171 enableval=$enable_nvml; 18172fi 18173 18174 18175 # RSMI? 18176 # Check whether --enable-rsmi was given. 18177if test "${enable_rsmi+set}" = set; then : 18178 enableval=$enable_rsmi; 18179fi 18180 18181 18182 # GL/Display 18183 # Check whether --enable-gl was given. 18184if test "${enable_gl+set}" = set; then : 18185 enableval=$enable_gl; 18186fi 18187 18188 18189 # LibUdev 18190 # Check whether --enable-libudev was given. 18191if test "${enable_libudev+set}" = set; then : 18192 enableval=$enable_libudev; 18193fi 18194 18195 18196 # Plugins 18197 # Check whether --enable-plugins was given. 18198if test "${enable_plugins+set}" = set; then : 18199 enableval=$enable_plugins; 18200fi 18201 18202 18203 # Look for dlopen 18204 # Not --disable-dlopen because $enable_dlopen is already used/set 18205 # Check whether --enable-plugin-dlopen was given. 18206if test "${enable_plugin_dlopen+set}" = set; then : 18207 enableval=$enable_plugin_dlopen; 18208fi 18209 18210 # Look for ltdl 18211 # Not --disable-ltdl for consistency wrt dlopen above 18212 # Check whether --enable-plugin-ltdl was given. 18213if test "${enable_plugin_ltdl+set}" = set; then : 18214 enableval=$enable_plugin_ltdl; 18215fi 18216 18217 18218 18219 18220# If debug mode, add -g 18221if test "$hwloc_debug" = "1"; then : 18222 CFLAGS="$CFLAGS -g" 18223fi 18224 18225# If the user didn't specifically ask for embedding mode, default to 18226# standalone mode 18227if test "$enable_embedded_mode" != "yes"; then : 18228 if test ! -d "$srcdir/doc"; then : 18229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The hwloc source tree looks incomplete for a standalone" >&5 18230$as_echo "$as_me: WARNING: The hwloc source tree looks incomplete for a standalone" >&2;} 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build. Perhaps this hwloc tree is intended for an embedded" >&5 18232$as_echo "$as_me: WARNING: build. Perhaps this hwloc tree is intended for an embedded" >&2;} 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build? Try using the --enable-embedded-mode switch." >&5 18234$as_echo "$as_me: WARNING: build? Try using the --enable-embedded-mode switch." >&2;} 18235 as_fn_error $? "Cannot build standalone hwloc" "$LINENO" 5 18236else 18237 18238 hwloc_mode=standalone 18239 18240fi 18241fi 18242 18243#################################################################### 18244# Setup for the hwloc API 18245#################################################################### 18246 18247 18248 18249# Setup the hwloc core 18250 18251 18252 18253if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18254 if test -n "$ac_tool_prefix"; then 18255 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18256set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18258$as_echo_n "checking for $ac_word... " >&6; } 18259if ${ac_cv_path_PKG_CONFIG+:} false; then : 18260 $as_echo_n "(cached) " >&6 18261else 18262 case $PKG_CONFIG in 18263 [\\/]* | ?:[\\/]*) 18264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18265 ;; 18266 *) 18267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18268for as_dir in $PATH 18269do 18270 IFS=$as_save_IFS 18271 test -z "$as_dir" && as_dir=. 18272 for ac_exec_ext in '' $ac_executable_extensions; do 18273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18276 break 2 18277 fi 18278done 18279 done 18280IFS=$as_save_IFS 18281 18282 ;; 18283esac 18284fi 18285PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18286if test -n "$PKG_CONFIG"; then 18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18288$as_echo "$PKG_CONFIG" >&6; } 18289else 18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18291$as_echo "no" >&6; } 18292fi 18293 18294 18295fi 18296if test -z "$ac_cv_path_PKG_CONFIG"; then 18297 ac_pt_PKG_CONFIG=$PKG_CONFIG 18298 # Extract the first word of "pkg-config", so it can be a program name with args. 18299set dummy pkg-config; ac_word=$2 18300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18301$as_echo_n "checking for $ac_word... " >&6; } 18302if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18303 $as_echo_n "(cached) " >&6 18304else 18305 case $ac_pt_PKG_CONFIG in 18306 [\\/]* | ?:[\\/]*) 18307 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18308 ;; 18309 *) 18310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18311for as_dir in $PATH 18312do 18313 IFS=$as_save_IFS 18314 test -z "$as_dir" && as_dir=. 18315 for ac_exec_ext in '' $ac_executable_extensions; do 18316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18317 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18319 break 2 18320 fi 18321done 18322 done 18323IFS=$as_save_IFS 18324 18325 ;; 18326esac 18327fi 18328ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18329if test -n "$ac_pt_PKG_CONFIG"; then 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18331$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18332else 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18334$as_echo "no" >&6; } 18335fi 18336 18337 if test "x$ac_pt_PKG_CONFIG" = x; then 18338 PKG_CONFIG="" 18339 else 18340 case $cross_compiling:$ac_tool_warned in 18341yes:) 18342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18344ac_tool_warned=yes ;; 18345esac 18346 PKG_CONFIG=$ac_pt_PKG_CONFIG 18347 fi 18348else 18349 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18350fi 18351 18352fi 18353if test -n "$PKG_CONFIG"; then 18354 HWLOC_pkg_min_version=0.9.0 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5 18356$as_echo_n "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; } 18357 if $PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18359$as_echo "yes" >&6; } 18360 else 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18362$as_echo "no" >&6; } 18363 PKG_CONFIG="" 18364 fi 18365 18366fi 18367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18368$as_echo_n "checking for X... " >&6; } 18369 18370 18371# Check whether --with-x was given. 18372if test "${with_x+set}" = set; then : 18373 withval=$with_x; 18374fi 18375 18376# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18377if test "x$with_x" = xno; then 18378 # The user explicitly disabled X. 18379 have_x=disabled 18380else 18381 case $x_includes,$x_libraries in #( 18382 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18383 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18384 $as_echo_n "(cached) " >&6 18385else 18386 # One or both of the vars are not set, and there is no cached value. 18387ac_x_includes=no ac_x_libraries=no 18388rm -f -r conftest.dir 18389if mkdir conftest.dir; then 18390 cd conftest.dir 18391 cat >Imakefile <<'_ACEOF' 18392incroot: 18393 @echo incroot='${INCROOT}' 18394usrlibdir: 18395 @echo usrlibdir='${USRLIBDIR}' 18396libdir: 18397 @echo libdir='${LIBDIR}' 18398_ACEOF 18399 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18401 for ac_var in incroot usrlibdir libdir; do 18402 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18403 done 18404 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18405 for ac_extension in a so sl dylib la dll; do 18406 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18407 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18408 ac_im_usrlibdir=$ac_im_libdir; break 18409 fi 18410 done 18411 # Screen out bogus values from the imake configuration. They are 18412 # bogus both because they are the default anyway, and because 18413 # using them would break gcc on systems where it needs fixed includes. 18414 case $ac_im_incroot in 18415 /usr/include) ac_x_includes= ;; 18416 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18417 esac 18418 case $ac_im_usrlibdir in 18419 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18420 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18421 esac 18422 fi 18423 cd .. 18424 rm -f -r conftest.dir 18425fi 18426 18427# Standard set of common directories for X headers. 18428# Check X11 before X11Rn because it is often a symlink to the current release. 18429ac_x_header_dirs=' 18430/usr/X11/include 18431/usr/X11R7/include 18432/usr/X11R6/include 18433/usr/X11R5/include 18434/usr/X11R4/include 18435 18436/usr/include/X11 18437/usr/include/X11R7 18438/usr/include/X11R6 18439/usr/include/X11R5 18440/usr/include/X11R4 18441 18442/usr/local/X11/include 18443/usr/local/X11R7/include 18444/usr/local/X11R6/include 18445/usr/local/X11R5/include 18446/usr/local/X11R4/include 18447 18448/usr/local/include/X11 18449/usr/local/include/X11R7 18450/usr/local/include/X11R6 18451/usr/local/include/X11R5 18452/usr/local/include/X11R4 18453 18454/usr/X386/include 18455/usr/x386/include 18456/usr/XFree86/include/X11 18457 18458/usr/include 18459/usr/local/include 18460/usr/unsupported/include 18461/usr/athena/include 18462/usr/local/x11r5/include 18463/usr/lpp/Xamples/include 18464 18465/usr/openwin/include 18466/usr/openwin/share/include' 18467 18468if test "$ac_x_includes" = no; then 18469 # Guess where to find include files, by looking for Xlib.h. 18470 # First, try using that file with no special directory specified. 18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18472/* end confdefs.h. */ 18473#include <X11/Xlib.h> 18474_ACEOF 18475if ac_fn_c_try_cpp "$LINENO"; then : 18476 # We can compile using X headers with no special include directory. 18477ac_x_includes= 18478else 18479 for ac_dir in $ac_x_header_dirs; do 18480 if test -r "$ac_dir/X11/Xlib.h"; then 18481 ac_x_includes=$ac_dir 18482 break 18483 fi 18484done 18485fi 18486rm -f conftest.err conftest.i conftest.$ac_ext 18487fi # $ac_x_includes = no 18488 18489if test "$ac_x_libraries" = no; then 18490 # Check for the libraries. 18491 # See if we find them without any special options. 18492 # Don't add to $LIBS permanently. 18493 ac_save_LIBS=$LIBS 18494 LIBS="-lX11 $LIBS" 18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18496/* end confdefs.h. */ 18497#include <X11/Xlib.h> 18498int 18499main () 18500{ 18501XrmInitialize () 18502 ; 18503 return 0; 18504} 18505_ACEOF 18506if ac_fn_c_try_link "$LINENO"; then : 18507 LIBS=$ac_save_LIBS 18508# We can link X programs with no special library path. 18509ac_x_libraries= 18510else 18511 LIBS=$ac_save_LIBS 18512for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18513do 18514 # Don't even attempt the hair of trying to link an X program! 18515 for ac_extension in a so sl dylib la dll; do 18516 if test -r "$ac_dir/libX11.$ac_extension"; then 18517 ac_x_libraries=$ac_dir 18518 break 2 18519 fi 18520 done 18521done 18522fi 18523rm -f core conftest.err conftest.$ac_objext \ 18524 conftest$ac_exeext conftest.$ac_ext 18525fi # $ac_x_libraries = no 18526 18527case $ac_x_includes,$ac_x_libraries in #( 18528 no,* | *,no | *\'*) 18529 # Didn't find X, or a directory has "'" in its name. 18530 ac_cv_have_x="have_x=no";; #( 18531 *) 18532 # Record where we found X for the cache. 18533 ac_cv_have_x="have_x=yes\ 18534 ac_x_includes='$ac_x_includes'\ 18535 ac_x_libraries='$ac_x_libraries'" 18536esac 18537fi 18538;; #( 18539 *) have_x=yes;; 18540 esac 18541 eval "$ac_cv_have_x" 18542fi # $with_x != no 18543 18544if test "$have_x" != yes; then 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18546$as_echo "$have_x" >&6; } 18547 no_x=yes 18548else 18549 # If each of the values was on the command line, it overrides each guess. 18550 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18551 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18552 # Update the cache value to reflect the command line values. 18553 ac_cv_have_x="have_x=yes\ 18554 ac_x_includes='$x_includes'\ 18555 ac_x_libraries='$x_libraries'" 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18557$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18558fi 18559 18560 18561 18562 18563 18564 18565 if test "x1" != "x"; then : 18566 cat <<EOF 18567 18568### 18569### Configuring hwloc core 18570### 18571EOF 18572fi 18573 18574 # If no prefix was defined, set a good value 18575 18576 18577 # Unless previously set to "standalone" mode, default to embedded 18578 # mode 18579 if test "$hwloc_mode" = ""; then : 18580 hwloc_mode=embedded 18581fi 18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking hwloc building mode" >&5 18583$as_echo_n "checking hwloc building mode... " >&6; } 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5 18585$as_echo "$hwloc_mode" >&6; } 18586 18587 # Get hwloc's absolute top builddir (which may not be the same as 18588 # the real $top_builddir, because we may be building in embedded 18589 # mode). 18590 HWLOC_startdir=`pwd` 18591 if test x"" != "x" -a ! -d ""; then 18592 mkdir -p "" 18593 fi 18594 if test x"" != "x"; then 18595 cd "" 18596 fi 18597 HWLOC_top_builddir=`pwd` 18598 18599 18600 # Get hwloc's absolute top srcdir (which may not be the same as 18601 # the real $top_srcdir, because we may be building in embedded 18602 # mode). First, go back to the startdir incase the $srcdir is 18603 # relative. 18604 18605 cd "$HWLOC_startdir" 18606 cd "$srcdir"/ 18607 HWLOC_top_srcdir="`pwd`" 18608 18609 18610 # Go back to where we started 18611 cd "$HWLOC_startdir" 18612 18613 { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5 18614$as_echo "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;} 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5 18616$as_echo "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;} 18617 if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then 18618 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5 18619$as_echo "$as_me: Detected VPATH build" >&6;} 18620 fi 18621 18622 # Get the version of hwloc that we are installing 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc version" >&5 18624$as_echo_n "checking for hwloc version... " >&6; } 18625 HWLOC_VERSION=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION"` 18626 if test "$?" != "0"; then 18627 as_fn_error $? "Cannot continue" "$LINENO" 5 18628 fi 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_VERSION" >&5 18630$as_echo "$HWLOC_VERSION" >&6; } 18631 18632 18633cat >>confdefs.h <<_ACEOF 18634#define HWLOC_VERSION "$HWLOC_VERSION" 18635_ACEOF 18636 18637 18638 HWLOC_VERSION_MAJOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --major` 18639 18640cat >>confdefs.h <<_ACEOF 18641#define HWLOC_VERSION_MAJOR $HWLOC_VERSION_MAJOR 18642_ACEOF 18643 18644 HWLOC_VERSION_MINOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --minor` 18645 18646cat >>confdefs.h <<_ACEOF 18647#define HWLOC_VERSION_MINOR $HWLOC_VERSION_MINOR 18648_ACEOF 18649 18650 HWLOC_VERSION_RELEASE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release` 18651 18652cat >>confdefs.h <<_ACEOF 18653#define HWLOC_VERSION_RELEASE $HWLOC_VERSION_RELEASE 18654_ACEOF 18655 18656 HWLOC_VERSION_GREEK=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --greek` 18657 18658cat >>confdefs.h <<_ACEOF 18659#define HWLOC_VERSION_GREEK "$HWLOC_VERSION_GREEK" 18660_ACEOF 18661 18662 18663 HWLOC_RELEASE_DATE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release-date` 18664 18665 18666 # Debug mode? 18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5 18668$as_echo_n "checking if want hwloc maintainer support... " >&6; } 18669 hwloc_debug= 18670 18671 # Unconditionally disable debug mode in embedded mode; if someone 18672 # asks, we can add a configure-time option for it. Disable it 18673 # now, however, because --enable-debug is not even added as an 18674 # option when configuring in embedded mode, and we wouldn't want 18675 # to hijack the enclosing application's --enable-debug configure 18676 # switch. 18677 if test "$hwloc_mode" = "embedded"; then : 18678 hwloc_debug=0 18679 hwloc_debug_msg="disabled (embedded mode)" 18680fi 18681 if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"; then : 18682 hwloc_debug=1 18683 hwloc_debug_msg="enabled" 18684fi 18685 if test "$hwloc_debug" = ""; then : 18686 hwloc_debug=0 18687 hwloc_debug_msg="disabled" 18688fi 18689 # Grr; we use #ifndef for HWLOC_DEBUG! :-( 18690 18691 if test "$hwloc_debug" = "1"; then : 18692 $as_echo "#define HWLOC_DEBUG 1" >>confdefs.h 18693 18694fi 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5 18696$as_echo "$hwloc_debug_msg" >&6; } 18697 18698 # We need to set a path for header, etc files depending on whether 18699 # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED. 18700 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5 18702$as_echo_n "checking for hwloc directory prefix... " >&6; } 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 18704$as_echo "(none)" >&6; } 18705 18706 # Note that private/config.h *MUST* be listed first so that it 18707 # becomes the "main" config header file. Any AC-CONFIG-HEADERS 18708 # after that (hwloc/config.h) will only have selective #defines 18709 # replaced, not the entire file. 18710 ac_config_headers="$ac_config_headers include/private/autogen/config.h" 18711 18712 ac_config_headers="$ac_config_headers include/hwloc/autogen/config.h" 18713 18714 18715 # What prefix are we using? 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5 18717$as_echo_n "checking for hwloc symbol prefix... " >&6; } 18718 if test "$hwloc_symbol_prefix_value" = ""; then : 18719 if test "$with_hwloc_symbol_prefix" = ""; then : 18720 hwloc_symbol_prefix_value=hwloc_ 18721else 18722 hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix 18723fi 18724fi 18725 18726cat >>confdefs.h <<_ACEOF 18727#define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value 18728_ACEOF 18729 18730 # Ensure to [] escape the whole next line so that we can get the 18731 # proper tr tokens 18732 hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`" 18733 18734cat >>confdefs.h <<_ACEOF 18735#define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps 18736_ACEOF 18737 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5 18739$as_echo "$hwloc_symbol_prefix_value" >&6; } 18740 18741 # Give an easy #define to know if we need to transform all the 18742 # hwloc names 18743 18744 if test "$hwloc_symbol_prefix_value" = "hwloc_"; then : 18745 $as_echo "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h 18746 18747else 18748 $as_echo "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h 18749 18750fi 18751 18752 # hwloc 2.0+ requires a C99 compliant compiler 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 18754$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 18755if ${ac_cv_prog_cc_c99+:} false; then : 18756 $as_echo_n "(cached) " >&6 18757else 18758 ac_cv_prog_cc_c99=no 18759ac_save_CC=$CC 18760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18761/* end confdefs.h. */ 18762#include <stdarg.h> 18763#include <stdbool.h> 18764#include <stdlib.h> 18765#include <wchar.h> 18766#include <stdio.h> 18767 18768// Check varargs macros. These examples are taken from C99 6.10.3.5. 18769#define debug(...) fprintf (stderr, __VA_ARGS__) 18770#define showlist(...) puts (#__VA_ARGS__) 18771#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 18772static void 18773test_varargs_macros (void) 18774{ 18775 int x = 1234; 18776 int y = 5678; 18777 debug ("Flag"); 18778 debug ("X = %d\n", x); 18779 showlist (The first, second, and third items.); 18780 report (x>y, "x is %d but y is %d", x, y); 18781} 18782 18783// Check long long types. 18784#define BIG64 18446744073709551615ull 18785#define BIG32 4294967295ul 18786#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 18787#if !BIG_OK 18788 your preprocessor is broken; 18789#endif 18790#if BIG_OK 18791#else 18792 your preprocessor is broken; 18793#endif 18794static long long int bignum = -9223372036854775807LL; 18795static unsigned long long int ubignum = BIG64; 18796 18797struct incomplete_array 18798{ 18799 int datasize; 18800 double data[]; 18801}; 18802 18803struct named_init { 18804 int number; 18805 const wchar_t *name; 18806 double average; 18807}; 18808 18809typedef const char *ccp; 18810 18811static inline int 18812test_restrict (ccp restrict text) 18813{ 18814 // See if C++-style comments work. 18815 // Iterate through items via the restricted pointer. 18816 // Also check for declarations in for loops. 18817 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 18818 continue; 18819 return 0; 18820} 18821 18822// Check varargs and va_copy. 18823static void 18824test_varargs (const char *format, ...) 18825{ 18826 va_list args; 18827 va_start (args, format); 18828 va_list args_copy; 18829 va_copy (args_copy, args); 18830 18831 const char *str; 18832 int number; 18833 float fnumber; 18834 18835 while (*format) 18836 { 18837 switch (*format++) 18838 { 18839 case 's': // string 18840 str = va_arg (args_copy, const char *); 18841 break; 18842 case 'd': // int 18843 number = va_arg (args_copy, int); 18844 break; 18845 case 'f': // float 18846 fnumber = va_arg (args_copy, double); 18847 break; 18848 default: 18849 break; 18850 } 18851 } 18852 va_end (args_copy); 18853 va_end (args); 18854} 18855 18856int 18857main () 18858{ 18859 18860 // Check bool. 18861 _Bool success = false; 18862 18863 // Check restrict. 18864 if (test_restrict ("String literal") == 0) 18865 success = true; 18866 char *restrict newvar = "Another string"; 18867 18868 // Check varargs. 18869 test_varargs ("s, d' f .", "string", 65, 34.234); 18870 test_varargs_macros (); 18871 18872 // Check flexible array members. 18873 struct incomplete_array *ia = 18874 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 18875 ia->datasize = 10; 18876 for (int i = 0; i < ia->datasize; ++i) 18877 ia->data[i] = i * 1.234; 18878 18879 // Check named initializers. 18880 struct named_init ni = { 18881 .number = 34, 18882 .name = L"Test wide string", 18883 .average = 543.34343, 18884 }; 18885 18886 ni.number = 58; 18887 18888 int dynamic_array[ni.number]; 18889 dynamic_array[ni.number - 1] = 543; 18890 18891 // work around unused variable warnings 18892 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 18893 || dynamic_array[ni.number - 1] != 543); 18894 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 18900do 18901 CC="$ac_save_CC $ac_arg" 18902 if ac_fn_c_try_compile "$LINENO"; then : 18903 ac_cv_prog_cc_c99=$ac_arg 18904fi 18905rm -f core conftest.err conftest.$ac_objext 18906 test "x$ac_cv_prog_cc_c99" != "xno" && break 18907done 18908rm -f conftest.$ac_ext 18909CC=$ac_save_CC 18910 18911fi 18912# AC_CACHE_VAL 18913case "x$ac_cv_prog_cc_c99" in 18914 x) 18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18916$as_echo "none needed" >&6; } ;; 18917 xno) 18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18919$as_echo "unsupported" >&6; } ;; 18920 *) 18921 CC="$CC $ac_cv_prog_cc_c99" 18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 18923$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 18924esac 18925if test "x$ac_cv_prog_cc_c99" != xno; then : 18926 18927fi 18928 18929 18930 # The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99 18931 if test "x$ac_cv_prog_cc_c99" = xno ; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hwloc requires a C99 compiler" >&5 18933$as_echo "$as_me: WARNING: hwloc requires a C99 compiler" >&2;} 18934 as_fn_error $? "Aborting." "$LINENO" 5 18935 fi 18936 18937 # GCC specifics. 18938 18939 18940 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5 18942$as_echo_n "checking for the C compiler vendor... " >&6; } 18943if ${hwloc_cv_c_compiler_vendor+:} false; then : 18944 $as_echo_n "(cached) " >&6 18945else 18946 ac_ext=c 18947ac_cpp='$CPP $CPPFLAGS' 18948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18950ac_compiler_gnu=$ac_cv_c_compiler_gnu 18951 18952 18953 hwloc_check_compiler_vendor_result="unknown" 18954 18955 # GNU is probably the most common, so check that one as soon as 18956 # possible. Intel and Android pretend to be GNU, so need to 18957 # check Intel and Android before checking for GNU. 18958 18959 # Android 18960 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 18961 18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18963/* end confdefs.h. */ 18964 18965#ifndef __ANDROID__ 18966#error "symbol __ANDROID__ not defined" 18967choke me 18968#endif 18969_ACEOF 18970if ac_fn_c_try_compile "$LINENO"; then : 18971 hwloc_check_compiler_vendor_result="android" 18972fi 18973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18974fi 18975 18976 # Intel 18977 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 18978 18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18980/* end confdefs.h. */ 18981 18982#if !( defined(__INTEL_COMPILER) || defined(__ICC) ) 18983#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" 18984choke me 18985#endif 18986_ACEOF 18987if ac_fn_c_try_compile "$LINENO"; then : 18988 hwloc_check_compiler_vendor_result="intel" 18989fi 18990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18991fi 18992 18993 # Portland Group 18994 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 18995 18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18997/* end confdefs.h. */ 18998 18999#ifndef __PGI 19000#error "symbol __PGI not defined" 19001choke me 19002#endif 19003_ACEOF 19004if ac_fn_c_try_compile "$LINENO"; then : 19005 hwloc_check_compiler_vendor_result="portland group" 19006fi 19007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19008fi 19009 19010 # Borland Turbo C 19011 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19012 19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19014/* end confdefs.h. */ 19015 19016#ifndef __TURBOC__ 19017#error "symbol __TURBOC__ not defined" 19018choke me 19019#endif 19020_ACEOF 19021if ac_fn_c_try_compile "$LINENO"; then : 19022 hwloc_check_compiler_vendor_result="borland" 19023fi 19024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19025fi 19026 19027 # Borland C++ 19028 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19029 19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19031/* end confdefs.h. */ 19032 19033#ifndef __BORLANDC__ 19034#error "symbol __BORLANDC__ not defined" 19035choke me 19036#endif 19037_ACEOF 19038if ac_fn_c_try_compile "$LINENO"; then : 19039 hwloc_check_compiler_vendor_result="borland" 19040fi 19041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19042fi 19043 19044 # Comeau C++ 19045 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19046 19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19048/* end confdefs.h. */ 19049 19050#ifndef __COMO__ 19051#error "symbol __COMO__ not defined" 19052choke me 19053#endif 19054_ACEOF 19055if ac_fn_c_try_compile "$LINENO"; then : 19056 hwloc_check_compiler_vendor_result="comeau" 19057fi 19058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19059fi 19060 19061 # Compaq C/C++ 19062 # OSF part actually not needed anymore but doesn't hurt 19063 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19064 19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19066/* end confdefs.h. */ 19067 19068#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) 19069#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" 19070choke me 19071#endif 19072_ACEOF 19073if ac_fn_c_try_compile "$LINENO"; then : 19074 hwloc_check_compiler_vendor_result="compaq" 19075else 19076 19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19078/* end confdefs.h. */ 19079 19080#if !( defined(__osf__) && defined(__LANGUAGE_C__) ) 19081#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" 19082choke me 19083#endif 19084_ACEOF 19085if ac_fn_c_try_compile "$LINENO"; then : 19086 hwloc_check_compiler_vendor_result="compaq" 19087else 19088 19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19090/* end confdefs.h. */ 19091 19092#ifndef __DECCXX 19093#error "symbol __DECCXX not defined" 19094choke me 19095#endif 19096_ACEOF 19097if ac_fn_c_try_compile "$LINENO"; then : 19098 hwloc_check_compiler_vendor_result="compaq" 19099fi 19100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19101fi 19102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19103fi 19104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19105fi 19106 19107 # Cray C/C++ 19108 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19109 19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19111/* end confdefs.h. */ 19112 19113#ifndef _CRAYC 19114#error "symbol _CRAYC not defined" 19115choke me 19116#endif 19117_ACEOF 19118if ac_fn_c_try_compile "$LINENO"; then : 19119 hwloc_check_compiler_vendor_result="cray" 19120fi 19121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19122fi 19123 19124 # Diab C/C++ 19125 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19126 19127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19128/* end confdefs.h. */ 19129 19130#ifndef __DCC__ 19131#error "symbol __DCC__ not defined" 19132choke me 19133#endif 19134_ACEOF 19135if ac_fn_c_try_compile "$LINENO"; then : 19136 hwloc_check_compiler_vendor_result="diab" 19137fi 19138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19139fi 19140 19141 # Digital Mars 19142 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19143 19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19145/* end confdefs.h. */ 19146 19147#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) 19148#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" 19149choke me 19150#endif 19151_ACEOF 19152if ac_fn_c_try_compile "$LINENO"; then : 19153 hwloc_check_compiler_vendor_result="digital mars" 19154fi 19155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19156fi 19157 19158 # HP ANSI C / aC++ 19159 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19160 19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19162/* end confdefs.h. */ 19163 19164#if !( defined(__HP_cc) || defined(__HP_aCC) ) 19165#error "condition defined(__HP_cc) || defined(__HP_aCC) not met" 19166choke me 19167#endif 19168_ACEOF 19169if ac_fn_c_try_compile "$LINENO"; then : 19170 hwloc_check_compiler_vendor_result="hp" 19171fi 19172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19173fi 19174 19175 # IBM XL C/C++ 19176 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19177 19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19179/* end confdefs.h. */ 19180 19181#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) ) 19182#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) not met" 19183choke me 19184#endif 19185_ACEOF 19186if ac_fn_c_try_compile "$LINENO"; then : 19187 hwloc_check_compiler_vendor_result="ibm" 19188else 19189 19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19191/* end confdefs.h. */ 19192 19193#if !( defined(_AIX) && !defined(__GNUC__) ) 19194#error "condition defined(_AIX) && !defined(__GNUC__) not met" 19195choke me 19196#endif 19197_ACEOF 19198if ac_fn_c_try_compile "$LINENO"; then : 19199 hwloc_check_compiler_vendor_result="ibm" 19200fi 19201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19202fi 19203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19204fi 19205 19206 # KAI C++ (rest in peace) 19207 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19208 19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19210/* end confdefs.h. */ 19211 19212#ifndef __KCC 19213#error "symbol __KCC not defined" 19214choke me 19215#endif 19216_ACEOF 19217if ac_fn_c_try_compile "$LINENO"; then : 19218 hwloc_check_compiler_vendor_result="kai" 19219fi 19220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19221fi 19222 19223 # LCC 19224 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19225 19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19227/* end confdefs.h. */ 19228 19229#ifndef __LCC__ 19230#error "symbol __LCC__ not defined" 19231choke me 19232#endif 19233_ACEOF 19234if ac_fn_c_try_compile "$LINENO"; then : 19235 hwloc_check_compiler_vendor_result="lcc" 19236fi 19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19238fi 19239 19240 # MetaWare High C/C++ 19241 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19242 19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19244/* end confdefs.h. */ 19245 19246#ifndef __HIGHC__ 19247#error "symbol __HIGHC__ not defined" 19248choke me 19249#endif 19250_ACEOF 19251if ac_fn_c_try_compile "$LINENO"; then : 19252 hwloc_check_compiler_vendor_result="metaware high" 19253fi 19254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19255fi 19256 19257 # Metrowerks Codewarrior 19258 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19259 19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19261/* end confdefs.h. */ 19262 19263#ifndef __MWERKS__ 19264#error "symbol __MWERKS__ not defined" 19265choke me 19266#endif 19267_ACEOF 19268if ac_fn_c_try_compile "$LINENO"; then : 19269 hwloc_check_compiler_vendor_result="metrowerks" 19270fi 19271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19272fi 19273 19274 # MIPSpro (SGI) 19275 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19276 19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19278/* end confdefs.h. */ 19279 19280#if !( defined(sgi) || defined(__sgi) ) 19281#error "condition defined(sgi) || defined(__sgi) not met" 19282choke me 19283#endif 19284_ACEOF 19285if ac_fn_c_try_compile "$LINENO"; then : 19286 hwloc_check_compiler_vendor_result="sgi" 19287fi 19288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19289fi 19290 19291 # MPW C++ 19292 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19293 19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19295/* end confdefs.h. */ 19296 19297#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) 19298#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" 19299choke me 19300#endif 19301_ACEOF 19302if ac_fn_c_try_compile "$LINENO"; then : 19303 hwloc_check_compiler_vendor_result="mpw" 19304fi 19305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19306fi 19307 19308 # Microsoft 19309 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19310 # Always use C compiler when checking for Microsoft, as 19311 # Visual C++ doesn't recognize .cc as a C++ file. 19312 ac_ext=c 19313ac_cpp='$CPP $CPPFLAGS' 19314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19316ac_compiler_gnu=$ac_cv_c_compiler_gnu 19317 19318 19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19320/* end confdefs.h. */ 19321 19322#if !( defined(_MSC_VER) || defined(__MSC_VER) ) 19323#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met" 19324choke me 19325#endif 19326_ACEOF 19327if ac_fn_c_try_compile "$LINENO"; then : 19328 hwloc_check_compiler_vendor_result="microsoft" 19329fi 19330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19331 ac_ext=c 19332ac_cpp='$CPP $CPPFLAGS' 19333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19335ac_compiler_gnu=$ac_cv_c_compiler_gnu 19336 19337fi 19338 19339 # Norcroft C 19340 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19341 19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19343/* end confdefs.h. */ 19344 19345#ifndef __CC_NORCROFT 19346#error "symbol __CC_NORCROFT not defined" 19347choke me 19348#endif 19349_ACEOF 19350if ac_fn_c_try_compile "$LINENO"; then : 19351 hwloc_check_compiler_vendor_result="norcroft" 19352fi 19353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19354fi 19355 19356 # Pelles C 19357 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19358 19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19360/* end confdefs.h. */ 19361 19362#ifndef __POCC__ 19363#error "symbol __POCC__ not defined" 19364choke me 19365#endif 19366_ACEOF 19367if ac_fn_c_try_compile "$LINENO"; then : 19368 hwloc_check_compiler_vendor_result="pelles" 19369fi 19370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19371fi 19372 19373 # SAS/C 19374 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19375 19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19377/* end confdefs.h. */ 19378 19379#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) 19380#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" 19381choke me 19382#endif 19383_ACEOF 19384if ac_fn_c_try_compile "$LINENO"; then : 19385 hwloc_check_compiler_vendor_result="sas" 19386fi 19387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19388fi 19389 19390 # Sun Workshop C/C++ 19391 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19392 19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19394/* end confdefs.h. */ 19395 19396#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) 19397#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" 19398choke me 19399#endif 19400_ACEOF 19401if ac_fn_c_try_compile "$LINENO"; then : 19402 hwloc_check_compiler_vendor_result="sun" 19403fi 19404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19405fi 19406 19407 # TenDRA C/C++ 19408 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19409 19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19411/* end confdefs.h. */ 19412 19413#ifndef __TenDRA__ 19414#error "symbol __TenDRA__ not defined" 19415choke me 19416#endif 19417_ACEOF 19418if ac_fn_c_try_compile "$LINENO"; then : 19419 hwloc_check_compiler_vendor_result="tendra" 19420fi 19421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19422fi 19423 19424 # Tiny C 19425 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19426 19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19428/* end confdefs.h. */ 19429 19430#ifndef __TINYC__ 19431#error "symbol __TINYC__ not defined" 19432choke me 19433#endif 19434_ACEOF 19435if ac_fn_c_try_compile "$LINENO"; then : 19436 hwloc_check_compiler_vendor_result="tiny" 19437fi 19438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19439fi 19440 19441 # USL C 19442 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19443 19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19445/* end confdefs.h. */ 19446 19447#ifndef __USLC__ 19448#error "symbol __USLC__ not defined" 19449choke me 19450#endif 19451_ACEOF 19452if ac_fn_c_try_compile "$LINENO"; then : 19453 hwloc_check_compiler_vendor_result="usl" 19454fi 19455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19456fi 19457 19458 # Watcom C++ 19459 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19460 19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19462/* end confdefs.h. */ 19463 19464#ifndef __WATCOMC__ 19465#error "symbol __WATCOMC__ not defined" 19466choke me 19467#endif 19468_ACEOF 19469if ac_fn_c_try_compile "$LINENO"; then : 19470 hwloc_check_compiler_vendor_result="watcom" 19471fi 19472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19473fi 19474 19475 # GNU 19476 if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : 19477 19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19479/* end confdefs.h. */ 19480 19481#ifndef __GNUC__ 19482#error "symbol __GNUC__ not defined" 19483choke me 19484#endif 19485_ACEOF 19486if ac_fn_c_try_compile "$LINENO"; then : 19487 hwloc_check_compiler_vendor_result="gnu" 19488fi 19489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19490fi 19491 19492 hwloc_cv_c_compiler_vendor="$hwloc_check_compiler_vendor_result" 19493 unset hwloc_check_compiler_vendor_result 19494 19495 ac_ext=c 19496ac_cpp='$CPP $CPPFLAGS' 19497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19499ac_compiler_gnu=$ac_cv_c_compiler_gnu 19500 19501fi 19502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_cv_c_compiler_vendor" >&5 19503$as_echo "$hwloc_cv_c_compiler_vendor" >&6; } 19504 19505 hwloc_c_vendor="$hwloc_cv_c_compiler_vendor" 19506 19507 if test "$hwloc_c_vendor" = "gnu"; then 19508 HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef" 19509 HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align" 19510 fi 19511 19512 # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc. 19513 19514 19515$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 19516 19517 19518 ac_ext=c 19519ac_cpp='$CPP $CPPFLAGS' 19520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19522ac_compiler_gnu=$ac_cv_c_compiler_gnu 19523 19524 19525 # Check to see if we're producing a 32 or 64 bit executable by 19526 # checking the sizeof void*. Note that AC CHECK_SIZEOF even works 19527 # when cross compiling (!), according to the AC 2.64 docs. This 19528 # check is needed because on some systems, you can instruct the 19529 # compiler to specifically build 32 or 64 bit executables -- even 19530 # though the $target may indicate something different. 19531 # The cast to long int works around a bug in the HP C Compiler 19532# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19533# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19534# This bug is HP SR number 8606223364. 19535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 19536$as_echo_n "checking size of void *... " >&6; } 19537if ${ac_cv_sizeof_void_p+:} false; then : 19538 $as_echo_n "(cached) " >&6 19539else 19540 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 19541 19542else 19543 if test "$ac_cv_type_void_p" = yes; then 19544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19546as_fn_error 77 "cannot compute sizeof (void *) 19547See \`config.log' for more details" "$LINENO" 5; } 19548 else 19549 ac_cv_sizeof_void_p=0 19550 fi 19551fi 19552 19553fi 19554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 19555$as_echo "$ac_cv_sizeof_void_p" >&6; } 19556 19557 19558 19559cat >>confdefs.h <<_ACEOF 19560#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 19561_ACEOF 19562 19563 19564 19565 # 19566 # List of components to be built, either statically or dynamically. 19567 # To be enlarged below. 19568 # 19569 hwloc_components="noos xml synthetic xml_nolibxml" 19570 19571 # 19572 # Check OS support 19573 # 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5 19575$as_echo_n "checking which OS support to include... " >&6; } 19576 case ${target} in 19577 powerpc64-bgq-linux*) # must be before Linux 19578 19579$as_echo "#define HWLOC_BGQ_SYS 1" >>confdefs.h 19580 19581 hwloc_bgq=yes 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bgq" >&5 19583$as_echo "bgq" >&6; } 19584 hwloc_components="$hwloc_components bgq" 19585 ;; 19586 *-*-linux*) 19587 19588$as_echo "#define HWLOC_LINUX_SYS 1" >>confdefs.h 19589 19590 hwloc_linux=yes 19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5 19592$as_echo "Linux" >&6; } 19593 hwloc_components="$hwloc_components linux" 19594 if test "x$enable_io" != xno; then 19595 19596$as_echo "#define HWLOC_HAVE_LINUXIO 1" >>confdefs.h 19597 19598 hwloc_linuxio_happy=yes 19599 if test x$enable_pci != xno; then 19600 19601$as_echo "#define HWLOC_HAVE_LINUXPCI 1" >>confdefs.h 19602 19603 hwloc_linuxpci_happy=yes 19604 fi 19605 fi 19606 ;; 19607 *-*-irix*) 19608 19609$as_echo "#define HWLOC_IRIX_SYS 1" >>confdefs.h 19610 19611 hwloc_irix=yes 19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5 19613$as_echo "IRIX" >&6; } 19614 # no irix component yet 19615 ;; 19616 *-*-darwin*) 19617 19618$as_echo "#define HWLOC_DARWIN_SYS 1" >>confdefs.h 19619 19620 hwloc_darwin=yes 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 19622$as_echo "Darwin" >&6; } 19623 hwloc_components="$hwloc_components darwin" 19624 ;; 19625 *-*-solaris*) 19626 19627$as_echo "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h 19628 19629 hwloc_solaris=yes 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5 19631$as_echo "Solaris" >&6; } 19632 hwloc_components="$hwloc_components solaris" 19633 ;; 19634 *-*-aix*) 19635 19636$as_echo "#define HWLOC_AIX_SYS 1" >>confdefs.h 19637 19638 hwloc_aix=yes 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5 19640$as_echo "AIX" >&6; } 19641 hwloc_components="$hwloc_components aix" 19642 ;; 19643 *-*-hpux*) 19644 19645$as_echo "#define HWLOC_HPUX_SYS 1" >>confdefs.h 19646 19647 hwloc_hpux=yes 19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5 19649$as_echo "HP-UX" >&6; } 19650 hwloc_components="$hwloc_components hpux" 19651 ;; 19652 *-*-mingw*|*-*-cygwin*) 19653 19654$as_echo "#define HWLOC_WIN_SYS 1" >>confdefs.h 19655 19656 hwloc_windows=yes 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 19658$as_echo "Windows" >&6; } 19659 hwloc_components="$hwloc_components windows" 19660 ;; 19661 *-*-*freebsd*) 19662 19663$as_echo "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h 19664 19665 hwloc_freebsd=yes 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5 19667$as_echo "FreeBSD" >&6; } 19668 hwloc_components="$hwloc_components freebsd" 19669 ;; 19670 *-*-*netbsd*) 19671 19672$as_echo "#define HWLOC_NETBSD_SYS 1" >>confdefs.h 19673 19674 hwloc_netbsd=yes 19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5 19676$as_echo "NetBSD" >&6; } 19677 hwloc_components="$hwloc_components netbsd" 19678 ;; 19679 *) 19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5 19681$as_echo "Unsupported! ($target)" >&6; } 19682 19683$as_echo "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h 19684 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5 19686$as_echo "$as_me: WARNING: ***********************************************************" >&2;} 19687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5 19688$as_echo "$as_me: WARNING: *** hwloc does not support this system." >&2;} 19689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5 19690$as_echo "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;} 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&5 19692$as_echo "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&2;} 19693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and binding will not be supported." >&5 19694$as_echo "$as_me: WARNING: *** and binding will not be supported." >&2;} 19695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5 19696$as_echo "$as_me: WARNING: *** You have been warned." >&2;} 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5 19698$as_echo "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;} 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5 19700$as_echo "$as_me: WARNING: ***********************************************************" >&2;} 19701 sleep 10 19702 ;; 19703 esac 19704 19705 # 19706 # Check CPU support 19707 # 19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5 19709$as_echo_n "checking which CPU support to include... " >&6; } 19710 case ${target} in 19711 i*86-*-*|x86_64-*-*|amd64-*-*) 19712 case ${ac_cv_sizeof_void_p} in 19713 4) 19714 19715$as_echo "#define HWLOC_X86_32_ARCH 1" >>confdefs.h 19716 19717 hwloc_x86_32=yes 19718 HWLOC_MS_LIB_ARCH=X86 19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5 19720$as_echo "x86_32" >&6; } 19721 ;; 19722 8) 19723 19724$as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h 19725 19726 hwloc_x86_64=yes 19727 HWLOC_MS_LIB_ARCH=X64 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5 19729$as_echo "x86_64" >&6; } 19730 ;; 19731 *) 19732 19733$as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h 19734 19735 hwloc_x86_64=yes 19736 HWLOC_MS_LIB_ARCH=X64 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5 19738$as_echo "unknown -- assuming x86_64" >&6; } 19739 ;; 19740 esac 19741 ;; 19742 *) 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 19744$as_echo "unknown" >&6; } 19745 ;; 19746 esac 19747 19748 19749 # The cast to long int works around a bug in the HP C Compiler 19750# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19751# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19752# This bug is HP SR number 8606223364. 19753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 19754$as_echo_n "checking size of unsigned long... " >&6; } 19755if ${ac_cv_sizeof_unsigned_long+:} false; then : 19756 $as_echo_n "(cached) " >&6 19757else 19758 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 19759 19760else 19761 if test "$ac_cv_type_unsigned_long" = yes; then 19762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19764as_fn_error 77 "cannot compute sizeof (unsigned long) 19765See \`config.log' for more details" "$LINENO" 5; } 19766 else 19767 ac_cv_sizeof_unsigned_long=0 19768 fi 19769fi 19770 19771fi 19772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 19773$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 19774 19775 19776 19777cat >>confdefs.h <<_ACEOF 19778#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 19779_ACEOF 19780 19781 19782 19783cat >>confdefs.h <<_ACEOF 19784#define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 19785_ACEOF 19786 19787 # The cast to long int works around a bug in the HP C Compiler 19788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19790# This bug is HP SR number 8606223364. 19791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 19792$as_echo_n "checking size of unsigned int... " >&6; } 19793if ${ac_cv_sizeof_unsigned_int+:} false; then : 19794 $as_echo_n "(cached) " >&6 19795else 19796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 19797 19798else 19799 if test "$ac_cv_type_unsigned_int" = yes; then 19800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19802as_fn_error 77 "cannot compute sizeof (unsigned int) 19803See \`config.log' for more details" "$LINENO" 5; } 19804 else 19805 ac_cv_sizeof_unsigned_int=0 19806 fi 19807fi 19808 19809fi 19810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 19811$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 19812 19813 19814 19815cat >>confdefs.h <<_ACEOF 19816#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 19817_ACEOF 19818 19819 19820 19821cat >>confdefs.h <<_ACEOF 19822#define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 19823_ACEOF 19824 19825 19826 # 19827 # Check for compiler attributes and visibility 19828 # 19829 19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 19831$as_echo_n "checking for __attribute__... " >&6; } 19832 19833 if ${hwloc_cv___attribute__+:} false; then : 19834 $as_echo_n "(cached) " >&6 19835else 19836 19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19838/* end confdefs.h. */ 19839#include <stdlib.h> 19840 /* Check for the longest available __attribute__ (since gcc-2.3) */ 19841 struct foo { 19842 char a; 19843 int x[2] __attribute__ ((__packed__)); 19844 }; 19845 19846int 19847main () 19848{ 19849 19850 ; 19851 return 0; 19852} 19853_ACEOF 19854if ac_fn_c_try_compile "$LINENO"; then : 19855 hwloc_cv___attribute__=1 19856else 19857 hwloc_cv___attribute__=0 19858fi 19859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19860 19861 if test "$hwloc_cv___attribute__" = "1" ; then 19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19863/* end confdefs.h. */ 19864#include <stdlib.h> 19865 /* Check for the longest available __attribute__ (since gcc-2.3) */ 19866 struct foo { 19867 char a; 19868 int x[2] __attribute__ ((__packed__)); 19869 }; 19870 19871int 19872main () 19873{ 19874 19875 ; 19876 return 0; 19877} 19878_ACEOF 19879if ac_fn_c_try_compile "$LINENO"; then : 19880 hwloc_cv___attribute__=1 19881else 19882 hwloc_cv___attribute__=0 19883fi 19884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19885 fi 19886 19887fi 19888 19889 19890cat >>confdefs.h <<_ACEOF 19891#define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__ 19892_ACEOF 19893 19894 19895# 19896# Now that we know the compiler support __attribute__ let's check which kind of 19897# attributed are supported. 19898# 19899 if test "$hwloc_cv___attribute__" = "0" ; then 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19901$as_echo "no" >&6; } 19902 hwloc_cv___attribute__aligned=0 19903 hwloc_cv___attribute__always_inline=0 19904 hwloc_cv___attribute__cold=0 19905 hwloc_cv___attribute__const=0 19906 hwloc_cv___attribute__deprecated=0 19907 hwloc_cv___attribute__format=0 19908 hwloc_cv___attribute__hot=0 19909 hwloc_cv___attribute__malloc=0 19910 hwloc_cv___attribute__may_alias=0 19911 hwloc_cv___attribute__no_instrument_function=0 19912 hwloc_cv___attribute__nonnull=0 19913 hwloc_cv___attribute__noreturn=0 19914 hwloc_cv___attribute__packed=0 19915 hwloc_cv___attribute__pure=0 19916 hwloc_cv___attribute__sentinel=0 19917 hwloc_cv___attribute__unused=0 19918 hwloc_cv___attribute__warn_unused_result=0 19919 hwloc_cv___attribute__weak_alias=0 19920 else 19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19922$as_echo "yes" >&6; } 19923 19924 19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5 19926$as_echo_n "checking for __attribute__(aligned)... " >&6; } 19927 if ${hwloc_cv___attribute__aligned+:} false; then : 19928 $as_echo_n "(cached) " >&6 19929else 19930 19931 # 19932 # Try to compile using the C compiler 19933 # 19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19935/* end confdefs.h. */ 19936struct foo { char text[4]; } __attribute__ ((__aligned__(8))); 19937int 19938main () 19939{ 19940 19941 ; 19942 return 0; 19943} 19944_ACEOF 19945if ac_fn_c_try_compile "$LINENO"; then : 19946 19947 # 19948 # In case we did succeed: Fine, but was this due to the 19949 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 19950 # and if found, reset the hwloc_cv__attribute__var=0 19951 # 19952 hwloc_cv___attribute__aligned=1 19953 19954 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 19955 19956 19957 if test -s conftest.err ; then 19958 for i in ignore skip ; do 19959 $GREP -iq $i conftest.err 19960 if test "$?" = "0" ; then 19961 hwloc_cv___attribute__aligned=0 19962 break; 19963 fi 19964 done 19965 fi 19966 19967 19968else 19969 hwloc_cv___attribute__aligned=0 19970fi 19971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19972 19973 # 19974 # If the attribute is supported by both compilers, 19975 # try to recompile a *cross-check*, IFF defined. 19976 # 19977 if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then 19978 ac_c_werror_flag_safe=$ac_c_werror_flag 19979 ac_c_werror_flag="yes" 19980 CFLAGS_safe=$CFLAGS 19981 CFLAGS="$CFLAGS " 19982 19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19984/* end confdefs.h. */ 19985 19986int 19987main () 19988{ 19989 19990 int i=4711; 19991 i=usage(&i); 19992 19993 ; 19994 return 0; 19995} 19996_ACEOF 19997if ac_fn_c_try_compile "$LINENO"; then : 19998 hwloc_cv___attribute__aligned=0 19999else 20000 20001 # 20002 # In case we did NOT succeed: Fine, but was this due to the 20003 # attribute being ignored? Grep for IgNoRe in conftest.err 20004 # and if found, reset the hwloc_cv__attribute__var=0 20005 # 20006 hwloc_cv___attribute__aligned=1 20007 20008 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20009 20010 20011 if test -s conftest.err ; then 20012 for i in ignore skip ; do 20013 $GREP -iq $i conftest.err 20014 if test "$?" = "0" ; then 20015 hwloc_cv___attribute__aligned=0 20016 break; 20017 fi 20018 done 20019 fi 20020 20021 20022fi 20023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20024 20025 ac_c_werror_flag=$ac_c_werror_flag_safe 20026 CFLAGS=$CFLAGS_safe 20027 fi 20028 20029fi 20030 20031 20032 if test "$hwloc_cv___attribute__aligned" = "1" ; then 20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20034$as_echo "yes" >&6; } 20035 else 20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20037$as_echo "no" >&6; } 20038 fi 20039 20040 20041 # 20042 # Ignored by PGI-6.2.5; -- recognized by output-parser 20043 # 20044 20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5 20046$as_echo_n "checking for __attribute__(always_inline)... " >&6; } 20047 if ${hwloc_cv___attribute__always_inline+:} false; then : 20048 $as_echo_n "(cached) " >&6 20049else 20050 20051 # 20052 # Try to compile using the C compiler 20053 # 20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20055/* end confdefs.h. */ 20056int foo (int arg) __attribute__ ((__always_inline__)); 20057int 20058main () 20059{ 20060 20061 ; 20062 return 0; 20063} 20064_ACEOF 20065if ac_fn_c_try_compile "$LINENO"; then : 20066 20067 # 20068 # In case we did succeed: Fine, but was this due to the 20069 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20070 # and if found, reset the hwloc_cv__attribute__var=0 20071 # 20072 hwloc_cv___attribute__always_inline=1 20073 20074 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20075 20076 20077 if test -s conftest.err ; then 20078 for i in ignore skip ; do 20079 $GREP -iq $i conftest.err 20080 if test "$?" = "0" ; then 20081 hwloc_cv___attribute__always_inline=0 20082 break; 20083 fi 20084 done 20085 fi 20086 20087 20088else 20089 hwloc_cv___attribute__always_inline=0 20090fi 20091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20092 20093 # 20094 # If the attribute is supported by both compilers, 20095 # try to recompile a *cross-check*, IFF defined. 20096 # 20097 if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then 20098 ac_c_werror_flag_safe=$ac_c_werror_flag 20099 ac_c_werror_flag="yes" 20100 CFLAGS_safe=$CFLAGS 20101 CFLAGS="$CFLAGS " 20102 20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20104/* end confdefs.h. */ 20105 20106int 20107main () 20108{ 20109 20110 int i=4711; 20111 i=usage(&i); 20112 20113 ; 20114 return 0; 20115} 20116_ACEOF 20117if ac_fn_c_try_compile "$LINENO"; then : 20118 hwloc_cv___attribute__always_inline=0 20119else 20120 20121 # 20122 # In case we did NOT succeed: Fine, but was this due to the 20123 # attribute being ignored? Grep for IgNoRe in conftest.err 20124 # and if found, reset the hwloc_cv__attribute__var=0 20125 # 20126 hwloc_cv___attribute__always_inline=1 20127 20128 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20129 20130 20131 if test -s conftest.err ; then 20132 for i in ignore skip ; do 20133 $GREP -iq $i conftest.err 20134 if test "$?" = "0" ; then 20135 hwloc_cv___attribute__always_inline=0 20136 break; 20137 fi 20138 done 20139 fi 20140 20141 20142fi 20143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20144 20145 ac_c_werror_flag=$ac_c_werror_flag_safe 20146 CFLAGS=$CFLAGS_safe 20147 fi 20148 20149fi 20150 20151 20152 if test "$hwloc_cv___attribute__always_inline" = "1" ; then 20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20154$as_echo "yes" >&6; } 20155 else 20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20157$as_echo "no" >&6; } 20158 fi 20159 20160 20161 20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5 20163$as_echo_n "checking for __attribute__(cold)... " >&6; } 20164 if ${hwloc_cv___attribute__cold+:} false; then : 20165 $as_echo_n "(cached) " >&6 20166else 20167 20168 # 20169 # Try to compile using the C compiler 20170 # 20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20172/* end confdefs.h. */ 20173 20174 int foo(int arg1, int arg2) __attribute__ ((__cold__)); 20175 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 20176 20177int 20178main () 20179{ 20180 20181 ; 20182 return 0; 20183} 20184_ACEOF 20185if ac_fn_c_try_compile "$LINENO"; then : 20186 20187 # 20188 # In case we did succeed: Fine, but was this due to the 20189 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20190 # and if found, reset the hwloc_cv__attribute__var=0 20191 # 20192 hwloc_cv___attribute__cold=1 20193 20194 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20195 20196 20197 if test -s conftest.err ; then 20198 for i in ignore skip ; do 20199 $GREP -iq $i conftest.err 20200 if test "$?" = "0" ; then 20201 hwloc_cv___attribute__cold=0 20202 break; 20203 fi 20204 done 20205 fi 20206 20207 20208else 20209 hwloc_cv___attribute__cold=0 20210fi 20211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20212 20213 # 20214 # If the attribute is supported by both compilers, 20215 # try to recompile a *cross-check*, IFF defined. 20216 # 20217 if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then 20218 ac_c_werror_flag_safe=$ac_c_werror_flag 20219 ac_c_werror_flag="yes" 20220 CFLAGS_safe=$CFLAGS 20221 CFLAGS="$CFLAGS " 20222 20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20224/* end confdefs.h. */ 20225 20226int 20227main () 20228{ 20229 20230 int i=4711; 20231 i=usage(&i); 20232 20233 ; 20234 return 0; 20235} 20236_ACEOF 20237if ac_fn_c_try_compile "$LINENO"; then : 20238 hwloc_cv___attribute__cold=0 20239else 20240 20241 # 20242 # In case we did NOT succeed: Fine, but was this due to the 20243 # attribute being ignored? Grep for IgNoRe in conftest.err 20244 # and if found, reset the hwloc_cv__attribute__var=0 20245 # 20246 hwloc_cv___attribute__cold=1 20247 20248 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20249 20250 20251 if test -s conftest.err ; then 20252 for i in ignore skip ; do 20253 $GREP -iq $i conftest.err 20254 if test "$?" = "0" ; then 20255 hwloc_cv___attribute__cold=0 20256 break; 20257 fi 20258 done 20259 fi 20260 20261 20262fi 20263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20264 20265 ac_c_werror_flag=$ac_c_werror_flag_safe 20266 CFLAGS=$CFLAGS_safe 20267 fi 20268 20269fi 20270 20271 20272 if test "$hwloc_cv___attribute__cold" = "1" ; then 20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20274$as_echo "yes" >&6; } 20275 else 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20277$as_echo "no" >&6; } 20278 fi 20279 20280 20281 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5 20283$as_echo_n "checking for __attribute__(const)... " >&6; } 20284 if ${hwloc_cv___attribute__const+:} false; then : 20285 $as_echo_n "(cached) " >&6 20286else 20287 20288 # 20289 # Try to compile using the C compiler 20290 # 20291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20292/* end confdefs.h. */ 20293 20294 int foo(int arg1, int arg2) __attribute__ ((__const__)); 20295 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 20296 20297int 20298main () 20299{ 20300 20301 ; 20302 return 0; 20303} 20304_ACEOF 20305if ac_fn_c_try_compile "$LINENO"; then : 20306 20307 # 20308 # In case we did succeed: Fine, but was this due to the 20309 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20310 # and if found, reset the hwloc_cv__attribute__var=0 20311 # 20312 hwloc_cv___attribute__const=1 20313 20314 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20315 20316 20317 if test -s conftest.err ; then 20318 for i in ignore skip ; do 20319 $GREP -iq $i conftest.err 20320 if test "$?" = "0" ; then 20321 hwloc_cv___attribute__const=0 20322 break; 20323 fi 20324 done 20325 fi 20326 20327 20328else 20329 hwloc_cv___attribute__const=0 20330fi 20331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20332 20333 # 20334 # If the attribute is supported by both compilers, 20335 # try to recompile a *cross-check*, IFF defined. 20336 # 20337 if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then 20338 ac_c_werror_flag_safe=$ac_c_werror_flag 20339 ac_c_werror_flag="yes" 20340 CFLAGS_safe=$CFLAGS 20341 CFLAGS="$CFLAGS " 20342 20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20344/* end confdefs.h. */ 20345 20346int 20347main () 20348{ 20349 20350 int i=4711; 20351 i=usage(&i); 20352 20353 ; 20354 return 0; 20355} 20356_ACEOF 20357if ac_fn_c_try_compile "$LINENO"; then : 20358 hwloc_cv___attribute__const=0 20359else 20360 20361 # 20362 # In case we did NOT succeed: Fine, but was this due to the 20363 # attribute being ignored? Grep for IgNoRe in conftest.err 20364 # and if found, reset the hwloc_cv__attribute__var=0 20365 # 20366 hwloc_cv___attribute__const=1 20367 20368 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20369 20370 20371 if test -s conftest.err ; then 20372 for i in ignore skip ; do 20373 $GREP -iq $i conftest.err 20374 if test "$?" = "0" ; then 20375 hwloc_cv___attribute__const=0 20376 break; 20377 fi 20378 done 20379 fi 20380 20381 20382fi 20383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20384 20385 ac_c_werror_flag=$ac_c_werror_flag_safe 20386 CFLAGS=$CFLAGS_safe 20387 fi 20388 20389fi 20390 20391 20392 if test "$hwloc_cv___attribute__const" = "1" ; then 20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20394$as_echo "yes" >&6; } 20395 else 20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20397$as_echo "no" >&6; } 20398 fi 20399 20400 20401 20402 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5 20404$as_echo_n "checking for __attribute__(deprecated)... " >&6; } 20405 if ${hwloc_cv___attribute__deprecated+:} false; then : 20406 $as_echo_n "(cached) " >&6 20407else 20408 20409 # 20410 # Try to compile using the C compiler 20411 # 20412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20413/* end confdefs.h. */ 20414 20415 int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); 20416 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 20417 20418int 20419main () 20420{ 20421 20422 ; 20423 return 0; 20424} 20425_ACEOF 20426if ac_fn_c_try_compile "$LINENO"; then : 20427 20428 # 20429 # In case we did succeed: Fine, but was this due to the 20430 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20431 # and if found, reset the hwloc_cv__attribute__var=0 20432 # 20433 hwloc_cv___attribute__deprecated=1 20434 20435 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20436 20437 20438 if test -s conftest.err ; then 20439 for i in ignore skip ; do 20440 $GREP -iq $i conftest.err 20441 if test "$?" = "0" ; then 20442 hwloc_cv___attribute__deprecated=0 20443 break; 20444 fi 20445 done 20446 fi 20447 20448 20449else 20450 hwloc_cv___attribute__deprecated=0 20451fi 20452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20453 20454 # 20455 # If the attribute is supported by both compilers, 20456 # try to recompile a *cross-check*, IFF defined. 20457 # 20458 if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then 20459 ac_c_werror_flag_safe=$ac_c_werror_flag 20460 ac_c_werror_flag="yes" 20461 CFLAGS_safe=$CFLAGS 20462 CFLAGS="$CFLAGS " 20463 20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20465/* end confdefs.h. */ 20466 20467int 20468main () 20469{ 20470 20471 int i=4711; 20472 i=usage(&i); 20473 20474 ; 20475 return 0; 20476} 20477_ACEOF 20478if ac_fn_c_try_compile "$LINENO"; then : 20479 hwloc_cv___attribute__deprecated=0 20480else 20481 20482 # 20483 # In case we did NOT succeed: Fine, but was this due to the 20484 # attribute being ignored? Grep for IgNoRe in conftest.err 20485 # and if found, reset the hwloc_cv__attribute__var=0 20486 # 20487 hwloc_cv___attribute__deprecated=1 20488 20489 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20490 20491 20492 if test -s conftest.err ; then 20493 for i in ignore skip ; do 20494 $GREP -iq $i conftest.err 20495 if test "$?" = "0" ; then 20496 hwloc_cv___attribute__deprecated=0 20497 break; 20498 fi 20499 done 20500 fi 20501 20502 20503fi 20504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20505 20506 ac_c_werror_flag=$ac_c_werror_flag_safe 20507 CFLAGS=$CFLAGS_safe 20508 fi 20509 20510fi 20511 20512 20513 if test "$hwloc_cv___attribute__deprecated" = "1" ; then 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20515$as_echo "yes" >&6; } 20516 else 20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20518$as_echo "no" >&6; } 20519 fi 20520 20521 20522 20523 HWLOC_ATTRIBUTE_CFLAGS= 20524 case "$hwloc_c_vendor" in 20525 gnu) 20526 HWLOC_ATTRIBUTE_CFLAGS="-Wall" 20527 ;; 20528 intel) 20529 # we want specifically the warning on format string conversion 20530 HWLOC_ATTRIBUTE_CFLAGS="-we181" 20531 ;; 20532 esac 20533 20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5 20535$as_echo_n "checking for __attribute__(format)... " >&6; } 20536 if ${hwloc_cv___attribute__format+:} false; then : 20537 $as_echo_n "(cached) " >&6 20538else 20539 20540 # 20541 # Try to compile using the C compiler 20542 # 20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20544/* end confdefs.h. */ 20545 20546 int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); 20547 20548int 20549main () 20550{ 20551 20552 ; 20553 return 0; 20554} 20555_ACEOF 20556if ac_fn_c_try_compile "$LINENO"; then : 20557 20558 # 20559 # In case we did succeed: Fine, but was this due to the 20560 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20561 # and if found, reset the hwloc_cv__attribute__var=0 20562 # 20563 hwloc_cv___attribute__format=1 20564 20565 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20566 20567 20568 if test -s conftest.err ; then 20569 for i in ignore skip ; do 20570 $GREP -iq $i conftest.err 20571 if test "$?" = "0" ; then 20572 hwloc_cv___attribute__format=0 20573 break; 20574 fi 20575 done 20576 fi 20577 20578 20579else 20580 hwloc_cv___attribute__format=0 20581fi 20582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20583 20584 # 20585 # If the attribute is supported by both compilers, 20586 # try to recompile a *cross-check*, IFF defined. 20587 # 20588 if test '(' "$hwloc_cv___attribute__format" = "1" -a " 20589 static int usage (int * argument); 20590 extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); 20591 20592 static int usage (int * argument) { 20593 return this_printf (*argument, "%d", argument); /* This should produce a format warning */ 20594 } 20595 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 20596 int main(void); 20597 " != "" ')' ; then 20598 ac_c_werror_flag_safe=$ac_c_werror_flag 20599 ac_c_werror_flag="yes" 20600 CFLAGS_safe=$CFLAGS 20601 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" 20602 20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20604/* end confdefs.h. */ 20605 20606 static int usage (int * argument); 20607 extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); 20608 20609 static int usage (int * argument) { 20610 return this_printf (*argument, "%d", argument); /* This should produce a format warning */ 20611 } 20612 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 20613 int main(void); 20614 20615int 20616main () 20617{ 20618 20619 int i=4711; 20620 i=usage(&i); 20621 20622 ; 20623 return 0; 20624} 20625_ACEOF 20626if ac_fn_c_try_compile "$LINENO"; then : 20627 hwloc_cv___attribute__format=0 20628else 20629 20630 # 20631 # In case we did NOT succeed: Fine, but was this due to the 20632 # attribute being ignored? Grep for IgNoRe in conftest.err 20633 # and if found, reset the hwloc_cv__attribute__var=0 20634 # 20635 hwloc_cv___attribute__format=1 20636 20637 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20638 20639 20640 if test -s conftest.err ; then 20641 for i in ignore skip ; do 20642 $GREP -iq $i conftest.err 20643 if test "$?" = "0" ; then 20644 hwloc_cv___attribute__format=0 20645 break; 20646 fi 20647 done 20648 fi 20649 20650 20651fi 20652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20653 20654 ac_c_werror_flag=$ac_c_werror_flag_safe 20655 CFLAGS=$CFLAGS_safe 20656 fi 20657 20658fi 20659 20660 20661 if test "$hwloc_cv___attribute__format" = "1" ; then 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20663$as_echo "yes" >&6; } 20664 else 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20666$as_echo "no" >&6; } 20667 fi 20668 20669 20670 20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5 20672$as_echo_n "checking for __attribute__(hot)... " >&6; } 20673 if ${hwloc_cv___attribute__hot+:} false; then : 20674 $as_echo_n "(cached) " >&6 20675else 20676 20677 # 20678 # Try to compile using the C compiler 20679 # 20680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20681/* end confdefs.h. */ 20682 20683 int foo(int arg1, int arg2) __attribute__ ((__hot__)); 20684 int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } 20685 20686int 20687main () 20688{ 20689 20690 ; 20691 return 0; 20692} 20693_ACEOF 20694if ac_fn_c_try_compile "$LINENO"; then : 20695 20696 # 20697 # In case we did succeed: Fine, but was this due to the 20698 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20699 # and if found, reset the hwloc_cv__attribute__var=0 20700 # 20701 hwloc_cv___attribute__hot=1 20702 20703 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20704 20705 20706 if test -s conftest.err ; then 20707 for i in ignore skip ; do 20708 $GREP -iq $i conftest.err 20709 if test "$?" = "0" ; then 20710 hwloc_cv___attribute__hot=0 20711 break; 20712 fi 20713 done 20714 fi 20715 20716 20717else 20718 hwloc_cv___attribute__hot=0 20719fi 20720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20721 20722 # 20723 # If the attribute is supported by both compilers, 20724 # try to recompile a *cross-check*, IFF defined. 20725 # 20726 if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then 20727 ac_c_werror_flag_safe=$ac_c_werror_flag 20728 ac_c_werror_flag="yes" 20729 CFLAGS_safe=$CFLAGS 20730 CFLAGS="$CFLAGS " 20731 20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20733/* end confdefs.h. */ 20734 20735int 20736main () 20737{ 20738 20739 int i=4711; 20740 i=usage(&i); 20741 20742 ; 20743 return 0; 20744} 20745_ACEOF 20746if ac_fn_c_try_compile "$LINENO"; then : 20747 hwloc_cv___attribute__hot=0 20748else 20749 20750 # 20751 # In case we did NOT succeed: Fine, but was this due to the 20752 # attribute being ignored? Grep for IgNoRe in conftest.err 20753 # and if found, reset the hwloc_cv__attribute__var=0 20754 # 20755 hwloc_cv___attribute__hot=1 20756 20757 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20758 20759 20760 if test -s conftest.err ; then 20761 for i in ignore skip ; do 20762 $GREP -iq $i conftest.err 20763 if test "$?" = "0" ; then 20764 hwloc_cv___attribute__hot=0 20765 break; 20766 fi 20767 done 20768 fi 20769 20770 20771fi 20772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20773 20774 ac_c_werror_flag=$ac_c_werror_flag_safe 20775 CFLAGS=$CFLAGS_safe 20776 fi 20777 20778fi 20779 20780 20781 if test "$hwloc_cv___attribute__hot" = "1" ; then 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20783$as_echo "yes" >&6; } 20784 else 20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20786$as_echo "no" >&6; } 20787 fi 20788 20789 20790 20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5 20792$as_echo_n "checking for __attribute__(malloc)... " >&6; } 20793 if ${hwloc_cv___attribute__malloc+:} false; then : 20794 $as_echo_n "(cached) " >&6 20795else 20796 20797 # 20798 # Try to compile using the C compiler 20799 # 20800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20801/* end confdefs.h. */ 20802 20803#ifdef HAVE_STDLIB_H 20804# include <stdlib.h> 20805#endif 20806 int * foo(int arg1) __attribute__ ((__malloc__)); 20807 int * foo(int arg1) { return (int*) malloc(arg1); } 20808 20809int 20810main () 20811{ 20812 20813 ; 20814 return 0; 20815} 20816_ACEOF 20817if ac_fn_c_try_compile "$LINENO"; then : 20818 20819 # 20820 # In case we did succeed: Fine, but was this due to the 20821 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20822 # and if found, reset the hwloc_cv__attribute__var=0 20823 # 20824 hwloc_cv___attribute__malloc=1 20825 20826 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20827 20828 20829 if test -s conftest.err ; then 20830 for i in ignore skip ; do 20831 $GREP -iq $i conftest.err 20832 if test "$?" = "0" ; then 20833 hwloc_cv___attribute__malloc=0 20834 break; 20835 fi 20836 done 20837 fi 20838 20839 20840else 20841 hwloc_cv___attribute__malloc=0 20842fi 20843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20844 20845 # 20846 # If the attribute is supported by both compilers, 20847 # try to recompile a *cross-check*, IFF defined. 20848 # 20849 if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then 20850 ac_c_werror_flag_safe=$ac_c_werror_flag 20851 ac_c_werror_flag="yes" 20852 CFLAGS_safe=$CFLAGS 20853 CFLAGS="$CFLAGS " 20854 20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20856/* end confdefs.h. */ 20857 20858int 20859main () 20860{ 20861 20862 int i=4711; 20863 i=usage(&i); 20864 20865 ; 20866 return 0; 20867} 20868_ACEOF 20869if ac_fn_c_try_compile "$LINENO"; then : 20870 hwloc_cv___attribute__malloc=0 20871else 20872 20873 # 20874 # In case we did NOT succeed: Fine, but was this due to the 20875 # attribute being ignored? Grep for IgNoRe in conftest.err 20876 # and if found, reset the hwloc_cv__attribute__var=0 20877 # 20878 hwloc_cv___attribute__malloc=1 20879 20880 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20881 20882 20883 if test -s conftest.err ; then 20884 for i in ignore skip ; do 20885 $GREP -iq $i conftest.err 20886 if test "$?" = "0" ; then 20887 hwloc_cv___attribute__malloc=0 20888 break; 20889 fi 20890 done 20891 fi 20892 20893 20894fi 20895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20896 20897 ac_c_werror_flag=$ac_c_werror_flag_safe 20898 CFLAGS=$CFLAGS_safe 20899 fi 20900 20901fi 20902 20903 20904 if test "$hwloc_cv___attribute__malloc" = "1" ; then 20905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20906$as_echo "yes" >&6; } 20907 else 20908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20909$as_echo "no" >&6; } 20910 fi 20911 20912 20913 20914 # 20915 # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers 20916 # Ignored by intel-9.1.045 -- turn off with -wd1292 20917 # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check 20918 # The test case is chosen to match our only use in topology-xml-*.c, and reproduces an xlc-13.1.0 bug. 20919 # 20920 20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5 20922$as_echo_n "checking for __attribute__(may_alias)... " >&6; } 20923 if ${hwloc_cv___attribute__may_alias+:} false; then : 20924 $as_echo_n "(cached) " >&6 20925else 20926 20927 # 20928 # Try to compile using the C compiler 20929 # 20930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20931/* end confdefs.h. */ 20932struct { int i; } __attribute__ ((__may_alias__)) * p_value; 20933int 20934main () 20935{ 20936 20937 ; 20938 return 0; 20939} 20940_ACEOF 20941if ac_fn_c_try_compile "$LINENO"; then : 20942 20943 # 20944 # In case we did succeed: Fine, but was this due to the 20945 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 20946 # and if found, reset the hwloc_cv__attribute__var=0 20947 # 20948 hwloc_cv___attribute__may_alias=1 20949 20950 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 20951 20952 20953 if test -s conftest.err ; then 20954 for i in ignore skip ; do 20955 $GREP -iq $i conftest.err 20956 if test "$?" = "0" ; then 20957 hwloc_cv___attribute__may_alias=0 20958 break; 20959 fi 20960 done 20961 fi 20962 20963 20964else 20965 hwloc_cv___attribute__may_alias=0 20966fi 20967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20968 20969 # 20970 # If the attribute is supported by both compilers, 20971 # try to recompile a *cross-check*, IFF defined. 20972 # 20973 if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then 20974 ac_c_werror_flag_safe=$ac_c_werror_flag 20975 ac_c_werror_flag="yes" 20976 CFLAGS_safe=$CFLAGS 20977 CFLAGS="$CFLAGS " 20978 20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20980/* end confdefs.h. */ 20981 20982int 20983main () 20984{ 20985 20986 int i=4711; 20987 i=usage(&i); 20988 20989 ; 20990 return 0; 20991} 20992_ACEOF 20993if ac_fn_c_try_compile "$LINENO"; then : 20994 hwloc_cv___attribute__may_alias=0 20995else 20996 20997 # 20998 # In case we did NOT succeed: Fine, but was this due to the 20999 # attribute being ignored? Grep for IgNoRe in conftest.err 21000 # and if found, reset the hwloc_cv__attribute__var=0 21001 # 21002 hwloc_cv___attribute__may_alias=1 21003 21004 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21005 21006 21007 if test -s conftest.err ; then 21008 for i in ignore skip ; do 21009 $GREP -iq $i conftest.err 21010 if test "$?" = "0" ; then 21011 hwloc_cv___attribute__may_alias=0 21012 break; 21013 fi 21014 done 21015 fi 21016 21017 21018fi 21019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21020 21021 ac_c_werror_flag=$ac_c_werror_flag_safe 21022 CFLAGS=$CFLAGS_safe 21023 fi 21024 21025fi 21026 21027 21028 if test "$hwloc_cv___attribute__may_alias" = "1" ; then 21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21030$as_echo "yes" >&6; } 21031 else 21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21033$as_echo "no" >&6; } 21034 fi 21035 21036 21037 21038 21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5 21040$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; } 21041 if ${hwloc_cv___attribute__no_instrument_function+:} false; then : 21042 $as_echo_n "(cached) " >&6 21043else 21044 21045 # 21046 # Try to compile using the C compiler 21047 # 21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21049/* end confdefs.h. */ 21050int * foo(int arg1) __attribute__ ((__no_instrument_function__)); 21051int 21052main () 21053{ 21054 21055 ; 21056 return 0; 21057} 21058_ACEOF 21059if ac_fn_c_try_compile "$LINENO"; then : 21060 21061 # 21062 # In case we did succeed: Fine, but was this due to the 21063 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21064 # and if found, reset the hwloc_cv__attribute__var=0 21065 # 21066 hwloc_cv___attribute__no_instrument_function=1 21067 21068 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21069 21070 21071 if test -s conftest.err ; then 21072 for i in ignore skip ; do 21073 $GREP -iq $i conftest.err 21074 if test "$?" = "0" ; then 21075 hwloc_cv___attribute__no_instrument_function=0 21076 break; 21077 fi 21078 done 21079 fi 21080 21081 21082else 21083 hwloc_cv___attribute__no_instrument_function=0 21084fi 21085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21086 21087 # 21088 # If the attribute is supported by both compilers, 21089 # try to recompile a *cross-check*, IFF defined. 21090 # 21091 if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then 21092 ac_c_werror_flag_safe=$ac_c_werror_flag 21093 ac_c_werror_flag="yes" 21094 CFLAGS_safe=$CFLAGS 21095 CFLAGS="$CFLAGS " 21096 21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21098/* end confdefs.h. */ 21099 21100int 21101main () 21102{ 21103 21104 int i=4711; 21105 i=usage(&i); 21106 21107 ; 21108 return 0; 21109} 21110_ACEOF 21111if ac_fn_c_try_compile "$LINENO"; then : 21112 hwloc_cv___attribute__no_instrument_function=0 21113else 21114 21115 # 21116 # In case we did NOT succeed: Fine, but was this due to the 21117 # attribute being ignored? Grep for IgNoRe in conftest.err 21118 # and if found, reset the hwloc_cv__attribute__var=0 21119 # 21120 hwloc_cv___attribute__no_instrument_function=1 21121 21122 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21123 21124 21125 if test -s conftest.err ; then 21126 for i in ignore skip ; do 21127 $GREP -iq $i conftest.err 21128 if test "$?" = "0" ; then 21129 hwloc_cv___attribute__no_instrument_function=0 21130 break; 21131 fi 21132 done 21133 fi 21134 21135 21136fi 21137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21138 21139 ac_c_werror_flag=$ac_c_werror_flag_safe 21140 CFLAGS=$CFLAGS_safe 21141 fi 21142 21143fi 21144 21145 21146 if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then 21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21148$as_echo "yes" >&6; } 21149 else 21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21151$as_echo "no" >&6; } 21152 fi 21153 21154 21155 21156 # 21157 # Attribute nonnull: 21158 # Ignored by intel-compiler 9.1.045 -- recognized by cross-check 21159 # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check 21160 # 21161 HWLOC_ATTRIBUTE_CFLAGS= 21162 case "$hwloc_c_vendor" in 21163 gnu) 21164 HWLOC_ATTRIBUTE_CFLAGS="-Wall" 21165 ;; 21166 intel) 21167 # we do not want to get ignored attributes warnings, but rather real warnings 21168 HWLOC_ATTRIBUTE_CFLAGS="-wd1292" 21169 ;; 21170 esac 21171 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5 21173$as_echo_n "checking for __attribute__(nonnull)... " >&6; } 21174 if ${hwloc_cv___attribute__nonnull+:} false; then : 21175 $as_echo_n "(cached) " >&6 21176else 21177 21178 # 21179 # Try to compile using the C compiler 21180 # 21181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21182/* end confdefs.h. */ 21183 21184 int square(int *arg) __attribute__ ((__nonnull__)); 21185 int square(int *arg) { return *arg; } 21186 21187int 21188main () 21189{ 21190 21191 ; 21192 return 0; 21193} 21194_ACEOF 21195if ac_fn_c_try_compile "$LINENO"; then : 21196 21197 # 21198 # In case we did succeed: Fine, but was this due to the 21199 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21200 # and if found, reset the hwloc_cv__attribute__var=0 21201 # 21202 hwloc_cv___attribute__nonnull=1 21203 21204 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21205 21206 21207 if test -s conftest.err ; then 21208 for i in ignore skip ; do 21209 $GREP -iq $i conftest.err 21210 if test "$?" = "0" ; then 21211 hwloc_cv___attribute__nonnull=0 21212 break; 21213 fi 21214 done 21215 fi 21216 21217 21218else 21219 hwloc_cv___attribute__nonnull=0 21220fi 21221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21222 21223 # 21224 # If the attribute is supported by both compilers, 21225 # try to recompile a *cross-check*, IFF defined. 21226 # 21227 if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a " 21228 static int usage(int * argument); 21229 int square(int * argument) __attribute__ ((__nonnull__)); 21230 int square(int * argument) { return (*argument) * (*argument); } 21231 21232 static int usage(int * argument) { 21233 return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ 21234 } 21235 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 21236 int main(void); 21237 " != "" ')' ; then 21238 ac_c_werror_flag_safe=$ac_c_werror_flag 21239 ac_c_werror_flag="yes" 21240 CFLAGS_safe=$CFLAGS 21241 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" 21242 21243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21244/* end confdefs.h. */ 21245 21246 static int usage(int * argument); 21247 int square(int * argument) __attribute__ ((__nonnull__)); 21248 int square(int * argument) { return (*argument) * (*argument); } 21249 21250 static int usage(int * argument) { 21251 return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ 21252 } 21253 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 21254 int main(void); 21255 21256int 21257main () 21258{ 21259 21260 int i=4711; 21261 i=usage(&i); 21262 21263 ; 21264 return 0; 21265} 21266_ACEOF 21267if ac_fn_c_try_compile "$LINENO"; then : 21268 hwloc_cv___attribute__nonnull=0 21269else 21270 21271 # 21272 # In case we did NOT succeed: Fine, but was this due to the 21273 # attribute being ignored? Grep for IgNoRe in conftest.err 21274 # and if found, reset the hwloc_cv__attribute__var=0 21275 # 21276 hwloc_cv___attribute__nonnull=1 21277 21278 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21279 21280 21281 if test -s conftest.err ; then 21282 for i in ignore skip ; do 21283 $GREP -iq $i conftest.err 21284 if test "$?" = "0" ; then 21285 hwloc_cv___attribute__nonnull=0 21286 break; 21287 fi 21288 done 21289 fi 21290 21291 21292fi 21293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21294 21295 ac_c_werror_flag=$ac_c_werror_flag_safe 21296 CFLAGS=$CFLAGS_safe 21297 fi 21298 21299fi 21300 21301 21302 if test "$hwloc_cv___attribute__nonnull" = "1" ; then 21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21304$as_echo "yes" >&6; } 21305 else 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21307$as_echo "no" >&6; } 21308 fi 21309 21310 21311 21312 21313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5 21314$as_echo_n "checking for __attribute__(noreturn)... " >&6; } 21315 if ${hwloc_cv___attribute__noreturn+:} false; then : 21316 $as_echo_n "(cached) " >&6 21317else 21318 21319 # 21320 # Try to compile using the C compiler 21321 # 21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21323/* end confdefs.h. */ 21324 21325#ifdef HAVE_UNISTD_H 21326# include <unistd.h> 21327#endif 21328#ifdef HAVE_STDLIB_H 21329# include <stdlib.h> 21330#endif 21331 void fatal(int arg1) __attribute__ ((__noreturn__)); 21332 void fatal(int arg1) { exit(arg1); } 21333 21334int 21335main () 21336{ 21337 21338 ; 21339 return 0; 21340} 21341_ACEOF 21342if ac_fn_c_try_compile "$LINENO"; then : 21343 21344 # 21345 # In case we did succeed: Fine, but was this due to the 21346 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21347 # and if found, reset the hwloc_cv__attribute__var=0 21348 # 21349 hwloc_cv___attribute__noreturn=1 21350 21351 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21352 21353 21354 if test -s conftest.err ; then 21355 for i in ignore skip ; do 21356 $GREP -iq $i conftest.err 21357 if test "$?" = "0" ; then 21358 hwloc_cv___attribute__noreturn=0 21359 break; 21360 fi 21361 done 21362 fi 21363 21364 21365else 21366 hwloc_cv___attribute__noreturn=0 21367fi 21368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21369 21370 # 21371 # If the attribute is supported by both compilers, 21372 # try to recompile a *cross-check*, IFF defined. 21373 # 21374 if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then 21375 ac_c_werror_flag_safe=$ac_c_werror_flag 21376 ac_c_werror_flag="yes" 21377 CFLAGS_safe=$CFLAGS 21378 CFLAGS="$CFLAGS " 21379 21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21381/* end confdefs.h. */ 21382 21383int 21384main () 21385{ 21386 21387 int i=4711; 21388 i=usage(&i); 21389 21390 ; 21391 return 0; 21392} 21393_ACEOF 21394if ac_fn_c_try_compile "$LINENO"; then : 21395 hwloc_cv___attribute__noreturn=0 21396else 21397 21398 # 21399 # In case we did NOT succeed: Fine, but was this due to the 21400 # attribute being ignored? Grep for IgNoRe in conftest.err 21401 # and if found, reset the hwloc_cv__attribute__var=0 21402 # 21403 hwloc_cv___attribute__noreturn=1 21404 21405 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21406 21407 21408 if test -s conftest.err ; then 21409 for i in ignore skip ; do 21410 $GREP -iq $i conftest.err 21411 if test "$?" = "0" ; then 21412 hwloc_cv___attribute__noreturn=0 21413 break; 21414 fi 21415 done 21416 fi 21417 21418 21419fi 21420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21421 21422 ac_c_werror_flag=$ac_c_werror_flag_safe 21423 CFLAGS=$CFLAGS_safe 21424 fi 21425 21426fi 21427 21428 21429 if test "$hwloc_cv___attribute__noreturn" = "1" ; then 21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21431$as_echo "yes" >&6; } 21432 else 21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21434$as_echo "no" >&6; } 21435 fi 21436 21437 21438 21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5 21440$as_echo_n "checking for __attribute__(packed)... " >&6; } 21441 if ${hwloc_cv___attribute__packed+:} false; then : 21442 $as_echo_n "(cached) " >&6 21443else 21444 21445 # 21446 # Try to compile using the C compiler 21447 # 21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21449/* end confdefs.h. */ 21450 21451 struct foo { 21452 char a; 21453 int x[2] __attribute__ ((__packed__)); 21454 }; 21455 21456int 21457main () 21458{ 21459 21460 ; 21461 return 0; 21462} 21463_ACEOF 21464if ac_fn_c_try_compile "$LINENO"; then : 21465 21466 # 21467 # In case we did succeed: Fine, but was this due to the 21468 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21469 # and if found, reset the hwloc_cv__attribute__var=0 21470 # 21471 hwloc_cv___attribute__packed=1 21472 21473 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21474 21475 21476 if test -s conftest.err ; then 21477 for i in ignore skip ; do 21478 $GREP -iq $i conftest.err 21479 if test "$?" = "0" ; then 21480 hwloc_cv___attribute__packed=0 21481 break; 21482 fi 21483 done 21484 fi 21485 21486 21487else 21488 hwloc_cv___attribute__packed=0 21489fi 21490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21491 21492 # 21493 # If the attribute is supported by both compilers, 21494 # try to recompile a *cross-check*, IFF defined. 21495 # 21496 if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then 21497 ac_c_werror_flag_safe=$ac_c_werror_flag 21498 ac_c_werror_flag="yes" 21499 CFLAGS_safe=$CFLAGS 21500 CFLAGS="$CFLAGS " 21501 21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21503/* end confdefs.h. */ 21504 21505int 21506main () 21507{ 21508 21509 int i=4711; 21510 i=usage(&i); 21511 21512 ; 21513 return 0; 21514} 21515_ACEOF 21516if ac_fn_c_try_compile "$LINENO"; then : 21517 hwloc_cv___attribute__packed=0 21518else 21519 21520 # 21521 # In case we did NOT succeed: Fine, but was this due to the 21522 # attribute being ignored? Grep for IgNoRe in conftest.err 21523 # and if found, reset the hwloc_cv__attribute__var=0 21524 # 21525 hwloc_cv___attribute__packed=1 21526 21527 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21528 21529 21530 if test -s conftest.err ; then 21531 for i in ignore skip ; do 21532 $GREP -iq $i conftest.err 21533 if test "$?" = "0" ; then 21534 hwloc_cv___attribute__packed=0 21535 break; 21536 fi 21537 done 21538 fi 21539 21540 21541fi 21542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21543 21544 ac_c_werror_flag=$ac_c_werror_flag_safe 21545 CFLAGS=$CFLAGS_safe 21546 fi 21547 21548fi 21549 21550 21551 if test "$hwloc_cv___attribute__packed" = "1" ; then 21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21553$as_echo "yes" >&6; } 21554 else 21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21556$as_echo "no" >&6; } 21557 fi 21558 21559 21560 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5 21562$as_echo_n "checking for __attribute__(pure)... " >&6; } 21563 if ${hwloc_cv___attribute__pure+:} false; then : 21564 $as_echo_n "(cached) " >&6 21565else 21566 21567 # 21568 # Try to compile using the C compiler 21569 # 21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21571/* end confdefs.h. */ 21572 21573 int square(int arg) __attribute__ ((__pure__)); 21574 int square(int arg) { return arg * arg; } 21575 21576int 21577main () 21578{ 21579 21580 ; 21581 return 0; 21582} 21583_ACEOF 21584if ac_fn_c_try_compile "$LINENO"; then : 21585 21586 # 21587 # In case we did succeed: Fine, but was this due to the 21588 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21589 # and if found, reset the hwloc_cv__attribute__var=0 21590 # 21591 hwloc_cv___attribute__pure=1 21592 21593 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21594 21595 21596 if test -s conftest.err ; then 21597 for i in ignore skip ; do 21598 $GREP -iq $i conftest.err 21599 if test "$?" = "0" ; then 21600 hwloc_cv___attribute__pure=0 21601 break; 21602 fi 21603 done 21604 fi 21605 21606 21607else 21608 hwloc_cv___attribute__pure=0 21609fi 21610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21611 21612 # 21613 # If the attribute is supported by both compilers, 21614 # try to recompile a *cross-check*, IFF defined. 21615 # 21616 if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then 21617 ac_c_werror_flag_safe=$ac_c_werror_flag 21618 ac_c_werror_flag="yes" 21619 CFLAGS_safe=$CFLAGS 21620 CFLAGS="$CFLAGS " 21621 21622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21623/* end confdefs.h. */ 21624 21625int 21626main () 21627{ 21628 21629 int i=4711; 21630 i=usage(&i); 21631 21632 ; 21633 return 0; 21634} 21635_ACEOF 21636if ac_fn_c_try_compile "$LINENO"; then : 21637 hwloc_cv___attribute__pure=0 21638else 21639 21640 # 21641 # In case we did NOT succeed: Fine, but was this due to the 21642 # attribute being ignored? Grep for IgNoRe in conftest.err 21643 # and if found, reset the hwloc_cv__attribute__var=0 21644 # 21645 hwloc_cv___attribute__pure=1 21646 21647 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21648 21649 21650 if test -s conftest.err ; then 21651 for i in ignore skip ; do 21652 $GREP -iq $i conftest.err 21653 if test "$?" = "0" ; then 21654 hwloc_cv___attribute__pure=0 21655 break; 21656 fi 21657 done 21658 fi 21659 21660 21661fi 21662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21663 21664 ac_c_werror_flag=$ac_c_werror_flag_safe 21665 CFLAGS=$CFLAGS_safe 21666 fi 21667 21668fi 21669 21670 21671 if test "$hwloc_cv___attribute__pure" = "1" ; then 21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21673$as_echo "yes" >&6; } 21674 else 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21676$as_echo "no" >&6; } 21677 fi 21678 21679 21680 # 21681 # Attribute sentinel: 21682 # Ignored by the intel-9.1.045 -- recognized by cross-check 21683 # intel-10.0beta works fine 21684 # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check 21685 # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) 21686 # 21687 HWLOC_ATTRIBUTE_CFLAGS= 21688 case "$hwloc_c_vendor" in 21689 gnu) 21690 HWLOC_ATTRIBUTE_CFLAGS="-Wall" 21691 ;; 21692 intel) 21693 # we do not want to get ignored attributes warnings 21694 HWLOC_ATTRIBUTE_CFLAGS="-wd1292" 21695 ;; 21696 esac 21697 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5 21699$as_echo_n "checking for __attribute__(sentinel)... " >&6; } 21700 if ${hwloc_cv___attribute__sentinel+:} false; then : 21701 $as_echo_n "(cached) " >&6 21702else 21703 21704 # 21705 # Try to compile using the C compiler 21706 # 21707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21708/* end confdefs.h. */ 21709 21710 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); 21711 21712int 21713main () 21714{ 21715 21716 ; 21717 return 0; 21718} 21719_ACEOF 21720if ac_fn_c_try_compile "$LINENO"; then : 21721 21722 # 21723 # In case we did succeed: Fine, but was this due to the 21724 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21725 # and if found, reset the hwloc_cv__attribute__var=0 21726 # 21727 hwloc_cv___attribute__sentinel=1 21728 21729 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21730 21731 21732 if test -s conftest.err ; then 21733 for i in ignore skip ; do 21734 $GREP -iq $i conftest.err 21735 if test "$?" = "0" ; then 21736 hwloc_cv___attribute__sentinel=0 21737 break; 21738 fi 21739 done 21740 fi 21741 21742 21743else 21744 hwloc_cv___attribute__sentinel=0 21745fi 21746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21747 21748 # 21749 # If the attribute is supported by both compilers, 21750 # try to recompile a *cross-check*, IFF defined. 21751 # 21752 if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a " 21753 static int usage(int * argument); 21754 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); 21755 21756 static int usage(int * argument) { 21757 void * last_arg_should_be_null = argument; 21758 return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ 21759 } 21760 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 21761 int main(void); 21762 " != "" ')' ; then 21763 ac_c_werror_flag_safe=$ac_c_werror_flag 21764 ac_c_werror_flag="yes" 21765 CFLAGS_safe=$CFLAGS 21766 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" 21767 21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21769/* end confdefs.h. */ 21770 21771 static int usage(int * argument); 21772 int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); 21773 21774 static int usage(int * argument) { 21775 void * last_arg_should_be_null = argument; 21776 return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ 21777 } 21778 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 21779 int main(void); 21780 21781int 21782main () 21783{ 21784 21785 int i=4711; 21786 i=usage(&i); 21787 21788 ; 21789 return 0; 21790} 21791_ACEOF 21792if ac_fn_c_try_compile "$LINENO"; then : 21793 hwloc_cv___attribute__sentinel=0 21794else 21795 21796 # 21797 # In case we did NOT succeed: Fine, but was this due to the 21798 # attribute being ignored? Grep for IgNoRe in conftest.err 21799 # and if found, reset the hwloc_cv__attribute__var=0 21800 # 21801 hwloc_cv___attribute__sentinel=1 21802 21803 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21804 21805 21806 if test -s conftest.err ; then 21807 for i in ignore skip ; do 21808 $GREP -iq $i conftest.err 21809 if test "$?" = "0" ; then 21810 hwloc_cv___attribute__sentinel=0 21811 break; 21812 fi 21813 done 21814 fi 21815 21816 21817fi 21818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21819 21820 ac_c_werror_flag=$ac_c_werror_flag_safe 21821 CFLAGS=$CFLAGS_safe 21822 fi 21823 21824fi 21825 21826 21827 if test "$hwloc_cv___attribute__sentinel" = "1" ; then 21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21829$as_echo "yes" >&6; } 21830 else 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21832$as_echo "no" >&6; } 21833 fi 21834 21835 21836 21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5 21838$as_echo_n "checking for __attribute__(unused)... " >&6; } 21839 if ${hwloc_cv___attribute__unused+:} false; then : 21840 $as_echo_n "(cached) " >&6 21841else 21842 21843 # 21844 # Try to compile using the C compiler 21845 # 21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21847/* end confdefs.h. */ 21848 21849 int square(int arg1 __attribute__ ((__unused__)), int arg2); 21850 int square(int arg1, int arg2) { return arg2; } 21851 21852int 21853main () 21854{ 21855 21856 ; 21857 return 0; 21858} 21859_ACEOF 21860if ac_fn_c_try_compile "$LINENO"; then : 21861 21862 # 21863 # In case we did succeed: Fine, but was this due to the 21864 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 21865 # and if found, reset the hwloc_cv__attribute__var=0 21866 # 21867 hwloc_cv___attribute__unused=1 21868 21869 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21870 21871 21872 if test -s conftest.err ; then 21873 for i in ignore skip ; do 21874 $GREP -iq $i conftest.err 21875 if test "$?" = "0" ; then 21876 hwloc_cv___attribute__unused=0 21877 break; 21878 fi 21879 done 21880 fi 21881 21882 21883else 21884 hwloc_cv___attribute__unused=0 21885fi 21886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21887 21888 # 21889 # If the attribute is supported by both compilers, 21890 # try to recompile a *cross-check*, IFF defined. 21891 # 21892 if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then 21893 ac_c_werror_flag_safe=$ac_c_werror_flag 21894 ac_c_werror_flag="yes" 21895 CFLAGS_safe=$CFLAGS 21896 CFLAGS="$CFLAGS " 21897 21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21899/* end confdefs.h. */ 21900 21901int 21902main () 21903{ 21904 21905 int i=4711; 21906 i=usage(&i); 21907 21908 ; 21909 return 0; 21910} 21911_ACEOF 21912if ac_fn_c_try_compile "$LINENO"; then : 21913 hwloc_cv___attribute__unused=0 21914else 21915 21916 # 21917 # In case we did NOT succeed: Fine, but was this due to the 21918 # attribute being ignored? Grep for IgNoRe in conftest.err 21919 # and if found, reset the hwloc_cv__attribute__var=0 21920 # 21921 hwloc_cv___attribute__unused=1 21922 21923 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 21924 21925 21926 if test -s conftest.err ; then 21927 for i in ignore skip ; do 21928 $GREP -iq $i conftest.err 21929 if test "$?" = "0" ; then 21930 hwloc_cv___attribute__unused=0 21931 break; 21932 fi 21933 done 21934 fi 21935 21936 21937fi 21938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21939 21940 ac_c_werror_flag=$ac_c_werror_flag_safe 21941 CFLAGS=$CFLAGS_safe 21942 fi 21943 21944fi 21945 21946 21947 if test "$hwloc_cv___attribute__unused" = "1" ; then 21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21949$as_echo "yes" >&6; } 21950 else 21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21952$as_echo "no" >&6; } 21953 fi 21954 21955 21956 21957 # 21958 # Attribute warn_unused_result: 21959 # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check 21960 # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) 21961 # 21962 HWLOC_ATTRIBUTE_CFLAGS= 21963 case "$hwloc_c_vendor" in 21964 gnu) 21965 HWLOC_ATTRIBUTE_CFLAGS="-Wall" 21966 ;; 21967 intel) 21968 # we do not want to get ignored attributes warnings 21969 HWLOC_ATTRIBUTE_CFLAGS="-wd1292" 21970 ;; 21971 esac 21972 21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5 21974$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; } 21975 if ${hwloc_cv___attribute__warn_unused_result+:} false; then : 21976 $as_echo_n "(cached) " >&6 21977else 21978 21979 # 21980 # Try to compile using the C compiler 21981 # 21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21983/* end confdefs.h. */ 21984 21985 int foo(int arg) __attribute__ ((__warn_unused_result__)); 21986 int foo(int arg) { return arg + 3; } 21987 21988int 21989main () 21990{ 21991 21992 ; 21993 return 0; 21994} 21995_ACEOF 21996if ac_fn_c_try_compile "$LINENO"; then : 21997 21998 # 21999 # In case we did succeed: Fine, but was this due to the 22000 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22001 # and if found, reset the hwloc_cv__attribute__var=0 22002 # 22003 hwloc_cv___attribute__warn_unused_result=1 22004 22005 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 22006 22007 22008 if test -s conftest.err ; then 22009 for i in ignore skip ; do 22010 $GREP -iq $i conftest.err 22011 if test "$?" = "0" ; then 22012 hwloc_cv___attribute__warn_unused_result=0 22013 break; 22014 fi 22015 done 22016 fi 22017 22018 22019else 22020 hwloc_cv___attribute__warn_unused_result=0 22021fi 22022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22023 22024 # 22025 # If the attribute is supported by both compilers, 22026 # try to recompile a *cross-check*, IFF defined. 22027 # 22028 if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a " 22029 static int usage(int * argument); 22030 int foo(int arg) __attribute__ ((__warn_unused_result__)); 22031 22032 int foo(int arg) { return arg + 3; } 22033 static int usage(int * argument) { 22034 foo (*argument); /* Should produce an unused result warning */ 22035 return 0; 22036 } 22037 22038 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 22039 int main(void); 22040 " != "" ')' ; then 22041 ac_c_werror_flag_safe=$ac_c_werror_flag 22042 ac_c_werror_flag="yes" 22043 CFLAGS_safe=$CFLAGS 22044 CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" 22045 22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22047/* end confdefs.h. */ 22048 22049 static int usage(int * argument); 22050 int foo(int arg) __attribute__ ((__warn_unused_result__)); 22051 22052 int foo(int arg) { return arg + 3; } 22053 static int usage(int * argument) { 22054 foo (*argument); /* Should produce an unused result warning */ 22055 return 0; 22056 } 22057 22058 /* The autoconf-generated main-function is int main(), which produces a warning by itself */ 22059 int main(void); 22060 22061int 22062main () 22063{ 22064 22065 int i=4711; 22066 i=usage(&i); 22067 22068 ; 22069 return 0; 22070} 22071_ACEOF 22072if ac_fn_c_try_compile "$LINENO"; then : 22073 hwloc_cv___attribute__warn_unused_result=0 22074else 22075 22076 # 22077 # In case we did NOT succeed: Fine, but was this due to the 22078 # attribute being ignored? Grep for IgNoRe in conftest.err 22079 # and if found, reset the hwloc_cv__attribute__var=0 22080 # 22081 hwloc_cv___attribute__warn_unused_result=1 22082 22083 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 22084 22085 22086 if test -s conftest.err ; then 22087 for i in ignore skip ; do 22088 $GREP -iq $i conftest.err 22089 if test "$?" = "0" ; then 22090 hwloc_cv___attribute__warn_unused_result=0 22091 break; 22092 fi 22093 done 22094 fi 22095 22096 22097fi 22098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22099 22100 ac_c_werror_flag=$ac_c_werror_flag_safe 22101 CFLAGS=$CFLAGS_safe 22102 fi 22103 22104fi 22105 22106 22107 if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then 22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22109$as_echo "yes" >&6; } 22110 else 22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22112$as_echo "no" >&6; } 22113 fi 22114 22115 22116 22117 22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5 22119$as_echo_n "checking for __attribute__(weak_alias)... " >&6; } 22120 if ${hwloc_cv___attribute__weak_alias+:} false; then : 22121 $as_echo_n "(cached) " >&6 22122else 22123 22124 # 22125 # Try to compile using the C compiler 22126 # 22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22128/* end confdefs.h. */ 22129 22130 int foo(int arg); 22131 int foo(int arg) { return arg + 3; } 22132 int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); 22133 22134int 22135main () 22136{ 22137 22138 ; 22139 return 0; 22140} 22141_ACEOF 22142if ac_fn_c_try_compile "$LINENO"; then : 22143 22144 # 22145 # In case we did succeed: Fine, but was this due to the 22146 # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err 22147 # and if found, reset the hwloc_cv__attribute__var=0 22148 # 22149 hwloc_cv___attribute__weak_alias=1 22150 22151 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 22152 22153 22154 if test -s conftest.err ; then 22155 for i in ignore skip ; do 22156 $GREP -iq $i conftest.err 22157 if test "$?" = "0" ; then 22158 hwloc_cv___attribute__weak_alias=0 22159 break; 22160 fi 22161 done 22162 fi 22163 22164 22165else 22166 hwloc_cv___attribute__weak_alias=0 22167fi 22168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22169 22170 # 22171 # If the attribute is supported by both compilers, 22172 # try to recompile a *cross-check*, IFF defined. 22173 # 22174 if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then 22175 ac_c_werror_flag_safe=$ac_c_werror_flag 22176 ac_c_werror_flag="yes" 22177 CFLAGS_safe=$CFLAGS 22178 CFLAGS="$CFLAGS " 22179 22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22181/* end confdefs.h. */ 22182 22183int 22184main () 22185{ 22186 22187 int i=4711; 22188 i=usage(&i); 22189 22190 ; 22191 return 0; 22192} 22193_ACEOF 22194if ac_fn_c_try_compile "$LINENO"; then : 22195 hwloc_cv___attribute__weak_alias=0 22196else 22197 22198 # 22199 # In case we did NOT succeed: Fine, but was this due to the 22200 # attribute being ignored? Grep for IgNoRe in conftest.err 22201 # and if found, reset the hwloc_cv__attribute__var=0 22202 # 22203 hwloc_cv___attribute__weak_alias=1 22204 22205 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 22206 22207 22208 if test -s conftest.err ; then 22209 for i in ignore skip ; do 22210 $GREP -iq $i conftest.err 22211 if test "$?" = "0" ; then 22212 hwloc_cv___attribute__weak_alias=0 22213 break; 22214 fi 22215 done 22216 fi 22217 22218 22219fi 22220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22221 22222 ac_c_werror_flag=$ac_c_werror_flag_safe 22223 CFLAGS=$CFLAGS_safe 22224 fi 22225 22226fi 22227 22228 22229 if test "$hwloc_cv___attribute__weak_alias" = "1" ; then 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22231$as_echo "yes" >&6; } 22232 else 22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22234$as_echo "no" >&6; } 22235 fi 22236 22237 22238 fi 22239 22240 # Now that all the values are set, define them 22241 22242 22243cat >>confdefs.h <<_ACEOF 22244#define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned 22245_ACEOF 22246 22247 22248cat >>confdefs.h <<_ACEOF 22249#define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline 22250_ACEOF 22251 22252 22253cat >>confdefs.h <<_ACEOF 22254#define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold 22255_ACEOF 22256 22257 22258cat >>confdefs.h <<_ACEOF 22259#define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const 22260_ACEOF 22261 22262 22263cat >>confdefs.h <<_ACEOF 22264#define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated 22265_ACEOF 22266 22267 22268cat >>confdefs.h <<_ACEOF 22269#define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format 22270_ACEOF 22271 22272 22273cat >>confdefs.h <<_ACEOF 22274#define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot 22275_ACEOF 22276 22277 22278cat >>confdefs.h <<_ACEOF 22279#define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc 22280_ACEOF 22281 22282 22283cat >>confdefs.h <<_ACEOF 22284#define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias 22285_ACEOF 22286 22287 22288cat >>confdefs.h <<_ACEOF 22289#define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function 22290_ACEOF 22291 22292 22293cat >>confdefs.h <<_ACEOF 22294#define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull 22295_ACEOF 22296 22297 22298cat >>confdefs.h <<_ACEOF 22299#define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn 22300_ACEOF 22301 22302 22303cat >>confdefs.h <<_ACEOF 22304#define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed 22305_ACEOF 22306 22307 22308cat >>confdefs.h <<_ACEOF 22309#define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure 22310_ACEOF 22311 22312 22313cat >>confdefs.h <<_ACEOF 22314#define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel 22315_ACEOF 22316 22317 22318cat >>confdefs.h <<_ACEOF 22319#define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused 22320_ACEOF 22321 22322 22323cat >>confdefs.h <<_ACEOF 22324#define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result 22325_ACEOF 22326 22327 22328cat >>confdefs.h <<_ACEOF 22329#define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias 22330_ACEOF 22331 22332 22333 22334 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) 22335 22336 22337 # Check if the compiler has support for visibility, like some 22338 # versions of gcc, icc, Sun Studio cc. 22339 # Check whether --enable-visibility was given. 22340if test "${enable_visibility+set}" = set; then : 22341 enableval=$enable_visibility; 22342fi 22343 22344 22345 case ${target} in 22346 *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*) 22347 enable_visibility=no 22348 ;; 22349 esac 22350 22351 hwloc_visibility_define=0 22352 hwloc_msg="whether to enable symbol visibility" 22353 if test "$enable_visibility" = "no"; then 22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 22355$as_echo_n "checking $hwloc_msg... " >&6; } 22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 22357$as_echo "no (disabled)" >&6; } 22358 else 22359 CFLAGS_orig=$CFLAGS 22360 22361 hwloc_add= 22362 case "$hwloc_c_vendor" in 22363 sun) 22364 # Check using Sun Studio -xldscope=hidden flag 22365 hwloc_add=-xldscope=hidden 22366 CFLAGS="$CFLAGS_orig $hwloc_add -errwarn=%all" 22367 ;; 22368 22369 *) 22370 # Check using -fvisibility=hidden 22371 hwloc_add=-fvisibility=hidden 22372 CFLAGS="$CFLAGS_orig $hwloc_add -Werror" 22373 ;; 22374 esac 22375 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $hwloc_add" >&5 22377$as_echo_n "checking if $CC supports $hwloc_add... " >&6; } 22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22379/* end confdefs.h. */ 22380 22381 #include <stdio.h> 22382 __attribute__((visibility("default"))) int foo; 22383 22384int 22385main () 22386{ 22387fprintf(stderr, "Hello, world\n"); 22388 ; 22389 return 0; 22390} 22391_ACEOF 22392if ac_fn_c_try_link "$LINENO"; then : 22393 if test -s conftest.err; then : 22394 $GREP -iq visibility conftest.err 22395 # If we find "visibility" in the stderr, then 22396 # assume it doesn't work 22397 if test "$?" = "0"; then : 22398 hwloc_add= 22399fi 22400fi 22401 22402else 22403 hwloc_add= 22404fi 22405rm -f core conftest.err conftest.$ac_objext \ 22406 conftest$ac_exeext conftest.$ac_ext 22407 if test "$hwloc_add" = ""; then : 22408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22409$as_echo "no" >&6; } 22410else 22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22412$as_echo "yes" >&6; } 22413fi 22414 22415 CFLAGS=$CFLAGS_orig 22416 HWLOC_VISIBILITY_CFLAGS=$hwloc_add 22417 22418 if test "$hwloc_add" != "" ; then 22419 hwloc_visibility_define=1 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 22421$as_echo_n "checking $hwloc_msg... " >&6; } 22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $hwloc_add)" >&5 22423$as_echo "yes (via $hwloc_add)" >&6; } 22424 elif test "$enable_visibility" = "yes"; then 22425 as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5 22426 else 22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 22428$as_echo_n "checking $hwloc_msg... " >&6; } 22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5 22430$as_echo "no (unsupported)" >&6; } 22431 fi 22432 unset hwloc_add 22433 fi 22434 22435 22436cat >>confdefs.h <<_ACEOF 22437#define HWLOC_C_HAVE_VISIBILITY $hwloc_visibility_define 22438_ACEOF 22439 22440 22441 HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS" 22442 if test "$HWLOC_VISIBILITY_CFLAGS" != ""; then : 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5 22444$as_echo "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;} 22445fi 22446 22447 # Make sure the compiler returns an error code when function arg 22448 # count is wrong, otherwise sched_setaffinity checks may fail. 22449 HWLOC_STRICT_ARGS_CFLAGS= 22450 hwloc_args_check=0 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too many arguments" >&5 22452$as_echo_n "checking whether the C compiler rejects function calls with too many arguments... " >&6; } 22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22454/* end confdefs.h. */ 22455 22456 extern int one_arg(int x); 22457 int foo(void) { return one_arg(1, 2); } 22458 22459int 22460main () 22461{ 22462 22463 ; 22464 return 0; 22465} 22466_ACEOF 22467if ac_fn_c_try_compile "$LINENO"; then : 22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22469$as_echo "no" >&6; } 22470else 22471 hwloc_args_check=1 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22473$as_echo "yes" >&6; } 22474fi 22475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too few arguments" >&5 22477$as_echo_n "checking whether the C compiler rejects function calls with too few arguments... " >&6; } 22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22479/* end confdefs.h. */ 22480 22481 extern int two_arg(int x, int y); 22482 int foo(void) { return two_arg(3); } 22483 22484int 22485main () 22486{ 22487 22488 ; 22489 return 0; 22490} 22491_ACEOF 22492if ac_fn_c_try_compile "$LINENO"; then : 22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22494$as_echo "no" >&6; } 22495else 22496 hwloc_args_check=`expr $hwloc_args_check + 1` 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22498$as_echo "yes" >&6; } 22499fi 22500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22501 if test "$hwloc_args_check" != "2"; then : 22502 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&5 22504$as_echo "$as_me: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&2;} 22505 case "$hwloc_c_vendor" in 22506 ibm) 22507 HWLOC_STRICT_ARGS_CFLAGS="-qhalt=e" 22508 ;; 22509 intel) 22510 HWLOC_STRICT_ARGS_CFLAGS="-we140" 22511 ;; 22512 *) 22513 HWLOC_STRICT_ARGS_CFLAGS=FAIL 22514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this warning and configure using a different C compiler if possible." >&5 22515$as_echo "$as_me: WARNING: Please report this warning and configure using a different C compiler if possible." >&2;} 22516 ;; 22517 esac 22518 if test "$HWLOC_STRICT_ARGS_CFLAGS" != "FAIL"; then : 22519 22520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&5 22521$as_echo "$as_me: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&2;} 22522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively you may configure with a different compiler." >&5 22523$as_echo "$as_me: WARNING: Alternatively you may configure with a different compiler." >&2;} 22524 22525fi 22526 22527fi 22528 22529 if test "$hwloc_mode" = "standalone"; then : 22530 22531 # For the common developer case, if we're in a developer checkout and 22532 # using the GNU compilers, turn on maximum warnings unless 22533 # specifically disabled by the user. 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable \"picky\" compiler mode" >&5 22535$as_echo_n "checking whether to enable \"picky\" compiler mode... " >&6; } 22536 hwloc_want_picky=0 22537 if test "$hwloc_c_vendor" = "gnu"; then : 22538 if test -e "$srcdir/.git"; then : 22539 hwloc_want_picky=1 22540fi 22541fi 22542 if test "$enable_picky" = "yes"; then 22543 if test "$hwloc_c_vendor" = "gnu"; then 22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22545$as_echo "yes" >&6; } 22546 hwloc_want_picky=1 22547 else 22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22549$as_echo "no" >&6; } 22550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&5 22551$as_echo "$as_me: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&2;} 22552 hwloc_want_picky=0 22553 fi 22554 elif test "$enable_picky" = "no"; then 22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22556$as_echo "no" >&6; } 22557 hwloc_want_picky=0 22558 else 22559 if test "$hwloc_want_picky" = 1; then 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 22561$as_echo "yes (default)" >&6; } 22562 else 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 22564$as_echo "no (default)" >&6; } 22565 fi 22566 fi 22567 if test "$hwloc_want_picky" = 1; then 22568 add="-Wall -Wextra -Wunused-parameter -Wundef -Wno-long-long -Wsign-compare" 22569 add="$add -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes" 22570 add="$add -Wcomment -pedantic -Wshadow -Wwrite-strings -Wnested-externs" 22571 add="$add -Wpointer-arith -Wbad-function-cast -Wold-style-definition" 22572 add="$add -Werror-implicit-function-declaration" 22573 22574 22575 tmp_save_CFLAGS="$CFLAGS" 22576 CFLAGS="-Wdiscarded-qualifiers -Werror" 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdiscarded-qualifiers" >&5 22578$as_echo_n "checking if gcc supports -Wdiscarded-qualifiers... " >&6; } 22579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22580/* end confdefs.h. */ 22581int i; 22582int 22583main () 22584{ 22585 22586 ; 22587 return 0; 22588} 22589_ACEOF 22590if ac_fn_c_try_compile "$LINENO"; then : 22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22592$as_echo "yes" >&6; } 22593 add="$add -Wdiscarded-qualifiers" 22594 22595else 22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22597$as_echo "no" >&6; } 22598fi 22599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22600 CFLAGS="$tmp_save_CFLAGS" 22601 22602 22603 tmp_save_CFLAGS="$CFLAGS" 22604 CFLAGS="-Wvariadic-macros -Werror" 22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvariadic-macros" >&5 22606$as_echo_n "checking if gcc supports -Wvariadic-macros... " >&6; } 22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22608/* end confdefs.h. */ 22609int i; 22610int 22611main () 22612{ 22613 22614 ; 22615 return 0; 22616} 22617_ACEOF 22618if ac_fn_c_try_compile "$LINENO"; then : 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22620$as_echo "yes" >&6; } 22621 add="$add -Wvariadic-macros" 22622 22623else 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22625$as_echo "no" >&6; } 22626fi 22627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22628 CFLAGS="$tmp_save_CFLAGS" 22629 22630 22631 tmp_save_CFLAGS="$CFLAGS" 22632 CFLAGS="-Wtype-limits -Werror" 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wtype-limits" >&5 22634$as_echo_n "checking if gcc supports -Wtype-limits... " >&6; } 22635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22636/* end confdefs.h. */ 22637int i; 22638int 22639main () 22640{ 22641 22642 ; 22643 return 0; 22644} 22645_ACEOF 22646if ac_fn_c_try_compile "$LINENO"; then : 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22648$as_echo "yes" >&6; } 22649 add="$add -Wtype-limits" 22650 22651else 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22653$as_echo "no" >&6; } 22654fi 22655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22656 CFLAGS="$tmp_save_CFLAGS" 22657 22658 22659 tmp_save_CFLAGS="$CFLAGS" 22660 CFLAGS="-Wstack-usage=262144 -Werror" 22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wstack-usage=262144" >&5 22662$as_echo_n "checking if gcc supports -Wstack-usage=262144... " >&6; } 22663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22664/* end confdefs.h. */ 22665int i; 22666int 22667main () 22668{ 22669 22670 ; 22671 return 0; 22672} 22673_ACEOF 22674if ac_fn_c_try_compile "$LINENO"; then : 22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22676$as_echo "yes" >&6; } 22677 add="$add -Wstack-usage=262144" 22678 22679else 22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22681$as_echo "no" >&6; } 22682fi 22683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22684 CFLAGS="$tmp_save_CFLAGS" 22685 22686 22687 # -Wextra enables some -Wfoo that we want to disable it at some place 22688 22689 tmp_save_CFLAGS="$CFLAGS" 22690 CFLAGS="-Wmissing-field-initializers -Werror" 22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wmissing-field-initializers" >&5 22692$as_echo_n "checking if gcc supports -Wmissing-field-initializers... " >&6; } 22693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22694/* end confdefs.h. */ 22695int i; 22696int 22697main () 22698{ 22699 22700 ; 22701 return 0; 22702} 22703_ACEOF 22704if ac_fn_c_try_compile "$LINENO"; then : 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22706$as_echo "yes" >&6; } 22707 add="$add -Wmissing-field-initializers" 22708 22709$as_echo "#define HWLOC_HAVE_GCC_W_MISSING_FIELD_INITIALIZERS 1" >>confdefs.h 22710 22711else 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22713$as_echo "no" >&6; } 22714fi 22715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22716 CFLAGS="$tmp_save_CFLAGS" 22717 22718 22719 tmp_save_CFLAGS="$CFLAGS" 22720 CFLAGS="-Wcast-function-type -Werror" 22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wcast-function-type" >&5 22722$as_echo_n "checking if gcc supports -Wcast-function-type... " >&6; } 22723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22724/* end confdefs.h. */ 22725int i; 22726int 22727main () 22728{ 22729 22730 ; 22731 return 0; 22732} 22733_ACEOF 22734if ac_fn_c_try_compile "$LINENO"; then : 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22736$as_echo "yes" >&6; } 22737 add="$add -Wcast-function-type" 22738 22739$as_echo "#define HWLOC_HAVE_GCC_W_CAST_FUNCTION_TYPE 1" >>confdefs.h 22740 22741else 22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22743$as_echo "no" >&6; } 22744fi 22745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22746 CFLAGS="$tmp_save_CFLAGS" 22747 22748 22749 HWLOC_CFLAGS="$HWLOC_CFLAGS $add" 22750 fi 22751 22752fi 22753 22754 # 22755 # Now detect support 22756 # 22757 22758 for ac_header in unistd.h 22759do : 22760 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 22761if test "x$ac_cv_header_unistd_h" = xyes; then : 22762 cat >>confdefs.h <<_ACEOF 22763#define HAVE_UNISTD_H 1 22764_ACEOF 22765 22766fi 22767 22768done 22769 22770 for ac_header in dirent.h 22771do : 22772 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 22773if test "x$ac_cv_header_dirent_h" = xyes; then : 22774 cat >>confdefs.h <<_ACEOF 22775#define HAVE_DIRENT_H 1 22776_ACEOF 22777 22778fi 22779 22780done 22781 22782 for ac_header in strings.h 22783do : 22784 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 22785if test "x$ac_cv_header_strings_h" = xyes; then : 22786 cat >>confdefs.h <<_ACEOF 22787#define HAVE_STRINGS_H 1 22788_ACEOF 22789 22790fi 22791 22792done 22793 22794 for ac_header in ctype.h 22795do : 22796 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 22797if test "x$ac_cv_header_ctype_h" = xyes; then : 22798 cat >>confdefs.h <<_ACEOF 22799#define HAVE_CTYPE_H 1 22800_ACEOF 22801 22802fi 22803 22804done 22805 22806 22807 for ac_func in strcasecmp 22808do : 22809 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22810if test "x$ac_cv_func_strcasecmp" = xyes; then : 22811 cat >>confdefs.h <<_ACEOF 22812#define HAVE_STRCASECMP 1 22813_ACEOF 22814 22815 22816 ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" 22817if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : 22818 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strcasecmp has a complete prototype" >&5 22820$as_echo_n "checking whether function strcasecmp has a complete prototype... " >&6; } 22821 22822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22823/* end confdefs.h. */ 22824$ac_includes_default 22825int 22826main () 22827{ 22828strcasecmp(1,2,3,4,5,6,7,8,9,10); 22829 22830 ; 22831 return 0; 22832} 22833_ACEOF 22834if ac_fn_c_try_compile "$LINENO"; then : 22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22836$as_echo "no" >&6; } 22837 22838else 22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22840$as_echo "yes" >&6; } 22841 22842 22843$as_echo "#define HWLOC_HAVE_DECL_STRCASECMP 1" >>confdefs.h 22844 22845 22846 22847fi 22848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22849fi 22850 22851 22852 22853fi 22854done 22855 22856 for ac_func in strncasecmp 22857do : 22858 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 22859if test "x$ac_cv_func_strncasecmp" = xyes; then : 22860 cat >>confdefs.h <<_ACEOF 22861#define HAVE_STRNCASECMP 1 22862_ACEOF 22863 22864 22865 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" 22866if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : 22867 22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp has a complete prototype" >&5 22869$as_echo_n "checking whether function strncasecmp has a complete prototype... " >&6; } 22870 22871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22872/* end confdefs.h. */ 22873$ac_includes_default 22874int 22875main () 22876{ 22877strncasecmp(1,2,3,4,5,6,7,8,9,10); 22878 22879 ; 22880 return 0; 22881} 22882_ACEOF 22883if ac_fn_c_try_compile "$LINENO"; then : 22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22885$as_echo "no" >&6; } 22886 22887else 22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22889$as_echo "yes" >&6; } 22890 22891 22892$as_echo "#define HWLOC_HAVE_DECL_STRNCASECMP 1" >>confdefs.h 22893 22894 22895 22896fi 22897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22898fi 22899 22900 22901 22902fi 22903done 22904 22905 22906 for ac_func in strftime 22907do : 22908 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 22909if test "x$ac_cv_func_strftime" = xyes; then : 22910 cat >>confdefs.h <<_ACEOF 22911#define HAVE_STRFTIME 1 22912_ACEOF 22913 22914fi 22915done 22916 22917 for ac_func in setlocale 22918do : 22919 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 22920if test "x$ac_cv_func_setlocale" = xyes; then : 22921 cat >>confdefs.h <<_ACEOF 22922#define HAVE_SETLOCALE 1 22923_ACEOF 22924 22925fi 22926done 22927 22928 22929 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 22930if test "x$ac_cv_header_stdint_h" = xyes; then : 22931 22932 22933$as_echo "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h 22934 22935 22936fi 22937 22938 22939 for ac_header in sys/mman.h 22940do : 22941 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 22942if test "x$ac_cv_header_sys_mman_h" = xyes; then : 22943 cat >>confdefs.h <<_ACEOF 22944#define HAVE_SYS_MMAN_H 1 22945_ACEOF 22946 22947fi 22948 22949done 22950 22951 22952 if test x$hwloc_freebsd = xyes; then 22953 echo 22954 echo "**** FreeBSD-specific checks" 22955 22956 for ac_header in sys/domainset.h 22957do : 22958 ac_fn_c_check_header_mongrel "$LINENO" "sys/domainset.h" "ac_cv_header_sys_domainset_h" "$ac_includes_default" 22959if test "x$ac_cv_header_sys_domainset_h" = xyes; then : 22960 cat >>confdefs.h <<_ACEOF 22961#define HAVE_SYS_DOMAINSET_H 1 22962_ACEOF 22963 22964fi 22965 22966done 22967 22968 for ac_header in sys/thr.h 22969do : 22970 ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default" 22971if test "x$ac_cv_header_sys_thr_h" = xyes; then : 22972 cat >>confdefs.h <<_ACEOF 22973#define HAVE_SYS_THR_H 1 22974_ACEOF 22975 22976fi 22977 22978done 22979 22980 for ac_header in pthread_np.h 22981do : 22982 ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" 22983if test "x$ac_cv_header_pthread_np_h" = xyes; then : 22984 cat >>confdefs.h <<_ACEOF 22985#define HAVE_PTHREAD_NP_H 1 22986_ACEOF 22987 22988fi 22989 22990done 22991 22992 for ac_header in sys/cpuset.h 22993do : 22994 ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include <sys/param.h> 22995" 22996if test "x$ac_cv_header_sys_cpuset_h" = xyes; then : 22997 cat >>confdefs.h <<_ACEOF 22998#define HAVE_SYS_CPUSET_H 1 22999_ACEOF 23000 23001fi 23002 23003done 23004 23005 for ac_func in cpuset_setaffinity 23006do : 23007 ac_fn_c_check_func "$LINENO" "cpuset_setaffinity" "ac_cv_func_cpuset_setaffinity" 23008if test "x$ac_cv_func_cpuset_setaffinity" = xyes; then : 23009 cat >>confdefs.h <<_ACEOF 23010#define HAVE_CPUSET_SETAFFINITY 1 23011_ACEOF 23012 23013fi 23014done 23015 23016 for ac_func in cpuset_setid 23017do : 23018 ac_fn_c_check_func "$LINENO" "cpuset_setid" "ac_cv_func_cpuset_setid" 23019if test "x$ac_cv_func_cpuset_setid" = xyes; then : 23020 cat >>confdefs.h <<_ACEOF 23021#define HAVE_CPUSET_SETID 1 23022_ACEOF 23023 23024fi 23025done 23026 23027 23028 echo "**** end of FreeBSD-specific checks" 23029 echo 23030 fi 23031 23032 if test x$hwloc_windows = xyes; then 23033 echo 23034 echo "**** Windows-specific checks" 23035 23036 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 23037if test "x$ac_cv_header_windows_h" = xyes; then : 23038 23039 23040$as_echo "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h 23041 23042 23043fi 23044 23045 23046 23047 old_CPPFLAGS="$CPPFLAGS" 23048 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0601" 23049 ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include <windows.h> 23050" 23051if test "x$ac_cv_type_KAFFINITY" = xyes; then : 23052 23053cat >>confdefs.h <<_ACEOF 23054#define HAVE_KAFFINITY 1 23055_ACEOF 23056 23057 23058fi 23059ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include <windows.h> 23060" 23061if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = xyes; then : 23062 23063cat >>confdefs.h <<_ACEOF 23064#define HAVE_PROCESSOR_CACHE_TYPE 1 23065_ACEOF 23066 23067 23068fi 23069ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include <windows.h> 23070" 23071if test "x$ac_cv_type_CACHE_DESCRIPTOR" = xyes; then : 23072 23073cat >>confdefs.h <<_ACEOF 23074#define HAVE_CACHE_DESCRIPTOR 1 23075_ACEOF 23076 23077 23078fi 23079ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include <windows.h> 23080" 23081if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = xyes; then : 23082 23083cat >>confdefs.h <<_ACEOF 23084#define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1 23085_ACEOF 23086 23087 23088fi 23089ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include <windows.h> 23090" 23091if test "x$ac_cv_type_RelationProcessorPackage" = xyes; then : 23092 23093cat >>confdefs.h <<_ACEOF 23094#define HAVE_RELATIONPROCESSORPACKAGE 1 23095_ACEOF 23096 23097 23098fi 23099ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include <windows.h> 23100" 23101if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes; then : 23102 23103cat >>confdefs.h <<_ACEOF 23104#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1 23105_ACEOF 23106 23107 23108fi 23109ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include <windows.h> 23110" 23111if test "x$ac_cv_type_GROUP_AFFINITY" = xyes; then : 23112 23113cat >>confdefs.h <<_ACEOF 23114#define HAVE_GROUP_AFFINITY 1 23115_ACEOF 23116 23117 23118fi 23119ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include <windows.h> 23120" 23121if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = xyes; then : 23122 23123cat >>confdefs.h <<_ACEOF 23124#define HAVE_PROCESSOR_RELATIONSHIP 1 23125_ACEOF 23126 23127 23128fi 23129ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include <windows.h> 23130" 23131if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = xyes; then : 23132 23133cat >>confdefs.h <<_ACEOF 23134#define HAVE_NUMA_NODE_RELATIONSHIP 1 23135_ACEOF 23136 23137 23138fi 23139ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include <windows.h> 23140" 23141if test "x$ac_cv_type_CACHE_RELATIONSHIP" = xyes; then : 23142 23143cat >>confdefs.h <<_ACEOF 23144#define HAVE_CACHE_RELATIONSHIP 1 23145_ACEOF 23146 23147 23148fi 23149ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include <windows.h> 23150" 23151if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = xyes; then : 23152 23153cat >>confdefs.h <<_ACEOF 23154#define HAVE_PROCESSOR_GROUP_INFO 1 23155_ACEOF 23156 23157 23158fi 23159ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include <windows.h> 23160" 23161if test "x$ac_cv_type_GROUP_RELATIONSHIP" = xyes; then : 23162 23163cat >>confdefs.h <<_ACEOF 23164#define HAVE_GROUP_RELATIONSHIP 1 23165_ACEOF 23166 23167 23168fi 23169ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include <windows.h> 23170" 23171if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = xyes; then : 23172 23173cat >>confdefs.h <<_ACEOF 23174#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1 23175_ACEOF 23176 23177 23178fi 23179ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include <windows.h> 23180" 23181if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = xyes; then : 23182 23183cat >>confdefs.h <<_ACEOF 23184#define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1 23185_ACEOF 23186 23187 23188fi 23189ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include <windows.h> 23190" 23191if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = xyes; then : 23192 23193cat >>confdefs.h <<_ACEOF 23194#define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1 23195_ACEOF 23196 23197 23198fi 23199ac_fn_c_check_type "$LINENO" "PROCESSOR_NUMBER" "ac_cv_type_PROCESSOR_NUMBER" "#include <windows.h> 23200" 23201if test "x$ac_cv_type_PROCESSOR_NUMBER" = xyes; then : 23202 23203cat >>confdefs.h <<_ACEOF 23204#define HAVE_PROCESSOR_NUMBER 1 23205_ACEOF 23206 23207 23208fi 23209 23210 CPPFLAGS="$old_CPPFLAGS" 23211 23212 ac_fn_c_check_decl "$LINENO" "GetModuleFileName" "ac_cv_have_decl_GetModuleFileName" "#include <windows.h> 23213" 23214if test "x$ac_cv_have_decl_GetModuleFileName" = xyes; then : 23215 ac_have_decl=1 23216else 23217 ac_have_decl=0 23218fi 23219 23220cat >>confdefs.h <<_ACEOF 23221#define HAVE_DECL_GETMODULEFILENAME $ac_have_decl 23222_ACEOF 23223 23224 23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 23226$as_echo_n "checking for main in -lgdi32... " >&6; } 23227if ${ac_cv_lib_gdi32_main+:} false; then : 23228 $as_echo_n "(cached) " >&6 23229else 23230 ac_check_lib_save_LIBS=$LIBS 23231LIBS="-lgdi32 $LIBS" 23232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23233/* end confdefs.h. */ 23234 23235 23236int 23237main () 23238{ 23239return main (); 23240 ; 23241 return 0; 23242} 23243_ACEOF 23244if ac_fn_c_try_link "$LINENO"; then : 23245 ac_cv_lib_gdi32_main=yes 23246else 23247 ac_cv_lib_gdi32_main=no 23248fi 23249rm -f core conftest.err conftest.$ac_objext \ 23250 conftest$ac_exeext conftest.$ac_ext 23251LIBS=$ac_check_lib_save_LIBS 23252fi 23253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 23254$as_echo "$ac_cv_lib_gdi32_main" >&6; } 23255if test "x$ac_cv_lib_gdi32_main" = xyes; then : 23256 HWLOC_LIBS="-lgdi32 $HWLOC_LIBS" 23257 23258$as_echo "#define HAVE_LIBGDI32 1" >>confdefs.h 23259 23260fi 23261 23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostQuitMessage in -luser32" >&5 23263$as_echo_n "checking for PostQuitMessage in -luser32... " >&6; } 23264if ${ac_cv_lib_user32_PostQuitMessage+:} false; then : 23265 $as_echo_n "(cached) " >&6 23266else 23267 ac_check_lib_save_LIBS=$LIBS 23268LIBS="-luser32 $LIBS" 23269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23270/* end confdefs.h. */ 23271 23272/* Override any GCC internal prototype to avoid an error. 23273 Use char because int might match the return type of a GCC 23274 builtin and then its argument prototype would still apply. */ 23275#ifdef __cplusplus 23276extern "C" 23277#endif 23278char PostQuitMessage (); 23279int 23280main () 23281{ 23282return PostQuitMessage (); 23283 ; 23284 return 0; 23285} 23286_ACEOF 23287if ac_fn_c_try_link "$LINENO"; then : 23288 ac_cv_lib_user32_PostQuitMessage=yes 23289else 23290 ac_cv_lib_user32_PostQuitMessage=no 23291fi 23292rm -f core conftest.err conftest.$ac_objext \ 23293 conftest$ac_exeext conftest.$ac_ext 23294LIBS=$ac_check_lib_save_LIBS 23295fi 23296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_user32_PostQuitMessage" >&5 23297$as_echo "$ac_cv_lib_user32_PostQuitMessage" >&6; } 23298if test "x$ac_cv_lib_user32_PostQuitMessage" = xyes; then : 23299 hwloc_have_user32="yes" 23300fi 23301 23302 23303 for ac_prog in lib 23304do 23305 # Extract the first word of "$ac_prog", so it can be a program name with args. 23306set dummy $ac_prog; ac_word=$2 23307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23308$as_echo_n "checking for $ac_word... " >&6; } 23309if ${ac_cv_path_HWLOC_MS_LIB+:} false; then : 23310 $as_echo_n "(cached) " >&6 23311else 23312 case $HWLOC_MS_LIB in 23313 [\\/]* | ?:[\\/]*) 23314 ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path. 23315 ;; 23316 *) 23317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23318for as_dir in $PATH 23319do 23320 IFS=$as_save_IFS 23321 test -z "$as_dir" && as_dir=. 23322 for ac_exec_ext in '' $ac_executable_extensions; do 23323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23324 ac_cv_path_HWLOC_MS_LIB="$as_dir/$ac_word$ac_exec_ext" 23325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23326 break 2 23327 fi 23328done 23329 done 23330IFS=$as_save_IFS 23331 23332 ;; 23333esac 23334fi 23335HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB 23336if test -n "$HWLOC_MS_LIB"; then 23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5 23338$as_echo "$HWLOC_MS_LIB" >&6; } 23339else 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23341$as_echo "no" >&6; } 23342fi 23343 23344 23345 test -n "$HWLOC_MS_LIB" && break 23346done 23347 23348 23349 23350 echo "**** end of Windows-specific checks" 23351 echo 23352 fi 23353 23354 if test x$hwloc_solaris = xyes; then 23355 echo 23356 echo "**** Solaris-specific checks" 23357 23358 for ac_header in sys/lgrp_user.h 23359do : 23360 ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default" 23361if test "x$ac_cv_header_sys_lgrp_user_h" = xyes; then : 23362 cat >>confdefs.h <<_ACEOF 23363#define HAVE_SYS_LGRP_USER_H 1 23364_ACEOF 23365 23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgrp_init in -llgrp" >&5 23367$as_echo_n "checking for lgrp_init in -llgrp... " >&6; } 23368if ${ac_cv_lib_lgrp_lgrp_init+:} false; then : 23369 $as_echo_n "(cached) " >&6 23370else 23371 ac_check_lib_save_LIBS=$LIBS 23372LIBS="-llgrp $LIBS" 23373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23374/* end confdefs.h. */ 23375 23376/* Override any GCC internal prototype to avoid an error. 23377 Use char because int might match the return type of a GCC 23378 builtin and then its argument prototype would still apply. */ 23379#ifdef __cplusplus 23380extern "C" 23381#endif 23382char lgrp_init (); 23383int 23384main () 23385{ 23386return lgrp_init (); 23387 ; 23388 return 0; 23389} 23390_ACEOF 23391if ac_fn_c_try_link "$LINENO"; then : 23392 ac_cv_lib_lgrp_lgrp_init=yes 23393else 23394 ac_cv_lib_lgrp_lgrp_init=no 23395fi 23396rm -f core conftest.err conftest.$ac_objext \ 23397 conftest$ac_exeext conftest.$ac_ext 23398LIBS=$ac_check_lib_save_LIBS 23399fi 23400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lgrp_lgrp_init" >&5 23401$as_echo "$ac_cv_lib_lgrp_lgrp_init" >&6; } 23402if test "x$ac_cv_lib_lgrp_lgrp_init" = xyes; then : 23403 HWLOC_LIBS="-llgrp $HWLOC_LIBS" 23404 23405$as_echo "#define HAVE_LIBLGRP 1" >>confdefs.h 23406 23407 ac_fn_c_check_decl "$LINENO" "lgrp_latency_cookie" "ac_cv_have_decl_lgrp_latency_cookie" "#include <sys/lgrp_user.h> 23408" 23409if test "x$ac_cv_have_decl_lgrp_latency_cookie" = xyes; then : 23410 ac_have_decl=1 23411else 23412 ac_have_decl=0 23413fi 23414 23415cat >>confdefs.h <<_ACEOF 23416#define HAVE_DECL_LGRP_LATENCY_COOKIE $ac_have_decl 23417_ACEOF 23418 23419 23420fi 23421 23422 23423fi 23424 23425done 23426 23427 for ac_header in kstat.h 23428do : 23429 ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default" 23430if test "x$ac_cv_header_kstat_h" = xyes; then : 23431 cat >>confdefs.h <<_ACEOF 23432#define HAVE_KSTAT_H 1 23433_ACEOF 23434 23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 23436$as_echo_n "checking for main in -lkstat... " >&6; } 23437if ${ac_cv_lib_kstat_main+:} false; then : 23438 $as_echo_n "(cached) " >&6 23439else 23440 ac_check_lib_save_LIBS=$LIBS 23441LIBS="-lkstat $LIBS" 23442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23443/* end confdefs.h. */ 23444 23445 23446int 23447main () 23448{ 23449return main (); 23450 ; 23451 return 0; 23452} 23453_ACEOF 23454if ac_fn_c_try_link "$LINENO"; then : 23455 ac_cv_lib_kstat_main=yes 23456else 23457 ac_cv_lib_kstat_main=no 23458fi 23459rm -f core conftest.err conftest.$ac_objext \ 23460 conftest$ac_exeext conftest.$ac_ext 23461LIBS=$ac_check_lib_save_LIBS 23462fi 23463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 23464$as_echo "$ac_cv_lib_kstat_main" >&6; } 23465if test "x$ac_cv_lib_kstat_main" = xyes; then : 23466 HWLOC_LIBS="-lkstat $HWLOC_LIBS" 23467 23468$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h 23469 23470fi 23471 23472 23473fi 23474 23475done 23476 23477 23478 for ac_header in picl.h 23479do : 23480 ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default" 23481if test "x$ac_cv_header_picl_h" = xyes; then : 23482 cat >>confdefs.h <<_ACEOF 23483#define HAVE_PICL_H 1 23484_ACEOF 23485 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5 23487$as_echo_n "checking for picl_initialize in -lpicl... " >&6; } 23488if ${ac_cv_lib_picl_picl_initialize+:} false; then : 23489 $as_echo_n "(cached) " >&6 23490else 23491 ac_check_lib_save_LIBS=$LIBS 23492LIBS="-lpicl $LIBS" 23493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23494/* end confdefs.h. */ 23495 23496/* Override any GCC internal prototype to avoid an error. 23497 Use char because int might match the return type of a GCC 23498 builtin and then its argument prototype would still apply. */ 23499#ifdef __cplusplus 23500extern "C" 23501#endif 23502char picl_initialize (); 23503int 23504main () 23505{ 23506return picl_initialize (); 23507 ; 23508 return 0; 23509} 23510_ACEOF 23511if ac_fn_c_try_link "$LINENO"; then : 23512 ac_cv_lib_picl_picl_initialize=yes 23513else 23514 ac_cv_lib_picl_picl_initialize=no 23515fi 23516rm -f core conftest.err conftest.$ac_objext \ 23517 conftest$ac_exeext conftest.$ac_ext 23518LIBS=$ac_check_lib_save_LIBS 23519fi 23520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5 23521$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; } 23522if test "x$ac_cv_lib_picl_picl_initialize" = xyes; then : 23523 HWLOC_LIBS="-lpicl $HWLOC_LIBS" 23524fi 23525 23526fi 23527 23528done 23529 23530 23531 echo "**** end of Solaris-specific checks" 23532 echo 23533 fi 23534 23535 if test x$hwloc_aix = xyes; then 23536 echo 23537 echo "**** AIX-specific checks" 23538 23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5 23540$as_echo_n "checking for library containing pthread_getthrds_np... " >&6; } 23541if ${ac_cv_search_pthread_getthrds_np+:} false; then : 23542 $as_echo_n "(cached) " >&6 23543else 23544 ac_func_search_save_LIBS=$LIBS 23545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23546/* end confdefs.h. */ 23547 23548/* Override any GCC internal prototype to avoid an error. 23549 Use char because int might match the return type of a GCC 23550 builtin and then its argument prototype would still apply. */ 23551#ifdef __cplusplus 23552extern "C" 23553#endif 23554char pthread_getthrds_np (); 23555int 23556main () 23557{ 23558return pthread_getthrds_np (); 23559 ; 23560 return 0; 23561} 23562_ACEOF 23563for ac_lib in '' pthread; do 23564 if test -z "$ac_lib"; then 23565 ac_res="none required" 23566 else 23567 ac_res=-l$ac_lib 23568 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23569 fi 23570 if ac_fn_c_try_link "$LINENO"; then : 23571 ac_cv_search_pthread_getthrds_np=$ac_res 23572fi 23573rm -f core conftest.err conftest.$ac_objext \ 23574 conftest$ac_exeext 23575 if ${ac_cv_search_pthread_getthrds_np+:} false; then : 23576 break 23577fi 23578done 23579if ${ac_cv_search_pthread_getthrds_np+:} false; then : 23580 23581else 23582 ac_cv_search_pthread_getthrds_np=no 23583fi 23584rm conftest.$ac_ext 23585LIBS=$ac_func_search_save_LIBS 23586fi 23587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5 23588$as_echo "$ac_cv_search_pthread_getthrds_np" >&6; } 23589ac_res=$ac_cv_search_pthread_getthrds_np 23590if test "$ac_res" != no; then : 23591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23592 23593 23594$as_echo "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h 23595 23596 23597fi 23598 23599 23600 echo "**** end of AIX-specific checks" 23601 echo 23602 fi 23603 23604 if test x$hwloc_linux = xyes; then 23605 echo 23606 echo "**** Linux-specific checks" 23607 23608 ac_fn_c_check_decl "$LINENO" "sched_getcpu" "ac_cv_have_decl_sched_getcpu" " 23609 #ifndef _GNU_SOURCE 23610 # define _GNU_SOURCE 23611 #endif 23612 #include <sched.h> 23613 23614" 23615if test "x$ac_cv_have_decl_sched_getcpu" = xyes; then : 23616 ac_have_decl=1 23617else 23618 ac_have_decl=0 23619fi 23620 23621cat >>confdefs.h <<_ACEOF 23622#define HAVE_DECL_SCHED_GETCPU $ac_have_decl 23623_ACEOF 23624if test $ac_have_decl = 1; then : 23625 23626else 23627 : 23628fi 23629 23630 23631 23632 ac_fn_c_check_decl "$LINENO" "sched_setaffinity" "ac_cv_have_decl_sched_setaffinity" " 23633#ifndef _GNU_SOURCE 23634# define _GNU_SOURCE 23635#endif 23636#include <sched.h> 23637 23638 23639" 23640if test "x$ac_cv_have_decl_sched_setaffinity" = xyes; then : 23641 23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity has a complete prototype" >&5 23643$as_echo_n "checking whether function sched_setaffinity has a complete prototype... " >&6; } 23644 23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23646/* end confdefs.h. */ 23647 23648#ifndef _GNU_SOURCE 23649# define _GNU_SOURCE 23650#endif 23651#include <sched.h> 23652 23653 23654int 23655main () 23656{ 23657sched_setaffinity(1,2,3,4,5,6,7,8,9,10); 23658 23659 ; 23660 return 0; 23661} 23662_ACEOF 23663if ac_fn_c_try_compile "$LINENO"; then : 23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23665$as_echo "no" >&6; } 23666 23667else 23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23669$as_echo "yes" >&6; } 23670 23671 hwloc_have_sched_setaffinity=yes 23672 23673$as_echo "#define HWLOC_HAVE_SCHED_SETAFFINITY 1" >>confdefs.h 23674 23675 if test "$HWLOC_STRICT_ARGS_CFLAGS" = "FAIL"; then : 23676 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for sched_setaffinity() requires a C compiler which" >&5 23678$as_echo "$as_me: WARNING: Support for sched_setaffinity() requires a C compiler which" >&2;} 23679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: considers incorrect argument counts to be a fatal error." >&5 23680$as_echo "$as_me: WARNING: considers incorrect argument counts to be a fatal error." >&2;} 23681 as_fn_error $? "Cannot continue." "$LINENO" 5 23682 23683fi 23684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5 23685$as_echo_n "checking for old prototype of sched_setaffinity... " >&6; } 23686 hwloc_save_CFLAGS=$CFLAGS 23687 CFLAGS="$CFLAGS $HWLOC_STRICT_ARGS_CFLAGS" 23688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23689/* end confdefs.h. */ 23690 23691 23692 #ifndef _GNU_SOURCE 23693 # define _GNU_SOURCE 23694 #endif 23695 #include <sched.h> 23696 static unsigned long mask; 23697 23698int 23699main () 23700{ 23701 sched_setaffinity(0, (void*) &mask); 23702 ; 23703 return 0; 23704} 23705_ACEOF 23706if ac_fn_c_try_compile "$LINENO"; then : 23707 23708$as_echo "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h 23709 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23711$as_echo "yes" >&6; } 23712else 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23714$as_echo "no" >&6; } 23715fi 23716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23717 CFLAGS=$hwloc_save_CFLAGS 23718 23719 23720fi 23721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23722fi 23723 23724 23725 23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5 23727$as_echo_n "checking for working CPU_SET... " >&6; } 23728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23729/* end confdefs.h. */ 23730 23731 23732 #include <sched.h> 23733 cpu_set_t set; 23734 23735int 23736main () 23737{ 23738 CPU_ZERO(&set); CPU_SET(0, &set); 23739 ; 23740 return 0; 23741} 23742_ACEOF 23743if ac_fn_c_try_link "$LINENO"; then : 23744 23745$as_echo "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h 23746 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23748$as_echo "yes" >&6; } 23749else 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23751$as_echo "no" >&6; } 23752fi 23753rm -f core conftest.err conftest.$ac_objext \ 23754 conftest$ac_exeext conftest.$ac_ext 23755 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5 23757$as_echo_n "checking for working CPU_SET_S... " >&6; } 23758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23759/* end confdefs.h. */ 23760 23761 23762 #include <sched.h> 23763 cpu_set_t *set; 23764 23765int 23766main () 23767{ 23768 23769 set = CPU_ALLOC(1024); 23770 CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set); 23771 CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set); 23772 CPU_FREE(set); 23773 23774 ; 23775 return 0; 23776} 23777_ACEOF 23778if ac_fn_c_try_link "$LINENO"; then : 23779 23780$as_echo "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h 23781 23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23783$as_echo "yes" >&6; } 23784else 23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23786$as_echo "no" >&6; } 23787fi 23788rm -f core conftest.err conftest.$ac_objext \ 23789 conftest$ac_exeext conftest.$ac_ext 23790 23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working syscall with 6 parameters" >&5 23792$as_echo_n "checking for working syscall with 6 parameters... " >&6; } 23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23794/* end confdefs.h. */ 23795 23796 23797 #include <unistd.h> 23798 #include <sys/syscall.h> 23799 23800int 23801main () 23802{ 23803syscall(0, 1, 2, 3, 4, 5, 6); 23804 ; 23805 return 0; 23806} 23807_ACEOF 23808if ac_fn_c_try_link "$LINENO"; then : 23809 23810$as_echo "#define HWLOC_HAVE_SYSCALL 1" >>confdefs.h 23811 23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23813$as_echo "yes" >&6; } 23814else 23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23816$as_echo "no" >&6; } 23817fi 23818rm -f core conftest.err conftest.$ac_objext \ 23819 conftest$ac_exeext conftest.$ac_ext 23820 23821 # Linux libudev support 23822 if test "x$enable_libudev" != xno; then 23823 for ac_header in libudev.h 23824do : 23825 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" 23826if test "x$ac_cv_header_libudev_h" = xyes; then : 23827 cat >>confdefs.h <<_ACEOF 23828#define HAVE_LIBUDEV_H 1 23829_ACEOF 23830 23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_device_new_from_subsystem_sysname in -ludev" >&5 23832$as_echo_n "checking for udev_device_new_from_subsystem_sysname in -ludev... " >&6; } 23833if ${ac_cv_lib_udev_udev_device_new_from_subsystem_sysname+:} false; then : 23834 $as_echo_n "(cached) " >&6 23835else 23836 ac_check_lib_save_LIBS=$LIBS 23837LIBS="-ludev $LIBS" 23838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23839/* end confdefs.h. */ 23840 23841/* Override any GCC internal prototype to avoid an error. 23842 Use char because int might match the return type of a GCC 23843 builtin and then its argument prototype would still apply. */ 23844#ifdef __cplusplus 23845extern "C" 23846#endif 23847char udev_device_new_from_subsystem_sysname (); 23848int 23849main () 23850{ 23851return udev_device_new_from_subsystem_sysname (); 23852 ; 23853 return 0; 23854} 23855_ACEOF 23856if ac_fn_c_try_link "$LINENO"; then : 23857 ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=yes 23858else 23859 ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=no 23860fi 23861rm -f core conftest.err conftest.$ac_objext \ 23862 conftest$ac_exeext conftest.$ac_ext 23863LIBS=$ac_check_lib_save_LIBS 23864fi 23865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&5 23866$as_echo "$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&6; } 23867if test "x$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" = xyes; then : 23868 23869 HWLOC_LIBS="$HWLOC_LIBS -ludev" 23870 23871$as_echo "#define HWLOC_HAVE_LIBUDEV 1" >>confdefs.h 23872 23873 23874fi 23875 23876 23877fi 23878 23879done 23880 23881 fi 23882 23883 echo "**** end of Linux-specific checks" 23884 echo 23885 fi 23886 23887 if test "x$hwloc_linux" != "xyes" ; then 23888 # Don't look for sys/sysctl.h on Linux because it's deprecated and 23889 # generates a warning in GCC10. Also it's unneeded. 23890 for ac_header in sys/param.h 23891do : 23892 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 23893if test "x$ac_cv_header_sys_param_h" = xyes; then : 23894 cat >>confdefs.h <<_ACEOF 23895#define HAVE_SYS_PARAM_H 1 23896_ACEOF 23897 23898fi 23899 23900done 23901 23902 for ac_header in sys/sysctl.h 23903do : 23904 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 23905 $ac_includes_default 23906 #if HAVE_SYS_PARAM_H 23907 #include <sys/param.h> 23908 #endif 23909 23910" 23911if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 23912 cat >>confdefs.h <<_ACEOF 23913#define HAVE_SYS_SYSCTL_H 1 23914_ACEOF 23915 23916 ac_fn_c_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" " 23917 #if HAVE_SYS_PARAM_H 23918 #include <sys/param.h> 23919 #endif 23920 #include <sys/sysctl.h> 23921 23922" 23923if test "x$ac_cv_have_decl_CTL_HW" = xyes; then : 23924 ac_have_decl=1 23925else 23926 ac_have_decl=0 23927fi 23928 23929cat >>confdefs.h <<_ACEOF 23930#define HAVE_DECL_CTL_HW $ac_have_decl 23931_ACEOF 23932ac_fn_c_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" " 23933 #if HAVE_SYS_PARAM_H 23934 #include <sys/param.h> 23935 #endif 23936 #include <sys/sysctl.h> 23937 23938" 23939if test "x$ac_cv_have_decl_HW_NCPU" = xyes; then : 23940 ac_have_decl=1 23941else 23942 ac_have_decl=0 23943fi 23944 23945cat >>confdefs.h <<_ACEOF 23946#define HAVE_DECL_HW_NCPU $ac_have_decl 23947_ACEOF 23948ac_fn_c_check_decl "$LINENO" "HW_REALMEM64" "ac_cv_have_decl_HW_REALMEM64" " 23949 #if HAVE_SYS_PARAM_H 23950 #include <sys/param.h> 23951 #endif 23952 #include <sys/sysctl.h> 23953 23954" 23955if test "x$ac_cv_have_decl_HW_REALMEM64" = xyes; then : 23956 ac_have_decl=1 23957else 23958 ac_have_decl=0 23959fi 23960 23961cat >>confdefs.h <<_ACEOF 23962#define HAVE_DECL_HW_REALMEM64 $ac_have_decl 23963_ACEOF 23964ac_fn_c_check_decl "$LINENO" "HW_MEMSIZE64" "ac_cv_have_decl_HW_MEMSIZE64" " 23965 #if HAVE_SYS_PARAM_H 23966 #include <sys/param.h> 23967 #endif 23968 #include <sys/sysctl.h> 23969 23970" 23971if test "x$ac_cv_have_decl_HW_MEMSIZE64" = xyes; then : 23972 ac_have_decl=1 23973else 23974 ac_have_decl=0 23975fi 23976 23977cat >>confdefs.h <<_ACEOF 23978#define HAVE_DECL_HW_MEMSIZE64 $ac_have_decl 23979_ACEOF 23980ac_fn_c_check_decl "$LINENO" "HW_PHYSMEM64" "ac_cv_have_decl_HW_PHYSMEM64" " 23981 #if HAVE_SYS_PARAM_H 23982 #include <sys/param.h> 23983 #endif 23984 #include <sys/sysctl.h> 23985 23986" 23987if test "x$ac_cv_have_decl_HW_PHYSMEM64" = xyes; then : 23988 ac_have_decl=1 23989else 23990 ac_have_decl=0 23991fi 23992 23993cat >>confdefs.h <<_ACEOF 23994#define HAVE_DECL_HW_PHYSMEM64 $ac_have_decl 23995_ACEOF 23996ac_fn_c_check_decl "$LINENO" "HW_USERMEM64" "ac_cv_have_decl_HW_USERMEM64" " 23997 #if HAVE_SYS_PARAM_H 23998 #include <sys/param.h> 23999 #endif 24000 #include <sys/sysctl.h> 24001 24002" 24003if test "x$ac_cv_have_decl_HW_USERMEM64" = xyes; then : 24004 ac_have_decl=1 24005else 24006 ac_have_decl=0 24007fi 24008 24009cat >>confdefs.h <<_ACEOF 24010#define HAVE_DECL_HW_USERMEM64 $ac_have_decl 24011_ACEOF 24012ac_fn_c_check_decl "$LINENO" "HW_REALMEM" "ac_cv_have_decl_HW_REALMEM" " 24013 #if HAVE_SYS_PARAM_H 24014 #include <sys/param.h> 24015 #endif 24016 #include <sys/sysctl.h> 24017 24018" 24019if test "x$ac_cv_have_decl_HW_REALMEM" = xyes; then : 24020 ac_have_decl=1 24021else 24022 ac_have_decl=0 24023fi 24024 24025cat >>confdefs.h <<_ACEOF 24026#define HAVE_DECL_HW_REALMEM $ac_have_decl 24027_ACEOF 24028ac_fn_c_check_decl "$LINENO" "HW_MEMSIZE" "ac_cv_have_decl_HW_MEMSIZE" " 24029 #if HAVE_SYS_PARAM_H 24030 #include <sys/param.h> 24031 #endif 24032 #include <sys/sysctl.h> 24033 24034" 24035if test "x$ac_cv_have_decl_HW_MEMSIZE" = xyes; then : 24036 ac_have_decl=1 24037else 24038 ac_have_decl=0 24039fi 24040 24041cat >>confdefs.h <<_ACEOF 24042#define HAVE_DECL_HW_MEMSIZE $ac_have_decl 24043_ACEOF 24044ac_fn_c_check_decl "$LINENO" "HW_PHYSMEM" "ac_cv_have_decl_HW_PHYSMEM" " 24045 #if HAVE_SYS_PARAM_H 24046 #include <sys/param.h> 24047 #endif 24048 #include <sys/sysctl.h> 24049 24050" 24051if test "x$ac_cv_have_decl_HW_PHYSMEM" = xyes; then : 24052 ac_have_decl=1 24053else 24054 ac_have_decl=0 24055fi 24056 24057cat >>confdefs.h <<_ACEOF 24058#define HAVE_DECL_HW_PHYSMEM $ac_have_decl 24059_ACEOF 24060ac_fn_c_check_decl "$LINENO" "HW_USERMEM" "ac_cv_have_decl_HW_USERMEM" " 24061 #if HAVE_SYS_PARAM_H 24062 #include <sys/param.h> 24063 #endif 24064 #include <sys/sysctl.h> 24065 24066" 24067if test "x$ac_cv_have_decl_HW_USERMEM" = xyes; then : 24068 ac_have_decl=1 24069else 24070 ac_have_decl=0 24071fi 24072 24073cat >>confdefs.h <<_ACEOF 24074#define HAVE_DECL_HW_USERMEM $ac_have_decl 24075_ACEOF 24076 24077 24078fi 24079 24080done 24081 24082 24083 # Don't detect sysctl* on Linux because its sysctl() syscall is 24084 # long deprecated and unneeded. Some libc still expose the symbol 24085 # and raise a big warning at link time. 24086 24087 # Do a full link test instead of just using AC_CHECK_FUNCS, which 24088 # just checks to see if the symbol exists or not. For example, 24089 # the prototype of sysctl uses u_int, which on some platforms 24090 # (such as FreeBSD) is only defined under __BSD_VISIBLE, __USE_BSD 24091 # or other similar definitions. So while the symbols "sysctl" and 24092 # "sysctlbyname" might still be available in libc (which autoconf 24093 # checks for), they might not be actually usable. 24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 24095$as_echo_n "checking for sysctl... " >&6; } 24096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24097/* end confdefs.h. */ 24098 24099 #include <stdio.h> 24100 #include <sys/types.h> 24101 #include <sys/sysctl.h> 24102 24103int 24104main () 24105{ 24106return sysctl(NULL,0,NULL,NULL,NULL,0); 24107 ; 24108 return 0; 24109} 24110_ACEOF 24111if ac_fn_c_try_link "$LINENO"; then : 24112 24113$as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 24114 24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24116$as_echo "yes" >&6; } 24117else 24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24119$as_echo "no" >&6; } 24120fi 24121rm -f core conftest.err conftest.$ac_objext \ 24122 conftest$ac_exeext conftest.$ac_ext 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctlbyname" >&5 24124$as_echo_n "checking for sysctlbyname... " >&6; } 24125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24126/* end confdefs.h. */ 24127 24128 #include <stdio.h> 24129 #include <sys/types.h> 24130 #include <sys/sysctl.h> 24131 24132int 24133main () 24134{ 24135return sysctlbyname(NULL,NULL,NULL,NULL,0); 24136 ; 24137 return 0; 24138} 24139_ACEOF 24140if ac_fn_c_try_link "$LINENO"; then : 24141 24142$as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 24143 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24145$as_echo "yes" >&6; } 24146else 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24148$as_echo "no" >&6; } 24149fi 24150rm -f core conftest.err conftest.$ac_objext \ 24151 conftest$ac_exeext conftest.$ac_ext 24152 fi 24153 24154 ac_fn_c_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" " 24155 #include <pthread.h> 24156 #ifdef HAVE_PTHREAD_NP_H 24157 # include <pthread_np.h> 24158 #endif 24159 24160" 24161if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes; then : 24162 ac_have_decl=1 24163else 24164 ac_have_decl=0 24165fi 24166 24167cat >>confdefs.h <<_ACEOF 24168#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl 24169_ACEOF 24170if test $ac_have_decl = 1; then : 24171 24172else 24173 : 24174fi 24175 24176 ac_fn_c_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" " 24177 #include <pthread.h> 24178 #ifdef HAVE_PTHREAD_NP_H 24179 # include <pthread_np.h> 24180 #endif 24181 24182" 24183if test "x$ac_cv_have_decl_pthread_getaffinity_np" = xyes; then : 24184 ac_have_decl=1 24185else 24186 ac_have_decl=0 24187fi 24188 24189cat >>confdefs.h <<_ACEOF 24190#define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl 24191_ACEOF 24192if test $ac_have_decl = 1; then : 24193 24194else 24195 : 24196fi 24197 24198 24199 ac_fn_c_check_decl "$LINENO" "fabsf" "ac_cv_have_decl_fabsf" "#include <math.h> 24200" 24201if test "x$ac_cv_have_decl_fabsf" = xyes; then : 24202 ac_have_decl=1 24203else 24204 ac_have_decl=0 24205fi 24206 24207cat >>confdefs.h <<_ACEOF 24208#define HAVE_DECL_FABSF $ac_have_decl 24209_ACEOF 24210if test $ac_have_decl = 1; then : 24211 24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5 24213$as_echo_n "checking for fabsf in -lm... " >&6; } 24214if ${ac_cv_lib_m_fabsf+:} false; then : 24215 $as_echo_n "(cached) " >&6 24216else 24217 ac_check_lib_save_LIBS=$LIBS 24218LIBS="-lm $LIBS" 24219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24220/* end confdefs.h. */ 24221 24222/* Override any GCC internal prototype to avoid an error. 24223 Use char because int might match the return type of a GCC 24224 builtin and then its argument prototype would still apply. */ 24225#ifdef __cplusplus 24226extern "C" 24227#endif 24228char fabsf (); 24229int 24230main () 24231{ 24232return fabsf (); 24233 ; 24234 return 0; 24235} 24236_ACEOF 24237if ac_fn_c_try_link "$LINENO"; then : 24238 ac_cv_lib_m_fabsf=yes 24239else 24240 ac_cv_lib_m_fabsf=no 24241fi 24242rm -f core conftest.err conftest.$ac_objext \ 24243 conftest$ac_exeext conftest.$ac_ext 24244LIBS=$ac_check_lib_save_LIBS 24245fi 24246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5 24247$as_echo "$ac_cv_lib_m_fabsf" >&6; } 24248if test "x$ac_cv_lib_m_fabsf" = xyes; then : 24249 need_libm=yes 24250fi 24251 24252 24253fi 24254 24255 ac_fn_c_check_decl "$LINENO" "modff" "ac_cv_have_decl_modff" "#include <math.h> 24256" 24257if test "x$ac_cv_have_decl_modff" = xyes; then : 24258 ac_have_decl=1 24259else 24260 ac_have_decl=0 24261fi 24262 24263cat >>confdefs.h <<_ACEOF 24264#define HAVE_DECL_MODFF $ac_have_decl 24265_ACEOF 24266if test $ac_have_decl = 1; then : 24267 24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff in -lm" >&5 24269$as_echo_n "checking for modff in -lm... " >&6; } 24270if ${ac_cv_lib_m_modff+:} false; then : 24271 $as_echo_n "(cached) " >&6 24272else 24273 ac_check_lib_save_LIBS=$LIBS 24274LIBS="-lm $LIBS" 24275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24276/* end confdefs.h. */ 24277 24278/* Override any GCC internal prototype to avoid an error. 24279 Use char because int might match the return type of a GCC 24280 builtin and then its argument prototype would still apply. */ 24281#ifdef __cplusplus 24282extern "C" 24283#endif 24284char modff (); 24285int 24286main () 24287{ 24288return modff (); 24289 ; 24290 return 0; 24291} 24292_ACEOF 24293if ac_fn_c_try_link "$LINENO"; then : 24294 ac_cv_lib_m_modff=yes 24295else 24296 ac_cv_lib_m_modff=no 24297fi 24298rm -f core conftest.err conftest.$ac_objext \ 24299 conftest$ac_exeext conftest.$ac_ext 24300LIBS=$ac_check_lib_save_LIBS 24301fi 24302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modff" >&5 24303$as_echo "$ac_cv_lib_m_modff" >&6; } 24304if test "x$ac_cv_lib_m_modff" = xyes; then : 24305 need_libm=yes 24306fi 24307 24308 24309fi 24310 24311 if test x$need_libm = xyes; then 24312 HWLOC_LIBS="-lm $HWLOC_LIBS" 24313 fi 24314 24315 ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h> 24316" 24317if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes; then : 24318 ac_have_decl=1 24319else 24320 ac_have_decl=0 24321fi 24322 24323cat >>confdefs.h <<_ACEOF 24324#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl 24325_ACEOF 24326if test $ac_have_decl = 1; then : 24327 24328else 24329 : 24330fi 24331ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include <unistd.h> 24332" 24333if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes; then : 24334 ac_have_decl=1 24335else 24336 ac_have_decl=0 24337fi 24338 24339cat >>confdefs.h <<_ACEOF 24340#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl 24341_ACEOF 24342if test $ac_have_decl = 1; then : 24343 24344else 24345 : 24346fi 24347ac_fn_c_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include <unistd.h> 24348" 24349if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes; then : 24350 ac_have_decl=1 24351else 24352 ac_have_decl=0 24353fi 24354 24355cat >>confdefs.h <<_ACEOF 24356#define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl 24357_ACEOF 24358if test $ac_have_decl = 1; then : 24359 24360else 24361 : 24362fi 24363ac_fn_c_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include <unistd.h> 24364" 24365if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes; then : 24366 ac_have_decl=1 24367else 24368 ac_have_decl=0 24369fi 24370 24371cat >>confdefs.h <<_ACEOF 24372#define HAVE_DECL__SC_NPROC_CONF $ac_have_decl 24373_ACEOF 24374if test $ac_have_decl = 1; then : 24375 24376else 24377 : 24378fi 24379ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include <unistd.h> 24380" 24381if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then : 24382 ac_have_decl=1 24383else 24384 ac_have_decl=0 24385fi 24386 24387cat >>confdefs.h <<_ACEOF 24388#define HAVE_DECL__SC_PAGESIZE $ac_have_decl 24389_ACEOF 24390if test $ac_have_decl = 1; then : 24391 24392else 24393 : 24394fi 24395ac_fn_c_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "#include <unistd.h> 24396" 24397if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes; then : 24398 ac_have_decl=1 24399else 24400 ac_have_decl=0 24401fi 24402 24403cat >>confdefs.h <<_ACEOF 24404#define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl 24405_ACEOF 24406if test $ac_have_decl = 1; then : 24407 24408else 24409 : 24410fi 24411ac_fn_c_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include <unistd.h> 24412" 24413if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes; then : 24414 ac_have_decl=1 24415else 24416 ac_have_decl=0 24417fi 24418 24419cat >>confdefs.h <<_ACEOF 24420#define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl 24421_ACEOF 24422if test $ac_have_decl = 1; then : 24423 24424else 24425 : 24426fi 24427 24428 24429 for ac_header in mach/mach_init.h 24430do : 24431 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default" 24432if test "x$ac_cv_header_mach_mach_init_h" = xyes; then : 24433 cat >>confdefs.h <<_ACEOF 24434#define HAVE_MACH_MACH_INIT_H 1 24435_ACEOF 24436 24437fi 24438 24439done 24440 24441 for ac_header in mach_init.h 24442do : 24443 ac_fn_c_check_header_mongrel "$LINENO" "mach_init.h" "ac_cv_header_mach_init_h" "$ac_includes_default" 24444if test "x$ac_cv_header_mach_init_h" = xyes; then : 24445 cat >>confdefs.h <<_ACEOF 24446#define HAVE_MACH_INIT_H 1 24447_ACEOF 24448 24449fi 24450 24451done 24452 24453 for ac_header in mach/mach_host.h 24454do : 24455 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default" 24456if test "x$ac_cv_header_mach_mach_host_h" = xyes; then : 24457 cat >>confdefs.h <<_ACEOF 24458#define HAVE_MACH_MACH_HOST_H 1 24459_ACEOF 24460 24461 for ac_func in host_info 24462do : 24463 ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info" 24464if test "x$ac_cv_func_host_info" = xyes; then : 24465 cat >>confdefs.h <<_ACEOF 24466#define HAVE_HOST_INFO 1 24467_ACEOF 24468 24469fi 24470done 24471 24472 24473fi 24474 24475done 24476 24477 24478 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default 24479" 24480if test "x$ac_cv_have_decl_strtoull" = xyes; then : 24481 ac_have_decl=1 24482else 24483 ac_have_decl=0 24484fi 24485 24486cat >>confdefs.h <<_ACEOF 24487#define HAVE_DECL_STRTOULL $ac_have_decl 24488_ACEOF 24489if test $ac_have_decl = 1; then : 24490 24491else 24492 for ac_func in strtoull 24493do : 24494 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 24495if test "x$ac_cv_func_strtoull" = xyes; then : 24496 cat >>confdefs.h <<_ACEOF 24497#define HAVE_STRTOULL 1 24498_ACEOF 24499 24500fi 24501done 24502 24503fi 24504 24505 24506 # Needed for Windows in private/misc.h 24507 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 24508if test "x$ac_cv_type_ssize_t" = xyes; then : 24509 24510cat >>confdefs.h <<_ACEOF 24511#define HAVE_SSIZE_T 1 24512_ACEOF 24513 24514 24515fi 24516 24517 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default 24518" 24519if test "x$ac_cv_have_decl_snprintf" = xyes; then : 24520 ac_have_decl=1 24521else 24522 ac_have_decl=0 24523fi 24524 24525cat >>confdefs.h <<_ACEOF 24526#define HAVE_DECL_SNPRINTF $ac_have_decl 24527_ACEOF 24528 24529 # strdup and putenv are declared in windows headers but marked deprecated 24530 ac_fn_c_check_decl "$LINENO" "_strdup" "ac_cv_have_decl__strdup" "$ac_includes_default 24531" 24532if test "x$ac_cv_have_decl__strdup" = xyes; then : 24533 ac_have_decl=1 24534else 24535 ac_have_decl=0 24536fi 24537 24538cat >>confdefs.h <<_ACEOF 24539#define HAVE_DECL__STRDUP $ac_have_decl 24540_ACEOF 24541 24542 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default 24543" 24544if test "x$ac_cv_have_decl__putenv" = xyes; then : 24545 ac_have_decl=1 24546else 24547 ac_have_decl=0 24548fi 24549 24550cat >>confdefs.h <<_ACEOF 24551#define HAVE_DECL__PUTENV $ac_have_decl 24552_ACEOF 24553 24554 # Could add mkdir and access for hwloc-gather-cpuid.c on Windows 24555 24556 broken_snprintf=no 24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is correct" >&5 24558$as_echo_n "checking whether snprintf is correct... " >&6; } 24559 if test "$cross_compiling" = yes; then : 24560 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5 24562$as_echo "don't know (cross-compiling)" >&6; } 24563 broken_snprintf=maybe 24564 24565else 24566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24567/* end confdefs.h. */ 24568 24569 24570#include <stdio.h> 24571#include <string.h> 24572#include <assert.h> 24573 24574int 24575main () 24576{ 24577 24578char buf[7]; 24579assert(snprintf(buf, 7, "abcdef") == 6); 24580assert(snprintf(buf, 6, "abcdef") == 6); 24581assert(snprintf(buf, 5, "abcdef") == 6); 24582assert(snprintf(buf, 0, "abcdef") == 6); 24583assert(snprintf(NULL, 0, "abcdef") == 6); 24584return 0; 24585 24586 ; 24587 return 0; 24588} 24589_ACEOF 24590if ac_fn_c_try_run "$LINENO"; then : 24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24592$as_echo "yes" >&6; } 24593else 24594 24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24596$as_echo "no" >&6; } 24597 broken_snprintf=yes 24598 24599fi 24600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24601 conftest.$ac_objext conftest.beam conftest.$ac_ext 24602fi 24603 24604 24605 if test x$broken_snprintf = xno; then 24606 24607$as_echo "#define HWLOC_HAVE_CORRECT_SNPRINTF 1" >>confdefs.h 24608 24609 fi 24610 24611 ac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "$ac_includes_default 24612" 24613if test "x$ac_cv_have_decl_getprogname" = xyes; then : 24614 ac_have_decl=1 24615else 24616 ac_have_decl=0 24617fi 24618 24619cat >>confdefs.h <<_ACEOF 24620#define HAVE_DECL_GETPROGNAME $ac_have_decl 24621_ACEOF 24622 24623 ac_fn_c_check_decl "$LINENO" "getexecname" "ac_cv_have_decl_getexecname" "$ac_includes_default 24624" 24625if test "x$ac_cv_have_decl_getexecname" = xyes; then : 24626 ac_have_decl=1 24627else 24628 ac_have_decl=0 24629fi 24630 24631cat >>confdefs.h <<_ACEOF 24632#define HAVE_DECL_GETEXECNAME $ac_have_decl 24633_ACEOF 24634 24635 # program_invocation_name and __progname may be available but not exported in headers 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5 24637$as_echo_n "checking for program_invocation_name... " >&6; } 24638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24639/* end confdefs.h. */ 24640 24641 #ifndef _GNU_SOURCE 24642 # define _GNU_SOURCE 24643 #endif 24644 #include <errno.h> 24645 #include <stdio.h> 24646 extern char *program_invocation_name; 24647 24648int 24649main () 24650{ 24651 24652 return printf("%s\n", program_invocation_name); 24653 24654 ; 24655 return 0; 24656} 24657_ACEOF 24658if ac_fn_c_try_link "$LINENO"; then : 24659 24660$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h 24661 24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24663$as_echo "yes" >&6; } 24664 24665else 24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24667$as_echo "no" >&6; } 24668fi 24669rm -f core conftest.err conftest.$ac_objext \ 24670 conftest$ac_exeext conftest.$ac_ext 24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 24672$as_echo_n "checking for __progname... " >&6; } 24673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24674/* end confdefs.h. */ 24675 24676 #include <stdio.h> 24677 extern char *__progname; 24678 24679int 24680main () 24681{ 24682 24683 return printf("%s\n", __progname); 24684 24685 ; 24686 return 0; 24687} 24688_ACEOF 24689if ac_fn_c_try_link "$LINENO"; then : 24690 24691$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h 24692 24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24694$as_echo "yes" >&6; } 24695 24696else 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24698$as_echo "no" >&6; } 24699fi 24700rm -f core conftest.err conftest.$ac_objext \ 24701 conftest$ac_exeext conftest.$ac_ext 24702 24703 case ${target} in 24704 *-*-mingw*|*-*-cygwin*) 24705 hwloc_pid_t=HANDLE 24706 hwloc_thread_t=HANDLE 24707 ;; 24708 *) 24709 hwloc_pid_t=pid_t 24710 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include <pthread.h> 24711" 24712if test "x$ac_cv_type_pthread_t" = xyes; then : 24713 24714cat >>confdefs.h <<_ACEOF 24715#define HAVE_PTHREAD_T 1 24716_ACEOF 24717 24718hwloc_thread_t=pthread_t 24719else 24720 : 24721fi 24722 24723 ;; 24724 esac 24725 24726cat >>confdefs.h <<_ACEOF 24727#define hwloc_pid_t $hwloc_pid_t 24728_ACEOF 24729 24730 if test "x$hwloc_thread_t" != "x" ; then 24731 24732cat >>confdefs.h <<_ACEOF 24733#define hwloc_thread_t $hwloc_thread_t 24734_ACEOF 24735 24736 fi 24737 24738 # Extract the first word of "bash", so it can be a program name with args. 24739set dummy bash; ac_word=$2 24740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24741$as_echo_n "checking for $ac_word... " >&6; } 24742if ${ac_cv_path_BASH+:} false; then : 24743 $as_echo_n "(cached) " >&6 24744else 24745 case $BASH in 24746 [\\/]* | ?:[\\/]*) 24747 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 24748 ;; 24749 *) 24750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24751for as_dir in $PATH 24752do 24753 IFS=$as_save_IFS 24754 test -z "$as_dir" && as_dir=. 24755 for ac_exec_ext in '' $ac_executable_extensions; do 24756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24757 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 24758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24759 break 2 24760 fi 24761done 24762 done 24763IFS=$as_save_IFS 24764 24765 ;; 24766esac 24767fi 24768BASH=$ac_cv_path_BASH 24769if test -n "$BASH"; then 24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 24771$as_echo "$BASH" >&6; } 24772else 24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24774$as_echo "no" >&6; } 24775fi 24776 24777 24778 24779 for ac_func in ffs 24780do : 24781 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" 24782if test "x$ac_cv_func_ffs" = xyes; then : 24783 cat >>confdefs.h <<_ACEOF 24784#define HAVE_FFS 1 24785_ACEOF 24786 24787 24788 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 24789if test "x$ac_cv_have_decl_ffs" = xyes; then : 24790 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffs has a complete prototype" >&5 24792$as_echo_n "checking whether function ffs has a complete prototype... " >&6; } 24793 24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24795/* end confdefs.h. */ 24796$ac_includes_default 24797int 24798main () 24799{ 24800ffs(1,2,3,4,5,6,7,8,9,10); 24801 24802 ; 24803 return 0; 24804} 24805_ACEOF 24806if ac_fn_c_try_compile "$LINENO"; then : 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24808$as_echo "no" >&6; } 24809 24810else 24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24812$as_echo "yes" >&6; } 24813 24814 24815$as_echo "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h 24816 24817 24818 24819fi 24820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24821fi 24822 24823 24824 24825$as_echo "#define HWLOC_HAVE_FFS 1" >>confdefs.h 24826 24827 if ( $CC --version | grep gccfss ) >/dev/null 2>&1 ; then 24828 24829$as_echo "#define HWLOC_HAVE_BROKEN_FFS 1" >>confdefs.h 24830 24831 fi 24832 24833fi 24834done 24835 24836 for ac_func in ffsl 24837do : 24838 ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl" 24839if test "x$ac_cv_func_ffsl" = xyes; then : 24840 cat >>confdefs.h <<_ACEOF 24841#define HAVE_FFSL 1 24842_ACEOF 24843 24844 24845 ac_fn_c_check_decl "$LINENO" "ffsl" "ac_cv_have_decl_ffsl" "$ac_includes_default" 24846if test "x$ac_cv_have_decl_ffsl" = xyes; then : 24847 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffsl has a complete prototype" >&5 24849$as_echo_n "checking whether function ffsl has a complete prototype... " >&6; } 24850 24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24852/* end confdefs.h. */ 24853$ac_includes_default 24854int 24855main () 24856{ 24857ffsl(1,2,3,4,5,6,7,8,9,10); 24858 24859 ; 24860 return 0; 24861} 24862_ACEOF 24863if ac_fn_c_try_compile "$LINENO"; then : 24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24865$as_echo "no" >&6; } 24866 24867else 24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24869$as_echo "yes" >&6; } 24870 24871 24872$as_echo "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h 24873 24874 24875 24876fi 24877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24878fi 24879 24880 24881 24882$as_echo "#define HWLOC_HAVE_FFSL 1" >>confdefs.h 24883 24884 24885fi 24886done 24887 24888 24889 for ac_func in fls 24890do : 24891 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls" 24892if test "x$ac_cv_func_fls" = xyes; then : 24893 cat >>confdefs.h <<_ACEOF 24894#define HAVE_FLS 1 24895_ACEOF 24896 24897 24898 ac_fn_c_check_decl "$LINENO" "fls" "ac_cv_have_decl_fls" "$ac_includes_default" 24899if test "x$ac_cv_have_decl_fls" = xyes; then : 24900 24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function fls has a complete prototype" >&5 24902$as_echo_n "checking whether function fls has a complete prototype... " >&6; } 24903 24904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24905/* end confdefs.h. */ 24906$ac_includes_default 24907int 24908main () 24909{ 24910fls(1,2,3,4,5,6,7,8,9,10); 24911 24912 ; 24913 return 0; 24914} 24915_ACEOF 24916if ac_fn_c_try_compile "$LINENO"; then : 24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24918$as_echo "no" >&6; } 24919 24920else 24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24922$as_echo "yes" >&6; } 24923 24924 24925$as_echo "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h 24926 24927 24928 24929fi 24930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24931fi 24932 24933 24934 24935$as_echo "#define HWLOC_HAVE_FLS 1" >>confdefs.h 24936 24937 24938fi 24939done 24940 24941 for ac_func in flsl 24942do : 24943 ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl" 24944if test "x$ac_cv_func_flsl" = xyes; then : 24945 cat >>confdefs.h <<_ACEOF 24946#define HAVE_FLSL 1 24947_ACEOF 24948 24949 24950 ac_fn_c_check_decl "$LINENO" "flsl" "ac_cv_have_decl_flsl" "$ac_includes_default" 24951if test "x$ac_cv_have_decl_flsl" = xyes; then : 24952 24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function flsl has a complete prototype" >&5 24954$as_echo_n "checking whether function flsl has a complete prototype... " >&6; } 24955 24956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24957/* end confdefs.h. */ 24958$ac_includes_default 24959int 24960main () 24961{ 24962flsl(1,2,3,4,5,6,7,8,9,10); 24963 24964 ; 24965 return 0; 24966} 24967_ACEOF 24968if ac_fn_c_try_compile "$LINENO"; then : 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24970$as_echo "no" >&6; } 24971 24972else 24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24974$as_echo "yes" >&6; } 24975 24976 24977$as_echo "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h 24978 24979 24980 24981fi 24982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24983fi 24984 24985 24986 24987$as_echo "#define HWLOC_HAVE_FLSL 1" >>confdefs.h 24988 24989 24990fi 24991done 24992 24993 24994 for ac_func in clz 24995do : 24996 ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz" 24997if test "x$ac_cv_func_clz" = xyes; then : 24998 cat >>confdefs.h <<_ACEOF 24999#define HAVE_CLZ 1 25000_ACEOF 25001 25002 25003 ac_fn_c_check_decl "$LINENO" "clz" "ac_cv_have_decl_clz" "$ac_includes_default" 25004if test "x$ac_cv_have_decl_clz" = xyes; then : 25005 25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clz has a complete prototype" >&5 25007$as_echo_n "checking whether function clz has a complete prototype... " >&6; } 25008 25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25010/* end confdefs.h. */ 25011$ac_includes_default 25012int 25013main () 25014{ 25015clz(1,2,3,4,5,6,7,8,9,10); 25016 25017 ; 25018 return 0; 25019} 25020_ACEOF 25021if ac_fn_c_try_compile "$LINENO"; then : 25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25023$as_echo "no" >&6; } 25024 25025else 25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25027$as_echo "yes" >&6; } 25028 25029 25030$as_echo "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h 25031 25032 25033 25034fi 25035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25036fi 25037 25038 25039 25040$as_echo "#define HWLOC_HAVE_CLZ 1" >>confdefs.h 25041 25042 25043fi 25044done 25045 25046 for ac_func in clzl 25047do : 25048 ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl" 25049if test "x$ac_cv_func_clzl" = xyes; then : 25050 cat >>confdefs.h <<_ACEOF 25051#define HAVE_CLZL 1 25052_ACEOF 25053 25054 25055 ac_fn_c_check_decl "$LINENO" "clzl" "ac_cv_have_decl_clzl" "$ac_includes_default" 25056if test "x$ac_cv_have_decl_clzl" = xyes; then : 25057 25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clzl has a complete prototype" >&5 25059$as_echo_n "checking whether function clzl has a complete prototype... " >&6; } 25060 25061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25062/* end confdefs.h. */ 25063$ac_includes_default 25064int 25065main () 25066{ 25067clzl(1,2,3,4,5,6,7,8,9,10); 25068 25069 ; 25070 return 0; 25071} 25072_ACEOF 25073if ac_fn_c_try_compile "$LINENO"; then : 25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25075$as_echo "no" >&6; } 25076 25077else 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25079$as_echo "yes" >&6; } 25080 25081 25082$as_echo "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h 25083 25084 25085 25086fi 25087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25088fi 25089 25090 25091 25092$as_echo "#define HWLOC_HAVE_CLZL 1" >>confdefs.h 25093 25094 25095fi 25096done 25097 25098 25099 if test "$hwloc_c_vendor" != "android"; then : 25100 for ac_func in openat 25101do : 25102 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 25103if test "x$ac_cv_func_openat" = xyes; then : 25104 cat >>confdefs.h <<_ACEOF 25105#define HAVE_OPENAT 1 25106_ACEOF 25107 hwloc_have_openat=yes 25108fi 25109done 25110 25111fi 25112 25113 for ac_header in malloc.h 25114do : 25115 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 25116if test "x$ac_cv_header_malloc_h" = xyes; then : 25117 cat >>confdefs.h <<_ACEOF 25118#define HAVE_MALLOC_H 1 25119_ACEOF 25120 25121fi 25122 25123done 25124 25125 for ac_func in getpagesize memalign posix_memalign 25126do : 25127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25128ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25129if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25130 cat >>confdefs.h <<_ACEOF 25131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25132_ACEOF 25133 25134fi 25135done 25136 25137 25138 for ac_header in sys/utsname.h 25139do : 25140 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 25141if test "x$ac_cv_header_sys_utsname_h" = xyes; then : 25142 cat >>confdefs.h <<_ACEOF 25143#define HAVE_SYS_UTSNAME_H 1 25144_ACEOF 25145 25146fi 25147 25148done 25149 25150 for ac_func in uname 25151do : 25152 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 25153if test "x$ac_cv_func_uname" = xyes; then : 25154 cat >>confdefs.h <<_ACEOF 25155#define HAVE_UNAME 1 25156_ACEOF 25157 25158fi 25159done 25160 25161 25162 if test "$hwloc_mode" != "embedded"; then : 25163 for ac_header in valgrind/valgrind.h 25164do : 25165 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 25166if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 25167 cat >>confdefs.h <<_ACEOF 25168#define HAVE_VALGRIND_VALGRIND_H 1 25169_ACEOF 25170 25171fi 25172 25173done 25174 25175 ac_fn_c_check_decl "$LINENO" "RUNNING_ON_VALGRIND" "ac_cv_have_decl_RUNNING_ON_VALGRIND" "#include <valgrind/valgrind.h> 25176" 25177if test "x$ac_cv_have_decl_RUNNING_ON_VALGRIND" = xyes; then : 25178 ac_have_decl=1 25179else 25180 ac_have_decl=0 25181fi 25182 25183cat >>confdefs.h <<_ACEOF 25184#define HAVE_DECL_RUNNING_ON_VALGRIND $ac_have_decl 25185_ACEOF 25186if test $ac_have_decl = 1; then : 25187 25188else 25189 : 25190fi 25191 25192 25193else 25194 25195 25196$as_echo "#define HAVE_DECL_RUNNING_ON_VALGRIND 0" >>confdefs.h 25197 25198 25199fi 25200 25201 if test "x$enable_32bits_pci_domain" = "xyes"; then : 25202 25203 25204$as_echo "#define HWLOC_HAVE_32BITS_PCI_DOMAIN 1" >>confdefs.h 25205 25206 25207fi 25208 25209 # PCI support via libpciaccess. NOTE: we do not support 25210 # libpci/pciutils because that library is GPL and is incompatible 25211 # with our BSD license. 25212 hwloc_pciaccess_happy=no 25213 if test "x$enable_io" != xno && test "x$enable_pci" != xno; then 25214 hwloc_pciaccess_happy=yes 25215 25216 25217 HWLOC_pkg_failed=no 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 25219$as_echo_n "checking for PCIACCESS... " >&6; } 25220 25221 if test -n "$PKG_CONFIG"; then 25222 if test -n "$HWLOC_PCIACCESS_CFLAGS"; then 25223 HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS="$HWLOC_PCIACCESS_CFLAGS" 25224 else 25225 if test -n "$PKG_CONFIG" && \ 25226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5 25227 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5 25228 ac_status=$? 25229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25230 test $ac_status = 0; }; then 25231 HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess" 2>/dev/null` 25232 else 25233 HWLOC_pkg_failed=yes 25234fi 25235 fi 25236else 25237 HWLOC_pkg_failed=untried 25238fi 25239 25240 if test -n "$PKG_CONFIG"; then 25241 if test -n "$HWLOC_PCIACCESS_LIBS"; then 25242 HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS="$HWLOC_PCIACCESS_LIBS" 25243 else 25244 if test -n "$PKG_CONFIG" && \ 25245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5 25246 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5 25247 ac_status=$? 25248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25249 test $ac_status = 0; }; then 25250 HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess" 2>/dev/null` 25251 else 25252 HWLOC_pkg_failed=yes 25253fi 25254 fi 25255else 25256 HWLOC_pkg_failed=untried 25257fi 25258 25259 25260 25261 25262 # Check for failure of pkg-config 25263 if test $HWLOC_pkg_failed = yes; then 25264 25265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25266 HWLOC_pkg_short_errors_supported=yes 25267else 25268 HWLOC_pkg_short_errors_supported=no 25269fi 25270 if test $HWLOC_pkg_short_errors_supported = yes; then 25271 HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess" 2>&1` 25272 else 25273 HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess" 2>&1` 25274 fi 25275 # Put the nasty error message in config.log where it belongs 25276 echo "$HWLOC_PCIACCESS_PKG_ERRORS" >&5 25277 25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25279$as_echo "no" >&6; } 25280 hwloc_pciaccess_happy=no 25281 elif test $HWLOC_pkg_failed = untried; then 25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 25283$as_echo "cannot check without pkg-config" >&6; } 25284 hwloc_pciaccess_happy=no 25285 else 25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25287$as_echo "yes" >&6; } 25288 25289 # If we got good results from pkg-config, check that they 25290 # actually work (i.e., that we can link against the resulting 25291 # $LIBS). The canonical example why we do this is if 25292 # pkg-config returns 64 bit libraries but ./configure was run 25293 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid 25294 # results, but we'll fail if we try to link. So detect that 25295 # failure now. 25296 # There are also cases on Mac where pkg-config returns paths 25297 # that do not actually exists until some magic is applied. 25298 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php 25299 # So check whether we find the header as well. 25300 hwloc_cflags_save=$CFLAGS 25301 hwloc_cppflags_save=$CPPFLAGS 25302 hwloc_libs_save=$LIBS 25303 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS" 25304 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS" 25305 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS" 25306 ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default" 25307if test "x$ac_cv_header_pciaccess_h" = xyes; then : 25308 25309 ac_fn_c_check_func "$LINENO" "pci_slot_match_iterator_create" "ac_cv_func_pci_slot_match_iterator_create" 25310if test "x$ac_cv_func_pci_slot_match_iterator_create" = xyes; then : 25311 hwloc_result=yes 25312else 25313 hwloc_result=no 25314fi 25315 25316 25317else 25318 hwloc_result=no 25319fi 25320 25321 25322 CFLAGS=$hwloc_cflags_save 25323 CPPFLAGS=$hwloc_cppflags_save 25324 LIBS=$hwloc_libs_save 25325 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final PCIACCESS support" >&5 25327$as_echo_n "checking for final PCIACCESS support... " >&6; } 25328 if test "$hwloc_result" = "yes"; then : 25329 HWLOC_PCIACCESS_CFLAGS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS 25330 HWLOC_PCIACCESS_LIBS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS 25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25332$as_echo "yes" >&6; } 25333 : 25334else 25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25336$as_echo "no" >&6; } 25337 hwloc_pciaccess_happy=no 25338fi 25339 fi 25340 25341 # Only add the REQUIRES if we got pciaccess through pkg-config. 25342 # Otherwise we don't know if pciaccess.pc is installed 25343 if test "$hwloc_pciaccess_happy" = "yes"; then : 25344 HWLOC_PCIACCESS_REQUIRES=pciaccess 25345fi 25346 25347 # Just for giggles, if we didn't find a pciaccess pkg-config, 25348 # just try looking for its header file and library. 25349 if test "$hwloc_pciaccess_happy" != "yes"; then : 25350 ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default" 25351if test "x$ac_cv_header_pciaccess_h" = xyes; then : 25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_slot_match_iterator_create in -lpciaccess" >&5 25353$as_echo_n "checking for pci_slot_match_iterator_create in -lpciaccess... " >&6; } 25354if ${ac_cv_lib_pciaccess_pci_slot_match_iterator_create+:} false; then : 25355 $as_echo_n "(cached) " >&6 25356else 25357 ac_check_lib_save_LIBS=$LIBS 25358LIBS="-lpciaccess $LIBS" 25359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25360/* end confdefs.h. */ 25361 25362/* Override any GCC internal prototype to avoid an error. 25363 Use char because int might match the return type of a GCC 25364 builtin and then its argument prototype would still apply. */ 25365#ifdef __cplusplus 25366extern "C" 25367#endif 25368char pci_slot_match_iterator_create (); 25369int 25370main () 25371{ 25372return pci_slot_match_iterator_create (); 25373 ; 25374 return 0; 25375} 25376_ACEOF 25377if ac_fn_c_try_link "$LINENO"; then : 25378 ac_cv_lib_pciaccess_pci_slot_match_iterator_create=yes 25379else 25380 ac_cv_lib_pciaccess_pci_slot_match_iterator_create=no 25381fi 25382rm -f core conftest.err conftest.$ac_objext \ 25383 conftest$ac_exeext conftest.$ac_ext 25384LIBS=$ac_check_lib_save_LIBS 25385fi 25386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&5 25387$as_echo "$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&6; } 25388if test "x$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" = xyes; then : 25389 hwloc_pciaccess_happy=yes 25390 HWLOC_PCIACCESS_LIBS="-lpciaccess" 25391fi 25392 25393 25394fi 25395 25396 25397 25398fi 25399 25400 if test "$hwloc_pciaccess_happy" = "yes"; then : 25401 hwloc_components="$hwloc_components pci" 25402 hwloc_pci_component_maybeplugin=1 25403fi 25404 fi 25405 # If we asked for pci support but couldn't deliver, fail 25406 if test "$enable_pci" = "yes" -a "$hwloc_pciaccess_happy" = "no"; then : 25407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-pci switch, but could not" >&5 25408$as_echo "$as_me: WARNING: Specified --enable-pci switch, but could not" >&2;} 25409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 25410$as_echo "$as_me: WARNING: find appropriate support" >&2;} 25411 as_fn_error $? "Cannot continue" "$LINENO" 5 25412fi 25413 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins 25414 25415 # OpenCL support 25416 hwloc_opencl_happy=no 25417 if test "x$enable_io" != xno && test "x$enable_opencl" != "xno"; then 25418 hwloc_opencl_happy=yes 25419 case ${target} in 25420 *-*-darwin*) 25421 # On Darwin, only use the OpenCL framework 25422 for ac_header in OpenCL/cl_ext.h 25423do : 25424 ac_fn_c_check_header_mongrel "$LINENO" "OpenCL/cl_ext.h" "ac_cv_header_OpenCL_cl_ext_h" "$ac_includes_default" 25425if test "x$ac_cv_header_OpenCL_cl_ext_h" = xyes; then : 25426 cat >>confdefs.h <<_ACEOF 25427#define HAVE_OPENCL_CL_EXT_H 1 25428_ACEOF 25429 25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the OpenCL framework" >&5 25431$as_echo_n "checking for the OpenCL framework... " >&6; } 25432 tmp_save_LDFLAGS="$LDFLAGS" 25433 LDFLAGS="$LDFLAGS -framework OpenCL" 25434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25435/* end confdefs.h. */ 25436 25437 25438#include <OpenCL/opencl.h> 25439 25440int 25441main () 25442{ 25443 25444return clGetDeviceIDs(0, 0, 0, NULL, NULL); 25445 25446 ; 25447 return 0; 25448} 25449_ACEOF 25450if ac_fn_c_try_link "$LINENO"; then : 25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25452$as_echo "yes" >&6; } 25453 HWLOC_OPENCL_LDFLAGS="-framework OpenCL" 25454else 25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25456$as_echo "no" >&6; } 25457 hwloc_opencl_happy=no 25458fi 25459rm -f core conftest.err conftest.$ac_objext \ 25460 conftest$ac_exeext conftest.$ac_ext 25461 LDFLAGS="$tmp_save_LDFLAGS" 25462 25463else 25464 hwloc_opencl_happy=no 25465fi 25466 25467done 25468 25469 ;; 25470 *) 25471 # On Others, look for OpenCL at normal locations 25472 for ac_header in CL/cl_ext.h 25473do : 25474 ac_fn_c_check_header_mongrel "$LINENO" "CL/cl_ext.h" "ac_cv_header_CL_cl_ext_h" "$ac_includes_default" 25475if test "x$ac_cv_header_CL_cl_ext_h" = xyes; then : 25476 cat >>confdefs.h <<_ACEOF 25477#define HAVE_CL_CL_EXT_H 1 25478_ACEOF 25479 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetDeviceIDs in -lOpenCL" >&5 25481$as_echo_n "checking for clGetDeviceIDs in -lOpenCL... " >&6; } 25482if ${ac_cv_lib_OpenCL_clGetDeviceIDs+:} false; then : 25483 $as_echo_n "(cached) " >&6 25484else 25485 ac_check_lib_save_LIBS=$LIBS 25486LIBS="-lOpenCL $LIBS" 25487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25488/* end confdefs.h. */ 25489 25490/* Override any GCC internal prototype to avoid an error. 25491 Use char because int might match the return type of a GCC 25492 builtin and then its argument prototype would still apply. */ 25493#ifdef __cplusplus 25494extern "C" 25495#endif 25496char clGetDeviceIDs (); 25497int 25498main () 25499{ 25500return clGetDeviceIDs (); 25501 ; 25502 return 0; 25503} 25504_ACEOF 25505if ac_fn_c_try_link "$LINENO"; then : 25506 ac_cv_lib_OpenCL_clGetDeviceIDs=yes 25507else 25508 ac_cv_lib_OpenCL_clGetDeviceIDs=no 25509fi 25510rm -f core conftest.err conftest.$ac_objext \ 25511 conftest$ac_exeext conftest.$ac_ext 25512LIBS=$ac_check_lib_save_LIBS 25513fi 25514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetDeviceIDs" >&5 25515$as_echo "$ac_cv_lib_OpenCL_clGetDeviceIDs" >&6; } 25516if test "x$ac_cv_lib_OpenCL_clGetDeviceIDs" = xyes; then : 25517 HWLOC_OPENCL_LIBS="-lOpenCL" 25518else 25519 hwloc_opencl_happy=no 25520fi 25521 25522 25523else 25524 hwloc_opencl_happy=no 25525fi 25526 25527done 25528 25529 ;; 25530 esac 25531 fi 25532 25533 25534 25535 # If we asked for opencl support but couldn't deliver, fail 25536 if test "$enable_opencl" = "yes" -a "$hwloc_opencl_happy" = "no"; then : 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-opencl switch, but could not" >&5 25538$as_echo "$as_me: WARNING: Specified --enable-opencl switch, but could not" >&2;} 25539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 25540$as_echo "$as_me: WARNING: find appropriate support" >&2;} 25541 as_fn_error $? "Cannot continue" "$LINENO" 5 25542fi 25543 if test "x$hwloc_opencl_happy" = "xyes"; then 25544 25545$as_echo "#define HWLOC_HAVE_OPENCL 1" >>confdefs.h 25546 25547 HWLOC_HAVE_OPENCL=1 25548 25549 hwloc_components="$hwloc_components opencl" 25550 hwloc_opencl_component_maybeplugin=1 25551 else 25552 HWLOC_HAVE_OPENCL=0 25553 25554 fi 25555 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins 25556 25557 # CUDA support 25558 hwloc_have_cuda=no 25559 hwloc_have_cudart=no 25560 if test "x$enable_io" != xno && test "x$enable_cuda" != "xno"; then 25561 for ac_header in cuda.h 25562do : 25563 ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default" 25564if test "x$ac_cv_header_cuda_h" = xyes; then : 25565 cat >>confdefs.h <<_ACEOF 25566#define HAVE_CUDA_H 1 25567_ACEOF 25568 25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDA_VERSION >= 3020" >&5 25570$as_echo_n "checking if CUDA_VERSION >= 3020... " >&6; } 25571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25572/* end confdefs.h. */ 25573 25574#include <cuda.h> 25575#ifndef CUDA_VERSION 25576#error CUDA_VERSION undefined 25577#elif CUDA_VERSION < 3020 25578#error CUDA_VERSION too old 25579#endif 25580int 25581main () 25582{ 25583int i = 3; 25584 ; 25585 return 0; 25586} 25587_ACEOF 25588if ac_fn_c_try_compile "$LINENO"; then : 25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25590$as_echo "yes" >&6; } 25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5 25592$as_echo_n "checking for cuInit in -lcuda... " >&6; } 25593if ${ac_cv_lib_cuda_cuInit+:} false; then : 25594 $as_echo_n "(cached) " >&6 25595else 25596 ac_check_lib_save_LIBS=$LIBS 25597LIBS="-lcuda $LIBS" 25598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25599/* end confdefs.h. */ 25600 25601/* Override any GCC internal prototype to avoid an error. 25602 Use char because int might match the return type of a GCC 25603 builtin and then its argument prototype would still apply. */ 25604#ifdef __cplusplus 25605extern "C" 25606#endif 25607char cuInit (); 25608int 25609main () 25610{ 25611return cuInit (); 25612 ; 25613 return 0; 25614} 25615_ACEOF 25616if ac_fn_c_try_link "$LINENO"; then : 25617 ac_cv_lib_cuda_cuInit=yes 25618else 25619 ac_cv_lib_cuda_cuInit=no 25620fi 25621rm -f core conftest.err conftest.$ac_objext \ 25622 conftest$ac_exeext conftest.$ac_ext 25623LIBS=$ac_check_lib_save_LIBS 25624fi 25625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5 25626$as_echo "$ac_cv_lib_cuda_cuInit" >&6; } 25627if test "x$ac_cv_lib_cuda_cuInit" = xyes; then : 25628 25629$as_echo "#define HAVE_CUDA 1" >>confdefs.h 25630 25631 hwloc_have_cuda=yes 25632fi 25633 25634else 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25636$as_echo "no" >&6; } 25637fi 25638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25639fi 25640 25641done 25642 25643 25644 for ac_header in cuda_runtime_api.h 25645do : 25646 ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default" 25647if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then : 25648 cat >>confdefs.h <<_ACEOF 25649#define HAVE_CUDA_RUNTIME_API_H 1 25650_ACEOF 25651 25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDART_VERSION >= 3020" >&5 25653$as_echo_n "checking if CUDART_VERSION >= 3020... " >&6; } 25654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25655/* end confdefs.h. */ 25656 25657#include <cuda_runtime_api.h> 25658#ifndef CUDART_VERSION 25659#error CUDART_VERSION undefined 25660#elif CUDART_VERSION < 3020 25661#error CUDART_VERSION too old 25662#endif 25663int 25664main () 25665{ 25666int i = 3; 25667 ; 25668 return 0; 25669} 25670_ACEOF 25671if ac_fn_c_try_compile "$LINENO"; then : 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25673$as_echo "yes" >&6; } 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaGetDeviceProperties in -lcudart" >&5 25675$as_echo_n "checking for cudaGetDeviceProperties in -lcudart... " >&6; } 25676if ${ac_cv_lib_cudart_cudaGetDeviceProperties+:} false; then : 25677 $as_echo_n "(cached) " >&6 25678else 25679 ac_check_lib_save_LIBS=$LIBS 25680LIBS="-lcudart $LIBS" 25681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25682/* end confdefs.h. */ 25683 25684/* Override any GCC internal prototype to avoid an error. 25685 Use char because int might match the return type of a GCC 25686 builtin and then its argument prototype would still apply. */ 25687#ifdef __cplusplus 25688extern "C" 25689#endif 25690char cudaGetDeviceProperties (); 25691int 25692main () 25693{ 25694return cudaGetDeviceProperties (); 25695 ; 25696 return 0; 25697} 25698_ACEOF 25699if ac_fn_c_try_link "$LINENO"; then : 25700 ac_cv_lib_cudart_cudaGetDeviceProperties=yes 25701else 25702 ac_cv_lib_cudart_cudaGetDeviceProperties=no 25703fi 25704rm -f core conftest.err conftest.$ac_objext \ 25705 conftest$ac_exeext conftest.$ac_ext 25706LIBS=$ac_check_lib_save_LIBS 25707fi 25708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaGetDeviceProperties" >&5 25709$as_echo "$ac_cv_lib_cudart_cudaGetDeviceProperties" >&6; } 25710if test "x$ac_cv_lib_cudart_cudaGetDeviceProperties" = xyes; then : 25711 25712 HWLOC_CUDA_LIBS="-lcudart" 25713 25714 hwloc_have_cudart=yes 25715 25716$as_echo "#define HWLOC_HAVE_CUDART 1" >>confdefs.h 25717 25718 25719fi 25720 25721 25722fi 25723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25724 25725fi 25726 25727done 25728 25729 25730 if test "$enable_cuda" = "yes" -a "$hwloc_have_cudart" = "no"; then : 25731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-cuda switch, but could not" >&5 25732$as_echo "$as_me: WARNING: Specified --enable-cuda switch, but could not" >&2;} 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 25734$as_echo "$as_me: WARNING: find appropriate support" >&2;} 25735 as_fn_error $? "Cannot continue" "$LINENO" 5 25736fi 25737 25738 if test "x$hwloc_have_cudart" = "xyes"; then 25739 hwloc_components="$hwloc_components cuda" 25740 hwloc_cuda_component_maybeplugin=1 25741 fi 25742 fi 25743 # don't add LIBS/CFLAGS yet, depends on plugins 25744 25745 # NVML support 25746 hwloc_nvml_happy=no 25747 if test "x$enable_io" != xno && test "x$enable_nvml" != "xno"; then 25748 hwloc_nvml_happy=yes 25749 for ac_header in nvml.h 25750do : 25751 ac_fn_c_check_header_mongrel "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default" 25752if test "x$ac_cv_header_nvml_h" = xyes; then : 25753 cat >>confdefs.h <<_ACEOF 25754#define HAVE_NVML_H 1 25755_ACEOF 25756 25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5 25758$as_echo_n "checking for nvmlInit in -lnvidia-ml... " >&6; } 25759if ${ac_cv_lib_nvidia_ml_nvmlInit+:} false; then : 25760 $as_echo_n "(cached) " >&6 25761else 25762 ac_check_lib_save_LIBS=$LIBS 25763LIBS="-lnvidia-ml $LIBS" 25764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25765/* end confdefs.h. */ 25766 25767/* Override any GCC internal prototype to avoid an error. 25768 Use char because int might match the return type of a GCC 25769 builtin and then its argument prototype would still apply. */ 25770#ifdef __cplusplus 25771extern "C" 25772#endif 25773char nvmlInit (); 25774int 25775main () 25776{ 25777return nvmlInit (); 25778 ; 25779 return 0; 25780} 25781_ACEOF 25782if ac_fn_c_try_link "$LINENO"; then : 25783 ac_cv_lib_nvidia_ml_nvmlInit=yes 25784else 25785 ac_cv_lib_nvidia_ml_nvmlInit=no 25786fi 25787rm -f core conftest.err conftest.$ac_objext \ 25788 conftest$ac_exeext conftest.$ac_ext 25789LIBS=$ac_check_lib_save_LIBS 25790fi 25791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_ml_nvmlInit" >&5 25792$as_echo "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; } 25793if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes; then : 25794 HWLOC_NVML_LIBS="-lnvidia-ml" 25795else 25796 hwloc_nvml_happy=no 25797fi 25798 25799 25800else 25801 hwloc_nvml_happy=no 25802fi 25803 25804done 25805 25806 fi 25807 if test "x$hwloc_nvml_happy" = "xyes"; then 25808 tmp_save_CFLAGS="$CFLAGS" 25809 CFLAGS="$CFLAGS $HWLOC_NVML_CFLAGS" 25810 tmp_save_LIBS="$LIBS" 25811 LIBS="$LIBS $HWLOC_NVML_LIBS" 25812 ac_fn_c_check_decl "$LINENO" "nvmlDeviceGetMaxPcieLinkGeneration" "ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" "#include <nvml.h> 25813" 25814if test "x$ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" = xyes; then : 25815 ac_have_decl=1 25816else 25817 ac_have_decl=0 25818fi 25819 25820cat >>confdefs.h <<_ACEOF 25821#define HAVE_DECL_NVMLDEVICEGETMAXPCIELINKGENERATION $ac_have_decl 25822_ACEOF 25823if test $ac_have_decl = 1; then : 25824 25825else 25826 : 25827fi 25828 25829 CFLAGS="$tmp_save_CFLAGS" 25830 LIBS="$tmp_save_LIBS" 25831 fi 25832 25833 # If we asked for nvml support but couldn't deliver, fail 25834 if test "$enable_nvml" = "yes" -a "$hwloc_nvml_happy" = "no"; then : 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-nvml switch, but could not" >&5 25836$as_echo "$as_me: WARNING: Specified --enable-nvml switch, but could not" >&2;} 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 25838$as_echo "$as_me: WARNING: find appropriate support" >&2;} 25839 as_fn_error $? "Cannot continue" "$LINENO" 5 25840fi 25841 if test "x$hwloc_nvml_happy" = "xyes"; then 25842 25843$as_echo "#define HWLOC_HAVE_NVML 1" >>confdefs.h 25844 25845 HWLOC_HAVE_NVML=1 25846 25847 hwloc_components="$hwloc_components nvml" 25848 hwloc_nvml_component_maybeplugin=1 25849 else 25850 HWLOC_HAVE_NVML=0 25851 25852 fi 25853 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins 25854 25855 # RSMI support, rocm_smi64 is just library name and not related to 32/64 bits 25856 hwloc_rsmi_happy=no 25857 if test "x$enable_io" != xno && test "x$enable_rsmi" != "xno"; then 25858 hwloc_rsmi_happy=yes 25859 for ac_header in rocm_smi/rocm_smi.h 25860do : 25861 ac_fn_c_check_header_mongrel "$LINENO" "rocm_smi/rocm_smi.h" "ac_cv_header_rocm_smi_rocm_smi_h" "$ac_includes_default" 25862if test "x$ac_cv_header_rocm_smi_rocm_smi_h" = xyes; then : 25863 cat >>confdefs.h <<_ACEOF 25864#define HAVE_ROCM_SMI_ROCM_SMI_H 1 25865_ACEOF 25866 25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsmi_init in -lrocm_smi64" >&5 25868$as_echo_n "checking for rsmi_init in -lrocm_smi64... " >&6; } 25869if ${ac_cv_lib_rocm_smi64_rsmi_init+:} false; then : 25870 $as_echo_n "(cached) " >&6 25871else 25872 ac_check_lib_save_LIBS=$LIBS 25873LIBS="-lrocm_smi64 $LIBS" 25874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25875/* end confdefs.h. */ 25876 25877/* Override any GCC internal prototype to avoid an error. 25878 Use char because int might match the return type of a GCC 25879 builtin and then its argument prototype would still apply. */ 25880#ifdef __cplusplus 25881extern "C" 25882#endif 25883char rsmi_init (); 25884int 25885main () 25886{ 25887return rsmi_init (); 25888 ; 25889 return 0; 25890} 25891_ACEOF 25892if ac_fn_c_try_link "$LINENO"; then : 25893 ac_cv_lib_rocm_smi64_rsmi_init=yes 25894else 25895 ac_cv_lib_rocm_smi64_rsmi_init=no 25896fi 25897rm -f core conftest.err conftest.$ac_objext \ 25898 conftest$ac_exeext conftest.$ac_ext 25899LIBS=$ac_check_lib_save_LIBS 25900fi 25901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rocm_smi64_rsmi_init" >&5 25902$as_echo "$ac_cv_lib_rocm_smi64_rsmi_init" >&6; } 25903if test "x$ac_cv_lib_rocm_smi64_rsmi_init" = xyes; then : 25904 HWLOC_RSMI_LIBS="-lrocm_smi64" 25905else 25906 hwloc_rsmi_happy=no 25907fi 25908 25909 25910else 25911 hwloc_rsmi_happy=no 25912fi 25913 25914done 25915 25916 fi 25917 25918 # If we asked for rsmi support but couldn't deliver, fail 25919 if test "$enable_rsmi" = "yes" -a "$hwloc_rsmi_happy" = "no"; then : 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-rsmi switch, but could not" >&5 25921$as_echo "$as_me: WARNING: Specified --enable-rsmi switch, but could not" >&2;} 25922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 25923$as_echo "$as_me: WARNING: find appropriate support" >&2;} 25924 as_fn_error $? "Cannot continue" "$LINENO" 5 25925fi 25926 if test "x$hwloc_rsmi_happy" = "xyes"; then 25927 25928$as_echo "#define HWLOC_HAVE_RSMI 1" >>confdefs.h 25929 25930 HWLOC_HAVE_RSMI=1 25931 25932 hwloc_components="$hwloc_components rsmi" 25933 hwloc_rsmi_component_maybeplugin=1 25934 else 25935 HWLOC_HAVE_RSMI=0 25936 25937 fi 25938 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins 25939 25940 # GL Support 25941 hwloc_gl_happy=no 25942 if test "x$enable_io" != xno && test "x$enable_gl" != "xno"; then 25943 hwloc_gl_happy=yes 25944 25945 # some X11 support (less then lstopo in hwloc_internal.m4) 25946 if test "$no_x" = yes; then 25947 # Not all programs may use this symbol, but it does not hurt to define it. 25948 25949$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 25950 25951 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 25952else 25953 if test -n "$x_includes"; then 25954 X_CFLAGS="$X_CFLAGS -I$x_includes" 25955 fi 25956 25957 # It would also be nice to do this for all -L options, not just this one. 25958 if test -n "$x_libraries"; then 25959 X_LIBS="$X_LIBS -L$x_libraries" 25960 # For Solaris; some versions of Sun CC require a space after -R and 25961 # others require no space. Words are not sufficient . . . . 25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 25963$as_echo_n "checking whether -R must be followed by a space... " >&6; } 25964 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 25965 ac_xsave_c_werror_flag=$ac_c_werror_flag 25966 ac_c_werror_flag=yes 25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25968/* end confdefs.h. */ 25969 25970int 25971main () 25972{ 25973 25974 ; 25975 return 0; 25976} 25977_ACEOF 25978if ac_fn_c_try_link "$LINENO"; then : 25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25980$as_echo "no" >&6; } 25981 X_LIBS="$X_LIBS -R$x_libraries" 25982else 25983 LIBS="$ac_xsave_LIBS -R $x_libraries" 25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25985/* end confdefs.h. */ 25986 25987int 25988main () 25989{ 25990 25991 ; 25992 return 0; 25993} 25994_ACEOF 25995if ac_fn_c_try_link "$LINENO"; then : 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25997$as_echo "yes" >&6; } 25998 X_LIBS="$X_LIBS -R $x_libraries" 25999else 26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 26001$as_echo "neither works" >&6; } 26002fi 26003rm -f core conftest.err conftest.$ac_objext \ 26004 conftest$ac_exeext conftest.$ac_ext 26005fi 26006rm -f core conftest.err conftest.$ac_objext \ 26007 conftest$ac_exeext conftest.$ac_ext 26008 ac_c_werror_flag=$ac_xsave_c_werror_flag 26009 LIBS=$ac_xsave_LIBS 26010 fi 26011 26012 # Check for system-dependent libraries X programs must link with. 26013 # Do this before checking for the system-independent R6 libraries 26014 # (-lICE), since we may need -lsocket or whatever for X linking. 26015 26016 if test "$ISC" = yes; then 26017 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 26018 else 26019 # Martyn Johnson says this is needed for Ultrix, if the X 26020 # libraries were built with DECnet support. And Karl Berry says 26021 # the Alpha needs dnet_stub (dnet does not exist). 26022 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26024/* end confdefs.h. */ 26025 26026/* Override any GCC internal prototype to avoid an error. 26027 Use char because int might match the return type of a GCC 26028 builtin and then its argument prototype would still apply. */ 26029#ifdef __cplusplus 26030extern "C" 26031#endif 26032char XOpenDisplay (); 26033int 26034main () 26035{ 26036return XOpenDisplay (); 26037 ; 26038 return 0; 26039} 26040_ACEOF 26041if ac_fn_c_try_link "$LINENO"; then : 26042 26043else 26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 26045$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 26046if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 26047 $as_echo_n "(cached) " >&6 26048else 26049 ac_check_lib_save_LIBS=$LIBS 26050LIBS="-ldnet $LIBS" 26051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26052/* end confdefs.h. */ 26053 26054/* Override any GCC internal prototype to avoid an error. 26055 Use char because int might match the return type of a GCC 26056 builtin and then its argument prototype would still apply. */ 26057#ifdef __cplusplus 26058extern "C" 26059#endif 26060char dnet_ntoa (); 26061int 26062main () 26063{ 26064return dnet_ntoa (); 26065 ; 26066 return 0; 26067} 26068_ACEOF 26069if ac_fn_c_try_link "$LINENO"; then : 26070 ac_cv_lib_dnet_dnet_ntoa=yes 26071else 26072 ac_cv_lib_dnet_dnet_ntoa=no 26073fi 26074rm -f core conftest.err conftest.$ac_objext \ 26075 conftest$ac_exeext conftest.$ac_ext 26076LIBS=$ac_check_lib_save_LIBS 26077fi 26078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 26079$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 26080if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 26081 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 26082fi 26083 26084 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 26086$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 26087if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 26088 $as_echo_n "(cached) " >&6 26089else 26090 ac_check_lib_save_LIBS=$LIBS 26091LIBS="-ldnet_stub $LIBS" 26092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26093/* end confdefs.h. */ 26094 26095/* Override any GCC internal prototype to avoid an error. 26096 Use char because int might match the return type of a GCC 26097 builtin and then its argument prototype would still apply. */ 26098#ifdef __cplusplus 26099extern "C" 26100#endif 26101char dnet_ntoa (); 26102int 26103main () 26104{ 26105return dnet_ntoa (); 26106 ; 26107 return 0; 26108} 26109_ACEOF 26110if ac_fn_c_try_link "$LINENO"; then : 26111 ac_cv_lib_dnet_stub_dnet_ntoa=yes 26112else 26113 ac_cv_lib_dnet_stub_dnet_ntoa=no 26114fi 26115rm -f core conftest.err conftest.$ac_objext \ 26116 conftest$ac_exeext conftest.$ac_ext 26117LIBS=$ac_check_lib_save_LIBS 26118fi 26119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 26120$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 26121if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 26122 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 26123fi 26124 26125 fi 26126fi 26127rm -f core conftest.err conftest.$ac_objext \ 26128 conftest$ac_exeext conftest.$ac_ext 26129 LIBS="$ac_xsave_LIBS" 26130 26131 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 26132 # to get the SysV transport functions. 26133 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 26134 # needs -lnsl. 26135 # The nsl library prevents programs from opening the X display 26136 # on Irix 5.2, according to T.E. Dickey. 26137 # The functions gethostbyname, getservbyname, and inet_addr are 26138 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 26139 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 26140if test "x$ac_cv_func_gethostbyname" = xyes; then : 26141 26142fi 26143 26144 if test $ac_cv_func_gethostbyname = no; then 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 26146$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 26147if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 26148 $as_echo_n "(cached) " >&6 26149else 26150 ac_check_lib_save_LIBS=$LIBS 26151LIBS="-lnsl $LIBS" 26152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26153/* end confdefs.h. */ 26154 26155/* Override any GCC internal prototype to avoid an error. 26156 Use char because int might match the return type of a GCC 26157 builtin and then its argument prototype would still apply. */ 26158#ifdef __cplusplus 26159extern "C" 26160#endif 26161char gethostbyname (); 26162int 26163main () 26164{ 26165return gethostbyname (); 26166 ; 26167 return 0; 26168} 26169_ACEOF 26170if ac_fn_c_try_link "$LINENO"; then : 26171 ac_cv_lib_nsl_gethostbyname=yes 26172else 26173 ac_cv_lib_nsl_gethostbyname=no 26174fi 26175rm -f core conftest.err conftest.$ac_objext \ 26176 conftest$ac_exeext conftest.$ac_ext 26177LIBS=$ac_check_lib_save_LIBS 26178fi 26179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 26180$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 26181if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 26182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 26183fi 26184 26185 if test $ac_cv_lib_nsl_gethostbyname = no; then 26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 26187$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 26188if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 26189 $as_echo_n "(cached) " >&6 26190else 26191 ac_check_lib_save_LIBS=$LIBS 26192LIBS="-lbsd $LIBS" 26193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26194/* end confdefs.h. */ 26195 26196/* Override any GCC internal prototype to avoid an error. 26197 Use char because int might match the return type of a GCC 26198 builtin and then its argument prototype would still apply. */ 26199#ifdef __cplusplus 26200extern "C" 26201#endif 26202char gethostbyname (); 26203int 26204main () 26205{ 26206return gethostbyname (); 26207 ; 26208 return 0; 26209} 26210_ACEOF 26211if ac_fn_c_try_link "$LINENO"; then : 26212 ac_cv_lib_bsd_gethostbyname=yes 26213else 26214 ac_cv_lib_bsd_gethostbyname=no 26215fi 26216rm -f core conftest.err conftest.$ac_objext \ 26217 conftest$ac_exeext conftest.$ac_ext 26218LIBS=$ac_check_lib_save_LIBS 26219fi 26220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 26221$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 26222if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 26223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 26224fi 26225 26226 fi 26227 fi 26228 26229 # lieder@skyler.mavd.honeywell.com says without -lsocket, 26230 # socket/setsockopt and other routines are undefined under SCO ODT 26231 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 26232 # on later versions), says Simon Leinen: it contains gethostby* 26233 # variants that don't use the name server (or something). -lsocket 26234 # must be given before -lnsl if both are needed. We assume that 26235 # if connect needs -lnsl, so does gethostbyname. 26236 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 26237if test "x$ac_cv_func_connect" = xyes; then : 26238 26239fi 26240 26241 if test $ac_cv_func_connect = no; then 26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 26243$as_echo_n "checking for connect in -lsocket... " >&6; } 26244if ${ac_cv_lib_socket_connect+:} false; then : 26245 $as_echo_n "(cached) " >&6 26246else 26247 ac_check_lib_save_LIBS=$LIBS 26248LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 26249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26250/* end confdefs.h. */ 26251 26252/* Override any GCC internal prototype to avoid an error. 26253 Use char because int might match the return type of a GCC 26254 builtin and then its argument prototype would still apply. */ 26255#ifdef __cplusplus 26256extern "C" 26257#endif 26258char connect (); 26259int 26260main () 26261{ 26262return connect (); 26263 ; 26264 return 0; 26265} 26266_ACEOF 26267if ac_fn_c_try_link "$LINENO"; then : 26268 ac_cv_lib_socket_connect=yes 26269else 26270 ac_cv_lib_socket_connect=no 26271fi 26272rm -f core conftest.err conftest.$ac_objext \ 26273 conftest$ac_exeext conftest.$ac_ext 26274LIBS=$ac_check_lib_save_LIBS 26275fi 26276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 26277$as_echo "$ac_cv_lib_socket_connect" >&6; } 26278if test "x$ac_cv_lib_socket_connect" = xyes; then : 26279 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 26280fi 26281 26282 fi 26283 26284 # Guillermo Gomez says -lposix is necessary on A/UX. 26285 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 26286if test "x$ac_cv_func_remove" = xyes; then : 26287 26288fi 26289 26290 if test $ac_cv_func_remove = no; then 26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 26292$as_echo_n "checking for remove in -lposix... " >&6; } 26293if ${ac_cv_lib_posix_remove+:} false; then : 26294 $as_echo_n "(cached) " >&6 26295else 26296 ac_check_lib_save_LIBS=$LIBS 26297LIBS="-lposix $LIBS" 26298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26299/* end confdefs.h. */ 26300 26301/* Override any GCC internal prototype to avoid an error. 26302 Use char because int might match the return type of a GCC 26303 builtin and then its argument prototype would still apply. */ 26304#ifdef __cplusplus 26305extern "C" 26306#endif 26307char remove (); 26308int 26309main () 26310{ 26311return remove (); 26312 ; 26313 return 0; 26314} 26315_ACEOF 26316if ac_fn_c_try_link "$LINENO"; then : 26317 ac_cv_lib_posix_remove=yes 26318else 26319 ac_cv_lib_posix_remove=no 26320fi 26321rm -f core conftest.err conftest.$ac_objext \ 26322 conftest$ac_exeext conftest.$ac_ext 26323LIBS=$ac_check_lib_save_LIBS 26324fi 26325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 26326$as_echo "$ac_cv_lib_posix_remove" >&6; } 26327if test "x$ac_cv_lib_posix_remove" = xyes; then : 26328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 26329fi 26330 26331 fi 26332 26333 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 26334 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 26335if test "x$ac_cv_func_shmat" = xyes; then : 26336 26337fi 26338 26339 if test $ac_cv_func_shmat = no; then 26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 26341$as_echo_n "checking for shmat in -lipc... " >&6; } 26342if ${ac_cv_lib_ipc_shmat+:} false; then : 26343 $as_echo_n "(cached) " >&6 26344else 26345 ac_check_lib_save_LIBS=$LIBS 26346LIBS="-lipc $LIBS" 26347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26348/* end confdefs.h. */ 26349 26350/* Override any GCC internal prototype to avoid an error. 26351 Use char because int might match the return type of a GCC 26352 builtin and then its argument prototype would still apply. */ 26353#ifdef __cplusplus 26354extern "C" 26355#endif 26356char shmat (); 26357int 26358main () 26359{ 26360return shmat (); 26361 ; 26362 return 0; 26363} 26364_ACEOF 26365if ac_fn_c_try_link "$LINENO"; then : 26366 ac_cv_lib_ipc_shmat=yes 26367else 26368 ac_cv_lib_ipc_shmat=no 26369fi 26370rm -f core conftest.err conftest.$ac_objext \ 26371 conftest$ac_exeext conftest.$ac_ext 26372LIBS=$ac_check_lib_save_LIBS 26373fi 26374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 26375$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 26376if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 26377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 26378fi 26379 26380 fi 26381 fi 26382 26383 # Check for libraries that X11R6 Xt/Xaw programs need. 26384 ac_save_LDFLAGS=$LDFLAGS 26385 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 26386 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 26387 # check for ICE first), but we must link in the order -lSM -lICE or 26388 # we get undefined symbols. So assume we have SM if we have ICE. 26389 # These have to be linked with before -lX11, unlike the other 26390 # libraries we check for below, so use a different variable. 26391 # John Interrante, Karl Berry 26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 26393$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 26394if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 26395 $as_echo_n "(cached) " >&6 26396else 26397 ac_check_lib_save_LIBS=$LIBS 26398LIBS="-lICE $X_EXTRA_LIBS $LIBS" 26399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26400/* end confdefs.h. */ 26401 26402/* Override any GCC internal prototype to avoid an error. 26403 Use char because int might match the return type of a GCC 26404 builtin and then its argument prototype would still apply. */ 26405#ifdef __cplusplus 26406extern "C" 26407#endif 26408char IceConnectionNumber (); 26409int 26410main () 26411{ 26412return IceConnectionNumber (); 26413 ; 26414 return 0; 26415} 26416_ACEOF 26417if ac_fn_c_try_link "$LINENO"; then : 26418 ac_cv_lib_ICE_IceConnectionNumber=yes 26419else 26420 ac_cv_lib_ICE_IceConnectionNumber=no 26421fi 26422rm -f core conftest.err conftest.$ac_objext \ 26423 conftest$ac_exeext conftest.$ac_ext 26424LIBS=$ac_check_lib_save_LIBS 26425fi 26426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 26427$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 26428if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 26429 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 26430fi 26431 26432 LDFLAGS=$ac_save_LDFLAGS 26433 26434fi 26435 26436 26437 CPPFLAGS_save=$CPPFLAGS 26438 LIBS_save=$LIBS 26439 26440 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 26441 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS" 26442 for ac_header in X11/Xlib.h 26443do : 26444 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" 26445if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : 26446 cat >>confdefs.h <<_ACEOF 26447#define HAVE_X11_XLIB_H 1 26448_ACEOF 26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 26450$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } 26451if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : 26452 $as_echo_n "(cached) " >&6 26453else 26454 ac_check_lib_save_LIBS=$LIBS 26455LIBS="-lX11 $LIBS" 26456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26457/* end confdefs.h. */ 26458 26459/* Override any GCC internal prototype to avoid an error. 26460 Use char because int might match the return type of a GCC 26461 builtin and then its argument prototype would still apply. */ 26462#ifdef __cplusplus 26463extern "C" 26464#endif 26465char XOpenDisplay (); 26466int 26467main () 26468{ 26469return XOpenDisplay (); 26470 ; 26471 return 0; 26472} 26473_ACEOF 26474if ac_fn_c_try_link "$LINENO"; then : 26475 ac_cv_lib_X11_XOpenDisplay=yes 26476else 26477 ac_cv_lib_X11_XOpenDisplay=no 26478fi 26479rm -f core conftest.err conftest.$ac_objext \ 26480 conftest$ac_exeext conftest.$ac_ext 26481LIBS=$ac_check_lib_save_LIBS 26482fi 26483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 26484$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } 26485if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : 26486 hwloc_enable_X11=yes 26487fi 26488 26489 26490fi 26491 26492done 26493 26494 CPPFLAGS=$CPPFLAGS_save 26495 LIBS=$LIBS_save 26496 26497 if test "$hwloc_enable_X11" != "yes"; then : 26498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 not found; GL disabled" >&5 26499$as_echo "$as_me: WARNING: X11 not found; GL disabled" >&2;} 26500 hwloc_gl_happy=no 26501fi 26502 26503 for ac_header in NVCtrl/NVCtrl.h 26504do : 26505 ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default" 26506if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = xyes; then : 26507 cat >>confdefs.h <<_ACEOF 26508#define HAVE_NVCTRL_NVCTRL_H 1 26509_ACEOF 26510 26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl" >&5 26512$as_echo_n "checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... " >&6; } 26513if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute+:} false; then : 26514 $as_echo_n "(cached) " >&6 26515else 26516 ac_check_lib_save_LIBS=$LIBS 26517LIBS="-lXNVCtrl -lXext $LIBS" 26518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26519/* end confdefs.h. */ 26520 26521/* Override any GCC internal prototype to avoid an error. 26522 Use char because int might match the return type of a GCC 26523 builtin and then its argument prototype would still apply. */ 26524#ifdef __cplusplus 26525extern "C" 26526#endif 26527char XNVCTRLQueryTargetAttribute (); 26528int 26529main () 26530{ 26531return XNVCTRLQueryTargetAttribute (); 26532 ; 26533 return 0; 26534} 26535_ACEOF 26536if ac_fn_c_try_link "$LINENO"; then : 26537 ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=yes 26538else 26539 ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=no 26540fi 26541rm -f core conftest.err conftest.$ac_objext \ 26542 conftest$ac_exeext conftest.$ac_ext 26543LIBS=$ac_check_lib_save_LIBS 26544fi 26545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&5 26546$as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&6; } 26547if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" = xyes; then : 26548 : 26549else 26550 hwloc_gl_happy=no 26551fi 26552 26553 26554else 26555 hwloc_gl_happy=no 26556fi 26557 26558done 26559 26560 26561 if test "x$hwloc_gl_happy" = "xyes"; then 26562 26563$as_echo "#define HWLOC_HAVE_GL 1" >>confdefs.h 26564 26565 HWLOC_GL_LIBS="-lXNVCtrl -lXext -lX11" 26566 26567 # FIXME we actually don't know if xext.pc and x11.pc are installed 26568 # since we didn't look for Xext and X11 using pkg-config 26569 HWLOC_GL_REQUIRES="xext x11" 26570 hwloc_have_gl=yes 26571 hwloc_components="$hwloc_components gl" 26572 hwloc_gl_component_maybeplugin=1 26573 else 26574 if test "$enable_gl" = "yes"; then : 26575 26576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-gl switch, but could not" >&5 26577$as_echo "$as_me: WARNING: Specified --enable-gl switch, but could not" >&2;} 26578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 26579$as_echo "$as_me: WARNING: find appropriate support" >&2;} 26580 as_fn_error $? "Cannot continue" "$LINENO" 5 26581 26582fi 26583 fi 26584 fi 26585 # don't add LIBS/CFLAGS yet, depends on plugins 26586 26587 # libxml2 support 26588 hwloc_libxml2_happy= 26589 if test "x$enable_libxml2" != "xno"; then 26590 26591 26592 HWLOC_pkg_failed=no 26593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 26594$as_echo_n "checking for LIBXML2... " >&6; } 26595 26596 if test -n "$PKG_CONFIG"; then 26597 if test -n "$HWLOC_LIBXML2_CFLAGS"; then 26598 HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS="$HWLOC_LIBXML2_CFLAGS" 26599 else 26600 if test -n "$PKG_CONFIG" && \ 26601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5 26602 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5 26603 ac_status=$? 26604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26605 test $ac_status = 0; }; then 26606 HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 26607 else 26608 HWLOC_pkg_failed=yes 26609fi 26610 fi 26611else 26612 HWLOC_pkg_failed=untried 26613fi 26614 26615 if test -n "$PKG_CONFIG"; then 26616 if test -n "$HWLOC_LIBXML2_LIBS"; then 26617 HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS="$HWLOC_LIBXML2_LIBS" 26618 else 26619 if test -n "$PKG_CONFIG" && \ 26620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5 26621 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5 26622 ac_status=$? 26623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26624 test $ac_status = 0; }; then 26625 HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 26626 else 26627 HWLOC_pkg_failed=yes 26628fi 26629 fi 26630else 26631 HWLOC_pkg_failed=untried 26632fi 26633 26634 26635 26636 26637 # Check for failure of pkg-config 26638 if test $HWLOC_pkg_failed = yes; then 26639 26640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26641 HWLOC_pkg_short_errors_supported=yes 26642else 26643 HWLOC_pkg_short_errors_supported=no 26644fi 26645 if test $HWLOC_pkg_short_errors_supported = yes; then 26646 HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1` 26647 else 26648 HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1` 26649 fi 26650 # Put the nasty error message in config.log where it belongs 26651 echo "$HWLOC_LIBXML2_PKG_ERRORS" >&5 26652 26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26654$as_echo "no" >&6; } 26655 hwloc_libxml2_happy=no 26656 elif test $HWLOC_pkg_failed = untried; then 26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 26658$as_echo "cannot check without pkg-config" >&6; } 26659 hwloc_libxml2_happy=no 26660 else 26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26662$as_echo "yes" >&6; } 26663 26664 # If we got good results from pkg-config, check that they 26665 # actually work (i.e., that we can link against the resulting 26666 # $LIBS). The canonical example why we do this is if 26667 # pkg-config returns 64 bit libraries but ./configure was run 26668 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid 26669 # results, but we'll fail if we try to link. So detect that 26670 # failure now. 26671 # There are also cases on Mac where pkg-config returns paths 26672 # that do not actually exists until some magic is applied. 26673 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php 26674 # So check whether we find the header as well. 26675 hwloc_cflags_save=$CFLAGS 26676 hwloc_cppflags_save=$CPPFLAGS 26677 hwloc_libs_save=$LIBS 26678 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS" 26679 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS" 26680 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS" 26681 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" 26682if test "x$ac_cv_header_libxml_parser_h" = xyes; then : 26683 26684 ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc" 26685if test "x$ac_cv_func_xmlNewDoc" = xyes; then : 26686 hwloc_result=yes 26687else 26688 hwloc_result=no 26689fi 26690 26691 26692else 26693 hwloc_result=no 26694fi 26695 26696 26697 CFLAGS=$hwloc_cflags_save 26698 CPPFLAGS=$hwloc_cppflags_save 26699 LIBS=$hwloc_libs_save 26700 26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final LIBXML2 support" >&5 26702$as_echo_n "checking for final LIBXML2 support... " >&6; } 26703 if test "$hwloc_result" = "yes"; then : 26704 HWLOC_LIBXML2_CFLAGS=$HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS 26705 HWLOC_LIBXML2_LIBS=$HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS 26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26707$as_echo "yes" >&6; } 26708 hwloc_libxml2_happy=yes 26709else 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26711$as_echo "no" >&6; } 26712 hwloc_libxml2_happy=no 26713fi 26714 fi 26715 fi 26716 if test "x$hwloc_libxml2_happy" = "xyes"; then 26717 HWLOC_LIBXML2_REQUIRES="libxml-2.0" 26718 26719$as_echo "#define HWLOC_HAVE_LIBXML2 1" >>confdefs.h 26720 26721 HWLOC_HAVE_LIBXML2=1 26722 26723 26724 hwloc_components="$hwloc_components xml_libxml" 26725 hwloc_xml_libxml_component_maybeplugin=1 26726 else 26727 HWLOC_HAVE_LIBXML2=0 26728 26729 if test "$enable_libxml2" = "yes"; then : 26730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&5 26731$as_echo "$as_me: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&2;} 26732 as_fn_error $? "Cannot continue" "$LINENO" 5 26733fi 26734 fi 26735 # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins 26736 26737 # Try to compile the x86 cpuid inlines 26738 if test "x$enable_cpuid" != "xno"; then 26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid" >&5 26740$as_echo_n "checking for x86 cpuid... " >&6; } 26741 old_CPPFLAGS="$CPPFLAGS" 26742 CPPFLAGS="$CPPFLAGS -I$HWLOC_top_srcdir/include" 26743 # We need hwloc_uint64_t but we can't use autogen/config.h before configure ends. 26744 # So pass #include/#define manually here for now. 26745 CPUID_CHECK_HEADERS= 26746 CPUID_CHECK_DEFINE= 26747 if test "x$hwloc_windows" = xyes; then 26748 X86_CPUID_CHECK_HEADERS="#include <windows.h>" 26749 X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t DWORDLONG" 26750 else 26751 X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t uint64_t" 26752 if test "x$ac_cv_header_stdint_h" = xyes; then 26753 X86_CPUID_CHECK_HEADERS="#include <stdint.h>" 26754 fi 26755 fi 26756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26757/* end confdefs.h. */ 26758 26759 #include <stdio.h> 26760 $X86_CPUID_CHECK_HEADERS 26761 $X86_CPUID_CHECK_DEFINE 26762 #define __hwloc_inline 26763 #include <private/cpuid-x86.h> 26764 26765int 26766main () 26767{ 26768 26769 if (hwloc_have_x86_cpuid()) { 26770 unsigned eax = 0, ebx, ecx = 0, edx; 26771 hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx); 26772 printf("highest x86 cpuid %x\n", eax); 26773 return 0; 26774 } 26775 26776 ; 26777 return 0; 26778} 26779_ACEOF 26780if ac_fn_c_try_link "$LINENO"; then : 26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26782$as_echo "yes" >&6; } 26783 26784$as_echo "#define HWLOC_HAVE_X86_CPUID 1" >>confdefs.h 26785 26786 hwloc_have_x86_cpuid=yes 26787else 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26789$as_echo "no" >&6; } 26790fi 26791rm -f core conftest.err conftest.$ac_objext \ 26792 conftest$ac_exeext conftest.$ac_ext 26793 if test "x$hwloc_have_x86_cpuid" = xyes; then 26794 hwloc_components="$hwloc_components x86" 26795 fi 26796 CPPFLAGS="$old_CPPFLAGS" 26797 fi 26798 26799 # Components require pthread_mutex, see if it needs -lpthread 26800 hwloc_pthread_mutex_happy=no 26801 # Try without explicit -lpthread first 26802 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" 26803if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : 26804 hwloc_pthread_mutex_happy=yes 26805 HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE -lpthread" 26806 26807else 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock with -lpthread" >&5 26809$as_echo_n "checking for pthread_mutex_lock with -lpthread... " >&6; } 26810 # Try again with explicit -lpthread, but don't use AC_CHECK_FUNC to avoid the cache 26811 tmp_save_LIBS=$LIBS 26812 LIBS="$LIBS -lpthread" 26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26814/* end confdefs.h. */ 26815 26816/* Override any GCC internal prototype to avoid an error. 26817 Use char because int might match the return type of a GCC 26818 builtin and then its argument prototype would still apply. */ 26819#ifdef __cplusplus 26820extern "C" 26821#endif 26822char pthread_mutex_lock (); 26823int 26824main () 26825{ 26826return pthread_mutex_lock (); 26827 ; 26828 return 0; 26829} 26830_ACEOF 26831if ac_fn_c_try_link "$LINENO"; then : 26832 hwloc_pthread_mutex_happy=yes 26833 HWLOC_LIBS="$HWLOC_LIBS -lpthread" 26834 26835fi 26836rm -f core conftest.err conftest.$ac_objext \ 26837 conftest$ac_exeext conftest.$ac_ext 26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_pthread_mutex_happy" >&5 26839$as_echo "$hwloc_pthread_mutex_happy" >&6; } 26840 LIBS="$tmp_save_LIBS" 26841 26842fi 26843 26844 if test "x$hwloc_pthread_mutex_happy" = "xyes"; then : 26845 26846$as_echo "#define HWLOC_HAVE_PTHREAD_MUTEX 1" >>confdefs.h 26847 26848fi 26849 26850 if test "x$hwloc_pthread_mutex_happy" != xyes -a "x$hwloc_windows" != xyes; then : 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&5 26852$as_echo "$as_me: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&2;} 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this to the hwloc-devel mailing list." >&5 26854$as_echo "$as_me: WARNING: Please report this to the hwloc-devel mailing list." >&2;} 26855 as_fn_error $? "Cannot continue" "$LINENO" 5 26856fi 26857 26858 # 26859 # Now enable registration of listed components 26860 # 26861 26862 # Plugin support 26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if plugin support is enabled" >&5 26864$as_echo_n "checking if plugin support is enabled... " >&6; } 26865 # Plugins (even core support) are totally disabled by default. 26866 # Pass --enable-plugins=foo (with "foo" NOT an existing component) to enable plugins but build none of them. 26867 if test "x$enable_plugins" = xyes; then 26868 hwloc_have_plugins=yes 26869 requested_plugins="$hwloc_components" 26870 else if test "x$enable_plugins" != xno -a "x$enable_plugins" != x; then 26871 hwloc_have_plugins=yes 26872 requested_plugins=`echo $enable_plugins | sed -e 's/,/ /g'` 26873 else 26874 hwloc_have_plugins=no 26875 fi fi 26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_plugins" >&5 26877$as_echo "$hwloc_have_plugins" >&6; } 26878 26879 if test "x$hwloc_have_plugins" = xyes; then 26880 # dlopen and ltdl (at least 2.4.2) doesn't work on AIX 26881 # posix linkers don't work well with plugins and windows dll constraints 26882 if test "x$enable_plugin_dlopen" = x; then 26883 if test "x$hwloc_aix" = "xyes"; then 26884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen does not work on AIX, disabled by default." >&5 26885$as_echo "$as_me: WARNING: dlopen does not work on AIX, disabled by default." >&2;} 26886 enable_plugin_dlopen=no 26887 else if test "x$hwloc_windows" = "xyes"; then 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&5 26889$as_echo "$as_me: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&2;} 26890 enable_plugin_dlopen=no 26891 fi fi 26892 fi 26893 if test "x$enable_plugin_ltdl" = x; then 26894 if test "x$hwloc_aix" = "xyes"; then 26895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ltdl does not work on AIX, disabled by default." >&5 26896$as_echo "$as_me: WARNING: ltdl does not work on AIX, disabled by default." >&2;} 26897 enable_plugin_dlopen=no 26898 else if test "x$hwloc_windows" = "xyes"; then 26899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&5 26900$as_echo "$as_me: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&2;} 26901 enable_plugin_dlopen=no 26902 fi fi 26903 fi 26904 26905 # Look for dlopen 26906 if test "x$enable_plugin_dlopen" != xno; then 26907 26908 hwloc_dlopen_ready=no 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 26910$as_echo_n "checking for dlopen... " >&6; } 26911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26912/* end confdefs.h. */ 26913 26914 26915 #include <dlfcn.h> 26916 #include <stdlib.h> 26917 void *handle; 26918 26919int 26920main () 26921{ 26922 26923 handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL); 26924 26925 ; 26926 return 0; 26927} 26928_ACEOF 26929if ac_fn_c_try_link "$LINENO"; then : 26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26931$as_echo "yes" >&6; } 26932 hwloc_dlopen_ready=yes 26933else 26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26935$as_echo "no" >&6; } 26936 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 26937if test "x$ac_cv_header_dlfcn_h" = xyes; then : 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 26939$as_echo_n "checking for dlopen in -ldl... " >&6; } 26940if ${ac_cv_lib_dl_dlopen+:} false; then : 26941 $as_echo_n "(cached) " >&6 26942else 26943 ac_check_lib_save_LIBS=$LIBS 26944LIBS="-ldl $LIBS" 26945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26946/* end confdefs.h. */ 26947 26948/* Override any GCC internal prototype to avoid an error. 26949 Use char because int might match the return type of a GCC 26950 builtin and then its argument prototype would still apply. */ 26951#ifdef __cplusplus 26952extern "C" 26953#endif 26954char dlopen (); 26955int 26956main () 26957{ 26958return dlopen (); 26959 ; 26960 return 0; 26961} 26962_ACEOF 26963if ac_fn_c_try_link "$LINENO"; then : 26964 ac_cv_lib_dl_dlopen=yes 26965else 26966 ac_cv_lib_dl_dlopen=no 26967fi 26968rm -f core conftest.err conftest.$ac_objext \ 26969 conftest$ac_exeext conftest.$ac_ext 26970LIBS=$ac_check_lib_save_LIBS 26971fi 26972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 26973$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 26974if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 26975 hwloc_dlopen_ready=yes 26976 hwloc_dlopen_libs=-ldl 26977fi 26978 26979 26980fi 26981 26982 26983 26984fi 26985rm -f core conftest.err conftest.$ac_objext \ 26986 conftest$ac_exeext conftest.$ac_ext 26987 26988 fi 26989 # Look for ltdl 26990 if test "x$enable_plugin_ltdl" != xno; then 26991 26992 hwloc_ltdl_ready=no 26993 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 26994if test "x$ac_cv_header_ltdl_h" = xyes; then : 26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5 26996$as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; } 26997if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then : 26998 $as_echo_n "(cached) " >&6 26999else 27000 ac_check_lib_save_LIBS=$LIBS 27001LIBS="-lltdl $LIBS" 27002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27003/* end confdefs.h. */ 27004 27005/* Override any GCC internal prototype to avoid an error. 27006 Use char because int might match the return type of a GCC 27007 builtin and then its argument prototype would still apply. */ 27008#ifdef __cplusplus 27009extern "C" 27010#endif 27011char lt_dlopenext (); 27012int 27013main () 27014{ 27015return lt_dlopenext (); 27016 ; 27017 return 0; 27018} 27019_ACEOF 27020if ac_fn_c_try_link "$LINENO"; then : 27021 ac_cv_lib_ltdl_lt_dlopenext=yes 27022else 27023 ac_cv_lib_ltdl_lt_dlopenext=no 27024fi 27025rm -f core conftest.err conftest.$ac_objext \ 27026 conftest$ac_exeext conftest.$ac_ext 27027LIBS=$ac_check_lib_save_LIBS 27028fi 27029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5 27030$as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; } 27031if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then : 27032 hwloc_ltdl_ready=yes 27033 hwloc_ltdl_libs=-lltdl 27034fi 27035 27036 27037fi 27038 27039 27040 27041 fi 27042 27043 # Now use dlopen by default, or ltdl, or just fail to enable plugins 27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library to use for loading plugins" >&5 27045$as_echo_n "checking which library to use for loading plugins... " >&6; } 27046 if test "x$hwloc_dlopen_ready" = xyes; then 27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5 27048$as_echo "dlopen" >&6; } 27049 hwloc_plugins_load=dlopen 27050 # Now enable dlopen libs 27051 HWLOC_DL_LIBS="$hwloc_dlopen_libs" 27052 27053 else if test x$hwloc_ltdl_ready = xyes; then 27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5 27055$as_echo "ltdl" >&6; } 27056 hwloc_plugins_load=ltdl 27057 # Now enable ltdl libs 27058 27059$as_echo "#define HWLOC_HAVE_LTDL 1" >>confdefs.h 27060 27061 HWLOC_LTDL_LIBS="$hwloc_ltdl_libs" 27062 27063 # Add ltdl static-build dependencies to hwloc.pc 27064 27065 # save variables that we'll modify below 27066 save_lt_cv_dlopen="$lt_cv_dlopen" 27067 save_lt_cv_dlopen_libs="$lt_cv_dlopen_libs" 27068 save_lt_cv_dlopen_self="$lt_cv_dlopen_self" 27069 ########################################################### 27070 # code stolen from LT_SYS_DLOPEN_SELF in libtool.m4 27071 case $host_os in 27072 beos*) 27073 lt_cv_dlopen="load_add_on" 27074 lt_cv_dlopen_libs= 27075 lt_cv_dlopen_self=yes 27076 ;; 27077 27078 mingw* | pw32* | cegcc*) 27079 lt_cv_dlopen="LoadLibrary" 27080 lt_cv_dlopen_libs= 27081 ;; 27082 27083 cygwin*) 27084 lt_cv_dlopen="dlopen" 27085 lt_cv_dlopen_libs= 27086 ;; 27087 27088 darwin*) 27089 # if libdl is installed we need to link against it 27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 27091$as_echo_n "checking for dlopen in -ldl... " >&6; } 27092if ${ac_cv_lib_dl_dlopen+:} false; then : 27093 $as_echo_n "(cached) " >&6 27094else 27095 ac_check_lib_save_LIBS=$LIBS 27096LIBS="-ldl $LIBS" 27097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27098/* end confdefs.h. */ 27099 27100/* Override any GCC internal prototype to avoid an error. 27101 Use char because int might match the return type of a GCC 27102 builtin and then its argument prototype would still apply. */ 27103#ifdef __cplusplus 27104extern "C" 27105#endif 27106char dlopen (); 27107int 27108main () 27109{ 27110return dlopen (); 27111 ; 27112 return 0; 27113} 27114_ACEOF 27115if ac_fn_c_try_link "$LINENO"; then : 27116 ac_cv_lib_dl_dlopen=yes 27117else 27118 ac_cv_lib_dl_dlopen=no 27119fi 27120rm -f core conftest.err conftest.$ac_objext \ 27121 conftest$ac_exeext conftest.$ac_ext 27122LIBS=$ac_check_lib_save_LIBS 27123fi 27124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 27125$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 27126if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 27127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 27128else 27129 27130 lt_cv_dlopen="dyld" 27131 lt_cv_dlopen_libs= 27132 lt_cv_dlopen_self=yes 27133 27134fi 27135 27136 ;; 27137 27138 *) 27139 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 27140if test "x$ac_cv_func_shl_load" = xyes; then : 27141 lt_cv_dlopen="shl_load" 27142else 27143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 27144$as_echo_n "checking for shl_load in -ldld... " >&6; } 27145if ${ac_cv_lib_dld_shl_load+:} false; then : 27146 $as_echo_n "(cached) " >&6 27147else 27148 ac_check_lib_save_LIBS=$LIBS 27149LIBS="-ldld $LIBS" 27150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27151/* end confdefs.h. */ 27152 27153/* Override any GCC internal prototype to avoid an error. 27154 Use char because int might match the return type of a GCC 27155 builtin and then its argument prototype would still apply. */ 27156#ifdef __cplusplus 27157extern "C" 27158#endif 27159char shl_load (); 27160int 27161main () 27162{ 27163return shl_load (); 27164 ; 27165 return 0; 27166} 27167_ACEOF 27168if ac_fn_c_try_link "$LINENO"; then : 27169 ac_cv_lib_dld_shl_load=yes 27170else 27171 ac_cv_lib_dld_shl_load=no 27172fi 27173rm -f core conftest.err conftest.$ac_objext \ 27174 conftest$ac_exeext conftest.$ac_ext 27175LIBS=$ac_check_lib_save_LIBS 27176fi 27177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 27178$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 27179if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 27180 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 27181else 27182 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 27183if test "x$ac_cv_func_dlopen" = xyes; then : 27184 lt_cv_dlopen="dlopen" 27185else 27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 27187$as_echo_n "checking for dlopen in -ldl... " >&6; } 27188if ${ac_cv_lib_dl_dlopen+:} false; then : 27189 $as_echo_n "(cached) " >&6 27190else 27191 ac_check_lib_save_LIBS=$LIBS 27192LIBS="-ldl $LIBS" 27193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27194/* end confdefs.h. */ 27195 27196/* Override any GCC internal prototype to avoid an error. 27197 Use char because int might match the return type of a GCC 27198 builtin and then its argument prototype would still apply. */ 27199#ifdef __cplusplus 27200extern "C" 27201#endif 27202char dlopen (); 27203int 27204main () 27205{ 27206return dlopen (); 27207 ; 27208 return 0; 27209} 27210_ACEOF 27211if ac_fn_c_try_link "$LINENO"; then : 27212 ac_cv_lib_dl_dlopen=yes 27213else 27214 ac_cv_lib_dl_dlopen=no 27215fi 27216rm -f core conftest.err conftest.$ac_objext \ 27217 conftest$ac_exeext conftest.$ac_ext 27218LIBS=$ac_check_lib_save_LIBS 27219fi 27220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 27221$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 27222if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 27223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 27224else 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 27226$as_echo_n "checking for dlopen in -lsvld... " >&6; } 27227if ${ac_cv_lib_svld_dlopen+:} false; then : 27228 $as_echo_n "(cached) " >&6 27229else 27230 ac_check_lib_save_LIBS=$LIBS 27231LIBS="-lsvld $LIBS" 27232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27233/* end confdefs.h. */ 27234 27235/* Override any GCC internal prototype to avoid an error. 27236 Use char because int might match the return type of a GCC 27237 builtin and then its argument prototype would still apply. */ 27238#ifdef __cplusplus 27239extern "C" 27240#endif 27241char dlopen (); 27242int 27243main () 27244{ 27245return dlopen (); 27246 ; 27247 return 0; 27248} 27249_ACEOF 27250if ac_fn_c_try_link "$LINENO"; then : 27251 ac_cv_lib_svld_dlopen=yes 27252else 27253 ac_cv_lib_svld_dlopen=no 27254fi 27255rm -f core conftest.err conftest.$ac_objext \ 27256 conftest$ac_exeext conftest.$ac_ext 27257LIBS=$ac_check_lib_save_LIBS 27258fi 27259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 27260$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 27261if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 27262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 27263else 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 27265$as_echo_n "checking for dld_link in -ldld... " >&6; } 27266if ${ac_cv_lib_dld_dld_link+:} false; then : 27267 $as_echo_n "(cached) " >&6 27268else 27269 ac_check_lib_save_LIBS=$LIBS 27270LIBS="-ldld $LIBS" 27271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27272/* end confdefs.h. */ 27273 27274/* Override any GCC internal prototype to avoid an error. 27275 Use char because int might match the return type of a GCC 27276 builtin and then its argument prototype would still apply. */ 27277#ifdef __cplusplus 27278extern "C" 27279#endif 27280char dld_link (); 27281int 27282main () 27283{ 27284return dld_link (); 27285 ; 27286 return 0; 27287} 27288_ACEOF 27289if ac_fn_c_try_link "$LINENO"; then : 27290 ac_cv_lib_dld_dld_link=yes 27291else 27292 ac_cv_lib_dld_dld_link=no 27293fi 27294rm -f core conftest.err conftest.$ac_objext \ 27295 conftest$ac_exeext conftest.$ac_ext 27296LIBS=$ac_check_lib_save_LIBS 27297fi 27298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 27299$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 27300if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 27301 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 27302fi 27303 27304 27305fi 27306 27307 27308fi 27309 27310 27311fi 27312 27313 27314fi 27315 27316 27317fi 27318 27319 ;; 27320 esac 27321 # end of code stolen from LT_SYS_DLOPEN_SELF in libtool.m4 27322 ########################################################### 27323 27324 HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE $lt_cv_dlopen_libs" 27325 27326 # restore modified variable in case the actual libtool code uses them 27327 lt_cv_dlopen="$save_lt_cv_dlopen" 27328 lt_cv_dlopen_libs="$save_lt_cv_dlopen_libs" 27329 lt_cv_dlopen_self="$save_lt_cv_dlopen_self" 27330 27331 else 27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 27333$as_echo "none" >&6; } 27334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&5 27335$as_echo "$as_me: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&2;} 27336 as_fn_error $? "Cannot continue" "$LINENO" 5 27337 fi fi 27338 27339 27340$as_echo "#define HWLOC_HAVE_PLUGINS 1" >>confdefs.h 27341 27342 fi 27343 27344 27345# Check whether --with-hwloc-plugins-path was given. 27346if test "${with_hwloc_plugins_path+set}" = set; then : 27347 withval=$with_hwloc_plugins_path; HWLOC_PLUGINS_PATH="$with_hwloc_plugins_path" 27348else 27349 HWLOC_PLUGINS_PATH="\$(libdir)/hwloc" 27350fi 27351 27352 27353 HWLOC_PLUGINS_DIR=`echo "$HWLOC_PLUGINS_PATH" | cut -d: -f1` 27354 27355 27356 # Static components output file 27357 hwloc_static_components_dir=${HWLOC_top_builddir}/hwloc 27358 mkdir -p "${hwloc_static_components_dir}" 27359 hwloc_static_components_file=${hwloc_static_components_dir}/static-components.h 27360 rm -f "${hwloc_static_components_file}" 27361 27362 27363 for name in $requested_plugins ; do 27364 str="hwloc_${name}_component_wantplugin=1" 27365 eval $str 27366 done 27367 27368 # Now we have some hwloc_<name>_component_wantplugin=1 27369 27370 # See which core components want plugin and support it 27371 27372for name in $hwloc_components ; do 27373 str="maybeplugin=\$hwloc_${name}_component_maybeplugin" 27374 eval $str 27375 str="wantplugin=\$hwloc_${name}_component_wantplugin" 27376 eval $str 27377 if test x$hwloc_have_plugins = xyes -a x$maybeplugin = x1 -a x$wantplugin = x1; then 27378 hwloc_plugin_components="$hwloc_plugin_components $name" 27379 str="hwloc_${name}_component=plugin" 27380 else 27381 hwloc_static_components="$hwloc_static_components $name" 27382 str="hwloc_${name}_component=static" 27383 fi 27384 eval $str 27385done 27386 27387 # Now we have some hwloc_<name>_component=plugin/static 27388 # and hwloc_static/plugin_components=list (space separated) 27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build statically" >&5 27390$as_echo_n "checking components to build statically... " >&6; } 27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_static_components" >&5 27392$as_echo "$hwloc_static_components" >&6; } 27393 27394cat <<EOF >>"$hwloc_static_components_file" 27395#include <private/internal-components.h> 27396static const struct hwloc_component * hwloc_static_components[] = { 27397EOF 27398for comp in $hwloc_static_components; do 27399 echo " &hwloc_${comp}_component," >>"$hwloc_static_components_file" 27400done 27401cat <<EOF >>"$hwloc_static_components_file" 27402 NULL 27403}; 27404EOF 27405 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build as plugins" >&5 27407$as_echo_n "checking components to build as plugins... " >&6; } 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_plugin_components" >&5 27409$as_echo "$hwloc_plugin_components" >&6; } 27410 27411 if test "$hwloc_pci_component" = "static"; then : 27412 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_PCIACCESS_LIBS" 27413 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_PCIACCESS_CFLAGS" 27414 HWLOC_REQUIRES="$HWLOC_PCIACCESS_REQUIRES $HWLOC_REQUIRES" 27415fi 27416 if test "$hwloc_opencl_component" = "static"; then : 27417 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_OPENCL_LIBS" 27418 HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_OPENCL_LDFLAGS" 27419 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_OPENCL_CFLAGS" 27420 HWLOC_REQUIRES="$HWLOC_OPENCL_REQUIRES $HWLOC_REQUIRES" 27421fi 27422 if test "$hwloc_cuda_component" = "static"; then : 27423 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_CUDA_LIBS" 27424 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_CUDA_CFLAGS" 27425 HWLOC_REQUIRES="$HWLOC_CUDA_REQUIRES $HWLOC_REQUIRES" 27426fi 27427 if test "$hwloc_nvml_component" = "static"; then : 27428 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_NVML_LIBS" 27429 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_NVML_CFLAGS" 27430 HWLOC_REQUIRES="$HWLOC_NVML_REQUIRES $HWLOC_REQUIRES" 27431fi 27432 if test "$hwloc_rsmi_component" = "static"; then : 27433 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_RSMI_LIBS" 27434 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_RSMI_CFLAGS" 27435 HWLOC_REQUIRES="$HWLOC_RSMI_REQUIRES $HWLOC_REQUIRES" 27436fi 27437 if test "$hwloc_gl_component" = "static"; then : 27438 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_GL_LIBS" 27439 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_GL_CFLAGS" 27440 HWLOC_REQUIRES="$HWLOC_GL_REQUIRES $HWLOC_REQUIRES" 27441fi 27442 if test "$hwloc_xml_libxml_component" = "static"; then : 27443 HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LIBXML2_LIBS" 27444 HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LIBXML2_CFLAGS" 27445 HWLOC_REQUIRES="$HWLOC_LIBXML2_REQUIRES $HWLOC_REQUIRES" 27446fi 27447 27448 # 27449 # Setup HWLOC's C, CPP, and LD flags, and LIBS 27450 # 27451 27452 27453 HWLOC_CPPFLAGS='-I"$(HWLOC_top_builddir)"/include -I"$(HWLOC_top_srcdir)"/include' 27454 27455 27456 27457 27458 27459 # Set these values explicitly for embedded builds. Exporting 27460 # these values through *_EMBEDDED_* values gives us the freedom to 27461 # do something different someday if we ever need to. There's no 27462 # need to fill these values in unless we're in embedded mode. 27463 # Indeed, if we're building in embedded mode, we want HWLOC_LIBS 27464 # to be empty so that nothing is linked into libhwloc_embedded.la 27465 # itself -- only the upper-layer will link in anything required. 27466 27467 if test "$hwloc_mode" = "embedded"; then : 27468 HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS 27469 HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS 27470 HWLOC_EMBEDDED_LDFLAGS=$HWLOC_LDFLAGS 27471 HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la' 27472 HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS 27473 HWLOC_LIBS= 27474fi 27475 27476 27477 27478 27479 27480 27481 # Always generate these files 27482 ac_config_files="$ac_config_files Makefile include/Makefile hwloc/Makefile" 27483 27484 27485 # Cleanup 27486 ac_ext=c 27487ac_cpp='$CPP $CPPFLAGS' 27488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27490ac_compiler_gnu=$ac_cv_c_compiler_gnu 27491 27492 27493 # Success 27494 27495 27496 27497#################################################################### 27498# Setup the netloc API 27499#################################################################### 27500 27501 27502 27503# Check whether --enable-netloc was given. 27504if test "${enable_netloc+set}" = set; then : 27505 enableval=$enable_netloc; 27506fi 27507 27508 27509if test "$enable_netloc" = "yes" -a "$hwloc_mode" = "standalone"; then : 27510 27511 27512 27513 27514 if test "x1" != "x"; then : 27515 cat <<EOF 27516 27517### 27518### Configuring netloc core 27519### 27520EOF 27521fi 27522 27523 # These flags are specific to netloc, and should not be redundant 27524 # with hwloc. I.e., if the flag already exists in hwloc, there's 27525 # no need to put it here. 27526 NETLOC_CFLAGS=$HWLOC_CFLAGS 27527 NETLOC_CPPFLAGS=$HWLOC_CPPFLAGS 27528 NETLOC_LDFLAGS=$HWLOC_LDFLAGS 27529 NETLOC_LIBS= 27530 NETLOC_LIBS_PRIVATE= 27531 27532 # Setup the individual parts of Netloc 27533 netloc_happy=yes 27534 if test "$netloc_happy" = "yes"; then : 27535 27536 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 27537if test "x$ac_cv_func_asprintf" = xyes; then : 27538 27539fi 27540 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if netloc supports this platform" >&5 27542$as_echo_n "checking if netloc supports this platform... " >&6; } 27543 if test "$ac_cv_func_asprintf" != "yes"; then : 27544 netloc_happy=no netloc_missing_reason=" (asprintf missing)" 27545fi 27546 if test "$hwloc_windows" = "yes"; then : 27547 netloc_happy=no netloc_missing_reason=" (Windows platform)" 27548fi 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netloc_happy$netloc_missing_reason" >&5 27550$as_echo "$netloc_happy$netloc_missing_reason" >&6; } 27551 27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCOTCH_archSub in -lscotch" >&5 27553$as_echo_n "checking for SCOTCH_archSub in -lscotch... " >&6; } 27554if ${ac_cv_lib_scotch_SCOTCH_archSub+:} false; then : 27555 $as_echo_n "(cached) " >&6 27556else 27557 ac_check_lib_save_LIBS=$LIBS 27558LIBS="-lscotch -lscotcherr $LIBS" 27559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27560/* end confdefs.h. */ 27561 27562/* Override any GCC internal prototype to avoid an error. 27563 Use char because int might match the return type of a GCC 27564 builtin and then its argument prototype would still apply. */ 27565#ifdef __cplusplus 27566extern "C" 27567#endif 27568char SCOTCH_archSub (); 27569int 27570main () 27571{ 27572return SCOTCH_archSub (); 27573 ; 27574 return 0; 27575} 27576_ACEOF 27577if ac_fn_c_try_link "$LINENO"; then : 27578 ac_cv_lib_scotch_SCOTCH_archSub=yes 27579else 27580 ac_cv_lib_scotch_SCOTCH_archSub=no 27581fi 27582rm -f core conftest.err conftest.$ac_objext \ 27583 conftest$ac_exeext conftest.$ac_ext 27584LIBS=$ac_check_lib_save_LIBS 27585fi 27586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scotch_SCOTCH_archSub" >&5 27587$as_echo "$ac_cv_lib_scotch_SCOTCH_archSub" >&6; } 27588if test "x$ac_cv_lib_scotch_SCOTCH_archSub" = xyes; then : 27589 scotch_found_headers=yes; 27590 27591$as_echo "#define NETLOC_SCOTCH 1" >>confdefs.h 27592 27593 27594fi 27595 27596 for ac_header in mpi.h 27597do : 27598 ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default" 27599if test "x$ac_cv_header_mpi_h" = xyes; then : 27600 cat >>confdefs.h <<_ACEOF 27601#define HAVE_MPI_H 1 27602_ACEOF 27603 mpi_found_headers=yes; 27604 MPI_CPPFLAGS=`mpicc -showme:compile 2>/dev/null` 27605 MPI_LDADD=`mpicc -showme:link 2>/dev/null` 27606 27607 27608 break; 27609fi 27610 27611done 27612 27613 27614 # Extract the first word of "xz", so it can be a program name with args. 27615set dummy xz; ac_word=$2 27616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27617$as_echo_n "checking for $ac_word... " >&6; } 27618if ${ac_cv_prog_xz+:} false; then : 27619 $as_echo_n "(cached) " >&6 27620else 27621 if test -n "$xz"; then 27622 ac_cv_prog_xz="$xz" # Let the user override the test. 27623else 27624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27625for as_dir in $PATH 27626do 27627 IFS=$as_save_IFS 27628 test -z "$as_dir" && as_dir=. 27629 for ac_exec_ext in '' $ac_executable_extensions; do 27630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27631 ac_cv_prog_xz="yes" 27632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27633 break 2 27634 fi 27635done 27636 done 27637IFS=$as_save_IFS 27638 27639 test -z "$ac_cv_prog_xz" && ac_cv_prog_xz="no" 27640fi 27641fi 27642xz=$ac_cv_prog_xz 27643if test -n "$xz"; then 27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xz" >&5 27645$as_echo "$xz" >&6; } 27646else 27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27648$as_echo "no" >&6; } 27649fi 27650 27651 27652 27653fi 27654 27655 27656 27657 27658 27659 27660 27661 # Set these values explicitly for embedded builds. Exporting 27662 # these values through *_EMBEDDED_* values gives us the freedom to 27663 # do something different someday if we ever need to. There's no 27664 # need to fill these values in unless we're in embedded mode. 27665 # Indeed, if we're building in embedded mode, we want NETLOC_LIBS 27666 # to be empty so that nothing is linked into libnetloc_embedded.la 27667 # itself -- only the upper-layer will link in anything required. 27668 27669 if test "$hwloc_mode" = "embedded"; then : 27670 NETLOC_EMBEDDED_CFLAGS=$NETLOC_CFLAGS 27671 NETLOC_EMBEDDED_CPPFLAGS=$NETLOC_CPPFLAGS 27672 NETLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/netloc/libnetloc_embedded.la' 27673 NETLOC_EMBEDDED_LIBS=$NETLOC_LIBS 27674 NETLOC_LIBS= 27675fi 27676 27677 27678 27679 27680 27681 if test "$netloc_happy" = "yes"; then : 27682 27683else 27684 if test "$enable_netloc" = "yes"; then : 27685 as_fn_error $? "Cannot build netloc core" "$LINENO" 5 27686fi 27687 27688fi 27689 27690 27691fi 27692 27693#################################################################### 27694# Version information 27695#################################################################### 27696 27697# HWLOC_VERSION was setup by HWLOC_SETUP_CORE above. 27698 27699# Make configure depend on the VERSION file, since it's used in AC_INIT 27700CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION' 27701 27702 27703# Override/fixup the version numbers set by AC_INIT, since on 27704# developer builds, there's no good way to know what the version is 27705# before running configure :(. We only use the base version number 27706# for the version set in AC_INIT. This will always match reality 27707# because we add the VERSION file (the only way to change the 27708# major.minor.release{greek}) into the configure dependencies. 27709PACKAGE_VERSION="$HWLOC_VERSION" 27710PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}" 27711VERSION="${PACKAGE_VERSION}" 27712 27713# For standalone configurations, we also include a .so version number. 27714 27715. $srcdir/VERSION 27716 27717#################################################################### 27718# Setup the rest of the infrastructure 27719#################################################################### 27720 27721# Setup hwloc's docs, utils, and tests 27722 27723 27724 # Extract the first word of "diff", so it can be a program name with args. 27725set dummy diff; ac_word=$2 27726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27727$as_echo_n "checking for $ac_word... " >&6; } 27728if ${ac_cv_path_DIFF+:} false; then : 27729 $as_echo_n "(cached) " >&6 27730else 27731 case $DIFF in 27732 [\\/]* | ?:[\\/]*) 27733 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 27734 ;; 27735 *) 27736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27737for as_dir in $PATH 27738do 27739 IFS=$as_save_IFS 27740 test -z "$as_dir" && as_dir=. 27741 for ac_exec_ext in '' $ac_executable_extensions; do 27742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27743 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 27744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27745 break 2 27746 fi 27747done 27748 done 27749IFS=$as_save_IFS 27750 27751 ;; 27752esac 27753fi 27754DIFF=$ac_cv_path_DIFF 27755if test -n "$DIFF"; then 27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 27757$as_echo "$DIFF" >&6; } 27758else 27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27760$as_echo "no" >&6; } 27761fi 27762 27763 27764 27765if test "$hwloc_mode" = "standalone"; then : 27766 27767 cat <<EOF 27768 27769### 27770### Configuring hwloc documentation 27771### 27772EOF 27773 27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a developer build" >&5 27775$as_echo_n "checking if this is a developer build... " >&6; } 27776 if test ! -e "$srcdir/.git"; then : 27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (doxygen generation is optional)" >&5 27778$as_echo "no (doxygen generation is optional)" >&6; } 27779 test "x$enable_doxygen" = x && enable_doxygen=no 27780else 27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27782$as_echo "yes" >&6; } 27783 test "x$enable_doxygen" = x && enable_doxygen=yes 27784fi 27785 27786 # Generating the doxygen output requires a few tools. If we 27787 # don't have all of them, refuse the build the docs. 27788 27789 if test -n "$ac_tool_prefix"; then 27790 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. 27791set dummy ${ac_tool_prefix}doxygen; ac_word=$2 27792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27793$as_echo_n "checking for $ac_word... " >&6; } 27794if ${ac_cv_path_DOXYGEN+:} false; then : 27795 $as_echo_n "(cached) " >&6 27796else 27797 case $DOXYGEN in 27798 [\\/]* | ?:[\\/]*) 27799 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 27800 ;; 27801 *) 27802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27803for as_dir in $PATH 27804do 27805 IFS=$as_save_IFS 27806 test -z "$as_dir" && as_dir=. 27807 for ac_exec_ext in '' $ac_executable_extensions; do 27808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27809 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 27810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27811 break 2 27812 fi 27813done 27814 done 27815IFS=$as_save_IFS 27816 27817 ;; 27818esac 27819fi 27820DOXYGEN=$ac_cv_path_DOXYGEN 27821if test -n "$DOXYGEN"; then 27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 27823$as_echo "$DOXYGEN" >&6; } 27824else 27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27826$as_echo "no" >&6; } 27827fi 27828 27829 27830fi 27831if test -z "$ac_cv_path_DOXYGEN"; then 27832 ac_pt_DOXYGEN=$DOXYGEN 27833 # Extract the first word of "doxygen", so it can be a program name with args. 27834set dummy doxygen; ac_word=$2 27835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27836$as_echo_n "checking for $ac_word... " >&6; } 27837if ${ac_cv_path_ac_pt_DOXYGEN+:} false; then : 27838 $as_echo_n "(cached) " >&6 27839else 27840 case $ac_pt_DOXYGEN in 27841 [\\/]* | ?:[\\/]*) 27842 ac_cv_path_ac_pt_DOXYGEN="$ac_pt_DOXYGEN" # Let the user override the test with a path. 27843 ;; 27844 *) 27845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27846for as_dir in $PATH 27847do 27848 IFS=$as_save_IFS 27849 test -z "$as_dir" && as_dir=. 27850 for ac_exec_ext in '' $ac_executable_extensions; do 27851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27852 ac_cv_path_ac_pt_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 27853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27854 break 2 27855 fi 27856done 27857 done 27858IFS=$as_save_IFS 27859 27860 ;; 27861esac 27862fi 27863ac_pt_DOXYGEN=$ac_cv_path_ac_pt_DOXYGEN 27864if test -n "$ac_pt_DOXYGEN"; then 27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DOXYGEN" >&5 27866$as_echo "$ac_pt_DOXYGEN" >&6; } 27867else 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27869$as_echo "no" >&6; } 27870fi 27871 27872 if test "x$ac_pt_DOXYGEN" = x; then 27873 DOXYGEN="" 27874 else 27875 case $cross_compiling:$ac_tool_warned in 27876yes:) 27877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27879ac_tool_warned=yes ;; 27880esac 27881 DOXYGEN=$ac_pt_DOXYGEN 27882 fi 27883else 27884 DOXYGEN="$ac_cv_path_DOXYGEN" 27885fi 27886 27887 HWLOC_DOXYGEN_VERSION=`doxygen --version 2> /dev/null` 27888 27889 27890 if test -n "$ac_tool_prefix"; then 27891 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. 27892set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 27893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27894$as_echo_n "checking for $ac_word... " >&6; } 27895if ${ac_cv_path_PDFLATEX+:} false; then : 27896 $as_echo_n "(cached) " >&6 27897else 27898 case $PDFLATEX in 27899 [\\/]* | ?:[\\/]*) 27900 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. 27901 ;; 27902 *) 27903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27904for as_dir in $PATH 27905do 27906 IFS=$as_save_IFS 27907 test -z "$as_dir" && as_dir=. 27908 for ac_exec_ext in '' $ac_executable_extensions; do 27909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27910 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 27911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27912 break 2 27913 fi 27914done 27915 done 27916IFS=$as_save_IFS 27917 27918 ;; 27919esac 27920fi 27921PDFLATEX=$ac_cv_path_PDFLATEX 27922if test -n "$PDFLATEX"; then 27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 27924$as_echo "$PDFLATEX" >&6; } 27925else 27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27927$as_echo "no" >&6; } 27928fi 27929 27930 27931fi 27932if test -z "$ac_cv_path_PDFLATEX"; then 27933 ac_pt_PDFLATEX=$PDFLATEX 27934 # Extract the first word of "pdflatex", so it can be a program name with args. 27935set dummy pdflatex; ac_word=$2 27936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27937$as_echo_n "checking for $ac_word... " >&6; } 27938if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then : 27939 $as_echo_n "(cached) " >&6 27940else 27941 case $ac_pt_PDFLATEX in 27942 [\\/]* | ?:[\\/]*) 27943 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path. 27944 ;; 27945 *) 27946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27947for as_dir in $PATH 27948do 27949 IFS=$as_save_IFS 27950 test -z "$as_dir" && as_dir=. 27951 for ac_exec_ext in '' $ac_executable_extensions; do 27952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27953 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 27954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27955 break 2 27956 fi 27957done 27958 done 27959IFS=$as_save_IFS 27960 27961 ;; 27962esac 27963fi 27964ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX 27965if test -n "$ac_pt_PDFLATEX"; then 27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5 27967$as_echo "$ac_pt_PDFLATEX" >&6; } 27968else 27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27970$as_echo "no" >&6; } 27971fi 27972 27973 if test "x$ac_pt_PDFLATEX" = x; then 27974 PDFLATEX="" 27975 else 27976 case $cross_compiling:$ac_tool_warned in 27977yes:) 27978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27980ac_tool_warned=yes ;; 27981esac 27982 PDFLATEX=$ac_pt_PDFLATEX 27983 fi 27984else 27985 PDFLATEX="$ac_cv_path_PDFLATEX" 27986fi 27987 27988 27989 27990 if test -n "$ac_tool_prefix"; then 27991 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. 27992set dummy ${ac_tool_prefix}makeindex; ac_word=$2 27993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27994$as_echo_n "checking for $ac_word... " >&6; } 27995if ${ac_cv_path_MAKEINDEX+:} false; then : 27996 $as_echo_n "(cached) " >&6 27997else 27998 case $MAKEINDEX in 27999 [\\/]* | ?:[\\/]*) 28000 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path. 28001 ;; 28002 *) 28003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28004for as_dir in $PATH 28005do 28006 IFS=$as_save_IFS 28007 test -z "$as_dir" && as_dir=. 28008 for ac_exec_ext in '' $ac_executable_extensions; do 28009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28010 ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" 28011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28012 break 2 28013 fi 28014done 28015 done 28016IFS=$as_save_IFS 28017 28018 ;; 28019esac 28020fi 28021MAKEINDEX=$ac_cv_path_MAKEINDEX 28022if test -n "$MAKEINDEX"; then 28023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 28024$as_echo "$MAKEINDEX" >&6; } 28025else 28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28027$as_echo "no" >&6; } 28028fi 28029 28030 28031fi 28032if test -z "$ac_cv_path_MAKEINDEX"; then 28033 ac_pt_MAKEINDEX=$MAKEINDEX 28034 # Extract the first word of "makeindex", so it can be a program name with args. 28035set dummy makeindex; ac_word=$2 28036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28037$as_echo_n "checking for $ac_word... " >&6; } 28038if ${ac_cv_path_ac_pt_MAKEINDEX+:} false; then : 28039 $as_echo_n "(cached) " >&6 28040else 28041 case $ac_pt_MAKEINDEX in 28042 [\\/]* | ?:[\\/]*) 28043 ac_cv_path_ac_pt_MAKEINDEX="$ac_pt_MAKEINDEX" # Let the user override the test with a path. 28044 ;; 28045 *) 28046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28047for as_dir in $PATH 28048do 28049 IFS=$as_save_IFS 28050 test -z "$as_dir" && as_dir=. 28051 for ac_exec_ext in '' $ac_executable_extensions; do 28052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28053 ac_cv_path_ac_pt_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" 28054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28055 break 2 28056 fi 28057done 28058 done 28059IFS=$as_save_IFS 28060 28061 ;; 28062esac 28063fi 28064ac_pt_MAKEINDEX=$ac_cv_path_ac_pt_MAKEINDEX 28065if test -n "$ac_pt_MAKEINDEX"; then 28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MAKEINDEX" >&5 28067$as_echo "$ac_pt_MAKEINDEX" >&6; } 28068else 28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28070$as_echo "no" >&6; } 28071fi 28072 28073 if test "x$ac_pt_MAKEINDEX" = x; then 28074 MAKEINDEX="" 28075 else 28076 case $cross_compiling:$ac_tool_warned in 28077yes:) 28078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28080ac_tool_warned=yes ;; 28081esac 28082 MAKEINDEX=$ac_pt_MAKEINDEX 28083 fi 28084else 28085 MAKEINDEX="$ac_cv_path_MAKEINDEX" 28086fi 28087 28088 28089 28090 if test -n "$ac_tool_prefix"; then 28091 # Extract the first word of "${ac_tool_prefix}fig2dev", so it can be a program name with args. 28092set dummy ${ac_tool_prefix}fig2dev; ac_word=$2 28093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28094$as_echo_n "checking for $ac_word... " >&6; } 28095if ${ac_cv_path_FIG2DEV+:} false; then : 28096 $as_echo_n "(cached) " >&6 28097else 28098 case $FIG2DEV in 28099 [\\/]* | ?:[\\/]*) 28100 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path. 28101 ;; 28102 *) 28103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28104for as_dir in $PATH 28105do 28106 IFS=$as_save_IFS 28107 test -z "$as_dir" && as_dir=. 28108 for ac_exec_ext in '' $ac_executable_extensions; do 28109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28110 ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext" 28111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28112 break 2 28113 fi 28114done 28115 done 28116IFS=$as_save_IFS 28117 28118 ;; 28119esac 28120fi 28121FIG2DEV=$ac_cv_path_FIG2DEV 28122if test -n "$FIG2DEV"; then 28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5 28124$as_echo "$FIG2DEV" >&6; } 28125else 28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28127$as_echo "no" >&6; } 28128fi 28129 28130 28131fi 28132if test -z "$ac_cv_path_FIG2DEV"; then 28133 ac_pt_FIG2DEV=$FIG2DEV 28134 # Extract the first word of "fig2dev", so it can be a program name with args. 28135set dummy fig2dev; ac_word=$2 28136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28137$as_echo_n "checking for $ac_word... " >&6; } 28138if ${ac_cv_path_ac_pt_FIG2DEV+:} false; then : 28139 $as_echo_n "(cached) " >&6 28140else 28141 case $ac_pt_FIG2DEV in 28142 [\\/]* | ?:[\\/]*) 28143 ac_cv_path_ac_pt_FIG2DEV="$ac_pt_FIG2DEV" # Let the user override the test with a path. 28144 ;; 28145 *) 28146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28147for as_dir in $PATH 28148do 28149 IFS=$as_save_IFS 28150 test -z "$as_dir" && as_dir=. 28151 for ac_exec_ext in '' $ac_executable_extensions; do 28152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28153 ac_cv_path_ac_pt_FIG2DEV="$as_dir/$ac_word$ac_exec_ext" 28154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28155 break 2 28156 fi 28157done 28158 done 28159IFS=$as_save_IFS 28160 28161 ;; 28162esac 28163fi 28164ac_pt_FIG2DEV=$ac_cv_path_ac_pt_FIG2DEV 28165if test -n "$ac_pt_FIG2DEV"; then 28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_FIG2DEV" >&5 28167$as_echo "$ac_pt_FIG2DEV" >&6; } 28168else 28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28170$as_echo "no" >&6; } 28171fi 28172 28173 if test "x$ac_pt_FIG2DEV" = x; then 28174 FIG2DEV="" 28175 else 28176 case $cross_compiling:$ac_tool_warned in 28177yes:) 28178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28180ac_tool_warned=yes ;; 28181esac 28182 FIG2DEV=$ac_pt_FIG2DEV 28183 fi 28184else 28185 FIG2DEV="$ac_cv_path_FIG2DEV" 28186fi 28187 28188 28189 28190 if test -n "$ac_tool_prefix"; then 28191 # Extract the first word of "${ac_tool_prefix}gs", so it can be a program name with args. 28192set dummy ${ac_tool_prefix}gs; ac_word=$2 28193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28194$as_echo_n "checking for $ac_word... " >&6; } 28195if ${ac_cv_path_GS+:} false; then : 28196 $as_echo_n "(cached) " >&6 28197else 28198 case $GS in 28199 [\\/]* | ?:[\\/]*) 28200 ac_cv_path_GS="$GS" # Let the user override the test with a path. 28201 ;; 28202 *) 28203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28204for as_dir in $PATH 28205do 28206 IFS=$as_save_IFS 28207 test -z "$as_dir" && as_dir=. 28208 for ac_exec_ext in '' $ac_executable_extensions; do 28209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28210 ac_cv_path_GS="$as_dir/$ac_word$ac_exec_ext" 28211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28212 break 2 28213 fi 28214done 28215 done 28216IFS=$as_save_IFS 28217 28218 ;; 28219esac 28220fi 28221GS=$ac_cv_path_GS 28222if test -n "$GS"; then 28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5 28224$as_echo "$GS" >&6; } 28225else 28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28227$as_echo "no" >&6; } 28228fi 28229 28230 28231fi 28232if test -z "$ac_cv_path_GS"; then 28233 ac_pt_GS=$GS 28234 # Extract the first word of "gs", so it can be a program name with args. 28235set dummy gs; ac_word=$2 28236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28237$as_echo_n "checking for $ac_word... " >&6; } 28238if ${ac_cv_path_ac_pt_GS+:} false; then : 28239 $as_echo_n "(cached) " >&6 28240else 28241 case $ac_pt_GS in 28242 [\\/]* | ?:[\\/]*) 28243 ac_cv_path_ac_pt_GS="$ac_pt_GS" # Let the user override the test with a path. 28244 ;; 28245 *) 28246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28247for as_dir in $PATH 28248do 28249 IFS=$as_save_IFS 28250 test -z "$as_dir" && as_dir=. 28251 for ac_exec_ext in '' $ac_executable_extensions; do 28252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28253 ac_cv_path_ac_pt_GS="$as_dir/$ac_word$ac_exec_ext" 28254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28255 break 2 28256 fi 28257done 28258 done 28259IFS=$as_save_IFS 28260 28261 ;; 28262esac 28263fi 28264ac_pt_GS=$ac_cv_path_ac_pt_GS 28265if test -n "$ac_pt_GS"; then 28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GS" >&5 28267$as_echo "$ac_pt_GS" >&6; } 28268else 28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28270$as_echo "no" >&6; } 28271fi 28272 28273 if test "x$ac_pt_GS" = x; then 28274 GS="" 28275 else 28276 case $cross_compiling:$ac_tool_warned in 28277yes:) 28278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28280ac_tool_warned=yes ;; 28281esac 28282 GS=$ac_pt_GS 28283 fi 28284else 28285 GS="$ac_cv_path_GS" 28286fi 28287 28288 28289 28290 if test -n "$ac_tool_prefix"; then 28291 # Extract the first word of "${ac_tool_prefix}epstopdf", so it can be a program name with args. 28292set dummy ${ac_tool_prefix}epstopdf; ac_word=$2 28293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28294$as_echo_n "checking for $ac_word... " >&6; } 28295if ${ac_cv_path_EPSTOPDF+:} false; then : 28296 $as_echo_n "(cached) " >&6 28297else 28298 case $EPSTOPDF in 28299 [\\/]* | ?:[\\/]*) 28300 ac_cv_path_EPSTOPDF="$EPSTOPDF" # Let the user override the test with a path. 28301 ;; 28302 *) 28303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28304for as_dir in $PATH 28305do 28306 IFS=$as_save_IFS 28307 test -z "$as_dir" && as_dir=. 28308 for ac_exec_ext in '' $ac_executable_extensions; do 28309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28310 ac_cv_path_EPSTOPDF="$as_dir/$ac_word$ac_exec_ext" 28311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28312 break 2 28313 fi 28314done 28315 done 28316IFS=$as_save_IFS 28317 28318 ;; 28319esac 28320fi 28321EPSTOPDF=$ac_cv_path_EPSTOPDF 28322if test -n "$EPSTOPDF"; then 28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPSTOPDF" >&5 28324$as_echo "$EPSTOPDF" >&6; } 28325else 28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28327$as_echo "no" >&6; } 28328fi 28329 28330 28331fi 28332if test -z "$ac_cv_path_EPSTOPDF"; then 28333 ac_pt_EPSTOPDF=$EPSTOPDF 28334 # Extract the first word of "epstopdf", so it can be a program name with args. 28335set dummy epstopdf; ac_word=$2 28336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28337$as_echo_n "checking for $ac_word... " >&6; } 28338if ${ac_cv_path_ac_pt_EPSTOPDF+:} false; then : 28339 $as_echo_n "(cached) " >&6 28340else 28341 case $ac_pt_EPSTOPDF in 28342 [\\/]* | ?:[\\/]*) 28343 ac_cv_path_ac_pt_EPSTOPDF="$ac_pt_EPSTOPDF" # Let the user override the test with a path. 28344 ;; 28345 *) 28346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28347for as_dir in $PATH 28348do 28349 IFS=$as_save_IFS 28350 test -z "$as_dir" && as_dir=. 28351 for ac_exec_ext in '' $ac_executable_extensions; do 28352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28353 ac_cv_path_ac_pt_EPSTOPDF="$as_dir/$ac_word$ac_exec_ext" 28354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28355 break 2 28356 fi 28357done 28358 done 28359IFS=$as_save_IFS 28360 28361 ;; 28362esac 28363fi 28364ac_pt_EPSTOPDF=$ac_cv_path_ac_pt_EPSTOPDF 28365if test -n "$ac_pt_EPSTOPDF"; then 28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_EPSTOPDF" >&5 28367$as_echo "$ac_pt_EPSTOPDF" >&6; } 28368else 28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28370$as_echo "no" >&6; } 28371fi 28372 28373 if test "x$ac_pt_EPSTOPDF" = x; then 28374 EPSTOPDF="" 28375 else 28376 case $cross_compiling:$ac_tool_warned in 28377yes:) 28378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28380ac_tool_warned=yes ;; 28381esac 28382 EPSTOPDF=$ac_pt_EPSTOPDF 28383 fi 28384else 28385 EPSTOPDF="$ac_cv_path_EPSTOPDF" 28386fi 28387 28388 28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can build doxygen docs" >&5 28390$as_echo_n "checking if can build doxygen docs... " >&6; } 28391 if test "x$DOXYGEN" != "x" -a "x$PDFLATEX" != "x" -a "x$MAKEINDEX" != "x" -a "x$FIG2DEV" != "x" -a "x$GS" != "x" -a "x$EPSTOPDF" != "x"; then : 28392 hwloc_generate_doxs=yes 28393else 28394 hwloc_generate_doxs=no 28395fi 28396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_doxs" >&5 28397$as_echo "$hwloc_generate_doxs" >&6; } 28398 if test "x$hwloc_generate_doxs" = xyes -a "x$HWLOC_DOXYGEN_VERSION" = x1.6.2; then : 28399 hwloc_generate_doxs="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen 1.6.2 has broken short name support, disabling" >&5 28400$as_echo "$as_me: WARNING: doxygen 1.6.2 has broken short name support, disabling" >&2;} 28401fi 28402 if test "x$hwloc_generate_doxs" = xyes -a "x$HWLOC_DOXYGEN_VERSION" = x1.8.16 -a "$HWLOC_top_builddir" = "$HWLOC_top_srcdir"; then : 28403 hwloc_generate_doxs="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen 1.8.16 fails when building inside the source-tree, disabling" >&5 28404$as_echo "$as_me: WARNING: doxygen 1.8.16 fails when building inside the source-tree, disabling" >&2;} 28405fi 28406 28407 28408 28409 # Making the top-level README requires w3m or lynx. 28410 28411 if test -n "$ac_tool_prefix"; then 28412 # Extract the first word of "${ac_tool_prefix}w3m", so it can be a program name with args. 28413set dummy ${ac_tool_prefix}w3m; ac_word=$2 28414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28415$as_echo_n "checking for $ac_word... " >&6; } 28416if ${ac_cv_path_W3M+:} false; then : 28417 $as_echo_n "(cached) " >&6 28418else 28419 case $W3M in 28420 [\\/]* | ?:[\\/]*) 28421 ac_cv_path_W3M="$W3M" # Let the user override the test with a path. 28422 ;; 28423 *) 28424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28425for as_dir in $PATH 28426do 28427 IFS=$as_save_IFS 28428 test -z "$as_dir" && as_dir=. 28429 for ac_exec_ext in '' $ac_executable_extensions; do 28430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28431 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext" 28432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28433 break 2 28434 fi 28435done 28436 done 28437IFS=$as_save_IFS 28438 28439 ;; 28440esac 28441fi 28442W3M=$ac_cv_path_W3M 28443if test -n "$W3M"; then 28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5 28445$as_echo "$W3M" >&6; } 28446else 28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28448$as_echo "no" >&6; } 28449fi 28450 28451 28452fi 28453if test -z "$ac_cv_path_W3M"; then 28454 ac_pt_W3M=$W3M 28455 # Extract the first word of "w3m", so it can be a program name with args. 28456set dummy w3m; ac_word=$2 28457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28458$as_echo_n "checking for $ac_word... " >&6; } 28459if ${ac_cv_path_ac_pt_W3M+:} false; then : 28460 $as_echo_n "(cached) " >&6 28461else 28462 case $ac_pt_W3M in 28463 [\\/]* | ?:[\\/]*) 28464 ac_cv_path_ac_pt_W3M="$ac_pt_W3M" # Let the user override the test with a path. 28465 ;; 28466 *) 28467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28468for as_dir in $PATH 28469do 28470 IFS=$as_save_IFS 28471 test -z "$as_dir" && as_dir=. 28472 for ac_exec_ext in '' $ac_executable_extensions; do 28473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28474 ac_cv_path_ac_pt_W3M="$as_dir/$ac_word$ac_exec_ext" 28475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28476 break 2 28477 fi 28478done 28479 done 28480IFS=$as_save_IFS 28481 28482 ;; 28483esac 28484fi 28485ac_pt_W3M=$ac_cv_path_ac_pt_W3M 28486if test -n "$ac_pt_W3M"; then 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_W3M" >&5 28488$as_echo "$ac_pt_W3M" >&6; } 28489else 28490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28491$as_echo "no" >&6; } 28492fi 28493 28494 if test "x$ac_pt_W3M" = x; then 28495 W3M="" 28496 else 28497 case $cross_compiling:$ac_tool_warned in 28498yes:) 28499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28501ac_tool_warned=yes ;; 28502esac 28503 W3M=$ac_pt_W3M 28504 fi 28505else 28506 W3M="$ac_cv_path_W3M" 28507fi 28508 28509 28510 if test -n "$ac_tool_prefix"; then 28511 # Extract the first word of "${ac_tool_prefix}lynx", so it can be a program name with args. 28512set dummy ${ac_tool_prefix}lynx; ac_word=$2 28513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28514$as_echo_n "checking for $ac_word... " >&6; } 28515if ${ac_cv_path_LYNX+:} false; then : 28516 $as_echo_n "(cached) " >&6 28517else 28518 case $LYNX in 28519 [\\/]* | ?:[\\/]*) 28520 ac_cv_path_LYNX="$LYNX" # Let the user override the test with a path. 28521 ;; 28522 *) 28523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28524for as_dir in $PATH 28525do 28526 IFS=$as_save_IFS 28527 test -z "$as_dir" && as_dir=. 28528 for ac_exec_ext in '' $ac_executable_extensions; do 28529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28530 ac_cv_path_LYNX="$as_dir/$ac_word$ac_exec_ext" 28531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28532 break 2 28533 fi 28534done 28535 done 28536IFS=$as_save_IFS 28537 28538 ;; 28539esac 28540fi 28541LYNX=$ac_cv_path_LYNX 28542if test -n "$LYNX"; then 28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5 28544$as_echo "$LYNX" >&6; } 28545else 28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28547$as_echo "no" >&6; } 28548fi 28549 28550 28551fi 28552if test -z "$ac_cv_path_LYNX"; then 28553 ac_pt_LYNX=$LYNX 28554 # Extract the first word of "lynx", so it can be a program name with args. 28555set dummy lynx; ac_word=$2 28556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28557$as_echo_n "checking for $ac_word... " >&6; } 28558if ${ac_cv_path_ac_pt_LYNX+:} false; then : 28559 $as_echo_n "(cached) " >&6 28560else 28561 case $ac_pt_LYNX in 28562 [\\/]* | ?:[\\/]*) 28563 ac_cv_path_ac_pt_LYNX="$ac_pt_LYNX" # Let the user override the test with a path. 28564 ;; 28565 *) 28566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28567for as_dir in $PATH 28568do 28569 IFS=$as_save_IFS 28570 test -z "$as_dir" && as_dir=. 28571 for ac_exec_ext in '' $ac_executable_extensions; do 28572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28573 ac_cv_path_ac_pt_LYNX="$as_dir/$ac_word$ac_exec_ext" 28574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28575 break 2 28576 fi 28577done 28578 done 28579IFS=$as_save_IFS 28580 28581 ;; 28582esac 28583fi 28584ac_pt_LYNX=$ac_cv_path_ac_pt_LYNX 28585if test -n "$ac_pt_LYNX"; then 28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LYNX" >&5 28587$as_echo "$ac_pt_LYNX" >&6; } 28588else 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28590$as_echo "no" >&6; } 28591fi 28592 28593 if test "x$ac_pt_LYNX" = x; then 28594 LYNX="" 28595 else 28596 case $cross_compiling:$ac_tool_warned in 28597yes:) 28598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28600ac_tool_warned=yes ;; 28601esac 28602 LYNX=$ac_pt_LYNX 28603 fi 28604else 28605 LYNX="$ac_cv_path_LYNX" 28606fi 28607 28608 28609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if can build top-level README" >&5 28610$as_echo_n "checking if can build top-level README... " >&6; } 28611 if test "x$W3M" != "x"; then : 28612 hwloc_generate_readme=yes 28613 HWLOC_W3_GENERATOR=$W3M 28614else 28615 if test "x$LYNX" != "x"; then : 28616 hwloc_generate_readme=yes 28617 HWLOC_W3_GENERATOR="$LYNX -dump -nolist" 28618else 28619 hwloc_generate_readme=no 28620fi 28621fi 28622 28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_readme" >&5 28624$as_echo "$hwloc_generate_readme" >&6; } 28625 28626 # If any one of the above tools is missing, we will refuse to make dist. 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if will build doxygen docs" >&5 28628$as_echo_n "checking if will build doxygen docs... " >&6; } 28629 if test "x$hwloc_generate_doxs" = "xyes" -a "x$enable_doxygen" != "xno"; then : 28630 28631else 28632 hwloc_generate_doxs=no 28633fi 28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_doxs" >&5 28635$as_echo "$hwloc_generate_doxs" >&6; } 28636 28637 # See if we want to install the doxygen docs 28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if will install doxygen docs" >&5 28639$as_echo_n "checking if will install doxygen docs... " >&6; } 28640 if test "x$hwloc_generate_doxs" = "xyes" -o \ 28641 -f "$srcdir/doc/doxygen-doc/man/man3/hwloc_distrib.3" -a \ 28642 -f "$srcdir/doc/doxygen-doc/hwloc-a4.pdf" -a \ 28643 -f "$srcdir/doc/doxygen-doc/hwloc-letter.pdf"; then : 28644 hwloc_install_doxs=yes 28645else 28646 hwloc_install_doxs=no 28647fi 28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_install_doxs" >&5 28649$as_echo "$hwloc_install_doxs" >&6; } 28650 28651 # Generate some files for the docs 28652 ac_config_files="$ac_config_files doc/Makefile doc/examples/Makefile doc/doxygen-config.cfg" 28653 28654 28655 28656 cat <<EOF 28657 28658### 28659### Configuring hwloc command line utilities 28660### 28661EOF 28662 28663 28664 28665 # runstatedir only supported in autoconf >= 2.70 and in some backports 28666 if test "x${runstatedir}" != "x"; then 28667 HWLOC_runstatedir=${runstatedir} 28668 else 28669 HWLOC_runstatedir='${localstatedir}/run' 28670 fi 28671 28672 28673 # X11 support 28674 if test "$no_x" = yes; then 28675 # Not all programs may use this symbol, but it does not hurt to define it. 28676 28677$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 28678 28679 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 28680else 28681 if test -n "$x_includes"; then 28682 X_CFLAGS="$X_CFLAGS -I$x_includes" 28683 fi 28684 28685 # It would also be nice to do this for all -L options, not just this one. 28686 if test -n "$x_libraries"; then 28687 X_LIBS="$X_LIBS -L$x_libraries" 28688 # For Solaris; some versions of Sun CC require a space after -R and 28689 # others require no space. Words are not sufficient . . . . 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 28691$as_echo_n "checking whether -R must be followed by a space... " >&6; } 28692 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 28693 ac_xsave_c_werror_flag=$ac_c_werror_flag 28694 ac_c_werror_flag=yes 28695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28696/* end confdefs.h. */ 28697 28698int 28699main () 28700{ 28701 28702 ; 28703 return 0; 28704} 28705_ACEOF 28706if ac_fn_c_try_link "$LINENO"; then : 28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28708$as_echo "no" >&6; } 28709 X_LIBS="$X_LIBS -R$x_libraries" 28710else 28711 LIBS="$ac_xsave_LIBS -R $x_libraries" 28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28713/* end confdefs.h. */ 28714 28715int 28716main () 28717{ 28718 28719 ; 28720 return 0; 28721} 28722_ACEOF 28723if ac_fn_c_try_link "$LINENO"; then : 28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28725$as_echo "yes" >&6; } 28726 X_LIBS="$X_LIBS -R $x_libraries" 28727else 28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 28729$as_echo "neither works" >&6; } 28730fi 28731rm -f core conftest.err conftest.$ac_objext \ 28732 conftest$ac_exeext conftest.$ac_ext 28733fi 28734rm -f core conftest.err conftest.$ac_objext \ 28735 conftest$ac_exeext conftest.$ac_ext 28736 ac_c_werror_flag=$ac_xsave_c_werror_flag 28737 LIBS=$ac_xsave_LIBS 28738 fi 28739 28740 # Check for system-dependent libraries X programs must link with. 28741 # Do this before checking for the system-independent R6 libraries 28742 # (-lICE), since we may need -lsocket or whatever for X linking. 28743 28744 if test "$ISC" = yes; then 28745 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 28746 else 28747 # Martyn Johnson says this is needed for Ultrix, if the X 28748 # libraries were built with DECnet support. And Karl Berry says 28749 # the Alpha needs dnet_stub (dnet does not exist). 28750 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 28751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28752/* end confdefs.h. */ 28753 28754/* Override any GCC internal prototype to avoid an error. 28755 Use char because int might match the return type of a GCC 28756 builtin and then its argument prototype would still apply. */ 28757#ifdef __cplusplus 28758extern "C" 28759#endif 28760char XOpenDisplay (); 28761int 28762main () 28763{ 28764return XOpenDisplay (); 28765 ; 28766 return 0; 28767} 28768_ACEOF 28769if ac_fn_c_try_link "$LINENO"; then : 28770 28771else 28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 28773$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 28774if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 28775 $as_echo_n "(cached) " >&6 28776else 28777 ac_check_lib_save_LIBS=$LIBS 28778LIBS="-ldnet $LIBS" 28779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28780/* end confdefs.h. */ 28781 28782/* Override any GCC internal prototype to avoid an error. 28783 Use char because int might match the return type of a GCC 28784 builtin and then its argument prototype would still apply. */ 28785#ifdef __cplusplus 28786extern "C" 28787#endif 28788char dnet_ntoa (); 28789int 28790main () 28791{ 28792return dnet_ntoa (); 28793 ; 28794 return 0; 28795} 28796_ACEOF 28797if ac_fn_c_try_link "$LINENO"; then : 28798 ac_cv_lib_dnet_dnet_ntoa=yes 28799else 28800 ac_cv_lib_dnet_dnet_ntoa=no 28801fi 28802rm -f core conftest.err conftest.$ac_objext \ 28803 conftest$ac_exeext conftest.$ac_ext 28804LIBS=$ac_check_lib_save_LIBS 28805fi 28806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 28807$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 28808if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 28809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 28810fi 28811 28812 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 28814$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 28815if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 28816 $as_echo_n "(cached) " >&6 28817else 28818 ac_check_lib_save_LIBS=$LIBS 28819LIBS="-ldnet_stub $LIBS" 28820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28821/* end confdefs.h. */ 28822 28823/* Override any GCC internal prototype to avoid an error. 28824 Use char because int might match the return type of a GCC 28825 builtin and then its argument prototype would still apply. */ 28826#ifdef __cplusplus 28827extern "C" 28828#endif 28829char dnet_ntoa (); 28830int 28831main () 28832{ 28833return dnet_ntoa (); 28834 ; 28835 return 0; 28836} 28837_ACEOF 28838if ac_fn_c_try_link "$LINENO"; then : 28839 ac_cv_lib_dnet_stub_dnet_ntoa=yes 28840else 28841 ac_cv_lib_dnet_stub_dnet_ntoa=no 28842fi 28843rm -f core conftest.err conftest.$ac_objext \ 28844 conftest$ac_exeext conftest.$ac_ext 28845LIBS=$ac_check_lib_save_LIBS 28846fi 28847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 28848$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 28849if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 28850 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 28851fi 28852 28853 fi 28854fi 28855rm -f core conftest.err conftest.$ac_objext \ 28856 conftest$ac_exeext conftest.$ac_ext 28857 LIBS="$ac_xsave_LIBS" 28858 28859 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 28860 # to get the SysV transport functions. 28861 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 28862 # needs -lnsl. 28863 # The nsl library prevents programs from opening the X display 28864 # on Irix 5.2, according to T.E. Dickey. 28865 # The functions gethostbyname, getservbyname, and inet_addr are 28866 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 28867 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 28868if test "x$ac_cv_func_gethostbyname" = xyes; then : 28869 28870fi 28871 28872 if test $ac_cv_func_gethostbyname = no; then 28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 28874$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 28875if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 28876 $as_echo_n "(cached) " >&6 28877else 28878 ac_check_lib_save_LIBS=$LIBS 28879LIBS="-lnsl $LIBS" 28880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28881/* end confdefs.h. */ 28882 28883/* Override any GCC internal prototype to avoid an error. 28884 Use char because int might match the return type of a GCC 28885 builtin and then its argument prototype would still apply. */ 28886#ifdef __cplusplus 28887extern "C" 28888#endif 28889char gethostbyname (); 28890int 28891main () 28892{ 28893return gethostbyname (); 28894 ; 28895 return 0; 28896} 28897_ACEOF 28898if ac_fn_c_try_link "$LINENO"; then : 28899 ac_cv_lib_nsl_gethostbyname=yes 28900else 28901 ac_cv_lib_nsl_gethostbyname=no 28902fi 28903rm -f core conftest.err conftest.$ac_objext \ 28904 conftest$ac_exeext conftest.$ac_ext 28905LIBS=$ac_check_lib_save_LIBS 28906fi 28907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 28908$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 28909if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 28910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 28911fi 28912 28913 if test $ac_cv_lib_nsl_gethostbyname = no; then 28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 28915$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 28916if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 28917 $as_echo_n "(cached) " >&6 28918else 28919 ac_check_lib_save_LIBS=$LIBS 28920LIBS="-lbsd $LIBS" 28921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28922/* end confdefs.h. */ 28923 28924/* Override any GCC internal prototype to avoid an error. 28925 Use char because int might match the return type of a GCC 28926 builtin and then its argument prototype would still apply. */ 28927#ifdef __cplusplus 28928extern "C" 28929#endif 28930char gethostbyname (); 28931int 28932main () 28933{ 28934return gethostbyname (); 28935 ; 28936 return 0; 28937} 28938_ACEOF 28939if ac_fn_c_try_link "$LINENO"; then : 28940 ac_cv_lib_bsd_gethostbyname=yes 28941else 28942 ac_cv_lib_bsd_gethostbyname=no 28943fi 28944rm -f core conftest.err conftest.$ac_objext \ 28945 conftest$ac_exeext conftest.$ac_ext 28946LIBS=$ac_check_lib_save_LIBS 28947fi 28948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 28949$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 28950if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 28951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 28952fi 28953 28954 fi 28955 fi 28956 28957 # lieder@skyler.mavd.honeywell.com says without -lsocket, 28958 # socket/setsockopt and other routines are undefined under SCO ODT 28959 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 28960 # on later versions), says Simon Leinen: it contains gethostby* 28961 # variants that don't use the name server (or something). -lsocket 28962 # must be given before -lnsl if both are needed. We assume that 28963 # if connect needs -lnsl, so does gethostbyname. 28964 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 28965if test "x$ac_cv_func_connect" = xyes; then : 28966 28967fi 28968 28969 if test $ac_cv_func_connect = no; then 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 28971$as_echo_n "checking for connect in -lsocket... " >&6; } 28972if ${ac_cv_lib_socket_connect+:} false; then : 28973 $as_echo_n "(cached) " >&6 28974else 28975 ac_check_lib_save_LIBS=$LIBS 28976LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 28977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28978/* end confdefs.h. */ 28979 28980/* Override any GCC internal prototype to avoid an error. 28981 Use char because int might match the return type of a GCC 28982 builtin and then its argument prototype would still apply. */ 28983#ifdef __cplusplus 28984extern "C" 28985#endif 28986char connect (); 28987int 28988main () 28989{ 28990return connect (); 28991 ; 28992 return 0; 28993} 28994_ACEOF 28995if ac_fn_c_try_link "$LINENO"; then : 28996 ac_cv_lib_socket_connect=yes 28997else 28998 ac_cv_lib_socket_connect=no 28999fi 29000rm -f core conftest.err conftest.$ac_objext \ 29001 conftest$ac_exeext conftest.$ac_ext 29002LIBS=$ac_check_lib_save_LIBS 29003fi 29004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 29005$as_echo "$ac_cv_lib_socket_connect" >&6; } 29006if test "x$ac_cv_lib_socket_connect" = xyes; then : 29007 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 29008fi 29009 29010 fi 29011 29012 # Guillermo Gomez says -lposix is necessary on A/UX. 29013 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 29014if test "x$ac_cv_func_remove" = xyes; then : 29015 29016fi 29017 29018 if test $ac_cv_func_remove = no; then 29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 29020$as_echo_n "checking for remove in -lposix... " >&6; } 29021if ${ac_cv_lib_posix_remove+:} false; then : 29022 $as_echo_n "(cached) " >&6 29023else 29024 ac_check_lib_save_LIBS=$LIBS 29025LIBS="-lposix $LIBS" 29026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29027/* end confdefs.h. */ 29028 29029/* Override any GCC internal prototype to avoid an error. 29030 Use char because int might match the return type of a GCC 29031 builtin and then its argument prototype would still apply. */ 29032#ifdef __cplusplus 29033extern "C" 29034#endif 29035char remove (); 29036int 29037main () 29038{ 29039return remove (); 29040 ; 29041 return 0; 29042} 29043_ACEOF 29044if ac_fn_c_try_link "$LINENO"; then : 29045 ac_cv_lib_posix_remove=yes 29046else 29047 ac_cv_lib_posix_remove=no 29048fi 29049rm -f core conftest.err conftest.$ac_objext \ 29050 conftest$ac_exeext conftest.$ac_ext 29051LIBS=$ac_check_lib_save_LIBS 29052fi 29053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 29054$as_echo "$ac_cv_lib_posix_remove" >&6; } 29055if test "x$ac_cv_lib_posix_remove" = xyes; then : 29056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 29057fi 29058 29059 fi 29060 29061 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 29062 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 29063if test "x$ac_cv_func_shmat" = xyes; then : 29064 29065fi 29066 29067 if test $ac_cv_func_shmat = no; then 29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 29069$as_echo_n "checking for shmat in -lipc... " >&6; } 29070if ${ac_cv_lib_ipc_shmat+:} false; then : 29071 $as_echo_n "(cached) " >&6 29072else 29073 ac_check_lib_save_LIBS=$LIBS 29074LIBS="-lipc $LIBS" 29075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29076/* end confdefs.h. */ 29077 29078/* Override any GCC internal prototype to avoid an error. 29079 Use char because int might match the return type of a GCC 29080 builtin and then its argument prototype would still apply. */ 29081#ifdef __cplusplus 29082extern "C" 29083#endif 29084char shmat (); 29085int 29086main () 29087{ 29088return shmat (); 29089 ; 29090 return 0; 29091} 29092_ACEOF 29093if ac_fn_c_try_link "$LINENO"; then : 29094 ac_cv_lib_ipc_shmat=yes 29095else 29096 ac_cv_lib_ipc_shmat=no 29097fi 29098rm -f core conftest.err conftest.$ac_objext \ 29099 conftest$ac_exeext conftest.$ac_ext 29100LIBS=$ac_check_lib_save_LIBS 29101fi 29102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 29103$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 29104if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 29105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 29106fi 29107 29108 fi 29109 fi 29110 29111 # Check for libraries that X11R6 Xt/Xaw programs need. 29112 ac_save_LDFLAGS=$LDFLAGS 29113 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 29114 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 29115 # check for ICE first), but we must link in the order -lSM -lICE or 29116 # we get undefined symbols. So assume we have SM if we have ICE. 29117 # These have to be linked with before -lX11, unlike the other 29118 # libraries we check for below, so use a different variable. 29119 # John Interrante, Karl Berry 29120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 29121$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 29122if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 29123 $as_echo_n "(cached) " >&6 29124else 29125 ac_check_lib_save_LIBS=$LIBS 29126LIBS="-lICE $X_EXTRA_LIBS $LIBS" 29127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29128/* end confdefs.h. */ 29129 29130/* Override any GCC internal prototype to avoid an error. 29131 Use char because int might match the return type of a GCC 29132 builtin and then its argument prototype would still apply. */ 29133#ifdef __cplusplus 29134extern "C" 29135#endif 29136char IceConnectionNumber (); 29137int 29138main () 29139{ 29140return IceConnectionNumber (); 29141 ; 29142 return 0; 29143} 29144_ACEOF 29145if ac_fn_c_try_link "$LINENO"; then : 29146 ac_cv_lib_ICE_IceConnectionNumber=yes 29147else 29148 ac_cv_lib_ICE_IceConnectionNumber=no 29149fi 29150rm -f core conftest.err conftest.$ac_objext \ 29151 conftest$ac_exeext conftest.$ac_ext 29152LIBS=$ac_check_lib_save_LIBS 29153fi 29154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 29155$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 29156if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 29157 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 29158fi 29159 29160 LDFLAGS=$ac_save_LDFLAGS 29161 29162fi 29163 29164 29165 CPPFLAGS_save=$CPPFLAGS 29166 LIBS_save=$LIBS 29167 29168 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 29169 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS" 29170 for ac_header in X11/Xlib.h 29171do : 29172 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" 29173if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : 29174 cat >>confdefs.h <<_ACEOF 29175#define HAVE_X11_XLIB_H 1 29176_ACEOF 29177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 29178$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } 29179if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : 29180 $as_echo_n "(cached) " >&6 29181else 29182 ac_check_lib_save_LIBS=$LIBS 29183LIBS="-lX11 $LIBS" 29184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29185/* end confdefs.h. */ 29186 29187/* Override any GCC internal prototype to avoid an error. 29188 Use char because int might match the return type of a GCC 29189 builtin and then its argument prototype would still apply. */ 29190#ifdef __cplusplus 29191extern "C" 29192#endif 29193char XOpenDisplay (); 29194int 29195main () 29196{ 29197return XOpenDisplay (); 29198 ; 29199 return 0; 29200} 29201_ACEOF 29202if ac_fn_c_try_link "$LINENO"; then : 29203 ac_cv_lib_X11_XOpenDisplay=yes 29204else 29205 ac_cv_lib_X11_XOpenDisplay=no 29206fi 29207rm -f core conftest.err conftest.$ac_objext \ 29208 conftest$ac_exeext conftest.$ac_ext 29209LIBS=$ac_check_lib_save_LIBS 29210fi 29211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 29212$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } 29213if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : 29214 for ac_header in X11/Xutil.h 29215do : 29216 ac_fn_c_check_header_compile "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "#include <X11/Xlib.h> 29217" 29218if test "x$ac_cv_header_X11_Xutil_h" = xyes; then : 29219 cat >>confdefs.h <<_ACEOF 29220#define HAVE_X11_XUTIL_H 1 29221_ACEOF 29222 for ac_header in X11/keysym.h 29223do : 29224 ac_fn_c_check_header_mongrel "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default" 29225if test "x$ac_cv_header_X11_keysym_h" = xyes; then : 29226 cat >>confdefs.h <<_ACEOF 29227#define HAVE_X11_KEYSYM_H 1 29228_ACEOF 29229 29230$as_echo "#define HWLOC_HAVE_X11_KEYSYM 1" >>confdefs.h 29231 29232 hwloc_x11_keysym_happy=yes 29233 HWLOC_X11_CPPFLAGS="$X_CFLAGS" 29234 29235 HWLOC_X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" 29236 29237fi 29238 29239done 29240 29241 29242fi 29243 29244done 29245 29246 29247fi 29248 29249 29250fi 29251 29252done 29253 29254 CPPFLAGS=$CPPFLAGS_save 29255 LIBS=$LIBS_save 29256 29257 # Cairo support 29258 hwloc_cairo_happy=no 29259 if test "x$enable_cairo" != "xno"; then 29260 29261 29262 HWLOC_pkg_failed=no 29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 29264$as_echo_n "checking for CAIRO... " >&6; } 29265 29266 if test -n "$PKG_CONFIG"; then 29267 if test -n "$HWLOC_CAIRO_CFLAGS"; then 29268 HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS="$HWLOC_CAIRO_CFLAGS" 29269 else 29270 if test -n "$PKG_CONFIG" && \ 29271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cairo\""; } >&5 29272 ($PKG_CONFIG --exists --silence-errors "cairo") 2>&5 29273 ac_status=$? 29274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29275 test $ac_status = 0; }; then 29276 HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null` 29277 else 29278 HWLOC_pkg_failed=yes 29279fi 29280 fi 29281else 29282 HWLOC_pkg_failed=untried 29283fi 29284 29285 if test -n "$PKG_CONFIG"; then 29286 if test -n "$HWLOC_CAIRO_LIBS"; then 29287 HWLOC_pkg_cv_HWLOC_CAIRO_LIBS="$HWLOC_CAIRO_LIBS" 29288 else 29289 if test -n "$PKG_CONFIG" && \ 29290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cairo\""; } >&5 29291 ($PKG_CONFIG --exists --silence-errors "cairo") 2>&5 29292 ac_status=$? 29293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29294 test $ac_status = 0; }; then 29295 HWLOC_pkg_cv_HWLOC_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null` 29296 else 29297 HWLOC_pkg_failed=yes 29298fi 29299 fi 29300else 29301 HWLOC_pkg_failed=untried 29302fi 29303 29304 29305 29306 29307 # Check for failure of pkg-config 29308 if test $HWLOC_pkg_failed = yes; then 29309 29310if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29311 HWLOC_pkg_short_errors_supported=yes 29312else 29313 HWLOC_pkg_short_errors_supported=no 29314fi 29315 if test $HWLOC_pkg_short_errors_supported = yes; then 29316 HWLOC_CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo" 2>&1` 29317 else 29318 HWLOC_CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo" 2>&1` 29319 fi 29320 # Put the nasty error message in config.log where it belongs 29321 echo "$HWLOC_CAIRO_PKG_ERRORS" >&5 29322 29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29324$as_echo "no" >&6; } 29325 hwloc_cairo_happy=no 29326 elif test $HWLOC_pkg_failed = untried; then 29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 29328$as_echo "cannot check without pkg-config" >&6; } 29329 hwloc_cairo_happy=no 29330 else 29331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29332$as_echo "yes" >&6; } 29333 29334 # If we got good results from pkg-config, check that they 29335 # actually work (i.e., that we can link against the resulting 29336 # $LIBS). The canonical example why we do this is if 29337 # pkg-config returns 64 bit libraries but ./configure was run 29338 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid 29339 # results, but we'll fail if we try to link. So detect that 29340 # failure now. 29341 # There are also cases on Mac where pkg-config returns paths 29342 # that do not actually exists until some magic is applied. 29343 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php 29344 # So check whether we find the header as well. 29345 hwloc_cflags_save=$CFLAGS 29346 hwloc_cppflags_save=$CPPFLAGS 29347 hwloc_libs_save=$LIBS 29348 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS" 29349 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS" 29350 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CAIRO_LIBS" 29351 ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default" 29352if test "x$ac_cv_header_cairo_h" = xyes; then : 29353 29354 ac_fn_c_check_func "$LINENO" "cairo_fill" "ac_cv_func_cairo_fill" 29355if test "x$ac_cv_func_cairo_fill" = xyes; then : 29356 hwloc_result=yes 29357else 29358 hwloc_result=no 29359fi 29360 29361 29362else 29363 hwloc_result=no 29364fi 29365 29366 29367 CFLAGS=$hwloc_cflags_save 29368 CPPFLAGS=$hwloc_cppflags_save 29369 LIBS=$hwloc_libs_save 29370 29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final CAIRO support" >&5 29372$as_echo_n "checking for final CAIRO support... " >&6; } 29373 if test "$hwloc_result" = "yes"; then : 29374 HWLOC_CAIRO_CFLAGS=$HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS 29375 HWLOC_CAIRO_LIBS=$HWLOC_pkg_cv_HWLOC_CAIRO_LIBS 29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29377$as_echo "yes" >&6; } 29378 hwloc_cairo_happy=yes 29379else 29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29381$as_echo "no" >&6; } 29382 hwloc_cairo_happy=no 29383fi 29384 fi 29385 fi 29386 29387 if test "x$hwloc_cairo_happy" = "xyes"; then 29388 29389$as_echo "#define HWLOC_HAVE_CAIRO 1" >>confdefs.h 29390 29391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstopo Cairo/X11 interactive graphical output is supported" >&5 29392$as_echo_n "checking whether lstopo Cairo/X11 interactive graphical output is supported... " >&6; } 29393 if test "x$hwloc_x11_keysym_happy" = xyes; then 29394 save_CPPFLAGS="$CPPFLAGS" 29395 CPPFLAGS="$CPPFLAGS $HWLOC_CAIRO_CFLAGS $HWLOC_X11_CPPFLAGS" 29396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29397/* end confdefs.h. */ 29398 29399 29400 #include <cairo.h> 29401 29402int 29403main () 29404{ 29405 29406 #ifndef CAIRO_HAS_XLIB_SURFACE 29407 #error 29408 #endif 29409 29410 ; 29411 return 0; 29412} 29413 29414_ACEOF 29415if ac_fn_c_try_cpp "$LINENO"; then : 29416 29417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29418$as_echo "yes" >&6; } 29419 lstopo_have_x11=yes 29420 29421$as_echo "#define LSTOPO_HAVE_X11 1" >>confdefs.h 29422 29423 29424else 29425 29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (missing CAIRO_HAS_XLIB_SURFACE)" >&5 29427$as_echo "no (missing CAIRO_HAS_XLIB_SURFACE)" >&6; } 29428 29429fi 29430rm -f conftest.err conftest.i conftest.$ac_ext 29431 CPPFLAGS="$save_CPPFLAGS" 29432 else 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (missing X11)" >&5 29434$as_echo "no (missing X11)" >&6; } 29435 fi 29436 else 29437 if test "$enable_cairo" = "yes"; then : 29438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-cairo requested, but Cairo/X11 support was not found" >&5 29439$as_echo "$as_me: WARNING: --enable-cairo requested, but Cairo/X11 support was not found" >&2;} 29440 as_fn_error $? "Cannot continue" "$LINENO" 5 29441fi 29442 fi 29443 29444 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "#include <wchar.h> 29445" 29446if test "x$ac_cv_type_wchar_t" = xyes; then : 29447 29448cat >>confdefs.h <<_ACEOF 29449#define HAVE_WCHAR_T 1 29450_ACEOF 29451 29452 29453 for ac_func in putwc 29454do : 29455 ac_fn_c_check_func "$LINENO" "putwc" "ac_cv_func_putwc" 29456if test "x$ac_cv_func_putwc" = xyes; then : 29457 cat >>confdefs.h <<_ACEOF 29458#define HAVE_PUTWC 1 29459_ACEOF 29460 29461fi 29462done 29463 29464 29465fi 29466 29467 29468 HWLOC_XML_LOCALIZED=1 29469 for ac_header in locale.h xlocale.h 29470do : 29471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29472ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29474 cat >>confdefs.h <<_ACEOF 29475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29476_ACEOF 29477 29478 for ac_func in setlocale 29479do : 29480 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 29481if test "x$ac_cv_func_setlocale" = xyes; then : 29482 cat >>confdefs.h <<_ACEOF 29483#define HAVE_SETLOCALE 1 29484_ACEOF 29485 29486fi 29487done 29488 29489 for ac_func in uselocale 29490do : 29491 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale" 29492if test "x$ac_cv_func_uselocale" = xyes; then : 29493 cat >>confdefs.h <<_ACEOF 29494#define HAVE_USELOCALE 1 29495_ACEOF 29496 HWLOC_XML_LOCALIZED=0 29497fi 29498done 29499 29500 29501fi 29502 29503done 29504 29505 29506 for ac_header in langinfo.h 29507do : 29508 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 29509if test "x$ac_cv_header_langinfo_h" = xyes; then : 29510 cat >>confdefs.h <<_ACEOF 29511#define HAVE_LANGINFO_H 1 29512_ACEOF 29513 29514 for ac_func in nl_langinfo 29515do : 29516 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 29517if test "x$ac_cv_func_nl_langinfo" = xyes; then : 29518 cat >>confdefs.h <<_ACEOF 29519#define HAVE_NL_LANGINFO 1 29520_ACEOF 29521 29522fi 29523done 29524 29525 29526fi 29527 29528done 29529 29530 hwloc_old_LIBS="$LIBS" 29531 chosen_curses="" 29532 for curses in ncurses curses 29533 do 29534 for lib in "" -ltermcap -l${curses}w -l$curses -ltinfo 29535 do 29536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap support using $curses and $lib" >&5 29537$as_echo_n "checking termcap support using $curses and $lib... " >&6; } 29538 LIBS="$hwloc_old_LIBS $lib" 29539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29540/* end confdefs.h. */ 29541 29542#include <$curses.h> 29543#include <term.h> 29544 29545int 29546main () 29547{ 29548tparm(NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0) 29549 ; 29550 return 0; 29551} 29552_ACEOF 29553if ac_fn_c_try_link "$LINENO"; then : 29554 29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29556$as_echo "yes" >&6; } 29557 HWLOC_TERMCAP_LIBS="$LIBS" 29558 29559 29560$as_echo "#define HWLOC_HAVE_LIBTERMCAP 1" >>confdefs.h 29561 29562 chosen_curses=$curses 29563 29564else 29565 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29567$as_echo "no" >&6; } 29568 29569fi 29570rm -f core conftest.err conftest.$ac_objext \ 29571 conftest$ac_exeext conftest.$ac_ext 29572 test "x$chosen_curses" != "x" && break 29573 done 29574 test "x$chosen_curses" != "x" && break 29575 done 29576 if test "$chosen_curses" = ncurses 29577 then 29578 29579$as_echo "#define HWLOC_USE_NCURSES 1" >>confdefs.h 29580 29581 fi 29582 LIBS="$hwloc_old_LIBS" 29583 unset hwloc_old_LIBS 29584 29585 29586 29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5 29588$as_echo_n "checking whether diff accepts -u... " >&6; } 29589 if $DIFF -u /dev/null /dev/null 2> /dev/null 29590 then 29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29592$as_echo "yes" >&6; } 29593 HWLOC_DIFF_U="-u" 29594 else 29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29596$as_echo "no" >&6; } 29597 HWLOC_DIFF_U="" 29598 fi 29599 29600 29601 29602 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -w" >&5 29604$as_echo_n "checking whether diff accepts -w... " >&6; } 29605 if $DIFF -w /dev/null /dev/null 2> /dev/null 29606 then 29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29608$as_echo "yes" >&6; } 29609 HWLOC_DIFF_W="-w" 29610 else 29611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29612$as_echo "no" >&6; } 29613 HWLOC_DIFF_W="" 29614 fi 29615 29616 29617 29618 # Solaris needs -lsocket for socket/bind/... in hwloc-ps 29619 ac_fn_c_check_decl "$LINENO" "bind" "ac_cv_have_decl_bind" "#include <sys/socket.h> 29620" 29621if test "x$ac_cv_have_decl_bind" = xyes; then : 29622 ac_have_decl=1 29623else 29624 ac_have_decl=0 29625fi 29626 29627cat >>confdefs.h <<_ACEOF 29628#define HAVE_DECL_BIND $ac_have_decl 29629_ACEOF 29630if test $ac_have_decl = 1; then : 29631 29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 29633$as_echo_n "checking for bind in -lsocket... " >&6; } 29634if ${ac_cv_lib_socket_bind+:} false; then : 29635 $as_echo_n "(cached) " >&6 29636else 29637 ac_check_lib_save_LIBS=$LIBS 29638LIBS="-lsocket $LIBS" 29639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29640/* end confdefs.h. */ 29641 29642/* Override any GCC internal prototype to avoid an error. 29643 Use char because int might match the return type of a GCC 29644 builtin and then its argument prototype would still apply. */ 29645#ifdef __cplusplus 29646extern "C" 29647#endif 29648char bind (); 29649int 29650main () 29651{ 29652return bind (); 29653 ; 29654 return 0; 29655} 29656_ACEOF 29657if ac_fn_c_try_link "$LINENO"; then : 29658 ac_cv_lib_socket_bind=yes 29659else 29660 ac_cv_lib_socket_bind=no 29661fi 29662rm -f core conftest.err conftest.$ac_objext \ 29663 conftest$ac_exeext conftest.$ac_ext 29664LIBS=$ac_check_lib_save_LIBS 29665fi 29666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 29667$as_echo "$ac_cv_lib_socket_bind" >&6; } 29668if test "x$ac_cv_lib_socket_bind" = xyes; then : 29669 need_libsocket=yes 29670fi 29671 29672 29673fi 29674 29675 if test x$need_libsocket = xyes; then 29676 # keep -lsocket first in case there's also -lnsl which cannot be before -lsocket 29677 HWLOC_PS_LIBS="-lsocket $HWLOC_PS_LIBS" 29678 fi 29679 29680 29681 for ac_header in time.h 29682do : 29683 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 29684if test "x$ac_cv_header_time_h" = xyes; then : 29685 cat >>confdefs.h <<_ACEOF 29686#define HAVE_TIME_H 1 29687_ACEOF 29688 29689 for ac_func in clock_gettime 29690do : 29691 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 29692if test "x$ac_cv_func_clock_gettime" = xyes; then : 29693 cat >>confdefs.h <<_ACEOF 29694#define HAVE_CLOCK_GETTIME 1 29695_ACEOF 29696 29697fi 29698done 29699 29700 29701fi 29702 29703done 29704 29705 29706 # Only generate this if we're building the utilities 29707 # Even the netloc library Makefile is here because 29708 # we don't embed libnetloc yet, it's useless without tools 29709 ac_config_files="$ac_config_files utils/Makefile utils/hwloc/Makefile utils/lstopo/Makefile hwloc.pc netloc/Makefile utils/netloc/infiniband/Makefile utils/netloc/draw/Makefile utils/netloc/scotch/Makefile utils/netloc/mpi/Makefile netloc.pc netlocscotch.pc" 29710 29711 29712 29713 cat <<EOF 29714 29715### 29716### Configuring tests 29717### 29718EOF 29719 29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 29721$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 29722if ${ac_cv_lib_pthread_pthread_self+:} false; then : 29723 $as_echo_n "(cached) " >&6 29724else 29725 ac_check_lib_save_LIBS=$LIBS 29726LIBS="-lpthread $LIBS" 29727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29728/* end confdefs.h. */ 29729 29730/* Override any GCC internal prototype to avoid an error. 29731 Use char because int might match the return type of a GCC 29732 builtin and then its argument prototype would still apply. */ 29733#ifdef __cplusplus 29734extern "C" 29735#endif 29736char pthread_self (); 29737int 29738main () 29739{ 29740return pthread_self (); 29741 ; 29742 return 0; 29743} 29744_ACEOF 29745if ac_fn_c_try_link "$LINENO"; then : 29746 ac_cv_lib_pthread_pthread_self=yes 29747else 29748 ac_cv_lib_pthread_pthread_self=no 29749fi 29750rm -f core conftest.err conftest.$ac_objext \ 29751 conftest$ac_exeext conftest.$ac_ext 29752LIBS=$ac_check_lib_save_LIBS 29753fi 29754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 29755$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 29756if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then : 29757 hwloc_have_pthread=yes 29758fi 29759 29760 29761 29762 29763 HWLOC_pkg_failed=no 29764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NUMA" >&5 29765$as_echo_n "checking for NUMA... " >&6; } 29766 29767 if test -n "$PKG_CONFIG"; then 29768 if test -n "$HWLOC_NUMA_CFLAGS"; then 29769 HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS="$HWLOC_NUMA_CFLAGS" 29770 else 29771 if test -n "$PKG_CONFIG" && \ 29772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"numa\""; } >&5 29773 ($PKG_CONFIG --exists --silence-errors "numa") 2>&5 29774 ac_status=$? 29775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29776 test $ac_status = 0; }; then 29777 HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS=`$PKG_CONFIG --cflags "numa" 2>/dev/null` 29778 else 29779 HWLOC_pkg_failed=yes 29780fi 29781 fi 29782else 29783 HWLOC_pkg_failed=untried 29784fi 29785 29786 if test -n "$PKG_CONFIG"; then 29787 if test -n "$HWLOC_NUMA_LIBS"; then 29788 HWLOC_pkg_cv_HWLOC_NUMA_LIBS="$HWLOC_NUMA_LIBS" 29789 else 29790 if test -n "$PKG_CONFIG" && \ 29791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"numa\""; } >&5 29792 ($PKG_CONFIG --exists --silence-errors "numa") 2>&5 29793 ac_status=$? 29794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29795 test $ac_status = 0; }; then 29796 HWLOC_pkg_cv_HWLOC_NUMA_LIBS=`$PKG_CONFIG --libs "numa" 2>/dev/null` 29797 else 29798 HWLOC_pkg_failed=yes 29799fi 29800 fi 29801else 29802 HWLOC_pkg_failed=untried 29803fi 29804 29805 29806 29807 29808 # Check for failure of pkg-config 29809 if test $HWLOC_pkg_failed = yes; then 29810 29811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29812 HWLOC_pkg_short_errors_supported=yes 29813else 29814 HWLOC_pkg_short_errors_supported=no 29815fi 29816 if test $HWLOC_pkg_short_errors_supported = yes; then 29817 HWLOC_NUMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "numa" 2>&1` 29818 else 29819 HWLOC_NUMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "numa" 2>&1` 29820 fi 29821 # Put the nasty error message in config.log where it belongs 29822 echo "$HWLOC_NUMA_PKG_ERRORS" >&5 29823 29824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29825$as_echo "no" >&6; } 29826 29827 # libnuma didn't have a .pc before 2.0.12, look for it manually. 29828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5 29829$as_echo_n "checking for numa_available in -lnuma... " >&6; } 29830if ${ac_cv_lib_numa_numa_available+:} false; then : 29831 $as_echo_n "(cached) " >&6 29832else 29833 ac_check_lib_save_LIBS=$LIBS 29834LIBS="-lnuma $LIBS" 29835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29836/* end confdefs.h. */ 29837 29838/* Override any GCC internal prototype to avoid an error. 29839 Use char because int might match the return type of a GCC 29840 builtin and then its argument prototype would still apply. */ 29841#ifdef __cplusplus 29842extern "C" 29843#endif 29844char numa_available (); 29845int 29846main () 29847{ 29848return numa_available (); 29849 ; 29850 return 0; 29851} 29852_ACEOF 29853if ac_fn_c_try_link "$LINENO"; then : 29854 ac_cv_lib_numa_numa_available=yes 29855else 29856 ac_cv_lib_numa_numa_available=no 29857fi 29858rm -f core conftest.err conftest.$ac_objext \ 29859 conftest$ac_exeext conftest.$ac_ext 29860LIBS=$ac_check_lib_save_LIBS 29861fi 29862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5 29863$as_echo "$ac_cv_lib_numa_numa_available" >&6; } 29864if test "x$ac_cv_lib_numa_numa_available" = xyes; then : 29865 29866 # and make sure this old release has at least numa_bitmask_alloc() for our tests 29867 ac_fn_c_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h> 29868" 29869if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes; then : 29870 hwloc_have_linux_libnuma=yes 29871 HWLOC_NUMA_LIBS=-lnuma 29872 29873fi 29874 29875 29876fi 29877 29878 elif test $HWLOC_pkg_failed = untried; then 29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 29880$as_echo "cannot check without pkg-config" >&6; } 29881 29882 # libnuma didn't have a .pc before 2.0.12, look for it manually. 29883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5 29884$as_echo_n "checking for numa_available in -lnuma... " >&6; } 29885if ${ac_cv_lib_numa_numa_available+:} false; then : 29886 $as_echo_n "(cached) " >&6 29887else 29888 ac_check_lib_save_LIBS=$LIBS 29889LIBS="-lnuma $LIBS" 29890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29891/* end confdefs.h. */ 29892 29893/* Override any GCC internal prototype to avoid an error. 29894 Use char because int might match the return type of a GCC 29895 builtin and then its argument prototype would still apply. */ 29896#ifdef __cplusplus 29897extern "C" 29898#endif 29899char numa_available (); 29900int 29901main () 29902{ 29903return numa_available (); 29904 ; 29905 return 0; 29906} 29907_ACEOF 29908if ac_fn_c_try_link "$LINENO"; then : 29909 ac_cv_lib_numa_numa_available=yes 29910else 29911 ac_cv_lib_numa_numa_available=no 29912fi 29913rm -f core conftest.err conftest.$ac_objext \ 29914 conftest$ac_exeext conftest.$ac_ext 29915LIBS=$ac_check_lib_save_LIBS 29916fi 29917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5 29918$as_echo "$ac_cv_lib_numa_numa_available" >&6; } 29919if test "x$ac_cv_lib_numa_numa_available" = xyes; then : 29920 29921 # and make sure this old release has at least numa_bitmask_alloc() for our tests 29922 ac_fn_c_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h> 29923" 29924if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes; then : 29925 hwloc_have_linux_libnuma=yes 29926 HWLOC_NUMA_LIBS=-lnuma 29927 29928fi 29929 29930 29931fi 29932 29933 else 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29935$as_echo "yes" >&6; } 29936 29937 # If we got good results from pkg-config, check that they 29938 # actually work (i.e., that we can link against the resulting 29939 # $LIBS). The canonical example why we do this is if 29940 # pkg-config returns 64 bit libraries but ./configure was run 29941 # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid 29942 # results, but we'll fail if we try to link. So detect that 29943 # failure now. 29944 # There are also cases on Mac where pkg-config returns paths 29945 # that do not actually exists until some magic is applied. 29946 # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php 29947 # So check whether we find the header as well. 29948 hwloc_cflags_save=$CFLAGS 29949 hwloc_cppflags_save=$CPPFLAGS 29950 hwloc_libs_save=$LIBS 29951 CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS" 29952 CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS" 29953 LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_NUMA_LIBS" 29954 ac_fn_c_check_header_mongrel "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default" 29955if test "x$ac_cv_header_numa_h" = xyes; then : 29956 29957 ac_fn_c_check_func "$LINENO" "numa_available" "ac_cv_func_numa_available" 29958if test "x$ac_cv_func_numa_available" = xyes; then : 29959 hwloc_result=yes 29960else 29961 hwloc_result=no 29962fi 29963 29964 29965else 29966 hwloc_result=no 29967fi 29968 29969 29970 CFLAGS=$hwloc_cflags_save 29971 CPPFLAGS=$hwloc_cppflags_save 29972 LIBS=$hwloc_libs_save 29973 29974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final NUMA support" >&5 29975$as_echo_n "checking for final NUMA support... " >&6; } 29976 if test "$hwloc_result" = "yes"; then : 29977 HWLOC_NUMA_CFLAGS=$HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS 29978 HWLOC_NUMA_LIBS=$HWLOC_pkg_cv_HWLOC_NUMA_LIBS 29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29980$as_echo "yes" >&6; } 29981 hwloc_have_linux_libnuma=yes 29982else 29983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29984$as_echo "no" >&6; } 29985 29986 # libnuma didn't have a .pc before 2.0.12, look for it manually. 29987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5 29988$as_echo_n "checking for numa_available in -lnuma... " >&6; } 29989if ${ac_cv_lib_numa_numa_available+:} false; then : 29990 $as_echo_n "(cached) " >&6 29991else 29992 ac_check_lib_save_LIBS=$LIBS 29993LIBS="-lnuma $LIBS" 29994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29995/* end confdefs.h. */ 29996 29997/* Override any GCC internal prototype to avoid an error. 29998 Use char because int might match the return type of a GCC 29999 builtin and then its argument prototype would still apply. */ 30000#ifdef __cplusplus 30001extern "C" 30002#endif 30003char numa_available (); 30004int 30005main () 30006{ 30007return numa_available (); 30008 ; 30009 return 0; 30010} 30011_ACEOF 30012if ac_fn_c_try_link "$LINENO"; then : 30013 ac_cv_lib_numa_numa_available=yes 30014else 30015 ac_cv_lib_numa_numa_available=no 30016fi 30017rm -f core conftest.err conftest.$ac_objext \ 30018 conftest$ac_exeext conftest.$ac_ext 30019LIBS=$ac_check_lib_save_LIBS 30020fi 30021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5 30022$as_echo "$ac_cv_lib_numa_numa_available" >&6; } 30023if test "x$ac_cv_lib_numa_numa_available" = xyes; then : 30024 30025 # and make sure this old release has at least numa_bitmask_alloc() for our tests 30026 ac_fn_c_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h> 30027" 30028if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes; then : 30029 hwloc_have_linux_libnuma=yes 30030 HWLOC_NUMA_LIBS=-lnuma 30031 30032fi 30033 30034 30035fi 30036 30037fi 30038 fi 30039 30040 for ac_header in stdlib.h 30041do : 30042 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 30043if test "x$ac_cv_header_stdlib_h" = xyes; then : 30044 cat >>confdefs.h <<_ACEOF 30045#define HAVE_STDLIB_H 1 30046_ACEOF 30047 30048 for ac_func in mkstemp 30049do : 30050 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 30051if test "x$ac_cv_func_mkstemp" = xyes; then : 30052 cat >>confdefs.h <<_ACEOF 30053#define HAVE_MKSTEMP 1 30054_ACEOF 30055 30056fi 30057done 30058 30059 30060fi 30061 30062done 30063 30064 30065 for ac_header in infiniband/verbs.h 30066do : 30067 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" 30068if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : 30069 cat >>confdefs.h <<_ACEOF 30070#define HAVE_INFINIBAND_VERBS_H 1 30071_ACEOF 30072 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5 30074$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; } 30075if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then : 30076 $as_echo_n "(cached) " >&6 30077else 30078 ac_check_lib_save_LIBS=$LIBS 30079LIBS="-libverbs $LIBS" 30080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30081/* end confdefs.h. */ 30082 30083/* Override any GCC internal prototype to avoid an error. 30084 Use char because int might match the return type of a GCC 30085 builtin and then its argument prototype would still apply. */ 30086#ifdef __cplusplus 30087extern "C" 30088#endif 30089char ibv_open_device (); 30090int 30091main () 30092{ 30093return ibv_open_device (); 30094 ; 30095 return 0; 30096} 30097_ACEOF 30098if ac_fn_c_try_link "$LINENO"; then : 30099 ac_cv_lib_ibverbs_ibv_open_device=yes 30100else 30101 ac_cv_lib_ibverbs_ibv_open_device=no 30102fi 30103rm -f core conftest.err conftest.$ac_objext \ 30104 conftest$ac_exeext conftest.$ac_ext 30105LIBS=$ac_check_lib_save_LIBS 30106fi 30107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 30108$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; } 30109if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then : 30110 30111$as_echo "#define HAVE_LIBIBVERBS 1" >>confdefs.h 30112 30113 hwloc_have_libibverbs=yes 30114fi 30115 30116 30117fi 30118 30119done 30120 30121 30122 for ac_prog in xmllint 30123do 30124 # Extract the first word of "$ac_prog", so it can be a program name with args. 30125set dummy $ac_prog; ac_word=$2 30126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30127$as_echo_n "checking for $ac_word... " >&6; } 30128if ${ac_cv_prog_XMLLINT+:} false; then : 30129 $as_echo_n "(cached) " >&6 30130else 30131 if test -n "$XMLLINT"; then 30132 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test. 30133else 30134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30135for as_dir in $PATH 30136do 30137 IFS=$as_save_IFS 30138 test -z "$as_dir" && as_dir=. 30139 for ac_exec_ext in '' $ac_executable_extensions; do 30140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30141 ac_cv_prog_XMLLINT="$ac_prog" 30142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30143 break 2 30144 fi 30145done 30146 done 30147IFS=$as_save_IFS 30148 30149fi 30150fi 30151XMLLINT=$ac_cv_prog_XMLLINT 30152if test -n "$XMLLINT"; then 30153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 30154$as_echo "$XMLLINT" >&6; } 30155else 30156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30157$as_echo "no" >&6; } 30158fi 30159 30160 30161 test -n "$XMLLINT" && break 30162done 30163 30164 30165 for ac_prog in bunzip2 30166do 30167 # Extract the first word of "$ac_prog", so it can be a program name with args. 30168set dummy $ac_prog; ac_word=$2 30169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30170$as_echo_n "checking for $ac_word... " >&6; } 30171if ${ac_cv_prog_BUNZIPP+:} false; then : 30172 $as_echo_n "(cached) " >&6 30173else 30174 if test -n "$BUNZIPP"; then 30175 ac_cv_prog_BUNZIPP="$BUNZIPP" # Let the user override the test. 30176else 30177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30178for as_dir in $PATH 30179do 30180 IFS=$as_save_IFS 30181 test -z "$as_dir" && as_dir=. 30182 for ac_exec_ext in '' $ac_executable_extensions; do 30183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30184 ac_cv_prog_BUNZIPP="$ac_prog" 30185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30186 break 2 30187 fi 30188done 30189 done 30190IFS=$as_save_IFS 30191 30192fi 30193fi 30194BUNZIPP=$ac_cv_prog_BUNZIPP 30195if test -n "$BUNZIPP"; then 30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNZIPP" >&5 30197$as_echo "$BUNZIPP" >&6; } 30198else 30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30200$as_echo "no" >&6; } 30201fi 30202 30203 30204 test -n "$BUNZIPP" && break 30205done 30206test -n "$BUNZIPP" || BUNZIPP="false" 30207 30208 30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX works" >&5 30210$as_echo_n "checking if CXX works... " >&6; } 30211 ac_ext=cpp 30212ac_cpp='$CXXCPP $CPPFLAGS' 30213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30216 30217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30218/* end confdefs.h. */ 30219 30220#include <iostream> 30221using namespace std; 30222int foo(void) { 30223 cout << "test" << endl; 30224 return 0; 30225} 30226 30227int 30228main () 30229{ 30230 30231 ; 30232 return 0; 30233} 30234_ACEOF 30235if ac_fn_cxx_try_compile "$LINENO"; then : 30236 hwloc_have_cxx=yes 30237else 30238 hwloc_have_cxx=no 30239fi 30240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30241 ac_ext=c 30242ac_cpp='$CPP $CPPFLAGS' 30243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30245ac_compiler_gnu=$ac_cv_c_compiler_gnu 30246 30247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_cxx" >&5 30248$as_echo "$hwloc_have_cxx" >&6; } 30249 30250 30251 30252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5 30253$as_echo_n "checking whether diff accepts -u... " >&6; } 30254 if $DIFF -u /dev/null /dev/null 2> /dev/null 30255 then 30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30257$as_echo "yes" >&6; } 30258 HWLOC_DIFF_U="-u" 30259 else 30260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30261$as_echo "no" >&6; } 30262 HWLOC_DIFF_U="" 30263 fi 30264 30265 30266 30267 # Only generate these files if we're making the tests 30268 ac_config_files="$ac_config_files tests/Makefile tests/hwloc/Makefile tests/hwloc/linux/Makefile tests/hwloc/linux/allowed/Makefile tests/hwloc/linux/gather/Makefile tests/hwloc/x86/Makefile tests/hwloc/x86+linux/Makefile tests/hwloc/xml/Makefile tests/hwloc/ports/Makefile tests/hwloc/rename/Makefile tests/hwloc/linux/allowed/test-topology.sh tests/hwloc/linux/gather/test-gather-topology.sh tests/hwloc/linux/test-topology.sh tests/hwloc/x86/test-topology.sh tests/hwloc/x86+linux/test-topology.sh tests/hwloc/xml/test-topology.sh tests/hwloc/wrapper.sh utils/hwloc/hwloc-compress-dir utils/hwloc/hwloc-gather-topology utils/hwloc/test-hwloc-annotate.sh utils/hwloc/test-hwloc-calc.sh utils/hwloc/test-hwloc-compress-dir.sh utils/hwloc/test-hwloc-diffpatch.sh utils/hwloc/test-hwloc-distrib.sh utils/hwloc/test-hwloc-info.sh utils/hwloc/test-fake-plugin.sh utils/hwloc/test-parsing-flags.sh utils/hwloc/test-hwloc-dump-hwdata/Makefile utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh utils/lstopo/test-lstopo.sh utils/lstopo/test-lstopo-shmem.sh utils/netloc/infiniband/netloc_ib_gather_raw contrib/hwloc-ps.www/Makefile contrib/systemd/Makefile contrib/completion/Makefile contrib/misc/Makefile contrib/windows/Makefile contrib/windows/test-windows-version.sh tests/netloc/Makefile tests/netloc/tests.sh" 30269 30270 30271 ac_config_commands="$ac_config_commands chmoding-scripts" 30272 30273 30274 # These links are only needed in standalone mode. It would 30275 # be nice to m4 foreach this somehow, but whenever I tried 30276 # it, I got obscure "invalid tag" errors from 30277 # AC_CONFIG_LINKS. :-\ Since these tests are only run when 30278 # built in standalone mode, only generate them in 30279 # standalone mode. 30280 ac_config_links="$ac_config_links tests/hwloc/ports/topology-solaris.c:hwloc/topology-solaris.c tests/hwloc/ports/topology-solaris-chiptype.c:hwloc/topology-solaris-chiptype.c tests/hwloc/ports/topology-aix.c:hwloc/topology-aix.c tests/hwloc/ports/topology-windows.c:hwloc/topology-windows.c tests/hwloc/ports/topology-darwin.c:hwloc/topology-darwin.c tests/hwloc/ports/topology-freebsd.c:hwloc/topology-freebsd.c tests/hwloc/ports/topology-netbsd.c:hwloc/topology-netbsd.c tests/hwloc/ports/topology-hpux.c:hwloc/topology-hpux.c tests/hwloc/ports/topology-bgq.c:hwloc/topology-bgq.c tests/hwloc/ports/topology-opencl.c:hwloc/topology-opencl.c tests/hwloc/ports/topology-cuda.c:hwloc/topology-cuda.c tests/hwloc/ports/topology-nvml.c:hwloc/topology-nvml.c tests/hwloc/ports/topology-rsmi.c:hwloc/topology-rsmi.c tests/hwloc/ports/topology-gl.c:hwloc/topology-gl.c tests/hwloc/ports/lstopo-windows.c:utils/lstopo/lstopo-windows.c tests/hwloc/ports/lstopo-android.c:utils/lstopo/lstopo-android.c" 30281 30282 30283fi 30284 30285cat <<EOF 30286 30287### 30288### Performing final hwloc configuration 30289### 30290EOF 30291 30292# Run the AM_CONDITIONALs 30293 30294 if test "$hwloc_did_am_conditionals" != "yes"; then : 30295 30296 if test "$hwloc_mode" = "standalone"; then 30297 HWLOC_BUILD_STANDALONE_TRUE= 30298 HWLOC_BUILD_STANDALONE_FALSE='#' 30299else 30300 HWLOC_BUILD_STANDALONE_TRUE='#' 30301 HWLOC_BUILD_STANDALONE_FALSE= 30302fi 30303 30304 30305 if test "x$GCC" = "xyes"; then 30306 HWLOC_HAVE_GCC_TRUE= 30307 HWLOC_HAVE_GCC_FALSE='#' 30308else 30309 HWLOC_HAVE_GCC_TRUE='#' 30310 HWLOC_HAVE_GCC_FALSE= 30311fi 30312 30313 if test "x$HWLOC_MS_LIB" != "x"; then 30314 HWLOC_HAVE_MS_LIB_TRUE= 30315 HWLOC_HAVE_MS_LIB_FALSE='#' 30316else 30317 HWLOC_HAVE_MS_LIB_TRUE='#' 30318 HWLOC_HAVE_MS_LIB_FALSE= 30319fi 30320 30321 if test "x$hwloc_have_openat" = "xyes"; then 30322 HWLOC_HAVE_OPENAT_TRUE= 30323 HWLOC_HAVE_OPENAT_FALSE='#' 30324else 30325 HWLOC_HAVE_OPENAT_TRUE='#' 30326 HWLOC_HAVE_OPENAT_FALSE= 30327fi 30328 30329 if test "x$hwloc_have_sched_setaffinity" = "xyes"; then 30330 HWLOC_HAVE_SCHED_SETAFFINITY_TRUE= 30331 HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#' 30332else 30333 HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#' 30334 HWLOC_HAVE_SCHED_SETAFFINITY_FALSE= 30335fi 30336 30337 if test "x$hwloc_have_pthread" = "xyes"; then 30338 HWLOC_HAVE_PTHREAD_TRUE= 30339 HWLOC_HAVE_PTHREAD_FALSE='#' 30340else 30341 HWLOC_HAVE_PTHREAD_TRUE='#' 30342 HWLOC_HAVE_PTHREAD_FALSE= 30343fi 30344 30345 if test "x$hwloc_have_linux_libnuma" = "xyes"; then 30346 HWLOC_HAVE_LINUX_LIBNUMA_TRUE= 30347 HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#' 30348else 30349 HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#' 30350 HWLOC_HAVE_LINUX_LIBNUMA_FALSE= 30351fi 30352 30353 if test "x$hwloc_have_libibverbs" = "xyes"; then 30354 HWLOC_HAVE_LIBIBVERBS_TRUE= 30355 HWLOC_HAVE_LIBIBVERBS_FALSE='#' 30356else 30357 HWLOC_HAVE_LIBIBVERBS_TRUE='#' 30358 HWLOC_HAVE_LIBIBVERBS_FALSE= 30359fi 30360 30361 if test "x$hwloc_have_cuda" = "xyes"; then 30362 HWLOC_HAVE_CUDA_TRUE= 30363 HWLOC_HAVE_CUDA_FALSE='#' 30364else 30365 HWLOC_HAVE_CUDA_TRUE='#' 30366 HWLOC_HAVE_CUDA_FALSE= 30367fi 30368 30369 if test "x$hwloc_have_gl" = "xyes"; then 30370 HWLOC_HAVE_GL_TRUE= 30371 HWLOC_HAVE_GL_FALSE='#' 30372else 30373 HWLOC_HAVE_GL_TRUE='#' 30374 HWLOC_HAVE_GL_FALSE= 30375fi 30376 30377 if test "x$hwloc_have_cudart" = "xyes"; then 30378 HWLOC_HAVE_CUDART_TRUE= 30379 HWLOC_HAVE_CUDART_FALSE='#' 30380else 30381 HWLOC_HAVE_CUDART_TRUE='#' 30382 HWLOC_HAVE_CUDART_FALSE= 30383fi 30384 30385 if test "$hwloc_libxml2_happy" = "yes"; then 30386 HWLOC_HAVE_LIBXML2_TRUE= 30387 HWLOC_HAVE_LIBXML2_FALSE='#' 30388else 30389 HWLOC_HAVE_LIBXML2_TRUE='#' 30390 HWLOC_HAVE_LIBXML2_FALSE= 30391fi 30392 30393 if test "$hwloc_cairo_happy" = "yes"; then 30394 HWLOC_HAVE_CAIRO_TRUE= 30395 HWLOC_HAVE_CAIRO_FALSE='#' 30396else 30397 HWLOC_HAVE_CAIRO_TRUE='#' 30398 HWLOC_HAVE_CAIRO_FALSE= 30399fi 30400 30401 if test "$hwloc_pciaccess_happy" = "yes"; then 30402 HWLOC_HAVE_PCIACCESS_TRUE= 30403 HWLOC_HAVE_PCIACCESS_FALSE='#' 30404else 30405 HWLOC_HAVE_PCIACCESS_TRUE='#' 30406 HWLOC_HAVE_PCIACCESS_FALSE= 30407fi 30408 30409 if test "$hwloc_opencl_happy" = "yes"; then 30410 HWLOC_HAVE_OPENCL_TRUE= 30411 HWLOC_HAVE_OPENCL_FALSE='#' 30412else 30413 HWLOC_HAVE_OPENCL_TRUE='#' 30414 HWLOC_HAVE_OPENCL_FALSE= 30415fi 30416 30417 if test "$hwloc_nvml_happy" = "yes"; then 30418 HWLOC_HAVE_NVML_TRUE= 30419 HWLOC_HAVE_NVML_FALSE='#' 30420else 30421 HWLOC_HAVE_NVML_TRUE='#' 30422 HWLOC_HAVE_NVML_FALSE= 30423fi 30424 30425 if test "$hwloc_rsmi_happy" = "yes"; then 30426 HWLOC_HAVE_RSMI_TRUE= 30427 HWLOC_HAVE_RSMI_FALSE='#' 30428else 30429 HWLOC_HAVE_RSMI_TRUE='#' 30430 HWLOC_HAVE_RSMI_FALSE= 30431fi 30432 30433 if test "x$BUNZIPP" != "xfalse"; then 30434 HWLOC_HAVE_BUNZIPP_TRUE= 30435 HWLOC_HAVE_BUNZIPP_FALSE='#' 30436else 30437 HWLOC_HAVE_BUNZIPP_TRUE='#' 30438 HWLOC_HAVE_BUNZIPP_FALSE= 30439fi 30440 30441 if test "x$hwloc_have_user32" = "xyes"; then 30442 HWLOC_HAVE_USER32_TRUE= 30443 HWLOC_HAVE_USER32_FALSE='#' 30444else 30445 HWLOC_HAVE_USER32_TRUE='#' 30446 HWLOC_HAVE_USER32_FALSE= 30447fi 30448 30449 30450 if test "x$hwloc_generate_doxs" = "xyes"; then 30451 HWLOC_BUILD_DOXYGEN_TRUE= 30452 HWLOC_BUILD_DOXYGEN_FALSE='#' 30453else 30454 HWLOC_BUILD_DOXYGEN_TRUE='#' 30455 HWLOC_BUILD_DOXYGEN_FALSE= 30456fi 30457 30458 if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then 30459 HWLOC_BUILD_README_TRUE= 30460 HWLOC_BUILD_README_FALSE='#' 30461else 30462 HWLOC_BUILD_README_TRUE='#' 30463 HWLOC_BUILD_README_FALSE= 30464fi 30465 30466 if test "x$hwloc_install_doxs" = "xyes"; then 30467 HWLOC_INSTALL_DOXYGEN_TRUE= 30468 HWLOC_INSTALL_DOXYGEN_FALSE='#' 30469else 30470 HWLOC_INSTALL_DOXYGEN_TRUE='#' 30471 HWLOC_INSTALL_DOXYGEN_FALSE= 30472fi 30473 30474 30475 if test "x$hwloc_linux" = "xyes"; then 30476 HWLOC_HAVE_LINUX_TRUE= 30477 HWLOC_HAVE_LINUX_FALSE='#' 30478else 30479 HWLOC_HAVE_LINUX_TRUE='#' 30480 HWLOC_HAVE_LINUX_FALSE= 30481fi 30482 30483 if test "x$hwloc_bgq" = "xyes"; then 30484 HWLOC_HAVE_BGQ_TRUE= 30485 HWLOC_HAVE_BGQ_FALSE='#' 30486else 30487 HWLOC_HAVE_BGQ_TRUE='#' 30488 HWLOC_HAVE_BGQ_FALSE= 30489fi 30490 30491 if test "x$hwloc_irix" = "xyes"; then 30492 HWLOC_HAVE_IRIX_TRUE= 30493 HWLOC_HAVE_IRIX_FALSE='#' 30494else 30495 HWLOC_HAVE_IRIX_TRUE='#' 30496 HWLOC_HAVE_IRIX_FALSE= 30497fi 30498 30499 if test "x$hwloc_darwin" = "xyes"; then 30500 HWLOC_HAVE_DARWIN_TRUE= 30501 HWLOC_HAVE_DARWIN_FALSE='#' 30502else 30503 HWLOC_HAVE_DARWIN_TRUE='#' 30504 HWLOC_HAVE_DARWIN_FALSE= 30505fi 30506 30507 if test "x$hwloc_freebsd" = "xyes"; then 30508 HWLOC_HAVE_FREEBSD_TRUE= 30509 HWLOC_HAVE_FREEBSD_FALSE='#' 30510else 30511 HWLOC_HAVE_FREEBSD_TRUE='#' 30512 HWLOC_HAVE_FREEBSD_FALSE= 30513fi 30514 30515 if test "x$hwloc_netbsd" = "xyes"; then 30516 HWLOC_HAVE_NETBSD_TRUE= 30517 HWLOC_HAVE_NETBSD_FALSE='#' 30518else 30519 HWLOC_HAVE_NETBSD_TRUE='#' 30520 HWLOC_HAVE_NETBSD_FALSE= 30521fi 30522 30523 if test "x$hwloc_solaris" = "xyes"; then 30524 HWLOC_HAVE_SOLARIS_TRUE= 30525 HWLOC_HAVE_SOLARIS_FALSE='#' 30526else 30527 HWLOC_HAVE_SOLARIS_TRUE='#' 30528 HWLOC_HAVE_SOLARIS_FALSE= 30529fi 30530 30531 if test "x$hwloc_aix" = "xyes"; then 30532 HWLOC_HAVE_AIX_TRUE= 30533 HWLOC_HAVE_AIX_FALSE='#' 30534else 30535 HWLOC_HAVE_AIX_TRUE='#' 30536 HWLOC_HAVE_AIX_FALSE= 30537fi 30538 30539 if test "x$hwloc_hpux" = "xyes"; then 30540 HWLOC_HAVE_HPUX_TRUE= 30541 HWLOC_HAVE_HPUX_FALSE='#' 30542else 30543 HWLOC_HAVE_HPUX_TRUE='#' 30544 HWLOC_HAVE_HPUX_FALSE= 30545fi 30546 30547 if test "x$hwloc_windows" = "xyes"; then 30548 HWLOC_HAVE_WINDOWS_TRUE= 30549 HWLOC_HAVE_WINDOWS_FALSE='#' 30550else 30551 HWLOC_HAVE_WINDOWS_TRUE='#' 30552 HWLOC_HAVE_WINDOWS_FALSE= 30553fi 30554 30555 if test "x$target_os" = "xmingw32"; then 30556 HWLOC_HAVE_MINGW32_TRUE= 30557 HWLOC_HAVE_MINGW32_FALSE='#' 30558else 30559 HWLOC_HAVE_MINGW32_TRUE='#' 30560 HWLOC_HAVE_MINGW32_FALSE= 30561fi 30562 30563 30564 if test "x$hwloc_x86_32" = "xyes" -o "x$hwloc_x86_64" = "xyes"; then 30565 HWLOC_HAVE_X86_TRUE= 30566 HWLOC_HAVE_X86_FALSE='#' 30567else 30568 HWLOC_HAVE_X86_TRUE='#' 30569 HWLOC_HAVE_X86_FALSE= 30570fi 30571 30572 if test "x$hwloc_x86_32" = "xyes"; then 30573 HWLOC_HAVE_X86_32_TRUE= 30574 HWLOC_HAVE_X86_32_FALSE='#' 30575else 30576 HWLOC_HAVE_X86_32_TRUE='#' 30577 HWLOC_HAVE_X86_32_FALSE= 30578fi 30579 30580 if test "x$hwloc_x86_64" = "xyes"; then 30581 HWLOC_HAVE_X86_64_TRUE= 30582 HWLOC_HAVE_X86_64_FALSE='#' 30583else 30584 HWLOC_HAVE_X86_64_TRUE='#' 30585 HWLOC_HAVE_X86_64_FALSE= 30586fi 30587 30588 if test "x$hwloc_have_x86_cpuid" = "xyes"; then 30589 HWLOC_HAVE_X86_CPUID_TRUE= 30590 HWLOC_HAVE_X86_CPUID_FALSE='#' 30591else 30592 HWLOC_HAVE_X86_CPUID_TRUE='#' 30593 HWLOC_HAVE_X86_CPUID_FALSE= 30594fi 30595 30596 30597 if test "x$enable_32bits_pci_domain" = "xyes"; then 30598 HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE= 30599 HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE='#' 30600else 30601 HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE='#' 30602 HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE= 30603fi 30604 30605 30606 if test "x$hwloc_have_plugins" = "xyes"; then 30607 HWLOC_HAVE_PLUGINS_TRUE= 30608 HWLOC_HAVE_PLUGINS_FALSE='#' 30609else 30610 HWLOC_HAVE_PLUGINS_TRUE='#' 30611 HWLOC_HAVE_PLUGINS_FALSE= 30612fi 30613 30614 if test "x$hwloc_pci_component" = "xstatic"; then 30615 HWLOC_PCI_BUILD_STATIC_TRUE= 30616 HWLOC_PCI_BUILD_STATIC_FALSE='#' 30617else 30618 HWLOC_PCI_BUILD_STATIC_TRUE='#' 30619 HWLOC_PCI_BUILD_STATIC_FALSE= 30620fi 30621 30622 if test "x$hwloc_opencl_component" = "xstatic"; then 30623 HWLOC_OPENCL_BUILD_STATIC_TRUE= 30624 HWLOC_OPENCL_BUILD_STATIC_FALSE='#' 30625else 30626 HWLOC_OPENCL_BUILD_STATIC_TRUE='#' 30627 HWLOC_OPENCL_BUILD_STATIC_FALSE= 30628fi 30629 30630 if test "x$hwloc_cuda_component" = "xstatic"; then 30631 HWLOC_CUDA_BUILD_STATIC_TRUE= 30632 HWLOC_CUDA_BUILD_STATIC_FALSE='#' 30633else 30634 HWLOC_CUDA_BUILD_STATIC_TRUE='#' 30635 HWLOC_CUDA_BUILD_STATIC_FALSE= 30636fi 30637 30638 if test "x$hwloc_nvml_component" = "xstatic"; then 30639 HWLOC_NVML_BUILD_STATIC_TRUE= 30640 HWLOC_NVML_BUILD_STATIC_FALSE='#' 30641else 30642 HWLOC_NVML_BUILD_STATIC_TRUE='#' 30643 HWLOC_NVML_BUILD_STATIC_FALSE= 30644fi 30645 30646 if test "x$hwloc_rsmi_component" = "xstatic"; then 30647 HWLOC_RSMI_BUILD_STATIC_TRUE= 30648 HWLOC_RSMI_BUILD_STATIC_FALSE='#' 30649else 30650 HWLOC_RSMI_BUILD_STATIC_TRUE='#' 30651 HWLOC_RSMI_BUILD_STATIC_FALSE= 30652fi 30653 30654 if test "x$hwloc_gl_component" = "xstatic"; then 30655 HWLOC_GL_BUILD_STATIC_TRUE= 30656 HWLOC_GL_BUILD_STATIC_FALSE='#' 30657else 30658 HWLOC_GL_BUILD_STATIC_TRUE='#' 30659 HWLOC_GL_BUILD_STATIC_FALSE= 30660fi 30661 30662 if test "x$hwloc_xml_libxml_component" = "xstatic"; then 30663 HWLOC_XML_LIBXML_BUILD_STATIC_TRUE= 30664 HWLOC_XML_LIBXML_BUILD_STATIC_FALSE='#' 30665else 30666 HWLOC_XML_LIBXML_BUILD_STATIC_TRUE='#' 30667 HWLOC_XML_LIBXML_BUILD_STATIC_FALSE= 30668fi 30669 30670 30671 if test "x$hwloc_have_cxx" = "xyes"; then 30672 HWLOC_HAVE_CXX_TRUE= 30673 HWLOC_HAVE_CXX_FALSE='#' 30674else 30675 HWLOC_HAVE_CXX_TRUE='#' 30676 HWLOC_HAVE_CXX_FALSE= 30677fi 30678 30679 30680fi 30681 hwloc_did_am_conditionals=yes 30682 30683 # For backwards compatibility (i.e., packages that only call 30684 # HWLOC_DO_AM_CONDITIONS, not NETLOC DO_AM_CONDITIONALS), we also have to 30685 # do the netloc AM conditionals here 30686 30687 if test "$netloc_happy" = "yes"; then 30688 BUILD_NETLOC_TRUE= 30689 BUILD_NETLOC_FALSE='#' 30690else 30691 BUILD_NETLOC_TRUE='#' 30692 BUILD_NETLOC_FALSE= 30693fi 30694 30695 if test "x$scotch_found_headers" = "xyes"; then 30696 BUILD_NETLOCSCOTCH_TRUE= 30697 BUILD_NETLOCSCOTCH_FALSE='#' 30698else 30699 BUILD_NETLOCSCOTCH_TRUE='#' 30700 BUILD_NETLOCSCOTCH_FALSE= 30701fi 30702 30703 if test "x$mpi_found_headers" = "xyes"; then 30704 BUILD_MPITOOLS_TRUE= 30705 BUILD_MPITOOLS_FALSE='#' 30706else 30707 BUILD_MPITOOLS_TRUE='#' 30708 BUILD_MPITOOLS_FALSE= 30709fi 30710 30711 if test "x$xz" = xyes; then 30712 FOUND_XZ_TRUE= 30713 FOUND_XZ_FALSE='#' 30714else 30715 FOUND_XZ_TRUE='#' 30716 FOUND_XZ_FALSE= 30717fi 30718 30719 30720 30721 30722 if test "$netloc_happy" = "yes"; then 30723 BUILD_NETLOC_TRUE= 30724 BUILD_NETLOC_FALSE='#' 30725else 30726 BUILD_NETLOC_TRUE='#' 30727 BUILD_NETLOC_FALSE= 30728fi 30729 30730 if test "x$scotch_found_headers" = "xyes"; then 30731 BUILD_NETLOCSCOTCH_TRUE= 30732 BUILD_NETLOCSCOTCH_FALSE='#' 30733else 30734 BUILD_NETLOCSCOTCH_TRUE='#' 30735 BUILD_NETLOCSCOTCH_FALSE= 30736fi 30737 30738 if test "x$mpi_found_headers" = "xyes"; then 30739 BUILD_MPITOOLS_TRUE= 30740 BUILD_MPITOOLS_FALSE='#' 30741else 30742 BUILD_MPITOOLS_TRUE='#' 30743 BUILD_MPITOOLS_FALSE= 30744fi 30745 30746 if test "x$xz" = xyes; then 30747 FOUND_XZ_TRUE= 30748 FOUND_XZ_FALSE='#' 30749else 30750 FOUND_XZ_TRUE='#' 30751 FOUND_XZ_FALSE= 30752fi 30753 30754 30755 30756#################################################################### 30757# Final output 30758#################################################################### 30759 30760# Set the final flags 30761CFLAGS="$HWLOC_EMBEDDED_CFLAGS $CFLAGS" 30762CPPFLAGS="$HWLOC_EMBEDDED_CPPFLAGS $CPPFLAGS" 30763LIBS="$HWLOC_EMBEDDED_LIBS $LIBS" 30764 30765# Party on 30766cat >confcache <<\_ACEOF 30767# This file is a shell script that caches the results of configure 30768# tests run on this system so they can be shared between configure 30769# scripts and configure runs, see configure's option --config-cache. 30770# It is not useful on other systems. If it contains results you don't 30771# want to keep, you may remove or edit it. 30772# 30773# config.status only pays attention to the cache file if you give it 30774# the --recheck option to rerun configure. 30775# 30776# `ac_cv_env_foo' variables (set or unset) will be overridden when 30777# loading this file, other *unset* `ac_cv_foo' will be assigned the 30778# following values. 30779 30780_ACEOF 30781 30782# The following way of writing the cache mishandles newlines in values, 30783# but we know of no workaround that is simple, portable, and efficient. 30784# So, we kill variables containing newlines. 30785# Ultrix sh set writes to stderr and can't be redirected directly, 30786# and sets the high bit in the cache file unless we assign to the vars. 30787( 30788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30789 eval ac_val=\$$ac_var 30790 case $ac_val in #( 30791 *${as_nl}*) 30792 case $ac_var in #( 30793 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30794$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30795 esac 30796 case $ac_var in #( 30797 _ | IFS | as_nl) ;; #( 30798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30799 *) { eval $ac_var=; unset $ac_var;} ;; 30800 esac ;; 30801 esac 30802 done 30803 30804 (set) 2>&1 | 30805 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30806 *${as_nl}ac_space=\ *) 30807 # `set' does not quote correctly, so add quotes: double-quote 30808 # substitution turns \\\\ into \\, and sed turns \\ into \. 30809 sed -n \ 30810 "s/'/'\\\\''/g; 30811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30812 ;; #( 30813 *) 30814 # `set' quotes correctly as required by POSIX, so do not add quotes. 30815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30816 ;; 30817 esac | 30818 sort 30819) | 30820 sed ' 30821 /^ac_cv_env_/b end 30822 t clear 30823 :clear 30824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30825 t end 30826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30827 :end' >>confcache 30828if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30829 if test -w "$cache_file"; then 30830 if test "x$cache_file" != "x/dev/null"; then 30831 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30832$as_echo "$as_me: updating cache $cache_file" >&6;} 30833 if test ! -f "$cache_file" || test -h "$cache_file"; then 30834 cat confcache >"$cache_file" 30835 else 30836 case $cache_file in #( 30837 */* | ?:*) 30838 mv -f confcache "$cache_file"$$ && 30839 mv -f "$cache_file"$$ "$cache_file" ;; #( 30840 *) 30841 mv -f confcache "$cache_file" ;; 30842 esac 30843 fi 30844 fi 30845 else 30846 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30847$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30848 fi 30849fi 30850rm -f confcache 30851 30852test "x$prefix" = xNONE && prefix=$ac_default_prefix 30853# Let make expand exec_prefix. 30854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30855 30856DEFS=-DHAVE_CONFIG_H 30857 30858ac_libobjs= 30859ac_ltlibobjs= 30860U= 30861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30862 # 1. Remove the extension, and $U if already installed. 30863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 30865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30866 # will be set to the directory where LIBOBJS objects are built. 30867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 30869done 30870LIBOBJS=$ac_libobjs 30871 30872LTLIBOBJS=$ac_ltlibobjs 30873 30874 30875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 30876$as_echo_n "checking that generated files are newer than configure... " >&6; } 30877 if test -n "$am_sleep_pid"; then 30878 # Hide warnings about reused PIDs. 30879 wait $am_sleep_pid 2>/dev/null 30880 fi 30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 30882$as_echo "done" >&6; } 30883 if test -n "$EXEEXT"; then 30884 am__EXEEXT_TRUE= 30885 am__EXEEXT_FALSE='#' 30886else 30887 am__EXEEXT_TRUE='#' 30888 am__EXEEXT_FALSE= 30889fi 30890 30891if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 30892 as_fn_error $? "conditional \"AMDEP\" was never defined. 30893Usually this means the macro was only invoked conditionally." "$LINENO" 5 30894fi 30895if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 30896 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 30897Usually this means the macro was only invoked conditionally." "$LINENO" 5 30898fi 30899if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 30900 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 30901Usually this means the macro was only invoked conditionally." "$LINENO" 5 30902fi 30903if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 30904 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 30905Usually this means the macro was only invoked conditionally." "$LINENO" 5 30906fi 30907if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then 30908 as_fn_error $? "conditional \"HWLOC_BUILD_STANDALONE\" was never defined. 30909Usually this means the macro was only invoked conditionally." "$LINENO" 5 30910fi 30911if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then 30912 as_fn_error $? "conditional \"HWLOC_HAVE_GCC\" was never defined. 30913Usually this means the macro was only invoked conditionally." "$LINENO" 5 30914fi 30915if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then 30916 as_fn_error $? "conditional \"HWLOC_HAVE_MS_LIB\" was never defined. 30917Usually this means the macro was only invoked conditionally." "$LINENO" 5 30918fi 30919if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then 30920 as_fn_error $? "conditional \"HWLOC_HAVE_OPENAT\" was never defined. 30921Usually this means the macro was only invoked conditionally." "$LINENO" 5 30922fi 30923if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then 30924 as_fn_error $? "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined. 30925Usually this means the macro was only invoked conditionally." "$LINENO" 5 30926fi 30927if test -z "${HWLOC_HAVE_PTHREAD_TRUE}" && test -z "${HWLOC_HAVE_PTHREAD_FALSE}"; then 30928 as_fn_error $? "conditional \"HWLOC_HAVE_PTHREAD\" was never defined. 30929Usually this means the macro was only invoked conditionally." "$LINENO" 5 30930fi 30931if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then 30932 as_fn_error $? "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined. 30933Usually this means the macro was only invoked conditionally." "$LINENO" 5 30934fi 30935if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then 30936 as_fn_error $? "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined. 30937Usually this means the macro was only invoked conditionally." "$LINENO" 5 30938fi 30939if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then 30940 as_fn_error $? "conditional \"HWLOC_HAVE_CUDA\" was never defined. 30941Usually this means the macro was only invoked conditionally." "$LINENO" 5 30942fi 30943if test -z "${HWLOC_HAVE_GL_TRUE}" && test -z "${HWLOC_HAVE_GL_FALSE}"; then 30944 as_fn_error $? "conditional \"HWLOC_HAVE_GL\" was never defined. 30945Usually this means the macro was only invoked conditionally." "$LINENO" 5 30946fi 30947if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then 30948 as_fn_error $? "conditional \"HWLOC_HAVE_CUDART\" was never defined. 30949Usually this means the macro was only invoked conditionally." "$LINENO" 5 30950fi 30951if test -z "${HWLOC_HAVE_LIBXML2_TRUE}" && test -z "${HWLOC_HAVE_LIBXML2_FALSE}"; then 30952 as_fn_error $? "conditional \"HWLOC_HAVE_LIBXML2\" was never defined. 30953Usually this means the macro was only invoked conditionally." "$LINENO" 5 30954fi 30955if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then 30956 as_fn_error $? "conditional \"HWLOC_HAVE_CAIRO\" was never defined. 30957Usually this means the macro was only invoked conditionally." "$LINENO" 5 30958fi 30959if test -z "${HWLOC_HAVE_PCIACCESS_TRUE}" && test -z "${HWLOC_HAVE_PCIACCESS_FALSE}"; then 30960 as_fn_error $? "conditional \"HWLOC_HAVE_PCIACCESS\" was never defined. 30961Usually this means the macro was only invoked conditionally." "$LINENO" 5 30962fi 30963if test -z "${HWLOC_HAVE_OPENCL_TRUE}" && test -z "${HWLOC_HAVE_OPENCL_FALSE}"; then 30964 as_fn_error $? "conditional \"HWLOC_HAVE_OPENCL\" was never defined. 30965Usually this means the macro was only invoked conditionally." "$LINENO" 5 30966fi 30967if test -z "${HWLOC_HAVE_NVML_TRUE}" && test -z "${HWLOC_HAVE_NVML_FALSE}"; then 30968 as_fn_error $? "conditional \"HWLOC_HAVE_NVML\" was never defined. 30969Usually this means the macro was only invoked conditionally." "$LINENO" 5 30970fi 30971if test -z "${HWLOC_HAVE_RSMI_TRUE}" && test -z "${HWLOC_HAVE_RSMI_FALSE}"; then 30972 as_fn_error $? "conditional \"HWLOC_HAVE_RSMI\" was never defined. 30973Usually this means the macro was only invoked conditionally." "$LINENO" 5 30974fi 30975if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then 30976 as_fn_error $? "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined. 30977Usually this means the macro was only invoked conditionally." "$LINENO" 5 30978fi 30979if test -z "${HWLOC_HAVE_USER32_TRUE}" && test -z "${HWLOC_HAVE_USER32_FALSE}"; then 30980 as_fn_error $? "conditional \"HWLOC_HAVE_USER32\" was never defined. 30981Usually this means the macro was only invoked conditionally." "$LINENO" 5 30982fi 30983if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then 30984 as_fn_error $? "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined. 30985Usually this means the macro was only invoked conditionally." "$LINENO" 5 30986fi 30987if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then 30988 as_fn_error $? "conditional \"HWLOC_BUILD_README\" was never defined. 30989Usually this means the macro was only invoked conditionally." "$LINENO" 5 30990fi 30991if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then 30992 as_fn_error $? "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined. 30993Usually this means the macro was only invoked conditionally." "$LINENO" 5 30994fi 30995if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then 30996 as_fn_error $? "conditional \"HWLOC_HAVE_LINUX\" was never defined. 30997Usually this means the macro was only invoked conditionally." "$LINENO" 5 30998fi 30999if test -z "${HWLOC_HAVE_BGQ_TRUE}" && test -z "${HWLOC_HAVE_BGQ_FALSE}"; then 31000 as_fn_error $? "conditional \"HWLOC_HAVE_BGQ\" was never defined. 31001Usually this means the macro was only invoked conditionally." "$LINENO" 5 31002fi 31003if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then 31004 as_fn_error $? "conditional \"HWLOC_HAVE_IRIX\" was never defined. 31005Usually this means the macro was only invoked conditionally." "$LINENO" 5 31006fi 31007if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then 31008 as_fn_error $? "conditional \"HWLOC_HAVE_DARWIN\" was never defined. 31009Usually this means the macro was only invoked conditionally." "$LINENO" 5 31010fi 31011if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then 31012 as_fn_error $? "conditional \"HWLOC_HAVE_FREEBSD\" was never defined. 31013Usually this means the macro was only invoked conditionally." "$LINENO" 5 31014fi 31015if test -z "${HWLOC_HAVE_NETBSD_TRUE}" && test -z "${HWLOC_HAVE_NETBSD_FALSE}"; then 31016 as_fn_error $? "conditional \"HWLOC_HAVE_NETBSD\" was never defined. 31017Usually this means the macro was only invoked conditionally." "$LINENO" 5 31018fi 31019if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then 31020 as_fn_error $? "conditional \"HWLOC_HAVE_SOLARIS\" was never defined. 31021Usually this means the macro was only invoked conditionally." "$LINENO" 5 31022fi 31023if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then 31024 as_fn_error $? "conditional \"HWLOC_HAVE_AIX\" was never defined. 31025Usually this means the macro was only invoked conditionally." "$LINENO" 5 31026fi 31027if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then 31028 as_fn_error $? "conditional \"HWLOC_HAVE_HPUX\" was never defined. 31029Usually this means the macro was only invoked conditionally." "$LINENO" 5 31030fi 31031if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then 31032 as_fn_error $? "conditional \"HWLOC_HAVE_WINDOWS\" was never defined. 31033Usually this means the macro was only invoked conditionally." "$LINENO" 5 31034fi 31035if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then 31036 as_fn_error $? "conditional \"HWLOC_HAVE_MINGW32\" was never defined. 31037Usually this means the macro was only invoked conditionally." "$LINENO" 5 31038fi 31039if test -z "${HWLOC_HAVE_X86_TRUE}" && test -z "${HWLOC_HAVE_X86_FALSE}"; then 31040 as_fn_error $? "conditional \"HWLOC_HAVE_X86\" was never defined. 31041Usually this means the macro was only invoked conditionally." "$LINENO" 5 31042fi 31043if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then 31044 as_fn_error $? "conditional \"HWLOC_HAVE_X86_32\" was never defined. 31045Usually this means the macro was only invoked conditionally." "$LINENO" 5 31046fi 31047if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then 31048 as_fn_error $? "conditional \"HWLOC_HAVE_X86_64\" was never defined. 31049Usually this means the macro was only invoked conditionally." "$LINENO" 5 31050fi 31051if test -z "${HWLOC_HAVE_X86_CPUID_TRUE}" && test -z "${HWLOC_HAVE_X86_CPUID_FALSE}"; then 31052 as_fn_error $? "conditional \"HWLOC_HAVE_X86_CPUID\" was never defined. 31053Usually this means the macro was only invoked conditionally." "$LINENO" 5 31054fi 31055if test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE}" && test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE}"; then 31056 as_fn_error $? "conditional \"HWLOC_HAVE_32BITS_PCI_DOMAIN\" was never defined. 31057Usually this means the macro was only invoked conditionally." "$LINENO" 5 31058fi 31059if test -z "${HWLOC_HAVE_PLUGINS_TRUE}" && test -z "${HWLOC_HAVE_PLUGINS_FALSE}"; then 31060 as_fn_error $? "conditional \"HWLOC_HAVE_PLUGINS\" was never defined. 31061Usually this means the macro was only invoked conditionally." "$LINENO" 5 31062fi 31063if test -z "${HWLOC_PCI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_PCI_BUILD_STATIC_FALSE}"; then 31064 as_fn_error $? "conditional \"HWLOC_PCI_BUILD_STATIC\" was never defined. 31065Usually this means the macro was only invoked conditionally." "$LINENO" 5 31066fi 31067if test -z "${HWLOC_OPENCL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_OPENCL_BUILD_STATIC_FALSE}"; then 31068 as_fn_error $? "conditional \"HWLOC_OPENCL_BUILD_STATIC\" was never defined. 31069Usually this means the macro was only invoked conditionally." "$LINENO" 5 31070fi 31071if test -z "${HWLOC_CUDA_BUILD_STATIC_TRUE}" && test -z "${HWLOC_CUDA_BUILD_STATIC_FALSE}"; then 31072 as_fn_error $? "conditional \"HWLOC_CUDA_BUILD_STATIC\" was never defined. 31073Usually this means the macro was only invoked conditionally." "$LINENO" 5 31074fi 31075if test -z "${HWLOC_NVML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_NVML_BUILD_STATIC_FALSE}"; then 31076 as_fn_error $? "conditional \"HWLOC_NVML_BUILD_STATIC\" was never defined. 31077Usually this means the macro was only invoked conditionally." "$LINENO" 5 31078fi 31079if test -z "${HWLOC_RSMI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_RSMI_BUILD_STATIC_FALSE}"; then 31080 as_fn_error $? "conditional \"HWLOC_RSMI_BUILD_STATIC\" was never defined. 31081Usually this means the macro was only invoked conditionally." "$LINENO" 5 31082fi 31083if test -z "${HWLOC_GL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_GL_BUILD_STATIC_FALSE}"; then 31084 as_fn_error $? "conditional \"HWLOC_GL_BUILD_STATIC\" was never defined. 31085Usually this means the macro was only invoked conditionally." "$LINENO" 5 31086fi 31087if test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_FALSE}"; then 31088 as_fn_error $? "conditional \"HWLOC_XML_LIBXML_BUILD_STATIC\" was never defined. 31089Usually this means the macro was only invoked conditionally." "$LINENO" 5 31090fi 31091if test -z "${HWLOC_HAVE_CXX_TRUE}" && test -z "${HWLOC_HAVE_CXX_FALSE}"; then 31092 as_fn_error $? "conditional \"HWLOC_HAVE_CXX\" was never defined. 31093Usually this means the macro was only invoked conditionally." "$LINENO" 5 31094fi 31095if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then 31096 as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined. 31097Usually this means the macro was only invoked conditionally." "$LINENO" 5 31098fi 31099if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then 31100 as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined. 31101Usually this means the macro was only invoked conditionally." "$LINENO" 5 31102fi 31103if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then 31104 as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined. 31105Usually this means the macro was only invoked conditionally." "$LINENO" 5 31106fi 31107if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then 31108 as_fn_error $? "conditional \"FOUND_XZ\" was never defined. 31109Usually this means the macro was only invoked conditionally." "$LINENO" 5 31110fi 31111if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then 31112 as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined. 31113Usually this means the macro was only invoked conditionally." "$LINENO" 5 31114fi 31115if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then 31116 as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined. 31117Usually this means the macro was only invoked conditionally." "$LINENO" 5 31118fi 31119if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then 31120 as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined. 31121Usually this means the macro was only invoked conditionally." "$LINENO" 5 31122fi 31123if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then 31124 as_fn_error $? "conditional \"FOUND_XZ\" was never defined. 31125Usually this means the macro was only invoked conditionally." "$LINENO" 5 31126fi 31127 31128: "${CONFIG_STATUS=./config.status}" 31129ac_write_fail=0 31130ac_clean_files_save=$ac_clean_files 31131ac_clean_files="$ac_clean_files $CONFIG_STATUS" 31132{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 31133$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 31134as_write_fail=0 31135cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 31136#! $SHELL 31137# Generated by $as_me. 31138# Run this file to recreate the current configuration. 31139# Compiler output produced by configure, useful for debugging 31140# configure, is in config.log if it exists. 31141 31142debug=false 31143ac_cs_recheck=false 31144ac_cs_silent=false 31145 31146SHELL=\${CONFIG_SHELL-$SHELL} 31147export SHELL 31148_ASEOF 31149cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 31150## -------------------- ## 31151## M4sh Initialization. ## 31152## -------------------- ## 31153 31154# Be more Bourne compatible 31155DUALCASE=1; export DUALCASE # for MKS sh 31156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 31157 emulate sh 31158 NULLCMD=: 31159 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31160 # is contrary to our usage. Disable this feature. 31161 alias -g '${1+"$@"}'='"$@"' 31162 setopt NO_GLOB_SUBST 31163else 31164 case `(set -o) 2>/dev/null` in #( 31165 *posix*) : 31166 set -o posix ;; #( 31167 *) : 31168 ;; 31169esac 31170fi 31171 31172 31173as_nl=' 31174' 31175export as_nl 31176# Printing a long string crashes Solaris 7 /usr/bin/printf. 31177as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 31178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 31179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 31180# Prefer a ksh shell builtin over an external printf program on Solaris, 31181# but without wasting forks for bash or zsh. 31182if test -z "$BASH_VERSION$ZSH_VERSION" \ 31183 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 31184 as_echo='print -r --' 31185 as_echo_n='print -rn --' 31186elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 31187 as_echo='printf %s\n' 31188 as_echo_n='printf %s' 31189else 31190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 31191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 31192 as_echo_n='/usr/ucb/echo -n' 31193 else 31194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 31195 as_echo_n_body='eval 31196 arg=$1; 31197 case $arg in #( 31198 *"$as_nl"*) 31199 expr "X$arg" : "X\\(.*\\)$as_nl"; 31200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 31201 esac; 31202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 31203 ' 31204 export as_echo_n_body 31205 as_echo_n='sh -c $as_echo_n_body as_echo' 31206 fi 31207 export as_echo_body 31208 as_echo='sh -c $as_echo_body as_echo' 31209fi 31210 31211# The user is always right. 31212if test "${PATH_SEPARATOR+set}" != set; then 31213 PATH_SEPARATOR=: 31214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31216 PATH_SEPARATOR=';' 31217 } 31218fi 31219 31220 31221# IFS 31222# We need space, tab and new line, in precisely that order. Quoting is 31223# there to prevent editors from complaining about space-tab. 31224# (If _AS_PATH_WALK were called with IFS unset, it would disable word 31225# splitting by setting IFS to empty value.) 31226IFS=" "" $as_nl" 31227 31228# Find who we are. Look in the path if we contain no directory separator. 31229as_myself= 31230case $0 in #(( 31231 *[\\/]* ) as_myself=$0 ;; 31232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31233for as_dir in $PATH 31234do 31235 IFS=$as_save_IFS 31236 test -z "$as_dir" && as_dir=. 31237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 31238 done 31239IFS=$as_save_IFS 31240 31241 ;; 31242esac 31243# We did not find ourselves, most probably we were run as `sh COMMAND' 31244# in which case we are not to be found in the path. 31245if test "x$as_myself" = x; then 31246 as_myself=$0 31247fi 31248if test ! -f "$as_myself"; then 31249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 31250 exit 1 31251fi 31252 31253# Unset variables that we do not need and which cause bugs (e.g. in 31254# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 31255# suppresses any "Segmentation fault" message there. '((' could 31256# trigger a bug in pdksh 5.2.14. 31257for as_var in BASH_ENV ENV MAIL MAILPATH 31258do eval test x\${$as_var+set} = xset \ 31259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31260done 31261PS1='$ ' 31262PS2='> ' 31263PS4='+ ' 31264 31265# NLS nuisances. 31266LC_ALL=C 31267export LC_ALL 31268LANGUAGE=C 31269export LANGUAGE 31270 31271# CDPATH. 31272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31273 31274 31275# as_fn_error STATUS ERROR [LINENO LOG_FD] 31276# ---------------------------------------- 31277# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 31278# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 31279# script with STATUS, using 1 if that was 0. 31280as_fn_error () 31281{ 31282 as_status=$1; test $as_status -eq 0 && as_status=1 31283 if test "$4"; then 31284 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 31285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 31286 fi 31287 $as_echo "$as_me: error: $2" >&2 31288 as_fn_exit $as_status 31289} # as_fn_error 31290 31291 31292# as_fn_set_status STATUS 31293# ----------------------- 31294# Set $? to STATUS, without forking. 31295as_fn_set_status () 31296{ 31297 return $1 31298} # as_fn_set_status 31299 31300# as_fn_exit STATUS 31301# ----------------- 31302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31303as_fn_exit () 31304{ 31305 set +e 31306 as_fn_set_status $1 31307 exit $1 31308} # as_fn_exit 31309 31310# as_fn_unset VAR 31311# --------------- 31312# Portably unset VAR. 31313as_fn_unset () 31314{ 31315 { eval $1=; unset $1;} 31316} 31317as_unset=as_fn_unset 31318# as_fn_append VAR VALUE 31319# ---------------------- 31320# Append the text in VALUE to the end of the definition contained in VAR. Take 31321# advantage of any shell optimizations that allow amortized linear growth over 31322# repeated appends, instead of the typical quadratic growth present in naive 31323# implementations. 31324if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 31325 eval 'as_fn_append () 31326 { 31327 eval $1+=\$2 31328 }' 31329else 31330 as_fn_append () 31331 { 31332 eval $1=\$$1\$2 31333 } 31334fi # as_fn_append 31335 31336# as_fn_arith ARG... 31337# ------------------ 31338# Perform arithmetic evaluation on the ARGs, and store the result in the 31339# global $as_val. Take advantage of shells that can avoid forks. The arguments 31340# must be portable across $(()) and expr. 31341if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 31342 eval 'as_fn_arith () 31343 { 31344 as_val=$(( $* )) 31345 }' 31346else 31347 as_fn_arith () 31348 { 31349 as_val=`expr "$@" || test $? -eq 1` 31350 } 31351fi # as_fn_arith 31352 31353 31354if expr a : '\(a\)' >/dev/null 2>&1 && 31355 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31356 as_expr=expr 31357else 31358 as_expr=false 31359fi 31360 31361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31362 as_basename=basename 31363else 31364 as_basename=false 31365fi 31366 31367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31368 as_dirname=dirname 31369else 31370 as_dirname=false 31371fi 31372 31373as_me=`$as_basename -- "$0" || 31374$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31375 X"$0" : 'X\(//\)$' \| \ 31376 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31377$as_echo X/"$0" | 31378 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31379 s//\1/ 31380 q 31381 } 31382 /^X\/\(\/\/\)$/{ 31383 s//\1/ 31384 q 31385 } 31386 /^X\/\(\/\).*/{ 31387 s//\1/ 31388 q 31389 } 31390 s/.*/./; q'` 31391 31392# Avoid depending upon Character Ranges. 31393as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31395as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31396as_cr_digits='0123456789' 31397as_cr_alnum=$as_cr_Letters$as_cr_digits 31398 31399ECHO_C= ECHO_N= ECHO_T= 31400case `echo -n x` in #((((( 31401-n*) 31402 case `echo 'xy\c'` in 31403 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31404 xy) ECHO_C='\c';; 31405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31406 ECHO_T=' ';; 31407 esac;; 31408*) 31409 ECHO_N='-n';; 31410esac 31411 31412rm -f conf$$ conf$$.exe conf$$.file 31413if test -d conf$$.dir; then 31414 rm -f conf$$.dir/conf$$.file 31415else 31416 rm -f conf$$.dir 31417 mkdir conf$$.dir 2>/dev/null 31418fi 31419if (echo >conf$$.file) 2>/dev/null; then 31420 if ln -s conf$$.file conf$$ 2>/dev/null; then 31421 as_ln_s='ln -s' 31422 # ... but there are two gotchas: 31423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31425 # In both cases, we have to default to `cp -pR'. 31426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31427 as_ln_s='cp -pR' 31428 elif ln conf$$.file conf$$ 2>/dev/null; then 31429 as_ln_s=ln 31430 else 31431 as_ln_s='cp -pR' 31432 fi 31433else 31434 as_ln_s='cp -pR' 31435fi 31436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31437rmdir conf$$.dir 2>/dev/null 31438 31439 31440# as_fn_mkdir_p 31441# ------------- 31442# Create "$as_dir" as a directory, including parents if necessary. 31443as_fn_mkdir_p () 31444{ 31445 31446 case $as_dir in #( 31447 -*) as_dir=./$as_dir;; 31448 esac 31449 test -d "$as_dir" || eval $as_mkdir_p || { 31450 as_dirs= 31451 while :; do 31452 case $as_dir in #( 31453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31454 *) as_qdir=$as_dir;; 31455 esac 31456 as_dirs="'$as_qdir' $as_dirs" 31457 as_dir=`$as_dirname -- "$as_dir" || 31458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31459 X"$as_dir" : 'X\(//\)[^/]' \| \ 31460 X"$as_dir" : 'X\(//\)$' \| \ 31461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31462$as_echo X"$as_dir" | 31463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31464 s//\1/ 31465 q 31466 } 31467 /^X\(\/\/\)[^/].*/{ 31468 s//\1/ 31469 q 31470 } 31471 /^X\(\/\/\)$/{ 31472 s//\1/ 31473 q 31474 } 31475 /^X\(\/\).*/{ 31476 s//\1/ 31477 q 31478 } 31479 s/.*/./; q'` 31480 test -d "$as_dir" && break 31481 done 31482 test -z "$as_dirs" || eval "mkdir $as_dirs" 31483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31484 31485 31486} # as_fn_mkdir_p 31487if mkdir -p . 2>/dev/null; then 31488 as_mkdir_p='mkdir -p "$as_dir"' 31489else 31490 test -d ./-p && rmdir ./-p 31491 as_mkdir_p=false 31492fi 31493 31494 31495# as_fn_executable_p FILE 31496# ----------------------- 31497# Test if FILE is an executable regular file. 31498as_fn_executable_p () 31499{ 31500 test -f "$1" && test -x "$1" 31501} # as_fn_executable_p 31502as_test_x='test -x' 31503as_executable_p=as_fn_executable_p 31504 31505# Sed expression to map a string onto a valid CPP name. 31506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31507 31508# Sed expression to map a string onto a valid variable name. 31509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31510 31511 31512exec 6>&1 31513## ----------------------------------- ## 31514## Main body of $CONFIG_STATUS script. ## 31515## ----------------------------------- ## 31516_ASEOF 31517test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31518 31519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31520# Save the log message, to keep $0 and so on meaningful, and to 31521# report actual input values of CONFIG_FILES etc. instead of their 31522# values after options handling. 31523ac_log=" 31524This file was extended by hwloc $as_me 2.4.1rc3-git, which was 31525generated by GNU Autoconf 2.69. Invocation command line was 31526 31527 CONFIG_FILES = $CONFIG_FILES 31528 CONFIG_HEADERS = $CONFIG_HEADERS 31529 CONFIG_LINKS = $CONFIG_LINKS 31530 CONFIG_COMMANDS = $CONFIG_COMMANDS 31531 $ $0 $@ 31532 31533on `(hostname || uname -n) 2>/dev/null | sed 1q` 31534" 31535 31536_ACEOF 31537 31538case $ac_config_files in *" 31539"*) set x $ac_config_files; shift; ac_config_files=$*;; 31540esac 31541 31542case $ac_config_headers in *" 31543"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31544esac 31545 31546 31547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31548# Files that config.status was made for. 31549config_files="$ac_config_files" 31550config_headers="$ac_config_headers" 31551config_links="$ac_config_links" 31552config_commands="$ac_config_commands" 31553 31554_ACEOF 31555 31556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31557ac_cs_usage="\ 31558\`$as_me' instantiates files and other configuration actions 31559from templates according to the current configuration. Unless the files 31560and actions are specified as TAGs, all are instantiated by default. 31561 31562Usage: $0 [OPTION]... [TAG]... 31563 31564 -h, --help print this help, then exit 31565 -V, --version print version number and configuration settings, then exit 31566 --config print configuration, then exit 31567 -q, --quiet, --silent 31568 do not print progress messages 31569 -d, --debug don't remove temporary files 31570 --recheck update $as_me by reconfiguring in the same conditions 31571 --file=FILE[:TEMPLATE] 31572 instantiate the configuration file FILE 31573 --header=FILE[:TEMPLATE] 31574 instantiate the configuration header FILE 31575 31576Configuration files: 31577$config_files 31578 31579Configuration headers: 31580$config_headers 31581 31582Configuration links: 31583$config_links 31584 31585Configuration commands: 31586$config_commands 31587 31588Report bugs to <https://github.com/open-mpi/hwloc/issues>." 31589 31590_ACEOF 31591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31592ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 31593ac_cs_version="\\ 31594hwloc config.status 2.4.1rc3-git 31595configured by $0, generated by GNU Autoconf 2.69, 31596 with options \\"\$ac_cs_config\\" 31597 31598Copyright (C) 2012 Free Software Foundation, Inc. 31599This config.status script is free software; the Free Software Foundation 31600gives unlimited permission to copy, distribute and modify it." 31601 31602ac_pwd='$ac_pwd' 31603srcdir='$srcdir' 31604INSTALL='$INSTALL' 31605MKDIR_P='$MKDIR_P' 31606AWK='$AWK' 31607test -n "\$AWK" || AWK=awk 31608_ACEOF 31609 31610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31611# The default lists apply if the user does not specify any file. 31612ac_need_defaults=: 31613while test $# != 0 31614do 31615 case $1 in 31616 --*=?*) 31617 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31619 ac_shift=: 31620 ;; 31621 --*=) 31622 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31623 ac_optarg= 31624 ac_shift=: 31625 ;; 31626 *) 31627 ac_option=$1 31628 ac_optarg=$2 31629 ac_shift=shift 31630 ;; 31631 esac 31632 31633 case $ac_option in 31634 # Handling of the options. 31635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31636 ac_cs_recheck=: ;; 31637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31638 $as_echo "$ac_cs_version"; exit ;; 31639 --config | --confi | --conf | --con | --co | --c ) 31640 $as_echo "$ac_cs_config"; exit ;; 31641 --debug | --debu | --deb | --de | --d | -d ) 31642 debug=: ;; 31643 --file | --fil | --fi | --f ) 31644 $ac_shift 31645 case $ac_optarg in 31646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31647 '') as_fn_error $? "missing file argument" ;; 31648 esac 31649 as_fn_append CONFIG_FILES " '$ac_optarg'" 31650 ac_need_defaults=false;; 31651 --header | --heade | --head | --hea ) 31652 $ac_shift 31653 case $ac_optarg in 31654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31655 esac 31656 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31657 ac_need_defaults=false;; 31658 --he | --h) 31659 # Conflict between --help and --header 31660 as_fn_error $? "ambiguous option: \`$1' 31661Try \`$0 --help' for more information.";; 31662 --help | --hel | -h ) 31663 $as_echo "$ac_cs_usage"; exit ;; 31664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31665 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31666 ac_cs_silent=: ;; 31667 31668 # This is an error. 31669 -*) as_fn_error $? "unrecognized option: \`$1' 31670Try \`$0 --help' for more information." ;; 31671 31672 *) as_fn_append ac_config_targets " $1" 31673 ac_need_defaults=false ;; 31674 31675 esac 31676 shift 31677done 31678 31679ac_configure_extra_args= 31680 31681if $ac_cs_silent; then 31682 exec 6>/dev/null 31683 ac_configure_extra_args="$ac_configure_extra_args --silent" 31684fi 31685 31686_ACEOF 31687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31688if \$ac_cs_recheck; then 31689 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31690 shift 31691 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 31692 CONFIG_SHELL='$SHELL' 31693 export CONFIG_SHELL 31694 exec "\$@" 31695fi 31696 31697_ACEOF 31698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31699exec 5>>config.log 31700{ 31701 echo 31702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31703## Running $as_me. ## 31704_ASBOX 31705 $as_echo "$ac_log" 31706} >&5 31707 31708_ACEOF 31709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31710# 31711# INIT-COMMANDS 31712# 31713AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 31714 31715 31716# The HP-UX ksh and POSIX shell print the target directory to stdout 31717# if CDPATH is set. 31718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31719 31720sed_quote_subst='$sed_quote_subst' 31721double_quote_subst='$double_quote_subst' 31722delay_variable_subst='$delay_variable_subst' 31723enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 31724enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 31725macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 31726macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 31727AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 31728DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 31729OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 31730pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 31731enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 31732shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 31733SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 31734ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 31735PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 31736host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 31737host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 31738host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 31739build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 31740build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 31741build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 31742SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 31743Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 31744GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 31745EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 31746FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 31747LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 31748NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 31749LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 31750max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 31751ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 31752exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 31753lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 31754lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 31755lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 31756lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 31757lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 31758reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 31759reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 31760deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 31761file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 31762file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 31763want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 31764sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 31765AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 31766AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 31767archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 31768STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 31769RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 31770old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31771old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31772old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 31773lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 31774CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 31775CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 31776compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 31777GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 31778lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 31779lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 31780lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 31781lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 31782lt_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"`' 31783lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 31784nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 31785lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 31786lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 31787objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 31788MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 31789lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 31790lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 31791lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 31792lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 31793lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 31794need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 31795MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 31796DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 31797NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 31798LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 31799OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 31800OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 31801libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 31802shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 31803extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31804archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 31805enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 31806export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 31807whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 31808compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 31809old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 31810old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31811archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 31812archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 31813module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 31814module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 31815with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 31816allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 31817no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 31818hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 31819hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 31820hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 31821hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 31822hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 31823hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 31824hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 31825inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 31826link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 31827always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 31828export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 31829exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 31830include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 31831prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 31832postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 31833file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 31834variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 31835need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 31836need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 31837version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 31838runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 31839shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 31840shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 31841libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 31842library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 31843soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 31844install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 31845postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31846postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31847finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 31848finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 31849hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 31850sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 31851configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 31852configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 31853hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 31854enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 31855enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 31856enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 31857old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 31858striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 31859compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 31860predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 31861postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 31862predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 31863postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 31864compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 31865LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 31866reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 31867reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31868old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31869compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 31870GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 31871lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 31872lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 31873lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 31874lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 31875lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 31876archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 31877enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 31878export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 31879whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 31880compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 31881old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31882old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31883archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31884archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31885module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31886module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31887with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 31888allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 31889no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 31890hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 31891hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 31892hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 31893hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 31894hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 31895hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 31896hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 31897inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 31898link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 31899always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 31900export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31901exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 31902include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 31903prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31904postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31905file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 31906hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 31907compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 31908predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 31909postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 31910predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 31911postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 31912compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 31913 31914LTCC='$LTCC' 31915LTCFLAGS='$LTCFLAGS' 31916compiler='$compiler_DEFAULT' 31917 31918# A function that is used when there is no print builtin or printf. 31919func_fallback_echo () 31920{ 31921 eval 'cat <<_LTECHO_EOF 31922\$1 31923_LTECHO_EOF' 31924} 31925 31926# Quote evaled strings. 31927for var in AS \ 31928DLLTOOL \ 31929OBJDUMP \ 31930SHELL \ 31931ECHO \ 31932PATH_SEPARATOR \ 31933SED \ 31934GREP \ 31935EGREP \ 31936FGREP \ 31937LD \ 31938NM \ 31939LN_S \ 31940lt_SP2NL \ 31941lt_NL2SP \ 31942reload_flag \ 31943deplibs_check_method \ 31944file_magic_cmd \ 31945file_magic_glob \ 31946want_nocaseglob \ 31947sharedlib_from_linklib_cmd \ 31948AR \ 31949AR_FLAGS \ 31950archiver_list_spec \ 31951STRIP \ 31952RANLIB \ 31953CC \ 31954CFLAGS \ 31955compiler \ 31956lt_cv_sys_global_symbol_pipe \ 31957lt_cv_sys_global_symbol_to_cdecl \ 31958lt_cv_sys_global_symbol_to_import \ 31959lt_cv_sys_global_symbol_to_c_name_address \ 31960lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 31961lt_cv_nm_interface \ 31962nm_file_list_spec \ 31963lt_cv_truncate_bin \ 31964lt_prog_compiler_no_builtin_flag \ 31965lt_prog_compiler_pic \ 31966lt_prog_compiler_wl \ 31967lt_prog_compiler_static \ 31968lt_cv_prog_compiler_c_o \ 31969need_locks \ 31970MANIFEST_TOOL \ 31971DSYMUTIL \ 31972NMEDIT \ 31973LIPO \ 31974OTOOL \ 31975OTOOL64 \ 31976shrext_cmds \ 31977export_dynamic_flag_spec \ 31978whole_archive_flag_spec \ 31979compiler_needs_object \ 31980with_gnu_ld \ 31981allow_undefined_flag \ 31982no_undefined_flag \ 31983hardcode_libdir_flag_spec \ 31984hardcode_libdir_separator \ 31985exclude_expsyms \ 31986include_expsyms \ 31987file_list_spec \ 31988variables_saved_for_relink \ 31989libname_spec \ 31990library_names_spec \ 31991soname_spec \ 31992install_override_mode \ 31993finish_eval \ 31994old_striplib \ 31995striplib \ 31996compiler_lib_search_dirs \ 31997predep_objects \ 31998postdep_objects \ 31999predeps \ 32000postdeps \ 32001compiler_lib_search_path \ 32002LD_CXX \ 32003reload_flag_CXX \ 32004compiler_CXX \ 32005lt_prog_compiler_no_builtin_flag_CXX \ 32006lt_prog_compiler_pic_CXX \ 32007lt_prog_compiler_wl_CXX \ 32008lt_prog_compiler_static_CXX \ 32009lt_cv_prog_compiler_c_o_CXX \ 32010export_dynamic_flag_spec_CXX \ 32011whole_archive_flag_spec_CXX \ 32012compiler_needs_object_CXX \ 32013with_gnu_ld_CXX \ 32014allow_undefined_flag_CXX \ 32015no_undefined_flag_CXX \ 32016hardcode_libdir_flag_spec_CXX \ 32017hardcode_libdir_separator_CXX \ 32018exclude_expsyms_CXX \ 32019include_expsyms_CXX \ 32020file_list_spec_CXX \ 32021compiler_lib_search_dirs_CXX \ 32022predep_objects_CXX \ 32023postdep_objects_CXX \ 32024predeps_CXX \ 32025postdeps_CXX \ 32026compiler_lib_search_path_CXX; do 32027 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32028 *[\\\\\\\`\\"\\\$]*) 32029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32030 ;; 32031 *) 32032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32033 ;; 32034 esac 32035done 32036 32037# Double-quote double-evaled strings. 32038for var in reload_cmds \ 32039old_postinstall_cmds \ 32040old_postuninstall_cmds \ 32041old_archive_cmds \ 32042extract_expsyms_cmds \ 32043old_archive_from_new_cmds \ 32044old_archive_from_expsyms_cmds \ 32045archive_cmds \ 32046archive_expsym_cmds \ 32047module_cmds \ 32048module_expsym_cmds \ 32049export_symbols_cmds \ 32050prelink_cmds \ 32051postlink_cmds \ 32052postinstall_cmds \ 32053postuninstall_cmds \ 32054finish_cmds \ 32055sys_lib_search_path_spec \ 32056configure_time_dlsearch_path \ 32057configure_time_lt_sys_library_path \ 32058reload_cmds_CXX \ 32059old_archive_cmds_CXX \ 32060old_archive_from_new_cmds_CXX \ 32061old_archive_from_expsyms_cmds_CXX \ 32062archive_cmds_CXX \ 32063archive_expsym_cmds_CXX \ 32064module_cmds_CXX \ 32065module_expsym_cmds_CXX \ 32066export_symbols_cmds_CXX \ 32067prelink_cmds_CXX \ 32068postlink_cmds_CXX; do 32069 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32070 *[\\\\\\\`\\"\\\$]*) 32071 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32072 ;; 32073 *) 32074 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32075 ;; 32076 esac 32077done 32078 32079ac_aux_dir='$ac_aux_dir' 32080 32081# See if we are running on zsh, and set the options that allow our 32082# commands through without removal of \ escapes INIT. 32083if test -n "\${ZSH_VERSION+set}"; then 32084 setopt NO_GLOB_SUBST 32085fi 32086 32087 32088 PACKAGE='$PACKAGE' 32089 VERSION='$VERSION' 32090 RM='$RM' 32091 ofile='$ofile' 32092 32093 32094 32095 32096 32097 32098_ACEOF 32099 32100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32101 32102# Handling of arguments. 32103for ac_config_target in $ac_config_targets 32104do 32105 case $ac_config_target in 32106 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 32107 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 32108 "include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/autogen/config.h" ;; 32109 "include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/hwloc/autogen/config.h" ;; 32110 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 32111 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 32112 "hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES hwloc/Makefile" ;; 32113 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 32114 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;; 32115 "doc/doxygen-config.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen-config.cfg" ;; 32116 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 32117 "utils/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/hwloc/Makefile" ;; 32118 "utils/lstopo/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lstopo/Makefile" ;; 32119 "hwloc.pc") CONFIG_FILES="$CONFIG_FILES hwloc.pc" ;; 32120 "netloc/Makefile") CONFIG_FILES="$CONFIG_FILES netloc/Makefile" ;; 32121 "utils/netloc/infiniband/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/infiniband/Makefile" ;; 32122 "utils/netloc/draw/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/draw/Makefile" ;; 32123 "utils/netloc/scotch/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/scotch/Makefile" ;; 32124 "utils/netloc/mpi/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/mpi/Makefile" ;; 32125 "netloc.pc") CONFIG_FILES="$CONFIG_FILES netloc.pc" ;; 32126 "netlocscotch.pc") CONFIG_FILES="$CONFIG_FILES netlocscotch.pc" ;; 32127 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 32128 "tests/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/Makefile" ;; 32129 "tests/hwloc/linux/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/Makefile" ;; 32130 "tests/hwloc/linux/allowed/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/allowed/Makefile" ;; 32131 "tests/hwloc/linux/gather/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/gather/Makefile" ;; 32132 "tests/hwloc/x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86/Makefile" ;; 32133 "tests/hwloc/x86+linux/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86+linux/Makefile" ;; 32134 "tests/hwloc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/xml/Makefile" ;; 32135 "tests/hwloc/ports/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/ports/Makefile" ;; 32136 "tests/hwloc/rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/rename/Makefile" ;; 32137 "tests/hwloc/linux/allowed/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/allowed/test-topology.sh" ;; 32138 "tests/hwloc/linux/gather/test-gather-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/gather/test-gather-topology.sh" ;; 32139 "tests/hwloc/linux/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/test-topology.sh" ;; 32140 "tests/hwloc/x86/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86/test-topology.sh" ;; 32141 "tests/hwloc/x86+linux/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86+linux/test-topology.sh" ;; 32142 "tests/hwloc/xml/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/xml/test-topology.sh" ;; 32143 "tests/hwloc/wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/wrapper.sh" ;; 32144 "utils/hwloc/hwloc-compress-dir") CONFIG_FILES="$CONFIG_FILES utils/hwloc/hwloc-compress-dir" ;; 32145 "utils/hwloc/hwloc-gather-topology") CONFIG_FILES="$CONFIG_FILES utils/hwloc/hwloc-gather-topology" ;; 32146 "utils/hwloc/test-hwloc-annotate.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-annotate.sh" ;; 32147 "utils/hwloc/test-hwloc-calc.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-calc.sh" ;; 32148 "utils/hwloc/test-hwloc-compress-dir.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-compress-dir.sh" ;; 32149 "utils/hwloc/test-hwloc-diffpatch.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-diffpatch.sh" ;; 32150 "utils/hwloc/test-hwloc-distrib.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-distrib.sh" ;; 32151 "utils/hwloc/test-hwloc-info.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-info.sh" ;; 32152 "utils/hwloc/test-fake-plugin.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-fake-plugin.sh" ;; 32153 "utils/hwloc/test-parsing-flags.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-parsing-flags.sh" ;; 32154 "utils/hwloc/test-hwloc-dump-hwdata/Makefile") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-dump-hwdata/Makefile" ;; 32155 "utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh" ;; 32156 "utils/lstopo/test-lstopo.sh") CONFIG_FILES="$CONFIG_FILES utils/lstopo/test-lstopo.sh" ;; 32157 "utils/lstopo/test-lstopo-shmem.sh") CONFIG_FILES="$CONFIG_FILES utils/lstopo/test-lstopo-shmem.sh" ;; 32158 "utils/netloc/infiniband/netloc_ib_gather_raw") CONFIG_FILES="$CONFIG_FILES utils/netloc/infiniband/netloc_ib_gather_raw" ;; 32159 "contrib/hwloc-ps.www/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/hwloc-ps.www/Makefile" ;; 32160 "contrib/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/systemd/Makefile" ;; 32161 "contrib/completion/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/completion/Makefile" ;; 32162 "contrib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/misc/Makefile" ;; 32163 "contrib/windows/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/windows/Makefile" ;; 32164 "contrib/windows/test-windows-version.sh") CONFIG_FILES="$CONFIG_FILES contrib/windows/test-windows-version.sh" ;; 32165 "tests/netloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/netloc/Makefile" ;; 32166 "tests/netloc/tests.sh") CONFIG_FILES="$CONFIG_FILES tests/netloc/tests.sh" ;; 32167 "chmoding-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmoding-scripts" ;; 32168 "tests/hwloc/ports/topology-solaris.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-solaris.c:hwloc/topology-solaris.c" ;; 32169 "tests/hwloc/ports/topology-solaris-chiptype.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-solaris-chiptype.c:hwloc/topology-solaris-chiptype.c" ;; 32170 "tests/hwloc/ports/topology-aix.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-aix.c:hwloc/topology-aix.c" ;; 32171 "tests/hwloc/ports/topology-windows.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-windows.c:hwloc/topology-windows.c" ;; 32172 "tests/hwloc/ports/topology-darwin.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-darwin.c:hwloc/topology-darwin.c" ;; 32173 "tests/hwloc/ports/topology-freebsd.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-freebsd.c:hwloc/topology-freebsd.c" ;; 32174 "tests/hwloc/ports/topology-netbsd.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-netbsd.c:hwloc/topology-netbsd.c" ;; 32175 "tests/hwloc/ports/topology-hpux.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-hpux.c:hwloc/topology-hpux.c" ;; 32176 "tests/hwloc/ports/topology-bgq.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-bgq.c:hwloc/topology-bgq.c" ;; 32177 "tests/hwloc/ports/topology-opencl.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-opencl.c:hwloc/topology-opencl.c" ;; 32178 "tests/hwloc/ports/topology-cuda.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-cuda.c:hwloc/topology-cuda.c" ;; 32179 "tests/hwloc/ports/topology-nvml.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-nvml.c:hwloc/topology-nvml.c" ;; 32180 "tests/hwloc/ports/topology-rsmi.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-rsmi.c:hwloc/topology-rsmi.c" ;; 32181 "tests/hwloc/ports/topology-gl.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-gl.c:hwloc/topology-gl.c" ;; 32182 "tests/hwloc/ports/lstopo-windows.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/lstopo-windows.c:utils/lstopo/lstopo-windows.c" ;; 32183 "tests/hwloc/ports/lstopo-android.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/lstopo-android.c:utils/lstopo/lstopo-android.c" ;; 32184 32185 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 32186 esac 32187done 32188 32189 32190# If the user did not use the arguments to specify the items to instantiate, 32191# then the envvar interface is used. Set only those that are not. 32192# We use the long form for the default assignment because of an extremely 32193# bizarre bug on SunOS 4.1.3. 32194if $ac_need_defaults; then 32195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 32196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 32197 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 32198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 32199fi 32200 32201# Have a temporary directory for convenience. Make it in the build tree 32202# simply because there is no reason against having it here, and in addition, 32203# creating and moving files from /tmp can sometimes cause problems. 32204# Hook for its removal unless debugging. 32205# Note that there is a small window in which the directory will not be cleaned: 32206# after its creation but before its name has been assigned to `$tmp'. 32207$debug || 32208{ 32209 tmp= ac_tmp= 32210 trap 'exit_status=$? 32211 : "${ac_tmp:=$tmp}" 32212 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 32213' 0 32214 trap 'as_fn_exit 1' 1 2 13 15 32215} 32216# Create a (secure) tmp directory for tmp files. 32217 32218{ 32219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 32220 test -d "$tmp" 32221} || 32222{ 32223 tmp=./conf$$-$RANDOM 32224 (umask 077 && mkdir "$tmp") 32225} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 32226ac_tmp=$tmp 32227 32228# Set up the scripts for CONFIG_FILES section. 32229# No need to generate them if there are no CONFIG_FILES. 32230# This happens for instance with `./config.status config.h'. 32231if test -n "$CONFIG_FILES"; then 32232 32233 32234ac_cr=`echo X | tr X '\015'` 32235# On cygwin, bash can eat \r inside `` if the user requested igncr. 32236# But we know of no other shell where ac_cr would be empty at this 32237# point, so we can use a bashism as a fallback. 32238if test "x$ac_cr" = x; then 32239 eval ac_cr=\$\'\\r\' 32240fi 32241ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 32242if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 32243 ac_cs_awk_cr='\\r' 32244else 32245 ac_cs_awk_cr=$ac_cr 32246fi 32247 32248echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 32249_ACEOF 32250 32251 32252{ 32253 echo "cat >conf$$subs.awk <<_ACEOF" && 32254 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 32255 echo "_ACEOF" 32256} >conf$$subs.sh || 32257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32258ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 32259ac_delim='%!_!# ' 32260for ac_last_try in false false false false false :; do 32261 . ./conf$$subs.sh || 32262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32263 32264 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 32265 if test $ac_delim_n = $ac_delim_num; then 32266 break 32267 elif $ac_last_try; then 32268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32269 else 32270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32271 fi 32272done 32273rm -f conf$$subs.sh 32274 32275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32276cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 32277_ACEOF 32278sed -n ' 32279h 32280s/^/S["/; s/!.*/"]=/ 32281p 32282g 32283s/^[^!]*!// 32284:repl 32285t repl 32286s/'"$ac_delim"'$// 32287t delim 32288:nl 32289h 32290s/\(.\{148\}\)..*/\1/ 32291t more1 32292s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 32293p 32294n 32295b repl 32296:more1 32297s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32298p 32299g 32300s/.\{148\}// 32301t nl 32302:delim 32303h 32304s/\(.\{148\}\)..*/\1/ 32305t more2 32306s/["\\]/\\&/g; s/^/"/; s/$/"/ 32307p 32308b 32309:more2 32310s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32311p 32312g 32313s/.\{148\}// 32314t delim 32315' <conf$$subs.awk | sed ' 32316/^[^""]/{ 32317 N 32318 s/\n// 32319} 32320' >>$CONFIG_STATUS || ac_write_fail=1 32321rm -f conf$$subs.awk 32322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32323_ACAWK 32324cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 32325 for (key in S) S_is_set[key] = 1 32326 FS = "" 32327 32328} 32329{ 32330 line = $ 0 32331 nfields = split(line, field, "@") 32332 substed = 0 32333 len = length(field[1]) 32334 for (i = 2; i < nfields; i++) { 32335 key = field[i] 32336 keylen = length(key) 32337 if (S_is_set[key]) { 32338 value = S[key] 32339 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 32340 len += length(value) + length(field[++i]) 32341 substed = 1 32342 } else 32343 len += 1 + keylen 32344 } 32345 32346 print line 32347} 32348 32349_ACAWK 32350_ACEOF 32351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32352if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 32353 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 32354else 32355 cat 32356fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 32357 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 32358_ACEOF 32359 32360# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 32361# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 32362# trailing colons and then remove the whole line if VPATH becomes empty 32363# (actually we leave an empty line to preserve line numbers). 32364if test "x$srcdir" = x.; then 32365 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 32366h 32367s/// 32368s/^/:/ 32369s/[ ]*$/:/ 32370s/:\$(srcdir):/:/g 32371s/:\${srcdir}:/:/g 32372s/:@srcdir@:/:/g 32373s/^:*// 32374s/:*$// 32375x 32376s/\(=[ ]*\).*/\1/ 32377G 32378s/\n// 32379s/^[^=]*=[ ]*$// 32380}' 32381fi 32382 32383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32384fi # test -n "$CONFIG_FILES" 32385 32386# Set up the scripts for CONFIG_HEADERS section. 32387# No need to generate them if there are no CONFIG_HEADERS. 32388# This happens for instance with `./config.status Makefile'. 32389if test -n "$CONFIG_HEADERS"; then 32390cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32391BEGIN { 32392_ACEOF 32393 32394# Transform confdefs.h into an awk script `defines.awk', embedded as 32395# here-document in config.status, that substitutes the proper values into 32396# config.h.in to produce config.h. 32397 32398# Create a delimiter string that does not exist in confdefs.h, to ease 32399# handling of long lines. 32400ac_delim='%!_!# ' 32401for ac_last_try in false false :; do 32402 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32403 if test -z "$ac_tt"; then 32404 break 32405 elif $ac_last_try; then 32406 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32407 else 32408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32409 fi 32410done 32411 32412# For the awk script, D is an array of macro values keyed by name, 32413# likewise P contains macro parameters if any. Preserve backslash 32414# newline sequences. 32415 32416ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32417sed -n ' 32418s/.\{148\}/&'"$ac_delim"'/g 32419t rset 32420:rset 32421s/^[ ]*#[ ]*define[ ][ ]*/ / 32422t def 32423d 32424:def 32425s/\\$// 32426t bsnl 32427s/["\\]/\\&/g 32428s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32429D["\1"]=" \3"/p 32430s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32431d 32432:bsnl 32433s/["\\]/\\&/g 32434s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32435D["\1"]=" \3\\\\\\n"\\/p 32436t cont 32437s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32438t cont 32439d 32440:cont 32441n 32442s/.\{148\}/&'"$ac_delim"'/g 32443t clear 32444:clear 32445s/\\$// 32446t bsnlc 32447s/["\\]/\\&/g; s/^/"/; s/$/"/p 32448d 32449:bsnlc 32450s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32451b cont 32452' <confdefs.h | sed ' 32453s/'"$ac_delim"'/"\\\ 32454"/g' >>$CONFIG_STATUS || ac_write_fail=1 32455 32456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32457 for (key in D) D_is_set[key] = 1 32458 FS = "" 32459} 32460/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32461 line = \$ 0 32462 split(line, arg, " ") 32463 if (arg[1] == "#") { 32464 defundef = arg[2] 32465 mac1 = arg[3] 32466 } else { 32467 defundef = substr(arg[1], 2) 32468 mac1 = arg[2] 32469 } 32470 split(mac1, mac2, "(") #) 32471 macro = mac2[1] 32472 prefix = substr(line, 1, index(line, defundef) - 1) 32473 if (D_is_set[macro]) { 32474 # Preserve the white space surrounding the "#". 32475 print prefix "define", macro P[macro] D[macro] 32476 next 32477 } else { 32478 # Replace #undef with comments. This is necessary, for example, 32479 # in the case of _POSIX_SOURCE, which is predefined and required 32480 # on some systems where configure will not decide to define it. 32481 if (defundef == "undef") { 32482 print "/*", prefix defundef, macro, "*/" 32483 next 32484 } 32485 } 32486} 32487{ print } 32488_ACAWK 32489_ACEOF 32490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32491 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32492fi # test -n "$CONFIG_HEADERS" 32493 32494 32495eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 32496shift 32497for ac_tag 32498do 32499 case $ac_tag in 32500 :[FHLC]) ac_mode=$ac_tag; continue;; 32501 esac 32502 case $ac_mode$ac_tag in 32503 :[FHL]*:*);; 32504 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32505 :[FH]-) ac_tag=-:-;; 32506 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32507 esac 32508 ac_save_IFS=$IFS 32509 IFS=: 32510 set x $ac_tag 32511 IFS=$ac_save_IFS 32512 shift 32513 ac_file=$1 32514 shift 32515 32516 case $ac_mode in 32517 :L) ac_source=$1;; 32518 :[FH]) 32519 ac_file_inputs= 32520 for ac_f 32521 do 32522 case $ac_f in 32523 -) ac_f="$ac_tmp/stdin";; 32524 *) # Look for the file first in the build tree, then in the source tree 32525 # (if the path is not absolute). The absolute path cannot be DOS-style, 32526 # because $ac_f cannot contain `:'. 32527 test -f "$ac_f" || 32528 case $ac_f in 32529 [\\/$]*) false;; 32530 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32531 esac || 32532 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32533 esac 32534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32535 as_fn_append ac_file_inputs " '$ac_f'" 32536 done 32537 32538 # Let's still pretend it is `configure' which instantiates (i.e., don't 32539 # use $as_me), people would be surprised to read: 32540 # /* config.h. Generated by config.status. */ 32541 configure_input='Generated from '` 32542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32543 `' by configure.' 32544 if test x"$ac_file" != x-; then 32545 configure_input="$ac_file. $configure_input" 32546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32547$as_echo "$as_me: creating $ac_file" >&6;} 32548 fi 32549 # Neutralize special characters interpreted by sed in replacement strings. 32550 case $configure_input in #( 32551 *\&* | *\|* | *\\* ) 32552 ac_sed_conf_input=`$as_echo "$configure_input" | 32553 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32554 *) ac_sed_conf_input=$configure_input;; 32555 esac 32556 32557 case $ac_tag in 32558 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32560 esac 32561 ;; 32562 esac 32563 32564 ac_dir=`$as_dirname -- "$ac_file" || 32565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32566 X"$ac_file" : 'X\(//\)[^/]' \| \ 32567 X"$ac_file" : 'X\(//\)$' \| \ 32568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32569$as_echo X"$ac_file" | 32570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32571 s//\1/ 32572 q 32573 } 32574 /^X\(\/\/\)[^/].*/{ 32575 s//\1/ 32576 q 32577 } 32578 /^X\(\/\/\)$/{ 32579 s//\1/ 32580 q 32581 } 32582 /^X\(\/\).*/{ 32583 s//\1/ 32584 q 32585 } 32586 s/.*/./; q'` 32587 as_dir="$ac_dir"; as_fn_mkdir_p 32588 ac_builddir=. 32589 32590case "$ac_dir" in 32591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32592*) 32593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 32594 # A ".." for each directory in $ac_dir_suffix. 32595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32596 case $ac_top_builddir_sub in 32597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32599 esac ;; 32600esac 32601ac_abs_top_builddir=$ac_pwd 32602ac_abs_builddir=$ac_pwd$ac_dir_suffix 32603# for backward compatibility: 32604ac_top_builddir=$ac_top_build_prefix 32605 32606case $srcdir in 32607 .) # We are building in place. 32608 ac_srcdir=. 32609 ac_top_srcdir=$ac_top_builddir_sub 32610 ac_abs_top_srcdir=$ac_pwd ;; 32611 [\\/]* | ?:[\\/]* ) # Absolute name. 32612 ac_srcdir=$srcdir$ac_dir_suffix; 32613 ac_top_srcdir=$srcdir 32614 ac_abs_top_srcdir=$srcdir ;; 32615 *) # Relative name. 32616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32617 ac_top_srcdir=$ac_top_build_prefix$srcdir 32618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32619esac 32620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32621 32622 32623 case $ac_mode in 32624 :F) 32625 # 32626 # CONFIG_FILE 32627 # 32628 32629 case $INSTALL in 32630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 32631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 32632 esac 32633 ac_MKDIR_P=$MKDIR_P 32634 case $MKDIR_P in 32635 [\\/$]* | ?:[\\/]* ) ;; 32636 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 32637 esac 32638_ACEOF 32639 32640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32641# If the template does not know about datarootdir, expand it. 32642# FIXME: This hack should be removed a few years after 2.60. 32643ac_datarootdir_hack=; ac_datarootdir_seen= 32644ac_sed_dataroot=' 32645/datarootdir/ { 32646 p 32647 q 32648} 32649/@datadir@/p 32650/@docdir@/p 32651/@infodir@/p 32652/@localedir@/p 32653/@mandir@/p' 32654case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32655*datarootdir*) ac_datarootdir_seen=yes;; 32656*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32658$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32659_ACEOF 32660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32661 ac_datarootdir_hack=' 32662 s&@datadir@&$datadir&g 32663 s&@docdir@&$docdir&g 32664 s&@infodir@&$infodir&g 32665 s&@localedir@&$localedir&g 32666 s&@mandir@&$mandir&g 32667 s&\\\${datarootdir}&$datarootdir&g' ;; 32668esac 32669_ACEOF 32670 32671# Neutralize VPATH when `$srcdir' = `.'. 32672# Shell code in configure.ac might set extrasub. 32673# FIXME: do we really want to maintain this feature? 32674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32675ac_sed_extra="$ac_vpsub 32676$extrasub 32677_ACEOF 32678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32679:t 32680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32681s|@configure_input@|$ac_sed_conf_input|;t t 32682s&@top_builddir@&$ac_top_builddir_sub&;t t 32683s&@top_build_prefix@&$ac_top_build_prefix&;t t 32684s&@srcdir@&$ac_srcdir&;t t 32685s&@abs_srcdir@&$ac_abs_srcdir&;t t 32686s&@top_srcdir@&$ac_top_srcdir&;t t 32687s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32688s&@builddir@&$ac_builddir&;t t 32689s&@abs_builddir@&$ac_abs_builddir&;t t 32690s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32691s&@INSTALL@&$ac_INSTALL&;t t 32692s&@MKDIR_P@&$ac_MKDIR_P&;t t 32693$ac_datarootdir_hack 32694" 32695eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 32696 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32697 32698test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32699 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32701 "$ac_tmp/out"`; test -z "$ac_out"; } && 32702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32703which seems to be undefined. Please make sure it is defined" >&5 32704$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32705which seems to be undefined. Please make sure it is defined" >&2;} 32706 32707 rm -f "$ac_tmp/stdin" 32708 case $ac_file in 32709 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 32710 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 32711 esac \ 32712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32713 ;; 32714 :H) 32715 # 32716 # CONFIG_HEADER 32717 # 32718 if test x"$ac_file" != x-; then 32719 { 32720 $as_echo "/* $configure_input */" \ 32721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 32722 } >"$ac_tmp/config.h" \ 32723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32724 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 32725 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 32726$as_echo "$as_me: $ac_file is unchanged" >&6;} 32727 else 32728 rm -f "$ac_file" 32729 mv "$ac_tmp/config.h" "$ac_file" \ 32730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32731 fi 32732 else 32733 $as_echo "/* $configure_input */" \ 32734 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32735 || as_fn_error $? "could not create -" "$LINENO" 5 32736 fi 32737# Compute "$ac_file"'s index in $config_headers. 32738_am_arg="$ac_file" 32739_am_stamp_count=1 32740for _am_header in $config_headers :; do 32741 case $_am_header in 32742 $_am_arg | $_am_arg:* ) 32743 break ;; 32744 * ) 32745 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 32746 esac 32747done 32748echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 32749$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32750 X"$_am_arg" : 'X\(//\)[^/]' \| \ 32751 X"$_am_arg" : 'X\(//\)$' \| \ 32752 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 32753$as_echo X"$_am_arg" | 32754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32755 s//\1/ 32756 q 32757 } 32758 /^X\(\/\/\)[^/].*/{ 32759 s//\1/ 32760 q 32761 } 32762 /^X\(\/\/\)$/{ 32763 s//\1/ 32764 q 32765 } 32766 /^X\(\/\).*/{ 32767 s//\1/ 32768 q 32769 } 32770 s/.*/./; q'`/stamp-h$_am_stamp_count 32771 ;; 32772 :L) 32773 # 32774 # CONFIG_LINK 32775 # 32776 32777 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 32778 : 32779 else 32780 # Prefer the file from the source tree if names are identical. 32781 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 32782 ac_source=$srcdir/$ac_source 32783 fi 32784 32785 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 32786$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 32787 32788 if test ! -r "$ac_source"; then 32789 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 32790 fi 32791 rm -f "$ac_file" 32792 32793 # Try a relative symlink, then a hard link, then a copy. 32794 case $ac_source in 32795 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 32796 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 32797 esac 32798 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 32799 ln "$ac_source" "$ac_file" 2>/dev/null || 32800 cp -p "$ac_source" "$ac_file" || 32801 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 32802 fi 32803 ;; 32804 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32805$as_echo "$as_me: executing $ac_file commands" >&6;} 32806 ;; 32807 esac 32808 32809 32810 case $ac_file$ac_mode in 32811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 32812 # Older Autoconf quotes --file arguments for eval, but not when files 32813 # are listed without --file. Let's play safe and only enable the eval 32814 # if we detect the quoting. 32815 case $CONFIG_FILES in 32816 *\'*) eval set x "$CONFIG_FILES" ;; 32817 *) set x $CONFIG_FILES ;; 32818 esac 32819 shift 32820 for mf 32821 do 32822 # Strip MF so we end up with the name of the file. 32823 mf=`echo "$mf" | sed -e 's/:.*$//'` 32824 # Check whether this is an Automake generated Makefile or not. 32825 # We used to match only the files named 'Makefile.in', but 32826 # some people rename them; so instead we look at the file content. 32827 # Grep'ing the first line is not enough: some people post-process 32828 # each Makefile.in and add a new line on top of each file to say so. 32829 # Grep'ing the whole file is not good either: AIX grep has a line 32830 # limit of 2048, but all sed's we know have understand at least 4000. 32831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 32832 dirpart=`$as_dirname -- "$mf" || 32833$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32834 X"$mf" : 'X\(//\)[^/]' \| \ 32835 X"$mf" : 'X\(//\)$' \| \ 32836 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 32837$as_echo X"$mf" | 32838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32839 s//\1/ 32840 q 32841 } 32842 /^X\(\/\/\)[^/].*/{ 32843 s//\1/ 32844 q 32845 } 32846 /^X\(\/\/\)$/{ 32847 s//\1/ 32848 q 32849 } 32850 /^X\(\/\).*/{ 32851 s//\1/ 32852 q 32853 } 32854 s/.*/./; q'` 32855 else 32856 continue 32857 fi 32858 # Extract the definition of DEPDIR, am__include, and am__quote 32859 # from the Makefile without running 'make'. 32860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 32861 test -z "$DEPDIR" && continue 32862 am__include=`sed -n 's/^am__include = //p' < "$mf"` 32863 test -z "$am__include" && continue 32864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 32865 # Find all dependency output files, they are included files with 32866 # $(DEPDIR) in their names. We invoke sed twice because it is the 32867 # simplest approach to changing $(DEPDIR) to its actual value in the 32868 # expansion. 32869 for file in `sed -n " 32870 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 32871 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 32872 # Make sure the directory exists. 32873 test -f "$dirpart/$file" && continue 32874 fdir=`$as_dirname -- "$file" || 32875$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32876 X"$file" : 'X\(//\)[^/]' \| \ 32877 X"$file" : 'X\(//\)$' \| \ 32878 X"$file" : 'X\(/\)' \| . 2>/dev/null || 32879$as_echo X"$file" | 32880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32881 s//\1/ 32882 q 32883 } 32884 /^X\(\/\/\)[^/].*/{ 32885 s//\1/ 32886 q 32887 } 32888 /^X\(\/\/\)$/{ 32889 s//\1/ 32890 q 32891 } 32892 /^X\(\/\).*/{ 32893 s//\1/ 32894 q 32895 } 32896 s/.*/./; q'` 32897 as_dir=$dirpart/$fdir; as_fn_mkdir_p 32898 # echo "creating $dirpart/$file" 32899 echo '# dummy' > "$dirpart/$file" 32900 done 32901 done 32902} 32903 ;; 32904 "libtool":C) 32905 32906 # See if we are running on zsh, and set the options that allow our 32907 # commands through without removal of \ escapes. 32908 if test -n "${ZSH_VERSION+set}"; then 32909 setopt NO_GLOB_SUBST 32910 fi 32911 32912 cfgfile=${ofile}T 32913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 32914 $RM "$cfgfile" 32915 32916 cat <<_LT_EOF >> "$cfgfile" 32917#! $SHELL 32918# Generated automatically by $as_me ($PACKAGE) $VERSION 32919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 32920# NOTE: Changes made to this file will be lost: look at ltmain.sh. 32921 32922# Provide generalized library-building support services. 32923# Written by Gordon Matzigkeit, 1996 32924 32925# Copyright (C) 2014 Free Software Foundation, Inc. 32926# This is free software; see the source for copying conditions. There is NO 32927# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32928 32929# GNU Libtool is free software; you can redistribute it and/or modify 32930# it under the terms of the GNU General Public License as published by 32931# the Free Software Foundation; either version 2 of of the License, or 32932# (at your option) any later version. 32933# 32934# As a special exception to the GNU General Public License, if you 32935# distribute this file as part of a program or library that is built 32936# using GNU Libtool, you may include this file under the same 32937# distribution terms that you use for the rest of that program. 32938# 32939# GNU Libtool is distributed in the hope that it will be useful, but 32940# WITHOUT ANY WARRANTY; without even the implied warranty of 32941# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32942# GNU General Public License for more details. 32943# 32944# You should have received a copy of the GNU General Public License 32945# along with this program. If not, see <http://www.gnu.org/licenses/>. 32946 32947 32948# The names of the tagged configurations supported by this script. 32949available_tags='CXX ' 32950 32951# Configured defaults for sys_lib_dlsearch_path munging. 32952: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 32953 32954# ### BEGIN LIBTOOL CONFIG 32955 32956# Whether or not to build shared libraries. 32957build_libtool_libs=$enable_shared 32958 32959# Whether or not to build static libraries. 32960build_old_libs=$enable_static 32961 32962# Which release of libtool.m4 was used? 32963macro_version=$macro_version 32964macro_revision=$macro_revision 32965 32966# Assembler program. 32967AS=$lt_AS 32968 32969# DLL creation program. 32970DLLTOOL=$lt_DLLTOOL 32971 32972# Object dumper program. 32973OBJDUMP=$lt_OBJDUMP 32974 32975# What type of objects to build. 32976pic_mode=$pic_mode 32977 32978# Whether or not to optimize for fast installation. 32979fast_install=$enable_fast_install 32980 32981# Shared archive member basename,for filename based shared library versioning on AIX. 32982shared_archive_member_spec=$shared_archive_member_spec 32983 32984# Shell to use when invoking shell scripts. 32985SHELL=$lt_SHELL 32986 32987# An echo program that protects backslashes. 32988ECHO=$lt_ECHO 32989 32990# The PATH separator for the build system. 32991PATH_SEPARATOR=$lt_PATH_SEPARATOR 32992 32993# The host system. 32994host_alias=$host_alias 32995host=$host 32996host_os=$host_os 32997 32998# The build system. 32999build_alias=$build_alias 33000build=$build 33001build_os=$build_os 33002 33003# A sed program that does not truncate output. 33004SED=$lt_SED 33005 33006# Sed that helps us avoid accidentally triggering echo(1) options like -n. 33007Xsed="\$SED -e 1s/^X//" 33008 33009# A grep program that handles long lines. 33010GREP=$lt_GREP 33011 33012# An ERE matcher. 33013EGREP=$lt_EGREP 33014 33015# A literal string matcher. 33016FGREP=$lt_FGREP 33017 33018# A BSD- or MS-compatible name lister. 33019NM=$lt_NM 33020 33021# Whether we need soft or hard links. 33022LN_S=$lt_LN_S 33023 33024# What is the maximum length of a command? 33025max_cmd_len=$max_cmd_len 33026 33027# Object file suffix (normally "o"). 33028objext=$ac_objext 33029 33030# Executable file suffix (normally ""). 33031exeext=$exeext 33032 33033# whether the shell understands "unset". 33034lt_unset=$lt_unset 33035 33036# turn spaces into newlines. 33037SP2NL=$lt_lt_SP2NL 33038 33039# turn newlines into spaces. 33040NL2SP=$lt_lt_NL2SP 33041 33042# convert \$build file names to \$host format. 33043to_host_file_cmd=$lt_cv_to_host_file_cmd 33044 33045# convert \$build files to toolchain format. 33046to_tool_file_cmd=$lt_cv_to_tool_file_cmd 33047 33048# Method to check whether dependent libraries are shared objects. 33049deplibs_check_method=$lt_deplibs_check_method 33050 33051# Command to use when deplibs_check_method = "file_magic". 33052file_magic_cmd=$lt_file_magic_cmd 33053 33054# How to find potential files when deplibs_check_method = "file_magic". 33055file_magic_glob=$lt_file_magic_glob 33056 33057# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 33058want_nocaseglob=$lt_want_nocaseglob 33059 33060# Command to associate shared and link libraries. 33061sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 33062 33063# The archiver. 33064AR=$lt_AR 33065 33066# Flags to create an archive. 33067AR_FLAGS=$lt_AR_FLAGS 33068 33069# How to feed a file listing to the archiver. 33070archiver_list_spec=$lt_archiver_list_spec 33071 33072# A symbol stripping program. 33073STRIP=$lt_STRIP 33074 33075# Commands used to install an old-style archive. 33076RANLIB=$lt_RANLIB 33077old_postinstall_cmds=$lt_old_postinstall_cmds 33078old_postuninstall_cmds=$lt_old_postuninstall_cmds 33079 33080# Whether to use a lock for old archive extraction. 33081lock_old_archive_extraction=$lock_old_archive_extraction 33082 33083# A C compiler. 33084LTCC=$lt_CC 33085 33086# LTCC compiler flags. 33087LTCFLAGS=$lt_CFLAGS 33088 33089# Take the output of nm and produce a listing of raw symbols and C names. 33090global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 33091 33092# Transform the output of nm in a proper C declaration. 33093global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 33094 33095# Transform the output of nm into a list of symbols to manually relocate. 33096global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 33097 33098# Transform the output of nm in a C name address pair. 33099global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 33100 33101# Transform the output of nm in a C name address pair when lib prefix is needed. 33102global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 33103 33104# The name lister interface. 33105nm_interface=$lt_lt_cv_nm_interface 33106 33107# Specify filename containing input files for \$NM. 33108nm_file_list_spec=$lt_nm_file_list_spec 33109 33110# The root where to search for dependent libraries,and where our libraries should be installed. 33111lt_sysroot=$lt_sysroot 33112 33113# Command to truncate a binary pipe. 33114lt_truncate_bin=$lt_lt_cv_truncate_bin 33115 33116# The name of the directory that contains temporary libtool files. 33117objdir=$objdir 33118 33119# Used to examine libraries when file_magic_cmd begins with "file". 33120MAGIC_CMD=$MAGIC_CMD 33121 33122# Must we lock files when doing compilation? 33123need_locks=$lt_need_locks 33124 33125# Manifest tool. 33126MANIFEST_TOOL=$lt_MANIFEST_TOOL 33127 33128# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 33129DSYMUTIL=$lt_DSYMUTIL 33130 33131# Tool to change global to local symbols on Mac OS X. 33132NMEDIT=$lt_NMEDIT 33133 33134# Tool to manipulate fat objects and archives on Mac OS X. 33135LIPO=$lt_LIPO 33136 33137# ldd/readelf like tool for Mach-O binaries on Mac OS X. 33138OTOOL=$lt_OTOOL 33139 33140# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 33141OTOOL64=$lt_OTOOL64 33142 33143# Old archive suffix (normally "a"). 33144libext=$libext 33145 33146# Shared library suffix (normally ".so"). 33147shrext_cmds=$lt_shrext_cmds 33148 33149# The commands to extract the exported symbol list from a shared archive. 33150extract_expsyms_cmds=$lt_extract_expsyms_cmds 33151 33152# Variables whose values should be saved in libtool wrapper scripts and 33153# restored at link time. 33154variables_saved_for_relink=$lt_variables_saved_for_relink 33155 33156# Do we need the "lib" prefix for modules? 33157need_lib_prefix=$need_lib_prefix 33158 33159# Do we need a version for libraries? 33160need_version=$need_version 33161 33162# Library versioning type. 33163version_type=$version_type 33164 33165# Shared library runtime path variable. 33166runpath_var=$runpath_var 33167 33168# Shared library path variable. 33169shlibpath_var=$shlibpath_var 33170 33171# Is shlibpath searched before the hard-coded library search path? 33172shlibpath_overrides_runpath=$shlibpath_overrides_runpath 33173 33174# Format of library name prefix. 33175libname_spec=$lt_libname_spec 33176 33177# List of archive names. First name is the real one, the rest are links. 33178# The last name is the one that the linker finds with -lNAME 33179library_names_spec=$lt_library_names_spec 33180 33181# The coded name of the library, if different from the real name. 33182soname_spec=$lt_soname_spec 33183 33184# Permission mode override for installation of shared libraries. 33185install_override_mode=$lt_install_override_mode 33186 33187# Command to use after installation of a shared archive. 33188postinstall_cmds=$lt_postinstall_cmds 33189 33190# Command to use after uninstallation of a shared archive. 33191postuninstall_cmds=$lt_postuninstall_cmds 33192 33193# Commands used to finish a libtool library installation in a directory. 33194finish_cmds=$lt_finish_cmds 33195 33196# As "finish_cmds", except a single script fragment to be evaled but 33197# not shown. 33198finish_eval=$lt_finish_eval 33199 33200# Whether we should hardcode library paths into libraries. 33201hardcode_into_libs=$hardcode_into_libs 33202 33203# Compile-time system search path for libraries. 33204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 33205 33206# Detected run-time system search path for libraries. 33207sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 33208 33209# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 33210configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 33211 33212# Whether dlopen is supported. 33213dlopen_support=$enable_dlopen 33214 33215# Whether dlopen of programs is supported. 33216dlopen_self=$enable_dlopen_self 33217 33218# Whether dlopen of statically linked programs is supported. 33219dlopen_self_static=$enable_dlopen_self_static 33220 33221# Commands to strip libraries. 33222old_striplib=$lt_old_striplib 33223striplib=$lt_striplib 33224 33225 33226# The linker used to build libraries. 33227LD=$lt_LD 33228 33229# How to create reloadable object files. 33230reload_flag=$lt_reload_flag 33231reload_cmds=$lt_reload_cmds 33232 33233# Commands used to build an old-style archive. 33234old_archive_cmds=$lt_old_archive_cmds 33235 33236# A language specific compiler. 33237CC=$lt_compiler 33238 33239# Is the compiler the GNU compiler? 33240with_gcc=$GCC 33241 33242# Compiler flag to turn off builtin functions. 33243no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 33244 33245# Additional compiler flags for building library objects. 33246pic_flag=$lt_lt_prog_compiler_pic 33247 33248# How to pass a linker flag through the compiler. 33249wl=$lt_lt_prog_compiler_wl 33250 33251# Compiler flag to prevent dynamic linking. 33252link_static_flag=$lt_lt_prog_compiler_static 33253 33254# Does compiler simultaneously support -c and -o options? 33255compiler_c_o=$lt_lt_cv_prog_compiler_c_o 33256 33257# Whether or not to add -lc for building shared libraries. 33258build_libtool_need_lc=$archive_cmds_need_lc 33259 33260# Whether or not to disallow shared libs when runtime libs are static. 33261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 33262 33263# Compiler flag to allow reflexive dlopens. 33264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 33265 33266# Compiler flag to generate shared objects directly from archives. 33267whole_archive_flag_spec=$lt_whole_archive_flag_spec 33268 33269# Whether the compiler copes with passing no objects directly. 33270compiler_needs_object=$lt_compiler_needs_object 33271 33272# Create an old-style archive from a shared archive. 33273old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 33274 33275# Create a temporary old-style archive to link instead of a shared archive. 33276old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 33277 33278# Commands used to build a shared archive. 33279archive_cmds=$lt_archive_cmds 33280archive_expsym_cmds=$lt_archive_expsym_cmds 33281 33282# Commands used to build a loadable module if different from building 33283# a shared archive. 33284module_cmds=$lt_module_cmds 33285module_expsym_cmds=$lt_module_expsym_cmds 33286 33287# Whether we are building with GNU ld or not. 33288with_gnu_ld=$lt_with_gnu_ld 33289 33290# Flag that allows shared libraries with undefined symbols to be built. 33291allow_undefined_flag=$lt_allow_undefined_flag 33292 33293# Flag that enforces no undefined symbols. 33294no_undefined_flag=$lt_no_undefined_flag 33295 33296# Flag to hardcode \$libdir into a binary during linking. 33297# This must work even if \$libdir does not exist 33298hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 33299 33300# Whether we need a single "-rpath" flag with a separated argument. 33301hardcode_libdir_separator=$lt_hardcode_libdir_separator 33302 33303# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33304# DIR into the resulting binary. 33305hardcode_direct=$hardcode_direct 33306 33307# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33308# DIR into the resulting binary and the resulting library dependency is 33309# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33310# library is relocated. 33311hardcode_direct_absolute=$hardcode_direct_absolute 33312 33313# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33314# into the resulting binary. 33315hardcode_minus_L=$hardcode_minus_L 33316 33317# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33318# into the resulting binary. 33319hardcode_shlibpath_var=$hardcode_shlibpath_var 33320 33321# Set to "yes" if building a shared library automatically hardcodes DIR 33322# into the library and all subsequent libraries and executables linked 33323# against it. 33324hardcode_automatic=$hardcode_automatic 33325 33326# Set to yes if linker adds runtime paths of dependent libraries 33327# to runtime path list. 33328inherit_rpath=$inherit_rpath 33329 33330# Whether libtool must link a program against all its dependency libraries. 33331link_all_deplibs=$link_all_deplibs 33332 33333# Set to "yes" if exported symbols are required. 33334always_export_symbols=$always_export_symbols 33335 33336# The commands to list exported symbols. 33337export_symbols_cmds=$lt_export_symbols_cmds 33338 33339# Symbols that should not be listed in the preloaded symbols. 33340exclude_expsyms=$lt_exclude_expsyms 33341 33342# Symbols that must always be exported. 33343include_expsyms=$lt_include_expsyms 33344 33345# Commands necessary for linking programs (against libraries) with templates. 33346prelink_cmds=$lt_prelink_cmds 33347 33348# Commands necessary for finishing linking programs. 33349postlink_cmds=$lt_postlink_cmds 33350 33351# Specify filename containing input files. 33352file_list_spec=$lt_file_list_spec 33353 33354# How to hardcode a shared library path into an executable. 33355hardcode_action=$hardcode_action 33356 33357# The directories searched by this compiler when creating a shared library. 33358compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 33359 33360# Dependencies to place before and after the objects being linked to 33361# create a shared library. 33362predep_objects=$lt_predep_objects 33363postdep_objects=$lt_postdep_objects 33364predeps=$lt_predeps 33365postdeps=$lt_postdeps 33366 33367# The library search path used internally by the compiler when linking 33368# a shared library. 33369compiler_lib_search_path=$lt_compiler_lib_search_path 33370 33371# ### END LIBTOOL CONFIG 33372 33373_LT_EOF 33374 33375 cat <<'_LT_EOF' >> "$cfgfile" 33376 33377# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 33378 33379# func_munge_path_list VARIABLE PATH 33380# ----------------------------------- 33381# VARIABLE is name of variable containing _space_ separated list of 33382# directories to be munged by the contents of PATH, which is string 33383# having a format: 33384# "DIR[:DIR]:" 33385# string "DIR[ DIR]" will be prepended to VARIABLE 33386# ":DIR[:DIR]" 33387# string "DIR[ DIR]" will be appended to VARIABLE 33388# "DIRP[:DIRP]::[DIRA:]DIRA" 33389# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 33390# "DIRA[ DIRA]" will be appended to VARIABLE 33391# "DIR[:DIR]" 33392# VARIABLE will be replaced by "DIR[ DIR]" 33393func_munge_path_list () 33394{ 33395 case x$2 in 33396 x) 33397 ;; 33398 *:) 33399 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 33400 ;; 33401 x:*) 33402 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 33403 ;; 33404 *::*) 33405 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 33406 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 33407 ;; 33408 *) 33409 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 33410 ;; 33411 esac 33412} 33413 33414 33415# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 33416func_cc_basename () 33417{ 33418 for cc_temp in $*""; do 33419 case $cc_temp in 33420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 33421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 33422 \-*) ;; 33423 *) break;; 33424 esac 33425 done 33426 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 33427} 33428 33429 33430# ### END FUNCTIONS SHARED WITH CONFIGURE 33431 33432_LT_EOF 33433 33434 case $host_os in 33435 aix3*) 33436 cat <<\_LT_EOF >> "$cfgfile" 33437# AIX sometimes has problems with the GCC collect2 program. For some 33438# reason, if we set the COLLECT_NAMES environment variable, the problems 33439# vanish in a puff of smoke. 33440if test set != "${COLLECT_NAMES+set}"; then 33441 COLLECT_NAMES= 33442 export COLLECT_NAMES 33443fi 33444_LT_EOF 33445 ;; 33446 esac 33447 33448 33449ltmain=$ac_aux_dir/ltmain.sh 33450 33451 33452 # We use sed instead of cat because bash on DJGPP gets confused if 33453 # if finds mixed CR/LF and LF-only lines. Since sed operates in 33454 # text mode, it properly converts lines to CR/LF. This bash problem 33455 # is reportedly fixed, but why not run on old versions too? 33456 sed '$q' "$ltmain" >> "$cfgfile" \ 33457 || (rm -f "$cfgfile"; exit 1) 33458 33459 mv -f "$cfgfile" "$ofile" || 33460 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 33461 chmod +x "$ofile" 33462 33463 33464 cat <<_LT_EOF >> "$ofile" 33465 33466# ### BEGIN LIBTOOL TAG CONFIG: CXX 33467 33468# The linker used to build libraries. 33469LD=$lt_LD_CXX 33470 33471# How to create reloadable object files. 33472reload_flag=$lt_reload_flag_CXX 33473reload_cmds=$lt_reload_cmds_CXX 33474 33475# Commands used to build an old-style archive. 33476old_archive_cmds=$lt_old_archive_cmds_CXX 33477 33478# A language specific compiler. 33479CC=$lt_compiler_CXX 33480 33481# Is the compiler the GNU compiler? 33482with_gcc=$GCC_CXX 33483 33484# Compiler flag to turn off builtin functions. 33485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 33486 33487# Additional compiler flags for building library objects. 33488pic_flag=$lt_lt_prog_compiler_pic_CXX 33489 33490# How to pass a linker flag through the compiler. 33491wl=$lt_lt_prog_compiler_wl_CXX 33492 33493# Compiler flag to prevent dynamic linking. 33494link_static_flag=$lt_lt_prog_compiler_static_CXX 33495 33496# Does compiler simultaneously support -c and -o options? 33497compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 33498 33499# Whether or not to add -lc for building shared libraries. 33500build_libtool_need_lc=$archive_cmds_need_lc_CXX 33501 33502# Whether or not to disallow shared libs when runtime libs are static. 33503allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 33504 33505# Compiler flag to allow reflexive dlopens. 33506export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 33507 33508# Compiler flag to generate shared objects directly from archives. 33509whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 33510 33511# Whether the compiler copes with passing no objects directly. 33512compiler_needs_object=$lt_compiler_needs_object_CXX 33513 33514# Create an old-style archive from a shared archive. 33515old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 33516 33517# Create a temporary old-style archive to link instead of a shared archive. 33518old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 33519 33520# Commands used to build a shared archive. 33521archive_cmds=$lt_archive_cmds_CXX 33522archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 33523 33524# Commands used to build a loadable module if different from building 33525# a shared archive. 33526module_cmds=$lt_module_cmds_CXX 33527module_expsym_cmds=$lt_module_expsym_cmds_CXX 33528 33529# Whether we are building with GNU ld or not. 33530with_gnu_ld=$lt_with_gnu_ld_CXX 33531 33532# Flag that allows shared libraries with undefined symbols to be built. 33533allow_undefined_flag=$lt_allow_undefined_flag_CXX 33534 33535# Flag that enforces no undefined symbols. 33536no_undefined_flag=$lt_no_undefined_flag_CXX 33537 33538# Flag to hardcode \$libdir into a binary during linking. 33539# This must work even if \$libdir does not exist 33540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 33541 33542# Whether we need a single "-rpath" flag with a separated argument. 33543hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 33544 33545# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33546# DIR into the resulting binary. 33547hardcode_direct=$hardcode_direct_CXX 33548 33549# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33550# DIR into the resulting binary and the resulting library dependency is 33551# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33552# library is relocated. 33553hardcode_direct_absolute=$hardcode_direct_absolute_CXX 33554 33555# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33556# into the resulting binary. 33557hardcode_minus_L=$hardcode_minus_L_CXX 33558 33559# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33560# into the resulting binary. 33561hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 33562 33563# Set to "yes" if building a shared library automatically hardcodes DIR 33564# into the library and all subsequent libraries and executables linked 33565# against it. 33566hardcode_automatic=$hardcode_automatic_CXX 33567 33568# Set to yes if linker adds runtime paths of dependent libraries 33569# to runtime path list. 33570inherit_rpath=$inherit_rpath_CXX 33571 33572# Whether libtool must link a program against all its dependency libraries. 33573link_all_deplibs=$link_all_deplibs_CXX 33574 33575# Set to "yes" if exported symbols are required. 33576always_export_symbols=$always_export_symbols_CXX 33577 33578# The commands to list exported symbols. 33579export_symbols_cmds=$lt_export_symbols_cmds_CXX 33580 33581# Symbols that should not be listed in the preloaded symbols. 33582exclude_expsyms=$lt_exclude_expsyms_CXX 33583 33584# Symbols that must always be exported. 33585include_expsyms=$lt_include_expsyms_CXX 33586 33587# Commands necessary for linking programs (against libraries) with templates. 33588prelink_cmds=$lt_prelink_cmds_CXX 33589 33590# Commands necessary for finishing linking programs. 33591postlink_cmds=$lt_postlink_cmds_CXX 33592 33593# Specify filename containing input files. 33594file_list_spec=$lt_file_list_spec_CXX 33595 33596# How to hardcode a shared library path into an executable. 33597hardcode_action=$hardcode_action_CXX 33598 33599# The directories searched by this compiler when creating a shared library. 33600compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 33601 33602# Dependencies to place before and after the objects being linked to 33603# create a shared library. 33604predep_objects=$lt_predep_objects_CXX 33605postdep_objects=$lt_postdep_objects_CXX 33606predeps=$lt_predeps_CXX 33607postdeps=$lt_postdeps_CXX 33608 33609# The library search path used internally by the compiler when linking 33610# a shared library. 33611compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 33612 33613# ### END LIBTOOL TAG CONFIG: CXX 33614_LT_EOF 33615 33616 ;; 33617 "chmoding-scripts":C) chmod +x \ 33618 tests/hwloc/linux/test-topology.sh \ 33619 tests/hwloc/x86/test-topology.sh \ 33620 tests/hwloc/x86+linux/test-topology.sh \ 33621 tests/hwloc/xml/test-topology.sh \ 33622 tests/hwloc/linux/allowed/test-topology.sh \ 33623 tests/hwloc/linux/gather/test-gather-topology.sh \ 33624 tests/hwloc/wrapper.sh \ 33625 utils/hwloc/hwloc-compress-dir \ 33626 utils/hwloc/hwloc-gather-topology \ 33627 utils/hwloc/test-hwloc-annotate.sh \ 33628 utils/hwloc/test-hwloc-calc.sh \ 33629 utils/hwloc/test-hwloc-compress-dir.sh \ 33630 utils/hwloc/test-hwloc-diffpatch.sh \ 33631 utils/hwloc/test-hwloc-distrib.sh \ 33632 utils/hwloc/test-hwloc-info.sh \ 33633 utils/hwloc/test-fake-plugin.sh \ 33634 utils/hwloc/test-parsing-flags.sh \ 33635 utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh \ 33636 utils/lstopo/test-lstopo.sh \ 33637 utils/lstopo/test-lstopo-shmem.sh \ 33638 utils/netloc/infiniband/netloc_ib_gather_raw \ 33639 contrib/windows/test-windows-version.sh \ 33640 tests/netloc/tests.sh ;; 33641 33642 esac 33643done # for ac_tag 33644 33645 33646as_fn_exit 0 33647_ACEOF 33648ac_clean_files=$ac_clean_files_save 33649 33650test $ac_write_fail = 0 || 33651 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33652 33653 33654# configure is writing to config.log, and then calls config.status. 33655# config.status does its own redirection, appending to config.log. 33656# Unfortunately, on DOS this fails, as config.log is still kept open 33657# by configure, so config.status won't be able to write to it; its 33658# output is simply discarded. So we exec the FD to /dev/null, 33659# effectively closing config.log, so it can be properly (re)opened and 33660# appended to by config.status. When coming back to configure, we 33661# need to make the FD available again. 33662if test "$no_create" != yes; then 33663 ac_cs_success=: 33664 ac_config_status_args= 33665 test "$silent" = yes && 33666 ac_config_status_args="$ac_config_status_args --quiet" 33667 exec 5>/dev/null 33668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33669 exec 5>>config.log 33670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33671 # would make configure fail if this is the last instruction. 33672 $ac_cs_success || as_fn_exit 1 33673fi 33674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33676$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33677fi 33678 33679 33680# Warn if we didn't have pkg-config 33681if test "x$PKG_CONFIG" = x; then 33682 cat << EOF 33683 33684************************************************************************ 33685Could not detect/enable some features such as libxml2 and Cairo support 33686because pkg-config isn't available. 33687************************************************************************ 33688EOF 33689fi 33690 33691# Show which optional support we'll be building 33692hwloc_xml_status=basic 33693if test "$hwloc_libxml2_happy" = "yes"; then : 33694 hwloc_xml_status=full 33695fi 33696netloc_status=no 33697if test "$netloc_happy" = "yes"; then : 33698 33699 netlocscotch_status=without 33700 if test "$scotch_found_headers" = "yes"; then : 33701 netlocscotch_status=with 33702fi 33703 netloc_status="yes ($netlocscotch_status scotch)" 33704 33705fi 33706 33707if test "$enable_embedded_mode" = "yes"; then : 33708 hwloc_graphical_lstopo_status="no (disabled in embedded mode)" 33709else 33710 if test "$hwloc_windows" = "yes"; then : 33711 hwloc_graphical_lstopo_status="yes (Windows)" 33712else 33713 if test "$hwloc_cairo_happy" = "yes"; then : 33714 if test "$lstopo_have_x11" = "yes"; then : 33715 hwloc_graphical_lstopo_status="yes (Cairo)" 33716else 33717 hwloc_graphical_lstopo_status="partial (Cairo, without X11)" 33718fi 33719else 33720 hwloc_graphical_lstopo_status="no" 33721fi 33722 33723fi 33724 33725fi 33726 33727# Prepare the I/O summary 33728hwloc_probeio_list= 33729if test "x$hwloc_pciaccess_happy" = "xyes" -o "x$hwloc_linuxpci_happy" = "xyes"; then 33730 test "x$hwloc_pciaccess_happy" = "xyes" && hwloc_probepci_list=pciaccess 33731 test "x$hwloc_pciaccess_happy$hwloc_linuxpci_happy" = "xyesyes" && hwloc_probepci_list="${hwloc_probepci_list}+" 33732 test "x$hwloc_linuxio_happy" = "xyes" && hwloc_probepci_list="${hwloc_probepci_list}linux" 33733 hwloc_probeio_list="$hwloc_probeio_list PCI($hwloc_probepci_list)" 33734fi 33735test "x$hwloc_linuxio_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list LinuxIO" 33736test "x$hwloc_opencl_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list OpenCL" 33737test "x$hwloc_have_cudart" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list CUDA" 33738test "x$hwloc_nvml_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list NVML" 33739test "x$hwloc_rsmi_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list RSMI" 33740test "x$hwloc_gl_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list GL" 33741# if nothing, say "no" 33742test "x$hwloc_probeio_list" = "x" && hwloc_probeio_list=" no" 33743 33744# Beginning of generic support 33745cat <<EOF 33746 33747----------------------------------------------------------------------------- 33748Hwloc optional build support status (more details can be found above): 33749 33750Probe / display I/O devices:$hwloc_probeio_list 33751Graphical output: $hwloc_graphical_lstopo_status 33752XML input / output: $hwloc_xml_status 33753Netloc functionality: $netloc_status 33754EOF 33755 33756# Plugin support 33757hwloc_plugin_summary=$hwloc_have_plugins 33758test "x$hwloc_plugin_components" != "x" && hwloc_plugin_summary="$hwloc_plugins_load ("`echo $hwloc_plugin_components`")" # echo removes the starting space 33759cat <<EOF 33760Plugin support: $hwloc_plugin_summary 33761EOF 33762 33763# End of generic support 33764cat <<EOF 33765----------------------------------------------------------------------------- 33766 33767EOF 33768