1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for dateutils 0.4.1. 4# 5# Report bugs to <https://github.com/hroptatyr/dateutils/issues>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15# 16# # #### Configuration script for dateutils and friends. 17# #### Copyright (C) 2011-2016 Sebastian Freundt 18# 19# ### Don't edit this script! 20# ### This script was automatically generated by the `autoconf' program 21# ### from the file `./configure.ac'. 22# ### To rebuild it, execute the command 23# ### autoreconf 24# 25## -------------------- ## 26## M4sh Initialization. ## 27## -------------------- ## 28 29# Be more Bourne compatible 30DUALCASE=1; export DUALCASE # for MKS sh 31if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 32 emulate sh 33 NULLCMD=: 34 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 35 # is contrary to our usage. Disable this feature. 36 alias -g '${1+"$@"}'='"$@"' 37 setopt NO_GLOB_SUBST 38else 39 case `(set -o) 2>/dev/null` in #( 40 *posix*) : 41 set -o posix ;; #( 42 *) : 43 ;; 44esac 45fi 46 47 48as_nl=' 49' 50export as_nl 51# Printing a long string crashes Solaris 7 /usr/bin/printf. 52as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 53as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 54as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 55# Prefer a ksh shell builtin over an external printf program on Solaris, 56# but without wasting forks for bash or zsh. 57if test -z "$BASH_VERSION$ZSH_VERSION" \ 58 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 59 as_echo='print -r --' 60 as_echo_n='print -rn --' 61elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 62 as_echo='printf %s\n' 63 as_echo_n='printf %s' 64else 65 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 66 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 67 as_echo_n='/usr/ucb/echo -n' 68 else 69 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 70 as_echo_n_body='eval 71 arg=$1; 72 case $arg in #( 73 *"$as_nl"*) 74 expr "X$arg" : "X\\(.*\\)$as_nl"; 75 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 76 esac; 77 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 78 ' 79 export as_echo_n_body 80 as_echo_n='sh -c $as_echo_n_body as_echo' 81 fi 82 export as_echo_body 83 as_echo='sh -c $as_echo_body as_echo' 84fi 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 PATH_SEPARATOR=: 89 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 90 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 91 PATH_SEPARATOR=';' 92 } 93fi 94 95 96# IFS 97# We need space, tab and new line, in precisely that order. Quoting is 98# there to prevent editors from complaining about space-tab. 99# (If _AS_PATH_WALK were called with IFS unset, it would disable word 100# splitting by setting IFS to empty value.) 101IFS=" "" $as_nl" 102 103# Find who we are. Look in the path if we contain no directory separator. 104as_myself= 105case $0 in #(( 106 *[\\/]* ) as_myself=$0 ;; 107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 108for as_dir in $PATH 109do 110 IFS=$as_save_IFS 111 test -z "$as_dir" && as_dir=. 112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 113 done 114IFS=$as_save_IFS 115 116 ;; 117esac 118# We did not find ourselves, most probably we were run as `sh COMMAND' 119# in which case we are not to be found in the path. 120if test "x$as_myself" = x; then 121 as_myself=$0 122fi 123if test ! -f "$as_myself"; then 124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 125 exit 1 126fi 127 128# Unset variables that we do not need and which cause bugs (e.g. in 129# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 130# suppresses any "Segmentation fault" message there. '((' could 131# trigger a bug in pdksh 5.2.14. 132for as_var in BASH_ENV ENV MAIL MAILPATH 133do eval test x\${$as_var+set} = xset \ 134 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 135done 136PS1='$ ' 137PS2='> ' 138PS4='+ ' 139 140# NLS nuisances. 141LC_ALL=C 142export LC_ALL 143LANGUAGE=C 144export LANGUAGE 145 146# CDPATH. 147(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 148 149if test "x$CONFIG_SHELL" = x; then 150 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 151 emulate sh 152 NULLCMD=: 153 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 154 # is contrary to our usage. Disable this feature. 155 alias -g '\${1+\"\$@\"}'='\"\$@\"' 156 setopt NO_GLOB_SUBST 157else 158 case \`(set -o) 2>/dev/null\` in #( 159 *posix*) : 160 set -o posix ;; #( 161 *) : 162 ;; 163esac 164fi 165" 166 as_required="as_fn_return () { (exit \$1); } 167as_fn_success () { as_fn_return 0; } 168as_fn_failure () { as_fn_return 1; } 169as_fn_ret_success () { return 0; } 170as_fn_ret_failure () { return 1; } 171 172exitcode=0 173as_fn_success || { exitcode=1; echo as_fn_success failed.; } 174as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 175as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 176as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 177if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 178 179else 180 exitcode=1; echo positional parameters were not saved. 181fi 182test x\$exitcode = x0 || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1 188 189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 193 PATH=/empty FPATH=/empty; export PATH FPATH 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 196 if (eval "$as_required") 2>/dev/null; then : 197 as_have_required=yes 198else 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 202 203else 204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 205as_found=false 206for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 207do 208 IFS=$as_save_IFS 209 test -z "$as_dir" && as_dir=. 210 as_found=: 211 case $as_dir in #( 212 /*) 213 for as_base in sh bash ksh sh5; do 214 # Try only shells that exist, to save several forks. 215 as_shell=$as_dir/$as_base 216 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 220 break 2 221fi 222fi 223 done;; 224 esac 225 as_found=false 226done 227$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 229 CONFIG_SHELL=$SHELL as_have_required=yes 230fi; } 231IFS=$as_save_IFS 232 233 234 if test "x$CONFIG_SHELL" != x; then : 235 # We cannot yet assume a decent shell, so we have to provide a 236 # neutralization value for shells without unset; and this also 237 # works around shells that cannot unset nonexistent variables. 238 # Preserve -v and -x to the replacement shell. 239 BASH_ENV=/dev/null 240 ENV=/dev/null 241 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 242 export CONFIG_SHELL 243 case $- in # (((( 244 *v*x* | *x*v* ) as_opts=-vx ;; 245 *v* ) as_opts=-v ;; 246 *x* ) as_opts=-x ;; 247 * ) as_opts= ;; 248 esac 249 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 250fi 251 252 if test x$as_have_required = xno; then : 253 $as_echo "$0: This script requires a shell more modern than all" 254 $as_echo "$0: the shells that I found on your system." 255 if test x${ZSH_VERSION+set} = xset ; then 256 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 257 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 258 else 259 $as_echo "$0: Please tell bug-autoconf@gnu.org and 260$0: https://github.com/hroptatyr/dateutils/issues about 261$0: your system, including any error possibly output before 262$0: this message. Then install a modern shell, or manually 263$0: run the script under such a shell if you do have one." 264 fi 265 exit 1 266fi 267fi 268fi 269SHELL=${CONFIG_SHELL-/bin/sh} 270export SHELL 271# Unset more variables known to interfere with behavior of common tools. 272CLICOLOR_FORCE= GREP_OPTIONS= 273unset CLICOLOR_FORCE GREP_OPTIONS 274 275## --------------------- ## 276## M4sh Shell Functions. ## 277## --------------------- ## 278# as_fn_unset VAR 279# --------------- 280# Portably unset VAR. 281as_fn_unset () 282{ 283 { eval $1=; unset $1;} 284} 285as_unset=as_fn_unset 286 287# as_fn_set_status STATUS 288# ----------------------- 289# Set $? to STATUS, without forking. 290as_fn_set_status () 291{ 292 return $1 293} # as_fn_set_status 294 295# as_fn_exit STATUS 296# ----------------- 297# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 298as_fn_exit () 299{ 300 set +e 301 as_fn_set_status $1 302 exit $1 303} # as_fn_exit 304 305# as_fn_mkdir_p 306# ------------- 307# Create "$as_dir" as a directory, including parents if necessary. 308as_fn_mkdir_p () 309{ 310 311 case $as_dir in #( 312 -*) as_dir=./$as_dir;; 313 esac 314 test -d "$as_dir" || eval $as_mkdir_p || { 315 as_dirs= 316 while :; do 317 case $as_dir in #( 318 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 319 *) as_qdir=$as_dir;; 320 esac 321 as_dirs="'$as_qdir' $as_dirs" 322 as_dir=`$as_dirname -- "$as_dir" || 323$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 324 X"$as_dir" : 'X\(//\)[^/]' \| \ 325 X"$as_dir" : 'X\(//\)$' \| \ 326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 327$as_echo X"$as_dir" | 328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 329 s//\1/ 330 q 331 } 332 /^X\(\/\/\)[^/].*/{ 333 s//\1/ 334 q 335 } 336 /^X\(\/\/\)$/{ 337 s//\1/ 338 q 339 } 340 /^X\(\/\).*/{ 341 s//\1/ 342 q 343 } 344 s/.*/./; q'` 345 test -d "$as_dir" && break 346 done 347 test -z "$as_dirs" || eval "mkdir $as_dirs" 348 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 349 350 351} # as_fn_mkdir_p 352# as_fn_append VAR VALUE 353# ---------------------- 354# Append the text in VALUE to the end of the definition contained in VAR. Take 355# advantage of any shell optimizations that allow amortized linear growth over 356# repeated appends, instead of the typical quadratic growth present in naive 357# implementations. 358if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 359 eval 'as_fn_append () 360 { 361 eval $1+=\$2 362 }' 363else 364 as_fn_append () 365 { 366 eval $1=\$$1\$2 367 } 368fi # as_fn_append 369 370# as_fn_arith ARG... 371# ------------------ 372# Perform arithmetic evaluation on the ARGs, and store the result in the 373# global $as_val. Take advantage of shells that can avoid forks. The arguments 374# must be portable across $(()) and expr. 375if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 376 eval 'as_fn_arith () 377 { 378 as_val=$(( $* )) 379 }' 380else 381 as_fn_arith () 382 { 383 as_val=`expr "$@" || test $? -eq 1` 384 } 385fi # as_fn_arith 386 387 388# as_fn_error STATUS ERROR [LINENO LOG_FD] 389# ---------------------------------------- 390# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 391# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 392# script with STATUS, using 1 if that was 0. 393as_fn_error () 394{ 395 as_status=$1; test $as_status -eq 0 && as_status=1 396 if test "$4"; then 397 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 398 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 399 fi 400 $as_echo "$as_me: error: $2" >&2 401 as_fn_exit $as_status 402} # as_fn_error 403 404if expr a : '\(a\)' >/dev/null 2>&1 && 405 test "X`expr 00001 : '.*\(...\)'`" = X001; then 406 as_expr=expr 407else 408 as_expr=false 409fi 410 411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 412 as_basename=basename 413else 414 as_basename=false 415fi 416 417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 418 as_dirname=dirname 419else 420 as_dirname=false 421fi 422 423as_me=`$as_basename -- "$0" || 424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 425 X"$0" : 'X\(//\)$' \| \ 426 X"$0" : 'X\(/\)' \| . 2>/dev/null || 427$as_echo X/"$0" | 428 sed '/^.*\/\([^/][^/]*\)\/*$/{ 429 s//\1/ 430 q 431 } 432 /^X\/\(\/\/\)$/{ 433 s//\1/ 434 q 435 } 436 /^X\/\(\/\).*/{ 437 s//\1/ 438 q 439 } 440 s/.*/./; q'` 441 442# Avoid depending upon Character Ranges. 443as_cr_letters='abcdefghijklmnopqrstuvwxyz' 444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 445as_cr_Letters=$as_cr_letters$as_cr_LETTERS 446as_cr_digits='0123456789' 447as_cr_alnum=$as_cr_Letters$as_cr_digits 448 449 450 as_lineno_1=$LINENO as_lineno_1a=$LINENO 451 as_lineno_2=$LINENO as_lineno_2a=$LINENO 452 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 453 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 454 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 455 sed -n ' 456 p 457 /[$]LINENO/= 458 ' <$as_myself | 459 sed ' 460 s/[$]LINENO.*/&-/ 461 t lineno 462 b 463 :lineno 464 N 465 :loop 466 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 467 t loop 468 s/-\n.*// 469 ' >$as_me.lineno && 470 chmod +x "$as_me.lineno" || 471 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 472 473 # Don't try to exec as it changes $[0], causing all sort of problems 474 # (the dirname of $[0] is not the place where we might find the 475 # original and so on. Autoconf is especially sensitive to this). 476 . "./$as_me.lineno" 477 # Exit status is that of the last command. 478 exit 479} 480 481ECHO_C= ECHO_N= ECHO_T= 482case `echo -n x` in #((((( 483-n*) 484 case `echo 'xy\c'` in 485 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 486 xy) ECHO_C='\c';; 487 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 488 ECHO_T=' ';; 489 esac;; 490*) 491 ECHO_N='-n';; 492esac 493 494rm -f conf$$ conf$$.exe conf$$.file 495if test -d conf$$.dir; then 496 rm -f conf$$.dir/conf$$.file 497else 498 rm -f conf$$.dir 499 mkdir conf$$.dir 2>/dev/null 500fi 501if (echo >conf$$.file) 2>/dev/null; then 502 if ln -s conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s='ln -s' 504 # ... but there are two gotchas: 505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 507 # In both cases, we have to default to `cp -p'. 508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 509 as_ln_s='cp -p' 510 elif ln conf$$.file conf$$ 2>/dev/null; then 511 as_ln_s=ln 512 else 513 as_ln_s='cp -p' 514 fi 515else 516 as_ln_s='cp -p' 517fi 518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 519rmdir conf$$.dir 2>/dev/null 520 521if mkdir -p . 2>/dev/null; then 522 as_mkdir_p='mkdir -p "$as_dir"' 523else 524 test -d ./-p && rmdir ./-p 525 as_mkdir_p=false 526fi 527 528if test -x / >/dev/null 2>&1; then 529 as_test_x='test -x' 530else 531 if ls -dL / >/dev/null 2>&1; then 532 as_ls_L_option=L 533 else 534 as_ls_L_option= 535 fi 536 as_test_x=' 537 eval sh -c '\'' 538 if test -d "$1"; then 539 test -d "$1/."; 540 else 541 case $1 in #( 542 -*)set "./$1";; 543 esac; 544 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 545 ???[sx]*):;;*)false;;esac;fi 546 '\'' sh 547 ' 548fi 549as_executable_p=$as_test_x 550 551# Sed expression to map a string onto a valid CPP name. 552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 553 554# Sed expression to map a string onto a valid variable name. 555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 556 557SHELL=${CONFIG_SHELL-/bin/sh} 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='dateutils' 582PACKAGE_TARNAME='dateutils' 583PACKAGE_VERSION='0.4.1' 584PACKAGE_STRING='dateutils 0.4.1' 585PACKAGE_BUGREPORT='https://github.com/hroptatyr/dateutils/issues' 586PACKAGE_URL='' 587 588ac_unique_file="src/" 589ac_c_werror_flag= 590ac_c_werror_flag= 591# Factoring default headers for most tests. 592ac_includes_default="\ 593#include <stdio.h> 594#ifdef HAVE_SYS_TYPES_H 595# include <sys/types.h> 596#endif 597#ifdef HAVE_SYS_STAT_H 598# include <sys/stat.h> 599#endif 600#ifdef STDC_HEADERS 601# include <stdlib.h> 602# include <stddef.h> 603#else 604# ifdef HAVE_STDLIB_H 605# include <stdlib.h> 606# endif 607#endif 608#ifdef HAVE_STRING_H 609# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 610# include <memory.h> 611# endif 612# include <string.h> 613#endif 614#ifdef HAVE_STRINGS_H 615# include <strings.h> 616#endif 617#ifdef HAVE_INTTYPES_H 618# include <inttypes.h> 619#endif 620#ifdef HAVE_STDINT_H 621# include <stdint.h> 622#endif 623#ifdef HAVE_UNISTD_H 624# include <unistd.h> 625#endif" 626 627ac_c_werror_flag= 628ac_c_werror_flag= 629ac_c_werror_flag= 630ac_c_werror_flag= 631ac_c_werror_flag= 632ac_c_werror_flag= 633ac_c_werror_flag= 634ac_c_werror_flag= 635ac_c_werror_flag= 636ac_c_werror_flag= 637ac_c_werror_flag= 638ac_c_werror_flag= 639ac_c_werror_flag= 640ac_c_werror_flag= 641ac_c_werror_flag= 642ac_c_werror_flag= 643ac_c_werror_flag= 644ac_c_werror_flag= 645ac_c_werror_flag= 646ac_c_werror_flag= 647ac_c_werror_flag= 648ac_c_werror_flag= 649ac_c_werror_flag= 650ac_c_werror_flag= 651ac_c_werror_flag= 652ac_c_werror_flag= 653ac_c_werror_flag= 654ac_c_werror_flag= 655ac_c_werror_flag= 656ac_c_werror_flag= 657ac_c_werror_flag= 658ac_c_werror_flag= 659ac_c_werror_flag= 660ac_c_werror_flag= 661ac_c_werror_flag= 662ac_c_werror_flag= 663ac_c_werror_flag= 664ac_c_werror_flag= 665ac_c_werror_flag= 666ac_c_werror_flag= 667ac_c_werror_flag= 668ac_c_werror_flag= 669ac_c_werror_flag= 670ac_c_werror_flag= 671ac_c_werror_flag= 672ac_c_werror_flag= 673ac_c_werror_flag= 674ac_c_werror_flag= 675ac_c_werror_flag= 676ac_c_werror_flag= 677ac_c_werror_flag= 678ac_c_werror_flag= 679ac_c_werror_flag= 680ac_c_werror_flag= 681ac_c_werror_flag= 682ac_c_werror_flag= 683ac_c_werror_flag= 684ac_c_werror_flag= 685ac_c_werror_flag= 686ac_c_werror_flag= 687ac_c_werror_flag= 688ac_c_werror_flag= 689ac_c_werror_flag= 690ac_c_werror_flag= 691ac_c_werror_flag= 692ac_c_werror_flag= 693ac_c_werror_flag= 694ac_c_werror_flag= 695ac_c_werror_flag= 696ac_c_werror_flag= 697ac_c_werror_flag= 698ac_c_werror_flag= 699ac_c_werror_flag= 700ac_c_werror_flag= 701ac_c_werror_flag= 702ac_c_werror_flag= 703ac_c_werror_flag= 704ac_c_werror_flag= 705ac_c_werror_flag= 706ac_subst_vars='am__EXEEXT_FALSE 707am__EXEEXT_TRUE 708LTLIBOBJS 709LIBOBJS 710LT_CONVENIENCE_PREFIX 711LT_OBJDIR 712sys_symbol_underscore 713LIBM 714LIBADD_DL 715LT_DLPREOPEN 716LIBADD_DLD_LINK 717LIBADD_SHL_LOAD 718LIBADD_DLOPEN 719LT_DLLOADERS 720OTOOL64 721OTOOL 722LIPO 723NMEDIT 724DSYMUTIL 725MANIFEST_TOOL 726RANLIB 727DLLTOOL 728OBJDUMP 729LN_S 730NM 731ac_ct_DUMPBIN 732DUMPBIN 733FGREP 734SED 735LIBTOOL 736LD_EXPORT_DYNAMIC 737HAVE_YUCK_FALSE 738HAVE_YUCK_TRUE 739YUCK 740M4 741BUILD_OCTCLI_FALSE 742BUILD_OCTCLI_TRUE 743BUILD_MEXCLI_FALSE 744BUILD_MEXCLI_TRUE 745OCTAVEORIGPATH 746OCTAVE_CONFIG 747OCTAVEPATH 748octave_LIBS 749octave_CFLAGS 750matlab_CFLAGS 751MEXEXT 752MATLABORIGPATH 753MATLABROOT 754MATLABPATH 755MATLAB 756BUILD_LTRCC_FALSE 757BUILD_LTRCC_TRUE 758BUILD_DEXPR_FALSE 759BUILD_DEXPR_TRUE 760WITH_LEAP_SECONDS_FALSE 761WITH_LEAP_SECONDS_TRUE 762WITH_OLD_LINKS_FALSE 763WITH_OLD_LINKS_TRUE 764WITH_OLD_NAMES_FALSE 765WITH_OLD_NAMES_TRUE 766WITH_CONTRIB_FALSE 767WITH_CONTRIB_TRUE 768HAVE_GDATE_2039_FALSE 769HAVE_GDATE_2039_TRUE 770HAVE_GDATE_FALSE 771HAVE_GDATE_TRUE 772have_gdate_2039 773have_gdate 774GDATE 775HAVE_TZMAPS_FALSE 776HAVE_TZMAPS_TRUE 777FETCH_TZMAPS_FALSE 778FETCH_TZMAPS_TRUE 779HAVE_CURL_FALSE 780HAVE_CURL_TRUE 781CURL 782GPERF 783YFLAGS 784YACC 785LEXLIB 786LEX_OUTPUT_ROOT 787LEX 788HAVE_STRPTIME_FALSE 789HAVE_STRPTIME_TRUE 790ZONEINFO_UTC_RIGHT_FALSE 791ZONEINFO_UTC_RIGHT_TRUE 792TZDIR_RIGHT 793ZONEINFO_UTC_RIGHT 794TZDIR 795TZSELECT 796HAVE_PTY_H_FALSE 797HAVE_PTY_H_TRUE 798XCCFLAG 799XCCLDFLAGS 800XFLAG 801ac_ct_LD 802LD 803ac_ct_AR 804AR 805SDB 806GDB 807DBX 808EXTRA_CFLAGS 809EGREP 810GREP 811CPP 812host_os 813host_vendor 814host_cpu 815host 816build_os 817build_vendor 818build_cpu 819build 820am__fastdepCC_FALSE 821am__fastdepCC_TRUE 822CCDEPMODE 823am__nodep 824AMDEPBACKSLASH 825AMDEP_FALSE 826AMDEP_TRUE 827am__quote 828am__include 829DEPDIR 830OBJEXT 831EXEEXT 832ac_ct_CC 833CPPFLAGS 834LDFLAGS 835CFLAGS 836CC 837AM_BACKSLASH 838AM_DEFAULT_VERBOSITY 839AM_DEFAULT_V 840AM_V 841am__untar 842am__tar 843AMTAR 844am__leading_dot 845SET_MAKE 846AWK 847mkdir_p 848MKDIR_P 849INSTALL_STRIP_PROGRAM 850STRIP 851install_sh 852MAKEINFO 853AUTOHEADER 854AUTOMAKE 855AUTOCONF 856ACLOCAL 857VERSION 858PACKAGE 859CYGPATH_W 860am__isrc 861INSTALL_DATA 862INSTALL_SCRIPT 863INSTALL_PROGRAM 864target_alias 865host_alias 866build_alias 867LIBS 868ECHO_T 869ECHO_N 870ECHO_C 871DEFS 872mandir 873localedir 874libdir 875psdir 876pdfdir 877dvidir 878htmldir 879infodir 880docdir 881oldincludedir 882includedir 883localstatedir 884sharedstatedir 885sysconfdir 886datadir 887datarootdir 888libexecdir 889sbindir 890bindir 891program_transform_name 892prefix 893exec_prefix 894PACKAGE_URL 895PACKAGE_BUGREPORT 896PACKAGE_STRING 897PACKAGE_VERSION 898PACKAGE_TARNAME 899PACKAGE_NAME 900PATH_SEPARATOR 901SHELL' 902ac_subst_files='' 903ac_user_opts=' 904enable_option_checking 905enable_silent_rules 906enable_dependency_tracking 907enable_largefile 908enable_tzmap_fetch 909enable_fast_arith 910enable_contrib 911with_old_names 912with_old_links 913with_included_yuck 914enable_shared 915enable_static 916with_pic 917enable_fast_install 918with_gnu_ld 919with_sysroot 920enable_libtool_lock 921' 922 ac_precious_vars='build_alias 923host_alias 924target_alias 925CC 926CFLAGS 927LDFLAGS 928LIBS 929CPPFLAGS 930CPP 931EXTRA_CFLAGS 932TZDIR 933YACC 934YFLAGS 935GPERF 936CURL 937GDATE 938have_gdate 939have_gdate_2039 940MATLAB 941MATLABPATH 942matlab_CFLAGS 943octave_CFLAGS 944octave_LIBS 945OCTAVEPATH 946M4 947YUCK' 948 949 950# Initialize some variables set by options. 951ac_init_help= 952ac_init_version=false 953ac_unrecognized_opts= 954ac_unrecognized_sep= 955# The variables have the same names as the options, with 956# dashes changed to underlines. 957cache_file=/dev/null 958exec_prefix=NONE 959no_create= 960no_recursion= 961prefix=NONE 962program_prefix=NONE 963program_suffix=NONE 964program_transform_name=s,x,x, 965silent= 966site= 967srcdir= 968verbose= 969x_includes=NONE 970x_libraries=NONE 971 972# Installation directory options. 973# These are left unexpanded so users can "make install exec_prefix=/foo" 974# and all the variables that are supposed to be based on exec_prefix 975# by default will actually change. 976# Use braces instead of parens because sh, perl, etc. also accept them. 977# (The list follows the same order as the GNU Coding Standards.) 978bindir='${exec_prefix}/bin' 979sbindir='${exec_prefix}/sbin' 980libexecdir='${exec_prefix}/libexec' 981datarootdir='${prefix}/share' 982datadir='${datarootdir}' 983sysconfdir='${prefix}/etc' 984sharedstatedir='${prefix}/com' 985localstatedir='${prefix}/var' 986includedir='${prefix}/include' 987oldincludedir='/usr/include' 988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 989infodir='${datarootdir}/info' 990htmldir='${docdir}' 991dvidir='${docdir}' 992pdfdir='${docdir}' 993psdir='${docdir}' 994libdir='${exec_prefix}/lib' 995localedir='${datarootdir}/locale' 996mandir='${datarootdir}/man' 997 998ac_prev= 999ac_dashdash= 1000for ac_option 1001do 1002 # If the previous option needs an argument, assign it. 1003 if test -n "$ac_prev"; then 1004 eval $ac_prev=\$ac_option 1005 ac_prev= 1006 continue 1007 fi 1008 1009 case $ac_option in 1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1011 *=) ac_optarg= ;; 1012 *) ac_optarg=yes ;; 1013 esac 1014 1015 # Accept the important Cygnus configure options, so we can diagnose typos. 1016 1017 case $ac_dashdash$ac_option in 1018 --) 1019 ac_dashdash=yes ;; 1020 1021 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1022 ac_prev=bindir ;; 1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1024 bindir=$ac_optarg ;; 1025 1026 -build | --build | --buil | --bui | --bu) 1027 ac_prev=build_alias ;; 1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1029 build_alias=$ac_optarg ;; 1030 1031 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1033 ac_prev=cache_file ;; 1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1036 cache_file=$ac_optarg ;; 1037 1038 --config-cache | -C) 1039 cache_file=config.cache ;; 1040 1041 -datadir | --datadir | --datadi | --datad) 1042 ac_prev=datadir ;; 1043 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1044 datadir=$ac_optarg ;; 1045 1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1047 | --dataroo | --dataro | --datar) 1048 ac_prev=datarootdir ;; 1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1051 datarootdir=$ac_optarg ;; 1052 1053 -disable-* | --disable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=no ;; 1068 1069 -docdir | --docdir | --docdi | --doc | --do) 1070 ac_prev=docdir ;; 1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1072 docdir=$ac_optarg ;; 1073 1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1075 ac_prev=dvidir ;; 1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1077 dvidir=$ac_optarg ;; 1078 1079 -enable-* | --enable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"enable_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=\$ac_optarg ;; 1094 1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1097 | --exec | --exe | --ex) 1098 ac_prev=exec_prefix ;; 1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1101 | --exec=* | --exe=* | --ex=*) 1102 exec_prefix=$ac_optarg ;; 1103 1104 -gas | --gas | --ga | --g) 1105 # Obsolete; use --with-gas. 1106 with_gas=yes ;; 1107 1108 -help | --help | --hel | --he | -h) 1109 ac_init_help=long ;; 1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1111 ac_init_help=recursive ;; 1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1113 ac_init_help=short ;; 1114 1115 -host | --host | --hos | --ho) 1116 ac_prev=host_alias ;; 1117 -host=* | --host=* | --hos=* | --ho=*) 1118 host_alias=$ac_optarg ;; 1119 1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1121 ac_prev=htmldir ;; 1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1123 | --ht=*) 1124 htmldir=$ac_optarg ;; 1125 1126 -includedir | --includedir | --includedi | --included | --include \ 1127 | --includ | --inclu | --incl | --inc) 1128 ac_prev=includedir ;; 1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1130 | --includ=* | --inclu=* | --incl=* | --inc=*) 1131 includedir=$ac_optarg ;; 1132 1133 -infodir | --infodir | --infodi | --infod | --info | --inf) 1134 ac_prev=infodir ;; 1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1136 infodir=$ac_optarg ;; 1137 1138 -libdir | --libdir | --libdi | --libd) 1139 ac_prev=libdir ;; 1140 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1141 libdir=$ac_optarg ;; 1142 1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1144 | --libexe | --libex | --libe) 1145 ac_prev=libexecdir ;; 1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1147 | --libexe=* | --libex=* | --libe=*) 1148 libexecdir=$ac_optarg ;; 1149 1150 -localedir | --localedir | --localedi | --localed | --locale) 1151 ac_prev=localedir ;; 1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1153 localedir=$ac_optarg ;; 1154 1155 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1156 | --localstate | --localstat | --localsta | --localst | --locals) 1157 ac_prev=localstatedir ;; 1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1160 localstatedir=$ac_optarg ;; 1161 1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1163 ac_prev=mandir ;; 1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1165 mandir=$ac_optarg ;; 1166 1167 -nfp | --nfp | --nf) 1168 # Obsolete; use --without-fp. 1169 with_fp=no ;; 1170 1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1172 | --no-cr | --no-c | -n) 1173 no_create=yes ;; 1174 1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1177 no_recursion=yes ;; 1178 1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1181 | --oldin | --oldi | --old | --ol | --o) 1182 ac_prev=oldincludedir ;; 1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1186 oldincludedir=$ac_optarg ;; 1187 1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1189 ac_prev=prefix ;; 1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1191 prefix=$ac_optarg ;; 1192 1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1194 | --program-pre | --program-pr | --program-p) 1195 ac_prev=program_prefix ;; 1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1198 program_prefix=$ac_optarg ;; 1199 1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1201 | --program-suf | --program-su | --program-s) 1202 ac_prev=program_suffix ;; 1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1205 program_suffix=$ac_optarg ;; 1206 1207 -program-transform-name | --program-transform-name \ 1208 | --program-transform-nam | --program-transform-na \ 1209 | --program-transform-n | --program-transform- \ 1210 | --program-transform | --program-transfor \ 1211 | --program-transfo | --program-transf \ 1212 | --program-trans | --program-tran \ 1213 | --progr-tra | --program-tr | --program-t) 1214 ac_prev=program_transform_name ;; 1215 -program-transform-name=* | --program-transform-name=* \ 1216 | --program-transform-nam=* | --program-transform-na=* \ 1217 | --program-transform-n=* | --program-transform-=* \ 1218 | --program-transform=* | --program-transfor=* \ 1219 | --program-transfo=* | --program-transf=* \ 1220 | --program-trans=* | --program-tran=* \ 1221 | --progr-tra=* | --program-tr=* | --program-t=*) 1222 program_transform_name=$ac_optarg ;; 1223 1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1225 ac_prev=pdfdir ;; 1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1227 pdfdir=$ac_optarg ;; 1228 1229 -psdir | --psdir | --psdi | --psd | --ps) 1230 ac_prev=psdir ;; 1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1232 psdir=$ac_optarg ;; 1233 1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1235 | -silent | --silent | --silen | --sile | --sil) 1236 silent=yes ;; 1237 1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1239 ac_prev=sbindir ;; 1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1241 | --sbi=* | --sb=*) 1242 sbindir=$ac_optarg ;; 1243 1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1246 | --sharedst | --shareds | --shared | --share | --shar \ 1247 | --sha | --sh) 1248 ac_prev=sharedstatedir ;; 1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1252 | --sha=* | --sh=*) 1253 sharedstatedir=$ac_optarg ;; 1254 1255 -site | --site | --sit) 1256 ac_prev=site ;; 1257 -site=* | --site=* | --sit=*) 1258 site=$ac_optarg ;; 1259 1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1261 ac_prev=srcdir ;; 1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1263 srcdir=$ac_optarg ;; 1264 1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1266 | --syscon | --sysco | --sysc | --sys | --sy) 1267 ac_prev=sysconfdir ;; 1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1270 sysconfdir=$ac_optarg ;; 1271 1272 -target | --target | --targe | --targ | --tar | --ta | --t) 1273 ac_prev=target_alias ;; 1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1275 target_alias=$ac_optarg ;; 1276 1277 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1278 verbose=yes ;; 1279 1280 -version | --version | --versio | --versi | --vers | -V) 1281 ac_init_version=: ;; 1282 1283 -with-* | --with-*) 1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1285 # Reject names that are not valid shell variable names. 1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1287 as_fn_error $? "invalid package name: $ac_useropt" 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=\$ac_optarg ;; 1298 1299 -without-* | --without-*) 1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1301 # Reject names that are not valid shell variable names. 1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1303 as_fn_error $? "invalid package name: $ac_useropt" 1304 ac_useropt_orig=$ac_useropt 1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1306 case $ac_user_opts in 1307 *" 1308"with_$ac_useropt" 1309"*) ;; 1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1311 ac_unrecognized_sep=', ';; 1312 esac 1313 eval with_$ac_useropt=no ;; 1314 1315 --x) 1316 # Obsolete; use --with-x. 1317 with_x=yes ;; 1318 1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1320 | --x-incl | --x-inc | --x-in | --x-i) 1321 ac_prev=x_includes ;; 1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1324 x_includes=$ac_optarg ;; 1325 1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1328 ac_prev=x_libraries ;; 1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1331 x_libraries=$ac_optarg ;; 1332 1333 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1334Try \`$0 --help' for more information" 1335 ;; 1336 1337 *=*) 1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1339 # Reject names that are not valid shell variable names. 1340 case $ac_envvar in #( 1341 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1343 esac 1344 eval $ac_envvar=\$ac_optarg 1345 export $ac_envvar ;; 1346 1347 *) 1348 # FIXME: should be removed in autoconf 3.0. 1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1353 ;; 1354 1355 esac 1356done 1357 1358if test -n "$ac_prev"; then 1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1360 as_fn_error $? "missing argument to $ac_option" 1361fi 1362 1363if test -n "$ac_unrecognized_opts"; then 1364 case $enable_option_checking in 1365 no) ;; 1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1368 esac 1369fi 1370 1371# Check all directory arguments for consistency. 1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1373 datadir sysconfdir sharedstatedir localstatedir includedir \ 1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1375 libdir localedir mandir 1376do 1377 eval ac_val=\$$ac_var 1378 # Remove trailing slashes. 1379 case $ac_val in 1380 */ ) 1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1382 eval $ac_var=\$ac_val;; 1383 esac 1384 # Be sure to have absolute directory names. 1385 case $ac_val in 1386 [\\/$]* | ?:[\\/]* ) continue;; 1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1388 esac 1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1390done 1391 1392# There might be people who depend on the old broken behavior: `$host' 1393# used to hold the argument of --host etc. 1394# FIXME: To remove some day. 1395build=$build_alias 1396host=$host_alias 1397target=$target_alias 1398 1399# FIXME: To remove some day. 1400if test "x$host_alias" != x; then 1401 if test "x$build_alias" = x; then 1402 cross_compiling=maybe 1403 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1404 If a cross compiler is detected then cross compile mode will be used" >&2 1405 elif test "x$build_alias" != "x$host_alias"; then 1406 cross_compiling=yes 1407 fi 1408fi 1409 1410ac_tool_prefix= 1411test -n "$host_alias" && ac_tool_prefix=$host_alias- 1412 1413test "$silent" = yes && exec 6>/dev/null 1414 1415 1416ac_pwd=`pwd` && test -n "$ac_pwd" && 1417ac_ls_di=`ls -di .` && 1418ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1419 as_fn_error $? "working directory cannot be determined" 1420test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1421 as_fn_error $? "pwd does not report name of working directory" 1422 1423 1424# Find the source files, if location was not specified. 1425if test -z "$srcdir"; then 1426 ac_srcdir_defaulted=yes 1427 # Try the directory containing this script, then the parent directory. 1428 ac_confdir=`$as_dirname -- "$as_myself" || 1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1430 X"$as_myself" : 'X\(//\)[^/]' \| \ 1431 X"$as_myself" : 'X\(//\)$' \| \ 1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1433$as_echo X"$as_myself" | 1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\/\)[^/].*/{ 1439 s//\1/ 1440 q 1441 } 1442 /^X\(\/\/\)$/{ 1443 s//\1/ 1444 q 1445 } 1446 /^X\(\/\).*/{ 1447 s//\1/ 1448 q 1449 } 1450 s/.*/./; q'` 1451 srcdir=$ac_confdir 1452 if test ! -r "$srcdir/$ac_unique_file"; then 1453 srcdir=.. 1454 fi 1455else 1456 ac_srcdir_defaulted=no 1457fi 1458if test ! -r "$srcdir/$ac_unique_file"; then 1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1461fi 1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1463ac_abs_confdir=`( 1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1465 pwd)` 1466# When building in place, set srcdir=. 1467if test "$ac_abs_confdir" = "$ac_pwd"; then 1468 srcdir=. 1469fi 1470# Remove unnecessary trailing slashes from srcdir. 1471# Double slashes in file names in object file debugging info 1472# mess up M-x gdb in Emacs. 1473case $srcdir in 1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1475esac 1476for ac_var in $ac_precious_vars; do 1477 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1478 eval ac_env_${ac_var}_value=\$${ac_var} 1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1480 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1481done 1482 1483# 1484# Report the --help message. 1485# 1486if test "$ac_init_help" = "long"; then 1487 # Omit some internal or obsolete options to make the list less imposing. 1488 # This message is too long to be a string in the A/UX 3.1 sh. 1489 cat <<_ACEOF 1490\`configure' configures dateutils 0.4.1 to adapt to many kinds of systems. 1491 1492Usage: $0 [OPTION]... [VAR=VALUE]... 1493 1494To assign environment variables (e.g., CC, CFLAGS...), specify them as 1495VAR=VALUE. See below for descriptions of some of the useful variables. 1496 1497Defaults for the options are specified in brackets. 1498 1499Configuration: 1500 -h, --help display this help and exit 1501 --help=short display options specific to this package 1502 --help=recursive display the short help of all the included packages 1503 -V, --version display version information and exit 1504 -q, --quiet, --silent do not print \`checking ...' messages 1505 --cache-file=FILE cache test results in FILE [disabled] 1506 -C, --config-cache alias for \`--cache-file=config.cache' 1507 -n, --no-create do not create output files 1508 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1509 1510Installation directories: 1511 --prefix=PREFIX install architecture-independent files in PREFIX 1512 [$ac_default_prefix] 1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1514 [PREFIX] 1515 1516By default, \`make install' will install all the files in 1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1518an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1519for instance \`--prefix=\$HOME'. 1520 1521For better control, use the options below. 1522 1523Fine tuning of the installation directories: 1524 --bindir=DIR user executables [EPREFIX/bin] 1525 --sbindir=DIR system admin executables [EPREFIX/sbin] 1526 --libexecdir=DIR program executables [EPREFIX/libexec] 1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1530 --libdir=DIR object code libraries [EPREFIX/lib] 1531 --includedir=DIR C header files [PREFIX/include] 1532 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1535 --infodir=DIR info documentation [DATAROOTDIR/info] 1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1537 --mandir=DIR man documentation [DATAROOTDIR/man] 1538 --docdir=DIR documentation root [DATAROOTDIR/doc/dateutils] 1539 --htmldir=DIR html documentation [DOCDIR] 1540 --dvidir=DIR dvi documentation [DOCDIR] 1541 --pdfdir=DIR pdf documentation [DOCDIR] 1542 --psdir=DIR ps documentation [DOCDIR] 1543_ACEOF 1544 1545 cat <<\_ACEOF 1546 1547Program names: 1548 --program-prefix=PREFIX prepend PREFIX to installed program names 1549 --program-suffix=SUFFIX append SUFFIX to installed program names 1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1551 1552System types: 1553 --build=BUILD configure for building on BUILD [guessed] 1554 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1555_ACEOF 1556fi 1557 1558if test -n "$ac_init_help"; then 1559 case $ac_init_help in 1560 short | recursive ) echo "Configuration of dateutils 0.4.1:";; 1561 esac 1562 cat <<\_ACEOF 1563 1564Optional Features: 1565 --disable-option-checking ignore unrecognized --enable/--with options 1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1568 --enable-silent-rules less verbose build output (undo: `make V=1') 1569 --disable-silent-rules verbose build output (undo: `make V=0') 1570 --disable-dependency-tracking speeds up one-time build 1571 --enable-dependency-tracking do not reject slow dependency extractors 1572 --disable-largefile omit support for large files 1573 1574 --enable-tzmap-fetch Fetch tzmaps from github, default: no. 1575 --enable-fast-arith Whether to enable fast date handling and arithmetic 1576 routines at the cost of strictness. For instance the 1577 leap year rule used is incorrect for years before 1578 1901 and after 2100, or every month can have a 31st 1579 to denote the last day of the month. 1580 Default: disabled 1581 1582 --enable-contrib Build contribs, default: no. 1583 --enable-shared[=PKGS] build shared libraries [default=yes] 1584 --enable-static[=PKGS] build static libraries [default=yes] 1585 --enable-fast-install[=PKGS] 1586 optimize for fast installation [default=yes] 1587 --disable-libtool-lock avoid locking (might break parallel builds) 1588 1589Optional Packages: 1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1592 1593 --with-old-names Install old binary names only, default: no. 1594 1595 --with-old-links Install compatibility symlinks, default: yes. 1596 --with-included-yuck Use included copy of the yuck command line parser 1597 generator instead of the system-wide one. 1598 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1599 both] 1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1601 --with-sysroot=DIR Search for dependent libraries within DIR 1602 (or the compiler's sysroot if not specified). 1603 1604Some influential environment variables: 1605 CC C compiler command 1606 CFLAGS C compiler flags 1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1608 nonstandard directory <lib dir> 1609 LIBS libraries to pass to the linker, e.g. -l<library> 1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1611 you have headers in a nonstandard directory <include dir> 1612 CPP C preprocessor 1613 EXTRA_CFLAGS 1614 C compiler flags to be APPENDED. 1615 TZDIR Directory with compiled zoneinfo files. 1616 YACC The `Yet Another Compiler Compiler' implementation to use. 1617 Defaults to the first program found out of: `bison -y', `byacc', 1618 `yacc'. 1619 YFLAGS The list of arguments that will be passed by default to $YACC. 1620 This script will default YFLAGS to the empty string to avoid a 1621 default value of `-d' given by some make applications. 1622 GPERF full path to the gperf tool 1623 CURL full path to the curl tool 1624 GDATE full path to the date tool 1625 have_gdate yes if GDATE is of GNU flavour 1626 have_gdate_2039 1627 yes if GDATE can handle years beyond 2038 1628 MATLAB full path to matlab binary 1629 MATLABPATH path to matlab toolboxes 1630 matlab_CFLAGS 1631 include directives for matlab headers 1632 octave_CFLAGS 1633 include directives for matlab headers 1634 octave_LIBS library directives for octave linking 1635 OCTAVEPATH path to octave toolboxes 1636 M4 full path to the m4 tool 1637 YUCK full path to the yuck tool 1638 1639Use these variables to override the choices made by `configure' or to help 1640it to find libraries and programs with nonstandard names/locations. 1641 1642Report bugs to <https://github.com/hroptatyr/dateutils/issues>. 1643_ACEOF 1644ac_status=$? 1645fi 1646 1647if test "$ac_init_help" = "recursive"; then 1648 # If there are subdirs, report their specific --help. 1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1650 test -d "$ac_dir" || 1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1652 continue 1653 ac_builddir=. 1654 1655case "$ac_dir" in 1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1657*) 1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1659 # A ".." for each directory in $ac_dir_suffix. 1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1661 case $ac_top_builddir_sub in 1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1664 esac ;; 1665esac 1666ac_abs_top_builddir=$ac_pwd 1667ac_abs_builddir=$ac_pwd$ac_dir_suffix 1668# for backward compatibility: 1669ac_top_builddir=$ac_top_build_prefix 1670 1671case $srcdir in 1672 .) # We are building in place. 1673 ac_srcdir=. 1674 ac_top_srcdir=$ac_top_builddir_sub 1675 ac_abs_top_srcdir=$ac_pwd ;; 1676 [\\/]* | ?:[\\/]* ) # Absolute name. 1677 ac_srcdir=$srcdir$ac_dir_suffix; 1678 ac_top_srcdir=$srcdir 1679 ac_abs_top_srcdir=$srcdir ;; 1680 *) # Relative name. 1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1682 ac_top_srcdir=$ac_top_build_prefix$srcdir 1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1684esac 1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1686 1687 cd "$ac_dir" || { ac_status=$?; continue; } 1688 # Check for guested configure. 1689 if test -f "$ac_srcdir/configure.gnu"; then 1690 echo && 1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1692 elif test -f "$ac_srcdir/configure"; then 1693 echo && 1694 $SHELL "$ac_srcdir/configure" --help=recursive 1695 else 1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1697 fi || ac_status=$? 1698 cd "$ac_pwd" || { ac_status=$?; break; } 1699 done 1700fi 1701 1702test -n "$ac_init_help" && exit $ac_status 1703if $ac_init_version; then 1704 cat <<\_ACEOF 1705dateutils configure 0.4.1 1706generated by GNU Autoconf 2.68 1707 1708Copyright (C) 2010 Free Software Foundation, Inc. 1709This configure script is free software; the Free Software Foundation 1710gives unlimited permission to copy, distribute and modify it. 1711 1712#### Configuration script for dateutils and friends. 1713#### Copyright (C) 2011-2016 Sebastian Freundt 1714 1715### Don't edit this script! 1716### This script was automatically generated by the `autoconf' program 1717### from the file `./configure.ac'. 1718### To rebuild it, execute the command 1719### autoreconf 1720 1721_ACEOF 1722 exit 1723fi 1724 1725## ------------------------ ## 1726## Autoconf initialization. ## 1727## ------------------------ ## 1728 1729# ac_fn_c_try_compile LINENO 1730# -------------------------- 1731# Try to compile conftest.$ac_ext, and return whether this succeeded. 1732ac_fn_c_try_compile () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 rm -f conftest.$ac_objext 1736 if { { ac_try="$ac_compile" 1737case "(($ac_try" in 1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1739 *) ac_try_echo=$ac_try;; 1740esac 1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1742$as_echo "$ac_try_echo"; } >&5 1743 (eval "$ac_compile") 2>conftest.err 1744 ac_status=$? 1745 if test -s conftest.err; then 1746 grep -v '^ *+' conftest.err >conftest.er1 1747 cat conftest.er1 >&5 1748 mv -f conftest.er1 conftest.err 1749 fi 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { 1752 test -z "$ac_c_werror_flag" || 1753 test ! -s conftest.err 1754 } && test -s conftest.$ac_objext; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: failed program was:" >&5 1758sed 's/^/| /' conftest.$ac_ext >&5 1759 1760 ac_retval=1 1761fi 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 as_fn_set_status $ac_retval 1764 1765} # ac_fn_c_try_compile 1766 1767# ac_fn_c_try_cpp LINENO 1768# ---------------------- 1769# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1770ac_fn_c_try_cpp () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 if { { ac_try="$ac_cpp conftest.$ac_ext" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1781 ac_status=$? 1782 if test -s conftest.err; then 1783 grep -v '^ *+' conftest.err >conftest.er1 1784 cat conftest.er1 >&5 1785 mv -f conftest.er1 conftest.err 1786 fi 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } > conftest.i && { 1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1790 test ! -s conftest.err 1791 }; then : 1792 ac_retval=0 1793else 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=1 1798fi 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_cpp 1803 1804# ac_fn_c_try_run LINENO 1805# ---------------------- 1806# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1807# that executables *can* be run. 1808ac_fn_c_try_run () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if { { ac_try="$ac_link" 1812case "(($ac_try" in 1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1814 *) ac_try_echo=$ac_try;; 1815esac 1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1817$as_echo "$ac_try_echo"; } >&5 1818 (eval "$ac_link") 2>&5 1819 ac_status=$? 1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1821 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1822 { { case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825esac 1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827$as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_try") 2>&5 1829 ac_status=$? 1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; }; }; then : 1832 ac_retval=0 1833else 1834 $as_echo "$as_me: program exited with status $ac_status" >&5 1835 $as_echo "$as_me: failed program was:" >&5 1836sed 's/^/| /' conftest.$ac_ext >&5 1837 1838 ac_retval=$ac_status 1839fi 1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844} # ac_fn_c_try_run 1845 1846# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1847# ------------------------------------------------------- 1848# Tests whether HEADER exists and can be compiled using the include files in 1849# INCLUDES, setting the cache variable VAR accordingly. 1850ac_fn_c_check_header_compile () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854$as_echo_n "checking for $2... " >&6; } 1855if eval \${$3+:} false; then : 1856 $as_echo_n "(cached) " >&6 1857else 1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859/* end confdefs.h. */ 1860$4 1861#include <$2> 1862_ACEOF 1863if ac_fn_c_try_compile "$LINENO"; then : 1864 eval "$3=yes" 1865else 1866 eval "$3=no" 1867fi 1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1869fi 1870eval ac_res=\$$3 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1872$as_echo "$ac_res" >&6; } 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 1875} # ac_fn_c_check_header_compile 1876 1877# ac_fn_c_try_link LINENO 1878# ----------------------- 1879# Try to link conftest.$ac_ext, and return whether this succeeded. 1880ac_fn_c_try_link () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 rm -f conftest.$ac_objext conftest$ac_exeext 1884 if { { ac_try="$ac_link" 1885case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>conftest.err 1892 ac_status=$? 1893 if test -s conftest.err; then 1894 grep -v '^ *+' conftest.err >conftest.er1 1895 cat conftest.er1 >&5 1896 mv -f conftest.er1 conftest.err 1897 fi 1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1899 test $ac_status = 0; } && { 1900 test -z "$ac_c_werror_flag" || 1901 test ! -s conftest.err 1902 } && test -s conftest$ac_exeext && { 1903 test "$cross_compiling" = yes || 1904 $as_test_x conftest$ac_exeext 1905 }; then : 1906 ac_retval=0 1907else 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912fi 1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1915 # interfere with the next link command; also delete a directory that is 1916 # left behind by Apple's compiler. We do this before executing the actions. 1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 as_fn_set_status $ac_retval 1920 1921} # ac_fn_c_try_link 1922 1923# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1924# ------------------------------------------------------- 1925# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1926# the include files in INCLUDES and setting the cache variable VAR 1927# accordingly. 1928ac_fn_c_check_header_mongrel () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 if eval \${$3+:} false; then : 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1933$as_echo_n "checking for $2... " >&6; } 1934if eval \${$3+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940else 1941 # Is the header compilable? 1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1943$as_echo_n "checking $2 usability... " >&6; } 1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947#include <$2> 1948_ACEOF 1949if ac_fn_c_try_compile "$LINENO"; then : 1950 ac_header_compiler=yes 1951else 1952 ac_header_compiler=no 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1956$as_echo "$ac_header_compiler" >&6; } 1957 1958# Is the header present? 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1960$as_echo_n "checking $2 presence... " >&6; } 1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963#include <$2> 1964_ACEOF 1965if ac_fn_c_try_cpp "$LINENO"; then : 1966 ac_header_preproc=yes 1967else 1968 ac_header_preproc=no 1969fi 1970rm -f conftest.err conftest.i conftest.$ac_ext 1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1972$as_echo "$ac_header_preproc" >&6; } 1973 1974# So? What about this header? 1975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1976 yes:no: ) 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1978$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1981 ;; 1982 no:yes:* ) 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1984$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1986$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1988$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1990$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1993( $as_echo "## ------------------------------------------------------------ ## 1994## Report this to https://github.com/hroptatyr/dateutils/issues ## 1995## ------------------------------------------------------------ ##" 1996 ) | sed "s/^/$as_me: WARNING: /" >&2 1997 ;; 1998esac 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2000$as_echo_n "checking for $2... " >&6; } 2001if eval \${$3+:} false; then : 2002 $as_echo_n "(cached) " >&6 2003else 2004 eval "$3=\$ac_header_compiler" 2005fi 2006eval ac_res=\$$3 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008$as_echo "$ac_res" >&6; } 2009fi 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011 2012} # ac_fn_c_check_header_mongrel 2013 2014# ac_fn_c_check_func LINENO FUNC VAR 2015# ---------------------------------- 2016# Tests whether FUNC exists, setting the cache variable VAR accordingly 2017ac_fn_c_check_func () 2018{ 2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2021$as_echo_n "checking for $2... " >&6; } 2022if eval \${$3+:} false; then : 2023 $as_echo_n "(cached) " >&6 2024else 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2029#define $2 innocuous_$2 2030 2031/* System header to define __stub macros and hopefully few prototypes, 2032 which can conflict with char $2 (); below. 2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2034 <limits.h> exists even on freestanding compilers. */ 2035 2036#ifdef __STDC__ 2037# include <limits.h> 2038#else 2039# include <assert.h> 2040#endif 2041 2042#undef $2 2043 2044/* Override any GCC internal prototype to avoid an error. 2045 Use char because int might match the return type of a GCC 2046 builtin and then its argument prototype would still apply. */ 2047#ifdef __cplusplus 2048extern "C" 2049#endif 2050char $2 (); 2051/* The GNU C library defines this for functions which it implements 2052 to always fail with ENOSYS. Some functions are actually named 2053 something starting with __ and the normal name is an alias. */ 2054#if defined __stub_$2 || defined __stub___$2 2055choke me 2056#endif 2057 2058int 2059main () 2060{ 2061return $2 (); 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_link "$LINENO"; then : 2067 eval "$3=yes" 2068else 2069 eval "$3=no" 2070fi 2071rm -f core conftest.err conftest.$ac_objext \ 2072 conftest$ac_exeext conftest.$ac_ext 2073fi 2074eval ac_res=\$$3 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2076$as_echo "$ac_res" >&6; } 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 2079} # ac_fn_c_check_func 2080 2081# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2082# --------------------------------------------- 2083# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2084# accordingly. 2085ac_fn_c_check_decl () 2086{ 2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2088 as_decl_name=`echo $2|sed 's/ *(.*//'` 2089 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2091$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2092if eval \${$3+:} false; then : 2093 $as_echo_n "(cached) " >&6 2094else 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098int 2099main () 2100{ 2101#ifndef $as_decl_name 2102#ifdef __cplusplus 2103 (void) $as_decl_use; 2104#else 2105 (void) $as_decl_name; 2106#endif 2107#endif 2108 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113if ac_fn_c_try_compile "$LINENO"; then : 2114 eval "$3=yes" 2115else 2116 eval "$3=no" 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2119fi 2120eval ac_res=\$$3 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2122$as_echo "$ac_res" >&6; } 2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2124 2125} # ac_fn_c_check_decl 2126cat >config.log <<_ACEOF 2127This file contains any messages produced by compilers while 2128running configure, to aid debugging if configure makes a mistake. 2129 2130It was created by dateutils $as_me 0.4.1, which was 2131generated by GNU Autoconf 2.68. Invocation command line was 2132 2133 $ $0 $@ 2134 2135_ACEOF 2136exec 5>>config.log 2137{ 2138cat <<_ASUNAME 2139## --------- ## 2140## Platform. ## 2141## --------- ## 2142 2143hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2144uname -m = `(uname -m) 2>/dev/null || echo unknown` 2145uname -r = `(uname -r) 2>/dev/null || echo unknown` 2146uname -s = `(uname -s) 2>/dev/null || echo unknown` 2147uname -v = `(uname -v) 2>/dev/null || echo unknown` 2148 2149/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2150/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2151 2152/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2153/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2154/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2155/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2156/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2157/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2158/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2159 2160_ASUNAME 2161 2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2163for as_dir in $PATH 2164do 2165 IFS=$as_save_IFS 2166 test -z "$as_dir" && as_dir=. 2167 $as_echo "PATH: $as_dir" 2168 done 2169IFS=$as_save_IFS 2170 2171} >&5 2172 2173cat >&5 <<_ACEOF 2174 2175 2176## ----------- ## 2177## Core tests. ## 2178## ----------- ## 2179 2180_ACEOF 2181 2182 2183# Keep a trace of the command line. 2184# Strip out --no-create and --no-recursion so they do not pile up. 2185# Strip out --silent because we don't want to record it for future runs. 2186# Also quote any args containing shell meta-characters. 2187# Make two passes to allow for proper duplicate-argument suppression. 2188ac_configure_args= 2189ac_configure_args0= 2190ac_configure_args1= 2191ac_must_keep_next=false 2192for ac_pass in 1 2 2193do 2194 for ac_arg 2195 do 2196 case $ac_arg in 2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2199 | -silent | --silent | --silen | --sile | --sil) 2200 continue ;; 2201 *\'*) 2202 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2203 esac 2204 case $ac_pass in 2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2206 2) 2207 as_fn_append ac_configure_args1 " '$ac_arg'" 2208 if test $ac_must_keep_next = true; then 2209 ac_must_keep_next=false # Got value, back to normal. 2210 else 2211 case $ac_arg in 2212 *=* | --config-cache | -C | -disable-* | --disable-* \ 2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2215 | -with-* | --with-* | -without-* | --without-* | --x) 2216 case "$ac_configure_args0 " in 2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2218 esac 2219 ;; 2220 -* ) ac_must_keep_next=true ;; 2221 esac 2222 fi 2223 as_fn_append ac_configure_args " '$ac_arg'" 2224 ;; 2225 esac 2226 done 2227done 2228{ ac_configure_args0=; unset ac_configure_args0;} 2229{ ac_configure_args1=; unset ac_configure_args1;} 2230 2231# When interrupted or exit'd, cleanup temporary files, and complete 2232# config.log. We remove comments because anyway the quotes in there 2233# would cause problems or look ugly. 2234# WARNING: Use '\'' to represent an apostrophe within the trap. 2235# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2236trap 'exit_status=$? 2237 # Save into config.log some information that might help in debugging. 2238 { 2239 echo 2240 2241 $as_echo "## ---------------- ## 2242## Cache variables. ## 2243## ---------------- ##" 2244 echo 2245 # The following way of writing the cache mishandles newlines in values, 2246( 2247 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2248 eval ac_val=\$$ac_var 2249 case $ac_val in #( 2250 *${as_nl}*) 2251 case $ac_var in #( 2252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2254 esac 2255 case $ac_var in #( 2256 _ | IFS | as_nl) ;; #( 2257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2258 *) { eval $ac_var=; unset $ac_var;} ;; 2259 esac ;; 2260 esac 2261 done 2262 (set) 2>&1 | 2263 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2264 *${as_nl}ac_space=\ *) 2265 sed -n \ 2266 "s/'\''/'\''\\\\'\'''\''/g; 2267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2268 ;; #( 2269 *) 2270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2271 ;; 2272 esac | 2273 sort 2274) 2275 echo 2276 2277 $as_echo "## ----------------- ## 2278## Output variables. ## 2279## ----------------- ##" 2280 echo 2281 for ac_var in $ac_subst_vars 2282 do 2283 eval ac_val=\$$ac_var 2284 case $ac_val in 2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2286 esac 2287 $as_echo "$ac_var='\''$ac_val'\''" 2288 done | sort 2289 echo 2290 2291 if test -n "$ac_subst_files"; then 2292 $as_echo "## ------------------- ## 2293## File substitutions. ## 2294## ------------------- ##" 2295 echo 2296 for ac_var in $ac_subst_files 2297 do 2298 eval ac_val=\$$ac_var 2299 case $ac_val in 2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2301 esac 2302 $as_echo "$ac_var='\''$ac_val'\''" 2303 done | sort 2304 echo 2305 fi 2306 2307 if test -s confdefs.h; then 2308 $as_echo "## ----------- ## 2309## confdefs.h. ## 2310## ----------- ##" 2311 echo 2312 cat confdefs.h 2313 echo 2314 fi 2315 test "$ac_signal" != 0 && 2316 $as_echo "$as_me: caught signal $ac_signal" 2317 $as_echo "$as_me: exit $exit_status" 2318 } >&5 2319 rm -f core *.core core.conftest.* && 2320 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2321 exit $exit_status 2322' 0 2323for ac_signal in 1 2 13 15; do 2324 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2325done 2326ac_signal=0 2327 2328# confdefs.h avoids OS command line length limits that DEFS can exceed. 2329rm -f -r conftest* confdefs.h 2330 2331$as_echo "/* confdefs.h */" > confdefs.h 2332 2333# Predefined preprocessor variables. 2334 2335cat >>confdefs.h <<_ACEOF 2336#define PACKAGE_NAME "$PACKAGE_NAME" 2337_ACEOF 2338 2339cat >>confdefs.h <<_ACEOF 2340#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2341_ACEOF 2342 2343cat >>confdefs.h <<_ACEOF 2344#define PACKAGE_VERSION "$PACKAGE_VERSION" 2345_ACEOF 2346 2347cat >>confdefs.h <<_ACEOF 2348#define PACKAGE_STRING "$PACKAGE_STRING" 2349_ACEOF 2350 2351cat >>confdefs.h <<_ACEOF 2352#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2353_ACEOF 2354 2355cat >>confdefs.h <<_ACEOF 2356#define PACKAGE_URL "$PACKAGE_URL" 2357_ACEOF 2358 2359 2360# Let the site file select an alternate cache file if it wants to. 2361# Prefer an explicitly selected file to automatically selected ones. 2362ac_site_file1=NONE 2363ac_site_file2=NONE 2364if test -n "$CONFIG_SITE"; then 2365 # We do not want a PATH search for config.site. 2366 case $CONFIG_SITE in #(( 2367 -*) ac_site_file1=./$CONFIG_SITE;; 2368 */*) ac_site_file1=$CONFIG_SITE;; 2369 *) ac_site_file1=./$CONFIG_SITE;; 2370 esac 2371elif test "x$prefix" != xNONE; then 2372 ac_site_file1=$prefix/share/config.site 2373 ac_site_file2=$prefix/etc/config.site 2374else 2375 ac_site_file1=$ac_default_prefix/share/config.site 2376 ac_site_file2=$ac_default_prefix/etc/config.site 2377fi 2378for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2379do 2380 test "x$ac_site_file" = xNONE && continue 2381 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2383$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2384 sed 's/^/| /' "$ac_site_file" >&5 2385 . "$ac_site_file" \ 2386 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388as_fn_error $? "failed to load site script $ac_site_file 2389See \`config.log' for more details" "$LINENO" 5; } 2390 fi 2391done 2392 2393if test -r "$cache_file"; then 2394 # Some versions of bash will fail to source /dev/null (special files 2395 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2396 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2398$as_echo "$as_me: loading cache $cache_file" >&6;} 2399 case $cache_file in 2400 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2401 *) . "./$cache_file";; 2402 esac 2403 fi 2404else 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2406$as_echo "$as_me: creating cache $cache_file" >&6;} 2407 >$cache_file 2408fi 2409 2410# Check that the precious variables saved in the cache have kept the same 2411# value. 2412ac_cache_corrupted=false 2413for ac_var in $ac_precious_vars; do 2414 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2415 eval ac_new_set=\$ac_env_${ac_var}_set 2416 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2417 eval ac_new_val=\$ac_env_${ac_var}_value 2418 case $ac_old_set,$ac_new_set in 2419 set,) 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2421$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2422 ac_cache_corrupted=: ;; 2423 ,set) 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2425$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2426 ac_cache_corrupted=: ;; 2427 ,);; 2428 *) 2429 if test "x$ac_old_val" != "x$ac_new_val"; then 2430 # differences in whitespace do not lead to failure. 2431 ac_old_val_w=`echo x $ac_old_val` 2432 ac_new_val_w=`echo x $ac_new_val` 2433 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2435$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2436 ac_cache_corrupted=: 2437 else 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2439$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2440 eval $ac_var=\$ac_old_val 2441 fi 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2443$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2445$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2446 fi;; 2447 esac 2448 # Pass precious variables to config.status. 2449 if test "$ac_new_set" = set; then 2450 case $ac_new_val in 2451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2452 *) ac_arg=$ac_var=$ac_new_val ;; 2453 esac 2454 case " $ac_configure_args " in 2455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2456 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2457 esac 2458 fi 2459done 2460if $ac_cache_corrupted; then 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2464$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2466fi 2467## -------------------- ## 2468## Main body of script. ## 2469## -------------------- ## 2470 2471ac_ext=c 2472ac_cpp='$CPP $CPPFLAGS' 2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2475ac_compiler_gnu=$ac_cv_c_compiler_gnu 2476 2477 2478ac_aux_dir= 2479for ac_dir in build-aux "$srcdir"/build-aux; do 2480 if test -f "$ac_dir/install-sh"; then 2481 ac_aux_dir=$ac_dir 2482 ac_install_sh="$ac_aux_dir/install-sh -c" 2483 break 2484 elif test -f "$ac_dir/install.sh"; then 2485 ac_aux_dir=$ac_dir 2486 ac_install_sh="$ac_aux_dir/install.sh -c" 2487 break 2488 elif test -f "$ac_dir/shtool"; then 2489 ac_aux_dir=$ac_dir 2490 ac_install_sh="$ac_aux_dir/shtool install -c" 2491 break 2492 fi 2493done 2494if test -z "$ac_aux_dir"; then 2495 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2496fi 2497 2498# These three variables are undocumented and unsupported, 2499# and are intended to be withdrawn in a future Autoconf release. 2500# They can cause serious problems if a builder's source tree is in a directory 2501# whose full name contains unusual characters. 2502ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2503ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2504ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2505 2506 2507ac_config_headers="$ac_config_headers src/config.h" 2508 2509 2510 2511 2512 2513 2514 2515am__api_version='1.11' 2516 2517# Find a good install program. We prefer a C program (faster), 2518# so one script is as good as another. But avoid the broken or 2519# incompatible versions: 2520# SysV /etc/install, /usr/sbin/install 2521# SunOS /usr/etc/install 2522# IRIX /sbin/install 2523# AIX /bin/install 2524# AmigaOS /C/install, which installs bootblocks on floppy discs 2525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2526# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2528# OS/2's system install, which has a completely different semantic 2529# ./install, which can be erroneously created by make from ./install.sh. 2530# Reject install programs that cannot install multiple files. 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2532$as_echo_n "checking for a BSD-compatible install... " >&6; } 2533if test -z "$INSTALL"; then 2534if ${ac_cv_path_install+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH 2539do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 # Account for people who put trailing slashes in PATH elements. 2543case $as_dir/ in #(( 2544 ./ | .// | /[cC]/* | \ 2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2547 /usr/ucb/* ) ;; 2548 *) 2549 # OSF1 and SCO ODT 3.0 have their own names for install. 2550 # Don't use installbsd from OSF since it installs stuff as root 2551 # by default. 2552 for ac_prog in ginstall scoinst install; do 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2555 if test $ac_prog = install && 2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2557 # AIX install. It has an incompatible calling convention. 2558 : 2559 elif test $ac_prog = install && 2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2561 # program-specific install script used by HP pwplus--don't use. 2562 : 2563 else 2564 rm -rf conftest.one conftest.two conftest.dir 2565 echo one > conftest.one 2566 echo two > conftest.two 2567 mkdir conftest.dir 2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2569 test -s conftest.one && test -s conftest.two && 2570 test -s conftest.dir/conftest.one && 2571 test -s conftest.dir/conftest.two 2572 then 2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2574 break 3 2575 fi 2576 fi 2577 fi 2578 done 2579 done 2580 ;; 2581esac 2582 2583 done 2584IFS=$as_save_IFS 2585 2586rm -rf conftest.one conftest.two conftest.dir 2587 2588fi 2589 if test "${ac_cv_path_install+set}" = set; then 2590 INSTALL=$ac_cv_path_install 2591 else 2592 # As a last resort, use the slow shell script. Don't cache a 2593 # value for INSTALL within a source directory, because that will 2594 # break other packages using the cache if that directory is 2595 # removed, or if the value is a relative name. 2596 INSTALL=$ac_install_sh 2597 fi 2598fi 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2600$as_echo "$INSTALL" >&6; } 2601 2602# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2603# It thinks the first close brace ends the variable substitution. 2604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2605 2606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2607 2608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2609 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2611$as_echo_n "checking whether build environment is sane... " >&6; } 2612# Just in case 2613sleep 1 2614echo timestamp > conftest.file 2615# Reject unsafe characters in $srcdir or the absolute working directory 2616# name. Accept space and tab only in the latter. 2617am_lf=' 2618' 2619case `pwd` in 2620 *[\\\"\#\$\&\'\`$am_lf]*) 2621 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2622esac 2623case $srcdir in 2624 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2625 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2626esac 2627 2628# Do `set' in a subshell so we don't clobber the current shell's 2629# arguments. Must try -L first in case configure is actually a 2630# symlink; some systems play weird games with the mod time of symlinks 2631# (eg FreeBSD returns the mod time of the symlink's containing 2632# directory). 2633if ( 2634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2635 if test "$*" = "X"; then 2636 # -L didn't work. 2637 set X `ls -t "$srcdir/configure" conftest.file` 2638 fi 2639 rm -f conftest.file 2640 if test "$*" != "X $srcdir/configure conftest.file" \ 2641 && test "$*" != "X conftest.file $srcdir/configure"; then 2642 2643 # If neither matched, then we have a broken ls. This can happen 2644 # if, for instance, CONFIG_SHELL is bash and it inherits a 2645 # broken ls alias from the environment. This has actually 2646 # happened. Such a system could not be considered "sane". 2647 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2648alias in your environment" "$LINENO" 5 2649 fi 2650 2651 test "$2" = conftest.file 2652 ) 2653then 2654 # Ok. 2655 : 2656else 2657 as_fn_error $? "newly created file is older than distributed files! 2658Check your system clock" "$LINENO" 5 2659fi 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2661$as_echo "yes" >&6; } 2662test "$program_prefix" != NONE && 2663 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2664# Use a double $ so make ignores it. 2665test "$program_suffix" != NONE && 2666 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2667# Double any \ or $. 2668# By default was `s,x,x', remove it if useless. 2669ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2670program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2671 2672# expand $ac_aux_dir to an absolute path 2673am_aux_dir=`cd $ac_aux_dir && pwd` 2674 2675if test x"${MISSING+set}" != xset; then 2676 case $am_aux_dir in 2677 *\ * | *\ *) 2678 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2679 *) 2680 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2681 esac 2682fi 2683# Use eval to expand $SHELL 2684if eval "$MISSING --run true"; then 2685 am_missing_run="$MISSING --run " 2686else 2687 am_missing_run= 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2689$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2690fi 2691 2692if test x"${install_sh}" != xset; then 2693 case $am_aux_dir in 2694 *\ * | *\ *) 2695 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2696 *) 2697 install_sh="\${SHELL} $am_aux_dir/install-sh" 2698 esac 2699fi 2700 2701# Installed binaries are usually stripped using `strip' when the user 2702# run `make install-strip'. However `strip' might not be the right 2703# tool to use in cross-compilation environments, therefore Automake 2704# will honor the `STRIP' environment variable to overrule this program. 2705if test "$cross_compiling" != no; then 2706 if test -n "$ac_tool_prefix"; then 2707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2708set dummy ${ac_tool_prefix}strip; ac_word=$2 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710$as_echo_n "checking for $ac_word... " >&6; } 2711if ${ac_cv_prog_STRIP+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if test -n "$STRIP"; then 2715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2724 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729 done 2730IFS=$as_save_IFS 2731 2732fi 2733fi 2734STRIP=$ac_cv_prog_STRIP 2735if test -n "$STRIP"; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2737$as_echo "$STRIP" >&6; } 2738else 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2740$as_echo "no" >&6; } 2741fi 2742 2743 2744fi 2745if test -z "$ac_cv_prog_STRIP"; then 2746 ac_ct_STRIP=$STRIP 2747 # Extract the first word of "strip", so it can be a program name with args. 2748set dummy strip; ac_word=$2 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2750$as_echo_n "checking for $ac_word... " >&6; } 2751if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 if test -n "$ac_ct_STRIP"; then 2755 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2756else 2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2758for as_dir in $PATH 2759do 2760 IFS=$as_save_IFS 2761 test -z "$as_dir" && as_dir=. 2762 for ac_exec_ext in '' $ac_executable_extensions; do 2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2764 ac_cv_prog_ac_ct_STRIP="strip" 2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2766 break 2 2767 fi 2768done 2769 done 2770IFS=$as_save_IFS 2771 2772fi 2773fi 2774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2775if test -n "$ac_ct_STRIP"; then 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2777$as_echo "$ac_ct_STRIP" >&6; } 2778else 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780$as_echo "no" >&6; } 2781fi 2782 2783 if test "x$ac_ct_STRIP" = x; then 2784 STRIP=":" 2785 else 2786 case $cross_compiling:$ac_tool_warned in 2787yes:) 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2790ac_tool_warned=yes ;; 2791esac 2792 STRIP=$ac_ct_STRIP 2793 fi 2794else 2795 STRIP="$ac_cv_prog_STRIP" 2796fi 2797 2798fi 2799INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2800 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2802$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2803if test -z "$MKDIR_P"; then 2804 if ${ac_cv_path_mkdir+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2809do 2810 IFS=$as_save_IFS 2811 test -z "$as_dir" && as_dir=. 2812 for ac_prog in mkdir gmkdir; do 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2815 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2816 'mkdir (GNU coreutils) '* | \ 2817 'mkdir (coreutils) '* | \ 2818 'mkdir (fileutils) '4.1*) 2819 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2820 break 3;; 2821 esac 2822 done 2823 done 2824 done 2825IFS=$as_save_IFS 2826 2827fi 2828 2829 test -d ./--version && rmdir ./--version 2830 if test "${ac_cv_path_mkdir+set}" = set; then 2831 MKDIR_P="$ac_cv_path_mkdir -p" 2832 else 2833 # As a last resort, use the slow shell script. Don't cache a 2834 # value for MKDIR_P within a source directory, because that will 2835 # break other packages using the cache if that directory is 2836 # removed, or if the value is a relative name. 2837 MKDIR_P="$ac_install_sh -d" 2838 fi 2839fi 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2841$as_echo "$MKDIR_P" >&6; } 2842 2843mkdir_p="$MKDIR_P" 2844case $mkdir_p in 2845 [\\/$]* | ?:[\\/]*) ;; 2846 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2847esac 2848 2849for ac_prog in gawk mawk nawk awk 2850do 2851 # Extract the first word of "$ac_prog", so it can be a program name with args. 2852set dummy $ac_prog; ac_word=$2 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2854$as_echo_n "checking for $ac_word... " >&6; } 2855if ${ac_cv_prog_AWK+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 if test -n "$AWK"; then 2859 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2868 ac_cv_prog_AWK="$ac_prog" 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876fi 2877fi 2878AWK=$ac_cv_prog_AWK 2879if test -n "$AWK"; then 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2881$as_echo "$AWK" >&6; } 2882else 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884$as_echo "no" >&6; } 2885fi 2886 2887 2888 test -n "$AWK" && break 2889done 2890 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2892$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2893set x ${MAKE-make} 2894ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2895if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 cat >conftest.make <<\_ACEOF 2899SHELL = /bin/sh 2900all: 2901 @echo '@@@%%%=$(MAKE)=@@@%%%' 2902_ACEOF 2903# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2904case `${MAKE-make} -f conftest.make 2>/dev/null` in 2905 *@@@%%%=?*=@@@%%%*) 2906 eval ac_cv_prog_make_${ac_make}_set=yes;; 2907 *) 2908 eval ac_cv_prog_make_${ac_make}_set=no;; 2909esac 2910rm -f conftest.make 2911fi 2912if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2914$as_echo "yes" >&6; } 2915 SET_MAKE= 2916else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2918$as_echo "no" >&6; } 2919 SET_MAKE="MAKE=${MAKE-make}" 2920fi 2921 2922rm -rf .tst 2>/dev/null 2923mkdir .tst 2>/dev/null 2924if test -d .tst; then 2925 am__leading_dot=. 2926else 2927 am__leading_dot=_ 2928fi 2929rmdir .tst 2>/dev/null 2930 2931if test "`cd $srcdir && pwd`" != "`pwd`"; then 2932 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2933 # is not polluted with repeated "-I." 2934 am__isrc=' -I$(srcdir)' 2935 # test to see if srcdir already configured 2936 if test -f $srcdir/config.status; then 2937 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2938 fi 2939fi 2940 2941# test whether we have cygpath 2942if test -z "$CYGPATH_W"; then 2943 if (cygpath --version) >/dev/null 2>/dev/null; then 2944 CYGPATH_W='cygpath -w' 2945 else 2946 CYGPATH_W=echo 2947 fi 2948fi 2949 2950 2951# Define the identity of the package. 2952 PACKAGE='dateutils' 2953 VERSION='0.4.1' 2954 2955 2956cat >>confdefs.h <<_ACEOF 2957#define PACKAGE "$PACKAGE" 2958_ACEOF 2959 2960 2961cat >>confdefs.h <<_ACEOF 2962#define VERSION "$VERSION" 2963_ACEOF 2964 2965# Some tools Automake needs. 2966 2967ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2968 2969 2970AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2971 2972 2973AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2974 2975 2976AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2977 2978 2979MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2980 2981# We need awk for the "check" target. The system "awk" is bad on 2982# some platforms. 2983# Always define AMTAR for backward compatibility. Yes, it's still used 2984# in the wild :-( We should find a proper way to deprecate it ... 2985AMTAR='$${TAR-tar}' 2986 2987am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2988 2989 2990 2991 2992 2993# Check whether --enable-silent-rules was given. 2994if test "${enable_silent_rules+set}" = set; then : 2995 enableval=$enable_silent_rules; 2996fi 2997 2998case $enable_silent_rules in 2999yes) AM_DEFAULT_VERBOSITY=0;; 3000no) AM_DEFAULT_VERBOSITY=1;; 3001*) AM_DEFAULT_VERBOSITY=0;; 3002esac 3003am_make=${MAKE-make} 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3005$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3006if ${am_cv_make_support_nested_variables+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if $as_echo 'TRUE=$(BAR$(V)) 3010BAR0=false 3011BAR1=true 3012V=1 3013am__doit: 3014 @$(TRUE) 3015.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3016 am_cv_make_support_nested_variables=yes 3017else 3018 am_cv_make_support_nested_variables=no 3019fi 3020fi 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3022$as_echo "$am_cv_make_support_nested_variables" >&6; } 3023if test $am_cv_make_support_nested_variables = yes; then 3024 AM_V='$(V)' 3025 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3026else 3027 AM_V=$AM_DEFAULT_VERBOSITY 3028 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3029fi 3030AM_BACKSLASH='\' 3031 3032 3033## the build chain 3034ac_ext=c 3035ac_cpp='$CPP $CPPFLAGS' 3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3038ac_compiler_gnu=$ac_cv_c_compiler_gnu 3039if test -n "$ac_tool_prefix"; then 3040 for ac_prog in icc gcc tcc cc 3041 do 3042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3043set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045$as_echo_n "checking for $ac_word... " >&6; } 3046if ${ac_cv_prog_CC+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 if test -n "$CC"; then 3050 ac_cv_prog_CC="$CC" # Let the user override the test. 3051else 3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053for as_dir in $PATH 3054do 3055 IFS=$as_save_IFS 3056 test -z "$as_dir" && as_dir=. 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3061 break 2 3062 fi 3063done 3064 done 3065IFS=$as_save_IFS 3066 3067fi 3068fi 3069CC=$ac_cv_prog_CC 3070if test -n "$CC"; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3072$as_echo "$CC" >&6; } 3073else 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3075$as_echo "no" >&6; } 3076fi 3077 3078 3079 test -n "$CC" && break 3080 done 3081fi 3082if test -z "$CC"; then 3083 ac_ct_CC=$CC 3084 for ac_prog in icc gcc tcc cc 3085do 3086 # Extract the first word of "$ac_prog", so it can be a program name with args. 3087set dummy $ac_prog; ac_word=$2 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3089$as_echo_n "checking for $ac_word... " >&6; } 3090if ${ac_cv_prog_ac_ct_CC+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 if test -n "$ac_ct_CC"; then 3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3095else 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3103 ac_cv_prog_ac_ct_CC="$ac_prog" 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111fi 3112fi 3113ac_ct_CC=$ac_cv_prog_ac_ct_CC 3114if test -n "$ac_ct_CC"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3116$as_echo "$ac_ct_CC" >&6; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120fi 3121 3122 3123 test -n "$ac_ct_CC" && break 3124done 3125 3126 if test "x$ac_ct_CC" = x; then 3127 CC="" 3128 else 3129 case $cross_compiling:$ac_tool_warned in 3130yes:) 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3133ac_tool_warned=yes ;; 3134esac 3135 CC=$ac_ct_CC 3136 fi 3137fi 3138 3139 3140test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3142as_fn_error $? "no acceptable C compiler found in \$PATH 3143See \`config.log' for more details" "$LINENO" 5; } 3144 3145# Provide some information about the compiler. 3146$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3147set X $ac_compile 3148ac_compiler=$2 3149for ac_option in --version -v -V -qversion; do 3150 { { ac_try="$ac_compiler $ac_option >&5" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3156$as_echo "$ac_try_echo"; } >&5 3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3158 ac_status=$? 3159 if test -s conftest.err; then 3160 sed '10a\ 3161... rest of stderr output deleted ... 3162 10q' conftest.err >conftest.er1 3163 cat conftest.er1 >&5 3164 fi 3165 rm -f conftest.er1 conftest.err 3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167 test $ac_status = 0; } 3168done 3169 3170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3171/* end confdefs.h. */ 3172 3173int 3174main () 3175{ 3176 3177 ; 3178 return 0; 3179} 3180_ACEOF 3181ac_clean_files_save=$ac_clean_files 3182ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3183# Try to create an executable without -o first, disregard a.out. 3184# It will help us diagnose broken compilers, and finding out an intuition 3185# of exeext. 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3187$as_echo_n "checking whether the C compiler works... " >&6; } 3188ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3189 3190# The possible output files: 3191ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3192 3193ac_rmfiles= 3194for ac_file in $ac_files 3195do 3196 case $ac_file in 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3199 esac 3200done 3201rm -f $ac_rmfiles 3202 3203if { { ac_try="$ac_link_default" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209$as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_link_default") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; }; then : 3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3215# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3216# in a Makefile. We should not override ac_cv_exeext if it was cached, 3217# so that the user can short-circuit this test for compilers unknown to 3218# Autoconf. 3219for ac_file in $ac_files '' 3220do 3221 test -f "$ac_file" || continue 3222 case $ac_file in 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3224 ;; 3225 [ab].out ) 3226 # We found the default executable, but exeext='' is most 3227 # certainly right. 3228 break;; 3229 *.* ) 3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3231 then :; else 3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 fi 3234 # We set ac_cv_exeext here because the later test for it is not 3235 # safe: cross compilers may not add the suffix if given an `-o' 3236 # argument, so we may need to know it at that point already. 3237 # Even if this section looks crufty: it has the advantage of 3238 # actually working. 3239 break;; 3240 * ) 3241 break;; 3242 esac 3243done 3244test "$ac_cv_exeext" = no && ac_cv_exeext= 3245 3246else 3247 ac_file='' 3248fi 3249if test -z "$ac_file"; then : 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252$as_echo "$as_me: failed program was:" >&5 3253sed 's/^/| /' conftest.$ac_ext >&5 3254 3255{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3257as_fn_error 77 "C compiler cannot create executables 3258See \`config.log' for more details" "$LINENO" 5; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3261$as_echo "yes" >&6; } 3262fi 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3264$as_echo_n "checking for C compiler default output file name... " >&6; } 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3266$as_echo "$ac_file" >&6; } 3267ac_exeext=$ac_cv_exeext 3268 3269rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3270ac_clean_files=$ac_clean_files_save 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3272$as_echo_n "checking for suffix of executables... " >&6; } 3273if { { ac_try="$ac_link" 3274case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3279$as_echo "$ac_try_echo"; } >&5 3280 (eval "$ac_link") 2>&5 3281 ac_status=$? 3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3283 test $ac_status = 0; }; then : 3284 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3285# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3286# work properly (i.e., refer to `conftest.exe'), while it won't with 3287# `rm'. 3288for ac_file in conftest.exe conftest conftest.*; do 3289 test -f "$ac_file" || continue 3290 case $ac_file in 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3293 break;; 3294 * ) break;; 3295 esac 3296done 3297else 3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3300as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3301See \`config.log' for more details" "$LINENO" 5; } 3302fi 3303rm -f conftest conftest$ac_cv_exeext 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3305$as_echo "$ac_cv_exeext" >&6; } 3306 3307rm -f conftest.$ac_ext 3308EXEEXT=$ac_cv_exeext 3309ac_exeext=$EXEEXT 3310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312#include <stdio.h> 3313int 3314main () 3315{ 3316FILE *f = fopen ("conftest.out", "w"); 3317 return ferror (f) || fclose (f) != 0; 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323ac_clean_files="$ac_clean_files conftest.out" 3324# Check that the compiler produces executables we can run. If not, either 3325# the compiler is broken, or we cross compile. 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3327$as_echo_n "checking whether we are cross compiling... " >&6; } 3328if test "$cross_compiling" != yes; then 3329 { { ac_try="$ac_link" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3335$as_echo "$ac_try_echo"; } >&5 3336 (eval "$ac_link") 2>&5 3337 ac_status=$? 3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3339 test $ac_status = 0; } 3340 if { ac_try='./conftest$ac_cv_exeext' 3341 { { case "(($ac_try" in 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3343 *) ac_try_echo=$ac_try;; 3344esac 3345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3346$as_echo "$ac_try_echo"; } >&5 3347 (eval "$ac_try") 2>&5 3348 ac_status=$? 3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3350 test $ac_status = 0; }; }; then 3351 cross_compiling=no 3352 else 3353 if test "$cross_compiling" = maybe; then 3354 cross_compiling=yes 3355 else 3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3358as_fn_error $? "cannot run C compiled programs. 3359If you meant to cross compile, use \`--host'. 3360See \`config.log' for more details" "$LINENO" 5; } 3361 fi 3362 fi 3363fi 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3365$as_echo "$cross_compiling" >&6; } 3366 3367rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3368ac_clean_files=$ac_clean_files_save 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3370$as_echo_n "checking for suffix of object files... " >&6; } 3371if ${ac_cv_objext+:} false; then : 3372 $as_echo_n "(cached) " >&6 3373else 3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376 3377int 3378main () 3379{ 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385rm -f conftest.o conftest.obj 3386if { { ac_try="$ac_compile" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392$as_echo "$ac_try_echo"; } >&5 3393 (eval "$ac_compile") 2>&5 3394 ac_status=$? 3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; }; then : 3397 for ac_file in conftest.o conftest.obj conftest.*; do 3398 test -f "$ac_file" || continue; 3399 case $ac_file in 3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3402 break;; 3403 esac 3404done 3405else 3406 $as_echo "$as_me: failed program was:" >&5 3407sed 's/^/| /' conftest.$ac_ext >&5 3408 3409{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3411as_fn_error $? "cannot compute suffix of object files: cannot compile 3412See \`config.log' for more details" "$LINENO" 5; } 3413fi 3414rm -f conftest.$ac_cv_objext conftest.$ac_ext 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3417$as_echo "$ac_cv_objext" >&6; } 3418OBJEXT=$ac_cv_objext 3419ac_objext=$OBJEXT 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3421$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3422if ${ac_cv_c_compiler_gnu+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431#ifndef __GNUC__ 3432 choke me 3433#endif 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_c_try_compile "$LINENO"; then : 3440 ac_compiler_gnu=yes 3441else 3442 ac_compiler_gnu=no 3443fi 3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3445ac_cv_c_compiler_gnu=$ac_compiler_gnu 3446 3447fi 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3449$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3450if test $ac_compiler_gnu = yes; then 3451 GCC=yes 3452else 3453 GCC= 3454fi 3455ac_test_CFLAGS=${CFLAGS+set} 3456ac_save_CFLAGS=$CFLAGS 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3458$as_echo_n "checking whether $CC accepts -g... " >&6; } 3459if ${ac_cv_prog_cc_g+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 ac_save_c_werror_flag=$ac_c_werror_flag 3463 ac_c_werror_flag=yes 3464 ac_cv_prog_cc_g=no 3465 CFLAGS="-g" 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468 3469int 3470main () 3471{ 3472 3473 ; 3474 return 0; 3475} 3476_ACEOF 3477if ac_fn_c_try_compile "$LINENO"; then : 3478 ac_cv_prog_cc_g=yes 3479else 3480 CFLAGS="" 3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3482/* end confdefs.h. */ 3483 3484int 3485main () 3486{ 3487 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492if ac_fn_c_try_compile "$LINENO"; then : 3493 3494else 3495 ac_c_werror_flag=$ac_save_c_werror_flag 3496 CFLAGS="-g" 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498/* end confdefs.h. */ 3499 3500int 3501main () 3502{ 3503 3504 ; 3505 return 0; 3506} 3507_ACEOF 3508if ac_fn_c_try_compile "$LINENO"; then : 3509 ac_cv_prog_cc_g=yes 3510fi 3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3512fi 3513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3514fi 3515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3516 ac_c_werror_flag=$ac_save_c_werror_flag 3517fi 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3519$as_echo "$ac_cv_prog_cc_g" >&6; } 3520if test "$ac_test_CFLAGS" = set; then 3521 CFLAGS=$ac_save_CFLAGS 3522elif test $ac_cv_prog_cc_g = yes; then 3523 if test "$GCC" = yes; then 3524 CFLAGS="-g -O2" 3525 else 3526 CFLAGS="-g" 3527 fi 3528else 3529 if test "$GCC" = yes; then 3530 CFLAGS="-O2" 3531 else 3532 CFLAGS= 3533 fi 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3536$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3537if ${ac_cv_prog_cc_c89+:} false; then : 3538 $as_echo_n "(cached) " >&6 3539else 3540 ac_cv_prog_cc_c89=no 3541ac_save_CC=$CC 3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544#include <stdarg.h> 3545#include <stdio.h> 3546#include <sys/types.h> 3547#include <sys/stat.h> 3548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3549struct buf { int x; }; 3550FILE * (*rcsopen) (struct buf *, struct stat *, int); 3551static char *e (p, i) 3552 char **p; 3553 int i; 3554{ 3555 return p[i]; 3556} 3557static char *f (char * (*g) (char **, int), char **p, ...) 3558{ 3559 char *s; 3560 va_list v; 3561 va_start (v,p); 3562 s = g (p, va_arg (v,int)); 3563 va_end (v); 3564 return s; 3565} 3566 3567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3568 function prototypes and stuff, but not '\xHH' hex character constants. 3569 These don't provoke an error unfortunately, instead are silently treated 3570 as 'x'. The following induces an error, until -std is added to get 3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3572 array size at least. It's necessary to write '\x00'==0 to get something 3573 that's true only with -std. */ 3574int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3575 3576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3577 inside strings and character constants. */ 3578#define FOO(x) 'x' 3579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3580 3581int test (int i, double x); 3582struct s1 {int (*f) (int a);}; 3583struct s2 {int (*f) (double a);}; 3584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3585int argc; 3586char **argv; 3587int 3588main () 3589{ 3590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3597do 3598 CC="$ac_save_CC $ac_arg" 3599 if ac_fn_c_try_compile "$LINENO"; then : 3600 ac_cv_prog_cc_c89=$ac_arg 3601fi 3602rm -f core conftest.err conftest.$ac_objext 3603 test "x$ac_cv_prog_cc_c89" != "xno" && break 3604done 3605rm -f conftest.$ac_ext 3606CC=$ac_save_CC 3607 3608fi 3609# AC_CACHE_VAL 3610case "x$ac_cv_prog_cc_c89" in 3611 x) 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3613$as_echo "none needed" >&6; } ;; 3614 xno) 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3616$as_echo "unsupported" >&6; } ;; 3617 *) 3618 CC="$CC $ac_cv_prog_cc_c89" 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3621esac 3622if test "x$ac_cv_prog_cc_c89" != xno; then : 3623 3624fi 3625 3626ac_ext=c 3627ac_cpp='$CPP $CPPFLAGS' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu 3631DEPDIR="${am__leading_dot}deps" 3632 3633ac_config_commands="$ac_config_commands depfiles" 3634 3635 3636am_make=${MAKE-make} 3637cat > confinc << 'END' 3638am__doit: 3639 @echo this is the am__doit target 3640.PHONY: am__doit 3641END 3642# If we don't find an include directive, just comment out the code. 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3644$as_echo_n "checking for style of include used by $am_make... " >&6; } 3645am__include="#" 3646am__quote= 3647_am_result=none 3648# First try GNU make style include. 3649echo "include confinc" > confmf 3650# Ignore all kinds of additional output from `make'. 3651case `$am_make -s -f confmf 2> /dev/null` in #( 3652*the\ am__doit\ target*) 3653 am__include=include 3654 am__quote= 3655 _am_result=GNU 3656 ;; 3657esac 3658# Now try BSD make style include. 3659if test "$am__include" = "#"; then 3660 echo '.include "confinc"' > confmf 3661 case `$am_make -s -f confmf 2> /dev/null` in #( 3662 *the\ am__doit\ target*) 3663 am__include=.include 3664 am__quote="\"" 3665 _am_result=BSD 3666 ;; 3667 esac 3668fi 3669 3670 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3672$as_echo "$_am_result" >&6; } 3673rm -f confinc confmf 3674 3675# Check whether --enable-dependency-tracking was given. 3676if test "${enable_dependency_tracking+set}" = set; then : 3677 enableval=$enable_dependency_tracking; 3678fi 3679 3680if test "x$enable_dependency_tracking" != xno; then 3681 am_depcomp="$ac_aux_dir/depcomp" 3682 AMDEPBACKSLASH='\' 3683 am__nodep='_no' 3684fi 3685 if test "x$enable_dependency_tracking" != xno; then 3686 AMDEP_TRUE= 3687 AMDEP_FALSE='#' 3688else 3689 AMDEP_TRUE='#' 3690 AMDEP_FALSE= 3691fi 3692 3693 3694 3695depcc="$CC" am_compiler_list= 3696 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3698$as_echo_n "checking dependency style of $depcc... " >&6; } 3699if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701else 3702 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3703 # We make a subdir and do the tests there. Otherwise we can end up 3704 # making bogus files that we don't know about and never remove. For 3705 # instance it was reported that on HP-UX the gcc test will end up 3706 # making a dummy file named `D' -- because `-MD' means `put the output 3707 # in D'. 3708 rm -rf conftest.dir 3709 mkdir conftest.dir 3710 # Copy depcomp to subdir because otherwise we won't find it if we're 3711 # using a relative directory. 3712 cp "$am_depcomp" conftest.dir 3713 cd conftest.dir 3714 # We will build objects and dependencies in a subdirectory because 3715 # it helps to detect inapplicable dependency modes. For instance 3716 # both Tru64's cc and ICC support -MD to output dependencies as a 3717 # side effect of compilation, but ICC will put the dependencies in 3718 # the current directory while Tru64 will put them in the object 3719 # directory. 3720 mkdir sub 3721 3722 am_cv_CC_dependencies_compiler_type=none 3723 if test "$am_compiler_list" = ""; then 3724 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3725 fi 3726 am__universal=false 3727 case " $depcc " in #( 3728 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3729 esac 3730 3731 for depmode in $am_compiler_list; do 3732 # Setup a source with many dependencies, because some compilers 3733 # like to wrap large dependency lists on column 80 (with \), and 3734 # we should not choose a depcomp mode which is confused by this. 3735 # 3736 # We need to recreate these files for each test, as the compiler may 3737 # overwrite some of them when testing with obscure command lines. 3738 # This happens at least with the AIX C compiler. 3739 : > sub/conftest.c 3740 for i in 1 2 3 4 5 6; do 3741 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3742 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3743 # Solaris 8's {/usr,}/bin/sh. 3744 touch sub/conftst$i.h 3745 done 3746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3747 3748 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3749 # mode. It turns out that the SunPro C++ compiler does not properly 3750 # handle `-M -o', and we need to detect this. Also, some Intel 3751 # versions had trouble with output in subdirs 3752 am__obj=sub/conftest.${OBJEXT-o} 3753 am__minus_obj="-o $am__obj" 3754 case $depmode in 3755 gcc) 3756 # This depmode causes a compiler race in universal mode. 3757 test "$am__universal" = false || continue 3758 ;; 3759 nosideeffect) 3760 # after this tag, mechanisms are not by side-effect, so they'll 3761 # only be used when explicitly requested 3762 if test "x$enable_dependency_tracking" = xyes; then 3763 continue 3764 else 3765 break 3766 fi 3767 ;; 3768 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3769 # This compiler won't grok `-c -o', but also, the minuso test has 3770 # not run yet. These depmodes are late enough in the game, and 3771 # so weak that their functioning should not be impacted. 3772 am__obj=conftest.${OBJEXT-o} 3773 am__minus_obj= 3774 ;; 3775 none) break ;; 3776 esac 3777 if depmode=$depmode \ 3778 source=sub/conftest.c object=$am__obj \ 3779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3780 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3781 >/dev/null 2>conftest.err && 3782 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3783 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3784 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3785 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3786 # icc doesn't choke on unknown options, it will just issue warnings 3787 # or remarks (even with -Werror). So we grep stderr for any message 3788 # that says an option was ignored or not supported. 3789 # When given -MP, icc 7.0 and 7.1 complain thusly: 3790 # icc: Command line warning: ignoring option '-M'; no argument required 3791 # The diagnosis changed in icc 8.0: 3792 # icc: Command line remark: option '-MP' not supported 3793 if (grep 'ignoring option' conftest.err || 3794 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3795 am_cv_CC_dependencies_compiler_type=$depmode 3796 break 3797 fi 3798 fi 3799 done 3800 3801 cd .. 3802 rm -rf conftest.dir 3803else 3804 am_cv_CC_dependencies_compiler_type=none 3805fi 3806 3807fi 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3809$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3810CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3811 3812 if 3813 test "x$enable_dependency_tracking" != xno \ 3814 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3815 am__fastdepCC_TRUE= 3816 am__fastdepCC_FALSE='#' 3817else 3818 am__fastdepCC_TRUE='#' 3819 am__fastdepCC_FALSE= 3820fi 3821 3822 3823# Make sure we can run config.sub. 3824$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3825 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3826 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3828$as_echo_n "checking build system type... " >&6; } 3829if ${ac_cv_build+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 ac_build_alias=$build_alias 3833test "x$ac_build_alias" = x && 3834 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3835test "x$ac_build_alias" = x && 3836 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3837ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3838 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3839 3840fi 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3842$as_echo "$ac_cv_build" >&6; } 3843case $ac_cv_build in 3844*-*-*) ;; 3845*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3846esac 3847build=$ac_cv_build 3848ac_save_IFS=$IFS; IFS='-' 3849set x $ac_cv_build 3850shift 3851build_cpu=$1 3852build_vendor=$2 3853shift; shift 3854# Remember, the first character of IFS is used to create $*, 3855# except with old shells: 3856build_os=$* 3857IFS=$ac_save_IFS 3858case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3859 3860 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3862$as_echo_n "checking host system type... " >&6; } 3863if ${ac_cv_host+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865else 3866 if test "x$host_alias" = x; then 3867 ac_cv_host=$ac_cv_build 3868else 3869 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3871fi 3872 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3875$as_echo "$ac_cv_host" >&6; } 3876case $ac_cv_host in 3877*-*-*) ;; 3878*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3879esac 3880host=$ac_cv_host 3881ac_save_IFS=$IFS; IFS='-' 3882set x $ac_cv_host 3883shift 3884host_cpu=$1 3885host_vendor=$2 3886shift; shift 3887# Remember, the first character of IFS is used to create $*, 3888# except with old shells: 3889host_os=$* 3890IFS=$ac_save_IFS 3891case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3892 3893 3894ac_ext=c 3895ac_cpp='$CPP $CPPFLAGS' 3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3898ac_compiler_gnu=$ac_cv_c_compiler_gnu 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3900$as_echo_n "checking how to run the C preprocessor... " >&6; } 3901# On Suns, sometimes $CPP names a directory. 3902if test -n "$CPP" && test -d "$CPP"; then 3903 CPP= 3904fi 3905if test -z "$CPP"; then 3906 if ${ac_cv_prog_CPP+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 # Double quotes because CPP needs to be expanded 3910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3911 do 3912 ac_preproc_ok=false 3913for ac_c_preproc_warn_flag in '' yes 3914do 3915 # Use a header file that comes with gcc, so configuring glibc 3916 # with a fresh cross-compiler works. 3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3918 # <limits.h> exists even on freestanding compilers. 3919 # On the NeXT, cc -E runs the code through the compiler's parser, 3920 # not just through cpp. "Syntax error" is here to catch this case. 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923#ifdef __STDC__ 3924# include <limits.h> 3925#else 3926# include <assert.h> 3927#endif 3928 Syntax error 3929_ACEOF 3930if ac_fn_c_try_cpp "$LINENO"; then : 3931 3932else 3933 # Broken: fails on valid input. 3934continue 3935fi 3936rm -f conftest.err conftest.i conftest.$ac_ext 3937 3938 # OK, works on sane cases. Now check whether nonexistent headers 3939 # can be detected and how. 3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3941/* end confdefs.h. */ 3942#include <ac_nonexistent.h> 3943_ACEOF 3944if ac_fn_c_try_cpp "$LINENO"; then : 3945 # Broken: success on invalid input. 3946continue 3947else 3948 # Passes both tests. 3949ac_preproc_ok=: 3950break 3951fi 3952rm -f conftest.err conftest.i conftest.$ac_ext 3953 3954done 3955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3956rm -f conftest.i conftest.err conftest.$ac_ext 3957if $ac_preproc_ok; then : 3958 break 3959fi 3960 3961 done 3962 ac_cv_prog_CPP=$CPP 3963 3964fi 3965 CPP=$ac_cv_prog_CPP 3966else 3967 ac_cv_prog_CPP=$CPP 3968fi 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3970$as_echo "$CPP" >&6; } 3971ac_preproc_ok=false 3972for ac_c_preproc_warn_flag in '' yes 3973do 3974 # Use a header file that comes with gcc, so configuring glibc 3975 # with a fresh cross-compiler works. 3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3977 # <limits.h> exists even on freestanding compilers. 3978 # On the NeXT, cc -E runs the code through the compiler's parser, 3979 # not just through cpp. "Syntax error" is here to catch this case. 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982#ifdef __STDC__ 3983# include <limits.h> 3984#else 3985# include <assert.h> 3986#endif 3987 Syntax error 3988_ACEOF 3989if ac_fn_c_try_cpp "$LINENO"; then : 3990 3991else 3992 # Broken: fails on valid input. 3993continue 3994fi 3995rm -f conftest.err conftest.i conftest.$ac_ext 3996 3997 # OK, works on sane cases. Now check whether nonexistent headers 3998 # can be detected and how. 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001#include <ac_nonexistent.h> 4002_ACEOF 4003if ac_fn_c_try_cpp "$LINENO"; then : 4004 # Broken: success on invalid input. 4005continue 4006else 4007 # Passes both tests. 4008ac_preproc_ok=: 4009break 4010fi 4011rm -f conftest.err conftest.i conftest.$ac_ext 4012 4013done 4014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4015rm -f conftest.i conftest.err conftest.$ac_ext 4016if $ac_preproc_ok; then : 4017 4018else 4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4021as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4022See \`config.log' for more details" "$LINENO" 5; } 4023fi 4024 4025ac_ext=c 4026ac_cpp='$CPP $CPPFLAGS' 4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4029ac_compiler_gnu=$ac_cv_c_compiler_gnu 4030 4031 4032 4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4034$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4035if ${ac_cv_path_GREP+:} false; then : 4036 $as_echo_n "(cached) " >&6 4037else 4038 if test -z "$GREP"; then 4039 ac_path_GREP_found=false 4040 # Loop through the user's path and test for each of PROGNAME-LIST 4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4042for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4043do 4044 IFS=$as_save_IFS 4045 test -z "$as_dir" && as_dir=. 4046 for ac_prog in grep ggrep; do 4047 for ac_exec_ext in '' $ac_executable_extensions; do 4048 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4049 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4050# Check for GNU ac_path_GREP and select it if it is found. 4051 # Check for GNU $ac_path_GREP 4052case `"$ac_path_GREP" --version 2>&1` in 4053*GNU*) 4054 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4055*) 4056 ac_count=0 4057 $as_echo_n 0123456789 >"conftest.in" 4058 while : 4059 do 4060 cat "conftest.in" "conftest.in" >"conftest.tmp" 4061 mv "conftest.tmp" "conftest.in" 4062 cp "conftest.in" "conftest.nl" 4063 $as_echo 'GREP' >> "conftest.nl" 4064 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4066 as_fn_arith $ac_count + 1 && ac_count=$as_val 4067 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4068 # Best one so far, save it but keep looking for a better one 4069 ac_cv_path_GREP="$ac_path_GREP" 4070 ac_path_GREP_max=$ac_count 4071 fi 4072 # 10*(2^10) chars as input seems more than enough 4073 test $ac_count -gt 10 && break 4074 done 4075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4076esac 4077 4078 $ac_path_GREP_found && break 3 4079 done 4080 done 4081 done 4082IFS=$as_save_IFS 4083 if test -z "$ac_cv_path_GREP"; then 4084 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4085 fi 4086else 4087 ac_cv_path_GREP=$GREP 4088fi 4089 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4092$as_echo "$ac_cv_path_GREP" >&6; } 4093 GREP="$ac_cv_path_GREP" 4094 4095 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4097$as_echo_n "checking for egrep... " >&6; } 4098if ${ac_cv_path_EGREP+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100else 4101 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4102 then ac_cv_path_EGREP="$GREP -E" 4103 else 4104 if test -z "$EGREP"; then 4105 ac_path_EGREP_found=false 4106 # Loop through the user's path and test for each of PROGNAME-LIST 4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_prog in egrep; do 4113 for ac_exec_ext in '' $ac_executable_extensions; do 4114 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4115 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4116# Check for GNU ac_path_EGREP and select it if it is found. 4117 # Check for GNU $ac_path_EGREP 4118case `"$ac_path_EGREP" --version 2>&1` in 4119*GNU*) 4120 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4121*) 4122 ac_count=0 4123 $as_echo_n 0123456789 >"conftest.in" 4124 while : 4125 do 4126 cat "conftest.in" "conftest.in" >"conftest.tmp" 4127 mv "conftest.tmp" "conftest.in" 4128 cp "conftest.in" "conftest.nl" 4129 $as_echo 'EGREP' >> "conftest.nl" 4130 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4132 as_fn_arith $ac_count + 1 && ac_count=$as_val 4133 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4134 # Best one so far, save it but keep looking for a better one 4135 ac_cv_path_EGREP="$ac_path_EGREP" 4136 ac_path_EGREP_max=$ac_count 4137 fi 4138 # 10*(2^10) chars as input seems more than enough 4139 test $ac_count -gt 10 && break 4140 done 4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4142esac 4143 4144 $ac_path_EGREP_found && break 3 4145 done 4146 done 4147 done 4148IFS=$as_save_IFS 4149 if test -z "$ac_cv_path_EGREP"; then 4150 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4151 fi 4152else 4153 ac_cv_path_EGREP=$EGREP 4154fi 4155 4156 fi 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4159$as_echo "$ac_cv_path_EGREP" >&6; } 4160 EGREP="$ac_cv_path_EGREP" 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4171$as_echo_n "checking for ANSI C header files... " >&6; } 4172if ${ac_cv_header_stdc+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174else 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4176/* end confdefs.h. */ 4177#include <stdlib.h> 4178#include <stdarg.h> 4179#include <string.h> 4180#include <float.h> 4181 4182int 4183main () 4184{ 4185 4186 ; 4187 return 0; 4188} 4189_ACEOF 4190if ac_fn_c_try_compile "$LINENO"; then : 4191 ac_cv_header_stdc=yes 4192else 4193 ac_cv_header_stdc=no 4194fi 4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4196 4197if test $ac_cv_header_stdc = yes; then 4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200/* end confdefs.h. */ 4201#include <string.h> 4202 4203_ACEOF 4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4205 $EGREP "memchr" >/dev/null 2>&1; then : 4206 4207else 4208 ac_cv_header_stdc=no 4209fi 4210rm -f conftest* 4211 4212fi 4213 4214if test $ac_cv_header_stdc = yes; then 4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218#include <stdlib.h> 4219 4220_ACEOF 4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4222 $EGREP "free" >/dev/null 2>&1; then : 4223 4224else 4225 ac_cv_header_stdc=no 4226fi 4227rm -f conftest* 4228 4229fi 4230 4231if test $ac_cv_header_stdc = yes; then 4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4233 if test "$cross_compiling" = yes; then : 4234 : 4235else 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#include <ctype.h> 4239#include <stdlib.h> 4240#if ((' ' & 0x0FF) == 0x020) 4241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4243#else 4244# define ISLOWER(c) \ 4245 (('a' <= (c) && (c) <= 'i') \ 4246 || ('j' <= (c) && (c) <= 'r') \ 4247 || ('s' <= (c) && (c) <= 'z')) 4248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4249#endif 4250 4251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4252int 4253main () 4254{ 4255 int i; 4256 for (i = 0; i < 256; i++) 4257 if (XOR (islower (i), ISLOWER (i)) 4258 || toupper (i) != TOUPPER (i)) 4259 return 2; 4260 return 0; 4261} 4262_ACEOF 4263if ac_fn_c_try_run "$LINENO"; then : 4264 4265else 4266 ac_cv_header_stdc=no 4267fi 4268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4269 conftest.$ac_objext conftest.beam conftest.$ac_ext 4270fi 4271 4272fi 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4275$as_echo "$ac_cv_header_stdc" >&6; } 4276if test $ac_cv_header_stdc = yes; then 4277 4278$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4279 4280fi 4281 4282 4283 case "${CC}" in *"-std="*) 4284 ## user specified a std value already 4285 ;; 4286 *) 4287 for i in gnu11 c11 gnu1x c1x gnu99 c99; do 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=\"${i}\"" >&5 4289$as_echo_n "checking whether C compiler accepts -std=\"${i}\"... " >&6; } 4290 4291 ## store werror status, then turn -Werror on 4292 save_ac_c_werror_flag="${ac_c_werror_flag}" 4293 4294ac_c_werror_flag=yes 4295 4296 if { as_var=`$as_echo "sxe_cv_c_flag_-std="${i}"" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 sxe_save_FLAGS="${CFLAGS}" 4300 CFLAGS="-std="${i}"" 4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4302/* end confdefs.h. */ 4303 4304int 4305main () 4306{ 4307 4308 ; 4309 return 0; 4310} 4311_ACEOF 4312if ac_fn_c_try_compile "$LINENO"; then : 4313 eval `$as_echo "sxe_cv_c_flag_-std="${i}"" | $as_tr_sh`="yes" 4314else 4315 eval `$as_echo "sxe_cv_c_flag_-std="${i}"" | $as_tr_sh`="no" 4316fi 4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4318 CFLAGS="${sxe_save_FLAGS}" 4319 4320fi 4321 4322 eval sxe_check_flag=$`$as_echo "sxe_cv_c_flag_-std="${i}"" | $as_tr_sh` 4323 ac_c_werror_flag="${save_ac_c_werror_flag}" 4324 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 4326$as_echo "${sxe_check_flag}" >&6; } 4327 if test "${sxe_check_flag}" = "yes"; then 4328 : 4329 4330 std="-std=${i}" 4331 save_CC="${CC}" 4332 CC="${CC} ${std}" 4333 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler can understand anonymous structs and unions" >&5 4335$as_echo_n "checking whether C compiler can understand anonymous structs and unions... " >&6; } 4336 ac_ext=c 4337ac_cpp='$CPP $CPPFLAGS' 4338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4340ac_compiler_gnu=$ac_cv_c_compiler_gnu 4341 4342 4343 ## backup our CFLAGS and unset it 4344 save_CFLAGS="${CFLAGS}" 4345 CFLAGS="" 4346 4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4348/* end confdefs.h. */ 4349 4350union __test_u { 4351 int i; 4352 struct { 4353 char c; 4354 char padc; 4355 short int pads; 4356 }; 4357}; 4358 4359int 4360main () 4361{ 4362 4363 /* nothing to do really*/ 4364 union __test_u foo; 4365 foo.c = 0; 4366 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371if ac_fn_c_try_compile "$LINENO"; then : 4372 4373 sxe_cv_have_anon_structs_decl="yes" 4374 4375else 4376 4377 sxe_cv_have_anon_structs_decl="no" 4378 4379fi 4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_have_anon_structs_decl}" >&5 4382$as_echo "${sxe_cv_have_anon_structs_decl}" >&6; } 4383 4384 ## restore CFLAGS 4385 CFLAGS="${save_CFLAGS}" 4386 4387 if test "${sxe_cv_have_anon_structs_decl}" = "yes"; then 4388 4389$as_echo "#define HAVE_ANON_STRUCTS_DECL 1" >>confdefs.h 4390 4391 4392 : 4393 else 4394 4395 : 4396 fi 4397 ac_ext=c 4398ac_cpp='$CPP $CPPFLAGS' 4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4401ac_compiler_gnu=$ac_cv_c_compiler_gnu 4402 4403 4404 CC="${save_CC}" 4405 if test "${sxe_cv_have_anon_structs_decl}" \ 4406 = "yes"; then 4407 break 4408 fi 4409 4410 else 4411 : 4412 4413 fi 4414 4415 done 4416 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred CC std" >&5 4418$as_echo_n "checking for preferred CC std... " >&6; } 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${std}" >&5 4420$as_echo "${std}" >&6; } 4421 CC="${CC} ${std}" 4422 4423 ## while we're at it, check for anon initialising too 4424 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler can initialise anonymous structs and unions" >&5 4426$as_echo_n "checking whether C compiler can initialise anonymous structs and unions... " >&6; } 4427 ac_ext=c 4428ac_cpp='$CPP $CPPFLAGS' 4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4431ac_compiler_gnu=$ac_cv_c_compiler_gnu 4432 4433 4434 ## backup our CFLAGS and unset it 4435 save_CFLAGS="${CFLAGS}" 4436 CFLAGS="" 4437 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440 4441union __test_u { 4442 int i; 4443 struct { 4444 char c; 4445 char padc; 4446 short int pads; 4447 }; 4448}; 4449 4450int 4451main () 4452{ 4453 4454 union __test_u tmp = {.c = '4'}; 4455 4456 ; 4457 return 0; 4458} 4459_ACEOF 4460if ac_fn_c_try_compile "$LINENO"; then : 4461 4462 sxe_cv_have_anon_structs_init="yes" 4463 4464else 4465 4466 sxe_cv_have_anon_structs_init="no" 4467 4468fi 4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_have_anon_structs_init}" >&5 4471$as_echo "${sxe_cv_have_anon_structs_init}" >&6; } 4472 4473 ## restore CFLAGS 4474 CFLAGS="${save_CFLAGS}" 4475 4476 if test "${sxe_cv_have_anon_structs_init}" = "yes"; then 4477 4478$as_echo "#define HAVE_ANON_STRUCTS_INIT 1" >>confdefs.h 4479 4480 4481 : 4482 else 4483 4484 : 4485 fi 4486 ac_ext=c 4487ac_cpp='$CPP $CPPFLAGS' 4488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4490ac_compiler_gnu=$ac_cv_c_compiler_gnu 4491 4492 4493 ## oh and sloppy sloppy init 4494 4495 ac_ext=c 4496ac_cpp='$CPP $CPPFLAGS' 4497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4499ac_compiler_gnu=$ac_cv_c_compiler_gnu 4500 4501 4502 ## backup our CFLAGS and unset it 4503 save_CFLAGS="${CFLAGS}" 4504 CFLAGS="-Werror" 4505 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5 4507$as_echo_n "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; } 4508 4509 ## store werror status, then turn -Werror on 4510 save_ac_c_werror_flag="${ac_c_werror_flag}" 4511 4512ac_c_werror_flag=yes 4513 4514 if ${sxe_cv_c_flag__Wmissing_field_initializers+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 sxe_save_FLAGS="${CFLAGS}" 4518 CFLAGS="-Wmissing-field-initializers" 4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520/* end confdefs.h. */ 4521 4522int 4523main () 4524{ 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530if ac_fn_c_try_compile "$LINENO"; then : 4531 eval sxe_cv_c_flag__Wmissing_field_initializers="yes" 4532else 4533 eval sxe_cv_c_flag__Wmissing_field_initializers="no" 4534fi 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4536 CFLAGS="${sxe_save_FLAGS}" 4537 4538fi 4539 4540 eval sxe_check_flag=$sxe_cv_c_flag__Wmissing_field_initializers 4541 ac_c_werror_flag="${save_ac_c_werror_flag}" 4542 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 4544$as_echo "${sxe_check_flag}" >&6; } 4545 if test "${sxe_check_flag}" = "yes"; then 4546 : 4547 4548 CFLAGS="${CFLAGS} -Wmissing-field-initializers" 4549 else 4550 : 4551 4552 fi 4553 4554 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler can initialise structs and unions in a sloppy way" >&5 4556$as_echo_n "checking whether C compiler can initialise structs and unions in a sloppy way... " >&6; } 4557 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560 4561struct __test_s { 4562 int i; 4563 int j; 4564}; 4565 4566int 4567main () 4568{ 4569 4570 struct __test_s tmp = {}; 4571 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576if ac_fn_c_try_compile "$LINENO"; then : 4577 4578 sxe_cv_have_sloppy_structs_init="yes" 4579 4580else 4581 4582 sxe_cv_have_sloppy_structs_init="no" 4583 4584fi 4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_have_sloppy_structs_init}" >&5 4587$as_echo "${sxe_cv_have_sloppy_structs_init}" >&6; } 4588 4589 ## restore CFLAGS 4590 CFLAGS="${save_CFLAGS}" 4591 4592 if test "${sxe_cv_have_sloppy_structs_init}" = "yes"; then 4593 4594$as_echo "#define HAVE_SLOPPY_STRUCTS_INIT 1" >>confdefs.h 4595 4596 4597 : 4598 else 4599 4600 : 4601 fi 4602 ac_ext=c 4603ac_cpp='$CPP $CPPFLAGS' 4604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4606ac_compiler_gnu=$ac_cv_c_compiler_gnu 4607 4608 4609 ;; 4610 esac 4611 4612 4613 4614# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4616 inttypes.h stdint.h unistd.h 4617do : 4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4620" 4621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4622 cat >>confdefs.h <<_ACEOF 4623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4624_ACEOF 4625 4626fi 4627 4628done 4629 4630 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4632$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4633if ${ac_cv_c_bigendian+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 ac_cv_c_bigendian=unknown 4637 # See if we're dealing with a universal compiler. 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640#ifndef __APPLE_CC__ 4641 not a universal capable compiler 4642 #endif 4643 typedef int dummy; 4644 4645_ACEOF 4646if ac_fn_c_try_compile "$LINENO"; then : 4647 4648 # Check for potential -arch flags. It is not universal unless 4649 # there are at least two -arch flags with different values. 4650 ac_arch= 4651 ac_prev= 4652 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4653 if test -n "$ac_prev"; then 4654 case $ac_word in 4655 i?86 | x86_64 | ppc | ppc64) 4656 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4657 ac_arch=$ac_word 4658 else 4659 ac_cv_c_bigendian=universal 4660 break 4661 fi 4662 ;; 4663 esac 4664 ac_prev= 4665 elif test "x$ac_word" = "x-arch"; then 4666 ac_prev=arch 4667 fi 4668 done 4669fi 4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4671 if test $ac_cv_c_bigendian = unknown; then 4672 # See if sys/param.h defines the BYTE_ORDER macro. 4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4674/* end confdefs.h. */ 4675#include <sys/types.h> 4676 #include <sys/param.h> 4677 4678int 4679main () 4680{ 4681#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4682 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4683 && LITTLE_ENDIAN) 4684 bogus endian macros 4685 #endif 4686 4687 ; 4688 return 0; 4689} 4690_ACEOF 4691if ac_fn_c_try_compile "$LINENO"; then : 4692 # It does; now see whether it defined to BIG_ENDIAN or not. 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4694/* end confdefs.h. */ 4695#include <sys/types.h> 4696 #include <sys/param.h> 4697 4698int 4699main () 4700{ 4701#if BYTE_ORDER != BIG_ENDIAN 4702 not big endian 4703 #endif 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709if ac_fn_c_try_compile "$LINENO"; then : 4710 ac_cv_c_bigendian=yes 4711else 4712 ac_cv_c_bigendian=no 4713fi 4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4715fi 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717 fi 4718 if test $ac_cv_c_bigendian = unknown; then 4719 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4721/* end confdefs.h. */ 4722#include <limits.h> 4723 4724int 4725main () 4726{ 4727#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4728 bogus endian macros 4729 #endif 4730 4731 ; 4732 return 0; 4733} 4734_ACEOF 4735if ac_fn_c_try_compile "$LINENO"; then : 4736 # It does; now see whether it defined to _BIG_ENDIAN or not. 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739#include <limits.h> 4740 4741int 4742main () 4743{ 4744#ifndef _BIG_ENDIAN 4745 not big endian 4746 #endif 4747 4748 ; 4749 return 0; 4750} 4751_ACEOF 4752if ac_fn_c_try_compile "$LINENO"; then : 4753 ac_cv_c_bigendian=yes 4754else 4755 ac_cv_c_bigendian=no 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760 fi 4761 if test $ac_cv_c_bigendian = unknown; then 4762 # Compile a test program. 4763 if test "$cross_compiling" = yes; then : 4764 # Try to guess by grepping values from an object file. 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767short int ascii_mm[] = 4768 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4769 short int ascii_ii[] = 4770 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4771 int use_ascii (int i) { 4772 return ascii_mm[i] + ascii_ii[i]; 4773 } 4774 short int ebcdic_ii[] = 4775 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4776 short int ebcdic_mm[] = 4777 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4778 int use_ebcdic (int i) { 4779 return ebcdic_mm[i] + ebcdic_ii[i]; 4780 } 4781 extern int foo; 4782 4783int 4784main () 4785{ 4786return use_ascii (foo) == use_ebcdic (foo); 4787 ; 4788 return 0; 4789} 4790_ACEOF 4791if ac_fn_c_try_compile "$LINENO"; then : 4792 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4793 ac_cv_c_bigendian=yes 4794 fi 4795 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4796 if test "$ac_cv_c_bigendian" = unknown; then 4797 ac_cv_c_bigendian=no 4798 else 4799 # finding both strings is unlikely to happen, but who knows? 4800 ac_cv_c_bigendian=unknown 4801 fi 4802 fi 4803fi 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4805else 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808$ac_includes_default 4809int 4810main () 4811{ 4812 4813 /* Are we little or big endian? From Harbison&Steele. */ 4814 union 4815 { 4816 long int l; 4817 char c[sizeof (long int)]; 4818 } u; 4819 u.l = 1; 4820 return u.c[sizeof (long int) - 1] == 1; 4821 4822 ; 4823 return 0; 4824} 4825_ACEOF 4826if ac_fn_c_try_run "$LINENO"; then : 4827 ac_cv_c_bigendian=no 4828else 4829 ac_cv_c_bigendian=yes 4830fi 4831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4832 conftest.$ac_objext conftest.beam conftest.$ac_ext 4833fi 4834 4835 fi 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4838$as_echo "$ac_cv_c_bigendian" >&6; } 4839 case $ac_cv_c_bigendian in #( 4840 yes) 4841 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4842;; #( 4843 no) 4844 ;; #( 4845 universal) 4846 4847$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4848 4849 ;; #( 4850 *) 4851 as_fn_error $? "unknown endianness 4852 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4853 esac 4854 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user provided CFLAGS/EXTRA_CFLAGS" >&5 4856$as_echo_n "checking for user provided CFLAGS/EXTRA_CFLAGS... " >&6; } 4857 4858 CFLAGS="${ac_cv_env_CFLAGS_value}" 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS} ${EXTRA_CFLAGS}" >&5 4860$as_echo "${CFLAGS} ${EXTRA_CFLAGS}" >&6; } 4861 4862 if test "${XFLAG}" = ""; then 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C linker accepts -XCClinker -foo" >&5 4864$as_echo_n "checking whether C linker accepts -XCClinker -foo... " >&6; } 4865 4866 ## store werror status, then turn -Werror on 4867 save_ac_c_werror_flag="${ac_c_werror_flag}" 4868 4869ac_c_werror_flag=yes 4870 4871 if ${sxe_cv_c_flag__XCClinker__foo+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 sxe_save_FLAGS="${CFLAGS}" 4875 CFLAGS="-XCClinker -foo" 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877/* end confdefs.h. */ 4878 4879int 4880main () 4881{ 4882 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887if ac_fn_c_try_link "$LINENO"; then : 4888 eval sxe_cv_c_flag__XCClinker__foo="yes" 4889else 4890 eval sxe_cv_c_flag__XCClinker__foo="no" 4891fi 4892rm -f core conftest.err conftest.$ac_objext \ 4893 conftest$ac_exeext conftest.$ac_ext 4894 CFLAGS="${sxe_save_FLAGS}" 4895 4896fi 4897 4898 eval sxe_check_flag=$sxe_cv_c_flag__XCClinker__foo 4899 ac_c_werror_flag="${save_ac_c_werror_flag}" 4900 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 4902$as_echo "${sxe_check_flag}" >&6; } 4903 if test "${sxe_check_flag}" = "yes"; then 4904 : 4905 XFLAG="-XCClinker" 4906 else 4907 : 4908 4909 fi 4910 4911 fi 4912 if test "${XFLAG}" = ""; then 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C linker accepts -Xlinker -foo" >&5 4914$as_echo_n "checking whether C linker accepts -Xlinker -foo... " >&6; } 4915 4916 ## store werror status, then turn -Werror on 4917 save_ac_c_werror_flag="${ac_c_werror_flag}" 4918 4919ac_c_werror_flag=yes 4920 4921 if ${sxe_cv_c_flag__Xlinker__foo+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 sxe_save_FLAGS="${CFLAGS}" 4925 CFLAGS="-Xlinker -foo" 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928 4929int 4930main () 4931{ 4932 4933 ; 4934 return 0; 4935} 4936_ACEOF 4937if ac_fn_c_try_link "$LINENO"; then : 4938 eval sxe_cv_c_flag__Xlinker__foo="yes" 4939else 4940 eval sxe_cv_c_flag__Xlinker__foo="no" 4941fi 4942rm -f core conftest.err conftest.$ac_objext \ 4943 conftest$ac_exeext conftest.$ac_ext 4944 CFLAGS="${sxe_save_FLAGS}" 4945 4946fi 4947 4948 eval sxe_check_flag=$sxe_cv_c_flag__Xlinker__foo 4949 ac_c_werror_flag="${save_ac_c_werror_flag}" 4950 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 4952$as_echo "${sxe_check_flag}" >&6; } 4953 if test "${sxe_check_flag}" = "yes"; then 4954 : 4955 XFLAG="-Xlinker" 4956 else 4957 : 4958 4959 fi 4960 4961 fi 4962 4963 4964 4965 4966 ## those are passed on to our determined CFLAGS 4967 4968 4969 ## check for user provided flags 4970 4971 ## Use either command line flag, environment var, or autodetection 4972 ## distinguish between different compilers, no? 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -g" >&5 4974$as_echo_n "checking whether C compiler accepts -g... " >&6; } 4975 4976 ## store werror status, then turn -Werror on 4977 save_ac_c_werror_flag="${ac_c_werror_flag}" 4978 4979ac_c_werror_flag=yes 4980 4981 if ${sxe_cv_c_flag__g+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 sxe_save_FLAGS="${CFLAGS}" 4985 CFLAGS="-g" 4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4987/* end confdefs.h. */ 4988 4989int 4990main () 4991{ 4992 4993 ; 4994 return 0; 4995} 4996_ACEOF 4997if ac_fn_c_try_compile "$LINENO"; then : 4998 eval sxe_cv_c_flag__g="yes" 4999else 5000 eval sxe_cv_c_flag__g="no" 5001fi 5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003 CFLAGS="${sxe_save_FLAGS}" 5004 5005fi 5006 5007 eval sxe_check_flag=$sxe_cv_c_flag__g 5008 ac_c_werror_flag="${save_ac_c_werror_flag}" 5009 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5011$as_echo "${sxe_check_flag}" >&6; } 5012 if test "${sxe_check_flag}" = "yes"; then 5013 : 5014 5015 else 5016 : 5017 5018 fi 5019 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -g3" >&5 5021$as_echo_n "checking whether C compiler accepts -g3... " >&6; } 5022 5023 ## store werror status, then turn -Werror on 5024 save_ac_c_werror_flag="${ac_c_werror_flag}" 5025 5026ac_c_werror_flag=yes 5027 5028 if ${sxe_cv_c_flag__g3+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 sxe_save_FLAGS="${CFLAGS}" 5032 CFLAGS="-g3" 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035 5036int 5037main () 5038{ 5039 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044if ac_fn_c_try_compile "$LINENO"; then : 5045 eval sxe_cv_c_flag__g3="yes" 5046else 5047 eval sxe_cv_c_flag__g3="no" 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050 CFLAGS="${sxe_save_FLAGS}" 5051 5052fi 5053 5054 eval sxe_check_flag=$sxe_cv_c_flag__g3 5055 ac_c_werror_flag="${save_ac_c_werror_flag}" 5056 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5058$as_echo "${sxe_check_flag}" >&6; } 5059 if test "${sxe_check_flag}" = "yes"; then 5060 : 5061 5062 else 5063 : 5064 5065 fi 5066 5067 5068 # Extract the first word of "dbx", so it can be a program name with args. 5069set dummy dbx; ac_word=$2 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5071$as_echo_n "checking for $ac_word... " >&6; } 5072if ${ac_cv_path_DBX+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 case $DBX in 5076 [\\/]* | ?:[\\/]*) 5077 ac_cv_path_DBX="$DBX" # Let the user override the test with a path. 5078 ;; 5079 *) 5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5081for as_dir in $PATH 5082do 5083 IFS=$as_save_IFS 5084 test -z "$as_dir" && as_dir=. 5085 for ac_exec_ext in '' $ac_executable_extensions; do 5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5087 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext" 5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091done 5092 done 5093IFS=$as_save_IFS 5094 5095 ;; 5096esac 5097fi 5098DBX=$ac_cv_path_DBX 5099if test -n "$DBX"; then 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBX" >&5 5101$as_echo "$DBX" >&6; } 5102else 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104$as_echo "no" >&6; } 5105fi 5106 5107 5108 if test -n "$ac_cv_path_DBX"; then 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -gstabs" >&5 5110$as_echo_n "checking whether C compiler accepts -gstabs... " >&6; } 5111 5112 ## store werror status, then turn -Werror on 5113 save_ac_c_werror_flag="${ac_c_werror_flag}" 5114 5115ac_c_werror_flag=yes 5116 5117 if ${sxe_cv_c_flag__gstabs+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 sxe_save_FLAGS="${CFLAGS}" 5121 CFLAGS="-gstabs" 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124 5125int 5126main () 5127{ 5128 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133if ac_fn_c_try_compile "$LINENO"; then : 5134 eval sxe_cv_c_flag__gstabs="yes" 5135else 5136 eval sxe_cv_c_flag__gstabs="no" 5137fi 5138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5139 CFLAGS="${sxe_save_FLAGS}" 5140 5141fi 5142 5143 eval sxe_check_flag=$sxe_cv_c_flag__gstabs 5144 ac_c_werror_flag="${save_ac_c_werror_flag}" 5145 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5147$as_echo "${sxe_check_flag}" >&6; } 5148 if test "${sxe_check_flag}" = "yes"; then 5149 : 5150 5151 else 5152 : 5153 5154 fi 5155 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -gstabs3" >&5 5157$as_echo_n "checking whether C compiler accepts -gstabs3... " >&6; } 5158 5159 ## store werror status, then turn -Werror on 5160 save_ac_c_werror_flag="${ac_c_werror_flag}" 5161 5162ac_c_werror_flag=yes 5163 5164 if ${sxe_cv_c_flag__gstabs3+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 sxe_save_FLAGS="${CFLAGS}" 5168 CFLAGS="-gstabs3" 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171 5172int 5173main () 5174{ 5175 5176 ; 5177 return 0; 5178} 5179_ACEOF 5180if ac_fn_c_try_compile "$LINENO"; then : 5181 eval sxe_cv_c_flag__gstabs3="yes" 5182else 5183 eval sxe_cv_c_flag__gstabs3="no" 5184fi 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186 CFLAGS="${sxe_save_FLAGS}" 5187 5188fi 5189 5190 eval sxe_check_flag=$sxe_cv_c_flag__gstabs3 5191 ac_c_werror_flag="${save_ac_c_werror_flag}" 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5194$as_echo "${sxe_check_flag}" >&6; } 5195 if test "${sxe_check_flag}" = "yes"; then 5196 : 5197 5198 else 5199 : 5200 5201 fi 5202 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -gxcoff" >&5 5204$as_echo_n "checking whether C compiler accepts -gxcoff... " >&6; } 5205 5206 ## store werror status, then turn -Werror on 5207 save_ac_c_werror_flag="${ac_c_werror_flag}" 5208 5209ac_c_werror_flag=yes 5210 5211 if ${sxe_cv_c_flag__gxcoff+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 sxe_save_FLAGS="${CFLAGS}" 5215 CFLAGS="-gxcoff" 5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218 5219int 5220main () 5221{ 5222 5223 ; 5224 return 0; 5225} 5226_ACEOF 5227if ac_fn_c_try_compile "$LINENO"; then : 5228 eval sxe_cv_c_flag__gxcoff="yes" 5229else 5230 eval sxe_cv_c_flag__gxcoff="no" 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5233 CFLAGS="${sxe_save_FLAGS}" 5234 5235fi 5236 5237 eval sxe_check_flag=$sxe_cv_c_flag__gxcoff 5238 ac_c_werror_flag="${save_ac_c_werror_flag}" 5239 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5241$as_echo "${sxe_check_flag}" >&6; } 5242 if test "${sxe_check_flag}" = "yes"; then 5243 : 5244 5245 else 5246 : 5247 5248 fi 5249 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -gxcoff3" >&5 5251$as_echo_n "checking whether C compiler accepts -gxcoff3... " >&6; } 5252 5253 ## store werror status, then turn -Werror on 5254 save_ac_c_werror_flag="${ac_c_werror_flag}" 5255 5256ac_c_werror_flag=yes 5257 5258 if ${sxe_cv_c_flag__gxcoff3+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 sxe_save_FLAGS="${CFLAGS}" 5262 CFLAGS="-gxcoff3" 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265 5266int 5267main () 5268{ 5269 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274if ac_fn_c_try_compile "$LINENO"; then : 5275 eval sxe_cv_c_flag__gxcoff3="yes" 5276else 5277 eval sxe_cv_c_flag__gxcoff3="no" 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5280 CFLAGS="${sxe_save_FLAGS}" 5281 5282fi 5283 5284 eval sxe_check_flag=$sxe_cv_c_flag__gxcoff3 5285 ac_c_werror_flag="${save_ac_c_werror_flag}" 5286 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5288$as_echo "${sxe_check_flag}" >&6; } 5289 if test "${sxe_check_flag}" = "yes"; then 5290 : 5291 5292 else 5293 : 5294 5295 fi 5296 5297 fi 5298 5299 # Extract the first word of "gdb", so it can be a program name with args. 5300set dummy gdb; ac_word=$2 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5302$as_echo_n "checking for $ac_word... " >&6; } 5303if ${ac_cv_path_GDB+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 case $GDB in 5307 [\\/]* | ?:[\\/]*) 5308 ac_cv_path_GDB="$GDB" # Let the user override the test with a path. 5309 ;; 5310 *) 5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312for as_dir in $PATH 5313do 5314 IFS=$as_save_IFS 5315 test -z "$as_dir" && as_dir=. 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5318 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext" 5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322done 5323 done 5324IFS=$as_save_IFS 5325 5326 ;; 5327esac 5328fi 5329GDB=$ac_cv_path_GDB 5330if test -n "$GDB"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5 5332$as_echo "$GDB" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339 if test -n "$ac_cv_path_GDB"; then 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ggdb" >&5 5341$as_echo_n "checking whether C compiler accepts -ggdb... " >&6; } 5342 5343 ## store werror status, then turn -Werror on 5344 save_ac_c_werror_flag="${ac_c_werror_flag}" 5345 5346ac_c_werror_flag=yes 5347 5348 if ${sxe_cv_c_flag__ggdb+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 sxe_save_FLAGS="${CFLAGS}" 5352 CFLAGS="-ggdb" 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5354/* end confdefs.h. */ 5355 5356int 5357main () 5358{ 5359 5360 ; 5361 return 0; 5362} 5363_ACEOF 5364if ac_fn_c_try_compile "$LINENO"; then : 5365 eval sxe_cv_c_flag__ggdb="yes" 5366else 5367 eval sxe_cv_c_flag__ggdb="no" 5368fi 5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5370 CFLAGS="${sxe_save_FLAGS}" 5371 5372fi 5373 5374 eval sxe_check_flag=$sxe_cv_c_flag__ggdb 5375 ac_c_werror_flag="${save_ac_c_werror_flag}" 5376 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5378$as_echo "${sxe_check_flag}" >&6; } 5379 if test "${sxe_check_flag}" = "yes"; then 5380 : 5381 5382 else 5383 : 5384 5385 fi 5386 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ggdb3" >&5 5388$as_echo_n "checking whether C compiler accepts -ggdb3... " >&6; } 5389 5390 ## store werror status, then turn -Werror on 5391 save_ac_c_werror_flag="${ac_c_werror_flag}" 5392 5393ac_c_werror_flag=yes 5394 5395 if ${sxe_cv_c_flag__ggdb3+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 sxe_save_FLAGS="${CFLAGS}" 5399 CFLAGS="-ggdb3" 5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5401/* end confdefs.h. */ 5402 5403int 5404main () 5405{ 5406 5407 ; 5408 return 0; 5409} 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO"; then : 5412 eval sxe_cv_c_flag__ggdb3="yes" 5413else 5414 eval sxe_cv_c_flag__ggdb3="no" 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417 CFLAGS="${sxe_save_FLAGS}" 5418 5419fi 5420 5421 eval sxe_check_flag=$sxe_cv_c_flag__ggdb3 5422 ac_c_werror_flag="${save_ac_c_werror_flag}" 5423 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5425$as_echo "${sxe_check_flag}" >&6; } 5426 if test "${sxe_check_flag}" = "yes"; then 5427 : 5428 5429 else 5430 : 5431 5432 fi 5433 5434 fi 5435 5436 # Extract the first word of "sdb", so it can be a program name with args. 5437set dummy sdb; ac_word=$2 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5439$as_echo_n "checking for $ac_word... " >&6; } 5440if ${ac_cv_path_SDB+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442else 5443 case $SDB in 5444 [\\/]* | ?:[\\/]*) 5445 ac_cv_path_SDB="$SDB" # Let the user override the test with a path. 5446 ;; 5447 *) 5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5449for as_dir in $PATH 5450do 5451 IFS=$as_save_IFS 5452 test -z "$as_dir" && as_dir=. 5453 for ac_exec_ext in '' $ac_executable_extensions; do 5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5455 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext" 5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5457 break 2 5458 fi 5459done 5460 done 5461IFS=$as_save_IFS 5462 5463 ;; 5464esac 5465fi 5466SDB=$ac_cv_path_SDB 5467if test -n "$SDB"; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDB" >&5 5469$as_echo "$SDB" >&6; } 5470else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472$as_echo "no" >&6; } 5473fi 5474 5475 5476 if test -n "$ac_cv_path_SDB"; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -gcoff" >&5 5478$as_echo_n "checking whether C compiler accepts -gcoff... " >&6; } 5479 5480 ## store werror status, then turn -Werror on 5481 save_ac_c_werror_flag="${ac_c_werror_flag}" 5482 5483ac_c_werror_flag=yes 5484 5485 if ${sxe_cv_c_flag__gcoff+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 sxe_save_FLAGS="${CFLAGS}" 5489 CFLAGS="-gcoff" 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492 5493int 5494main () 5495{ 5496 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501if ac_fn_c_try_compile "$LINENO"; then : 5502 eval sxe_cv_c_flag__gcoff="yes" 5503else 5504 eval sxe_cv_c_flag__gcoff="no" 5505fi 5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5507 CFLAGS="${sxe_save_FLAGS}" 5508 5509fi 5510 5511 eval sxe_check_flag=$sxe_cv_c_flag__gcoff 5512 ac_c_werror_flag="${save_ac_c_werror_flag}" 5513 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5515$as_echo "${sxe_check_flag}" >&6; } 5516 if test "${sxe_check_flag}" = "yes"; then 5517 : 5518 5519 else 5520 : 5521 5522 fi 5523 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -gcoff3" >&5 5525$as_echo_n "checking whether C compiler accepts -gcoff3... " >&6; } 5526 5527 ## store werror status, then turn -Werror on 5528 save_ac_c_werror_flag="${ac_c_werror_flag}" 5529 5530ac_c_werror_flag=yes 5531 5532 if ${sxe_cv_c_flag__gcoff3+:} false; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 sxe_save_FLAGS="${CFLAGS}" 5536 CFLAGS="-gcoff3" 5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538/* end confdefs.h. */ 5539 5540int 5541main () 5542{ 5543 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548if ac_fn_c_try_compile "$LINENO"; then : 5549 eval sxe_cv_c_flag__gcoff3="yes" 5550else 5551 eval sxe_cv_c_flag__gcoff3="no" 5552fi 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5554 CFLAGS="${sxe_save_FLAGS}" 5555 5556fi 5557 5558 eval sxe_check_flag=$sxe_cv_c_flag__gcoff3 5559 ac_c_werror_flag="${save_ac_c_werror_flag}" 5560 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5562$as_echo "${sxe_check_flag}" >&6; } 5563 if test "${sxe_check_flag}" = "yes"; then 5564 : 5565 5566 else 5567 : 5568 5569 fi 5570 5571 fi 5572 5573 ## final evaluation 5574 debugflags="" 5575 ## gdb 5576 if test "$sxe_cv_c_flag__ggdb3" = "yes"; then 5577 debugflags="$debugflags -ggdb3" 5578 elif test "$sxe_cv_c_flag__ggdb" = "yes"; then 5579 debugflags="$debugflags -ggdb" 5580 fi 5581 ## stabs 5582 if test "$sxe_cv_c_flag__gstabs3" = "yes"; then 5583 debugflags="$debugflags -gstabs3" 5584 elif test "$sxe_cv_c_flag__gstabs" = "yes"; then 5585 debugflags="$debugflags -gstabs" 5586 fi 5587 ## coff 5588 if test "$sxe_cv_c_flag__gcoff3" = "yes"; then 5589 debugflags="$debugflags -gcoff3" 5590 elif test "$sxe_cv_c_flag__gcoff" = "yes"; then 5591 debugflags="$debugflags -gcoff" 5592 fi 5593 ## xcoff 5594 if test "$sxe_cv_c_flag__gxcoff3" = "yes"; then 5595 debugflags="$debugflags -gxcoff3" 5596 elif test "$sxe_cv_c_flag__gxcoff" = "yes"; then 5597 debugflags="$debugflags -gxcoff" 5598 fi 5599 5600 if test -z "debugflags" -a \ 5601 "$sxe_cv_c_flag__g" = "yes"; then 5602 debugflags="$debugflags -g" 5603 fi 5604 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftime-report" >&5 5606$as_echo_n "checking whether C compiler accepts -ftime-report... " >&6; } 5607 5608 ## store werror status, then turn -Werror on 5609 save_ac_c_werror_flag="${ac_c_werror_flag}" 5610 5611ac_c_werror_flag=yes 5612 5613 if ${sxe_cv_c_flag__ftime_report+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 sxe_save_FLAGS="${CFLAGS}" 5617 CFLAGS="-ftime-report" 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620 5621int 5622main () 5623{ 5624 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629if ac_fn_c_try_compile "$LINENO"; then : 5630 eval sxe_cv_c_flag__ftime_report="yes" 5631else 5632 eval sxe_cv_c_flag__ftime_report="no" 5633fi 5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5635 CFLAGS="${sxe_save_FLAGS}" 5636 5637fi 5638 5639 eval sxe_check_flag=$sxe_cv_c_flag__ftime_report 5640 ac_c_werror_flag="${save_ac_c_werror_flag}" 5641 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5643$as_echo "${sxe_check_flag}" >&6; } 5644 if test "${sxe_check_flag}" = "yes"; then 5645 : 5646 5647 else 5648 : 5649 5650 fi 5651 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fmem-report" >&5 5653$as_echo_n "checking whether C compiler accepts -fmem-report... " >&6; } 5654 5655 ## store werror status, then turn -Werror on 5656 save_ac_c_werror_flag="${ac_c_werror_flag}" 5657 5658ac_c_werror_flag=yes 5659 5660 if ${sxe_cv_c_flag__fmem_report+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 sxe_save_FLAGS="${CFLAGS}" 5664 CFLAGS="-fmem-report" 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667 5668int 5669main () 5670{ 5671 5672 ; 5673 return 0; 5674} 5675_ACEOF 5676if ac_fn_c_try_compile "$LINENO"; then : 5677 eval sxe_cv_c_flag__fmem_report="yes" 5678else 5679 eval sxe_cv_c_flag__fmem_report="no" 5680fi 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682 CFLAGS="${sxe_save_FLAGS}" 5683 5684fi 5685 5686 eval sxe_check_flag=$sxe_cv_c_flag__fmem_report 5687 ac_c_werror_flag="${save_ac_c_werror_flag}" 5688 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5690$as_echo "${sxe_check_flag}" >&6; } 5691 if test "${sxe_check_flag}" = "yes"; then 5692 : 5693 5694 else 5695 : 5696 5697 fi 5698 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvar-tracking" >&5 5700$as_echo_n "checking whether C compiler accepts -fvar-tracking... " >&6; } 5701 5702 ## store werror status, then turn -Werror on 5703 save_ac_c_werror_flag="${ac_c_werror_flag}" 5704 5705ac_c_werror_flag=yes 5706 5707 if ${sxe_cv_c_flag__fvar_tracking+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 sxe_save_FLAGS="${CFLAGS}" 5711 CFLAGS="-fvar-tracking" 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713/* end confdefs.h. */ 5714 5715int 5716main () 5717{ 5718 5719 ; 5720 return 0; 5721} 5722_ACEOF 5723if ac_fn_c_try_compile "$LINENO"; then : 5724 eval sxe_cv_c_flag__fvar_tracking="yes" 5725else 5726 eval sxe_cv_c_flag__fvar_tracking="no" 5727fi 5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5729 CFLAGS="${sxe_save_FLAGS}" 5730 5731fi 5732 5733 eval sxe_check_flag=$sxe_cv_c_flag__fvar_tracking 5734 ac_c_werror_flag="${save_ac_c_werror_flag}" 5735 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5737$as_echo "${sxe_check_flag}" >&6; } 5738 if test "${sxe_check_flag}" = "yes"; then 5739 : 5740 5741 else 5742 : 5743 5744 fi 5745 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -save-temps" >&5 5747$as_echo_n "checking whether C compiler accepts -save-temps... " >&6; } 5748 5749 ## store werror status, then turn -Werror on 5750 save_ac_c_werror_flag="${ac_c_werror_flag}" 5751 5752ac_c_werror_flag=yes 5753 5754 if ${sxe_cv_c_flag__save_temps+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 sxe_save_FLAGS="${CFLAGS}" 5758 CFLAGS="-save-temps" 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761 5762int 5763main () 5764{ 5765 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770if ac_fn_c_try_compile "$LINENO"; then : 5771 eval sxe_cv_c_flag__save_temps="yes" 5772else 5773 eval sxe_cv_c_flag__save_temps="no" 5774fi 5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5776 CFLAGS="${sxe_save_FLAGS}" 5777 5778fi 5779 5780 eval sxe_check_flag=$sxe_cv_c_flag__save_temps 5781 ac_c_werror_flag="${save_ac_c_werror_flag}" 5782 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5784$as_echo "${sxe_check_flag}" >&6; } 5785 if test "${sxe_check_flag}" = "yes"; then 5786 : 5787 5788 else 5789 : 5790 5791 fi 5792 5793 5794 #if test "$sxe_cv_c_flag__ggdb3" = "yes" -a \ 5795 # "$sxe_cv_c_flag__fvar_tracking" = "yes"; then 5796 # debugflags="$debugflags -fvar-tracking" 5797 #fi 5798 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred debugging flags" >&5 5800$as_echo_n "checking for preferred debugging flags... " >&6; } 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${debugflags}" >&5 5802$as_echo "${debugflags}" >&6; } 5803 5804 ## Calculate warning flags. We separate the flags for warnings from 5805 ## the other flags because we want to force the warnings to be seen 5806 ## by everyone who doesn't specifically override them. 5807 5808 ## by default we want the -Wall level 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5 5810$as_echo_n "checking whether C compiler accepts -Wall... " >&6; } 5811 5812 ## store werror status, then turn -Werror on 5813 save_ac_c_werror_flag="${ac_c_werror_flag}" 5814 5815ac_c_werror_flag=yes 5816 5817 if ${sxe_cv_c_flag__Wall+:} false; then : 5818 $as_echo_n "(cached) " >&6 5819else 5820 sxe_save_FLAGS="${CFLAGS}" 5821 CFLAGS="-Wall" 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823/* end confdefs.h. */ 5824 5825int 5826main () 5827{ 5828 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833if ac_fn_c_try_compile "$LINENO"; then : 5834 eval sxe_cv_c_flag__Wall="yes" 5835else 5836 eval sxe_cv_c_flag__Wall="no" 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5839 CFLAGS="${sxe_save_FLAGS}" 5840 5841fi 5842 5843 eval sxe_check_flag=$sxe_cv_c_flag__Wall 5844 ac_c_werror_flag="${save_ac_c_werror_flag}" 5845 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5847$as_echo "${sxe_check_flag}" >&6; } 5848 if test "${sxe_check_flag}" = "yes"; then 5849 : 5850 warnflags="-Wall" 5851 else 5852 : 5853 5854 fi 5855 5856 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qinfo" >&5 5858$as_echo_n "checking whether C compiler accepts -qinfo... " >&6; } 5859 5860 ## store werror status, then turn -Werror on 5861 save_ac_c_werror_flag="${ac_c_werror_flag}" 5862 5863ac_c_werror_flag=yes 5864 5865 if ${sxe_cv_c_flag__qinfo+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 sxe_save_FLAGS="${CFLAGS}" 5869 CFLAGS="-qinfo" 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872 5873int 5874main () 5875{ 5876 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_c_try_compile "$LINENO"; then : 5882 eval sxe_cv_c_flag__qinfo="yes" 5883else 5884 eval sxe_cv_c_flag__qinfo="no" 5885fi 5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5887 CFLAGS="${sxe_save_FLAGS}" 5888 5889fi 5890 5891 eval sxe_check_flag=$sxe_cv_c_flag__qinfo 5892 ac_c_werror_flag="${save_ac_c_werror_flag}" 5893 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5895$as_echo "${sxe_check_flag}" >&6; } 5896 if test "${sxe_check_flag}" = "yes"; then 5897 : 5898 5899 warnflags="${warnflags} -qinfo" 5900 else 5901 : 5902 5903 fi 5904 5905 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5 5907$as_echo_n "checking whether C compiler accepts -Wextra... " >&6; } 5908 5909 ## store werror status, then turn -Werror on 5910 save_ac_c_werror_flag="${ac_c_werror_flag}" 5911 5912ac_c_werror_flag=yes 5913 5914 if ${sxe_cv_c_flag__Wextra+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 sxe_save_FLAGS="${CFLAGS}" 5918 CFLAGS="-Wextra" 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920/* end confdefs.h. */ 5921 5922int 5923main () 5924{ 5925 5926 ; 5927 return 0; 5928} 5929_ACEOF 5930if ac_fn_c_try_compile "$LINENO"; then : 5931 eval sxe_cv_c_flag__Wextra="yes" 5932else 5933 eval sxe_cv_c_flag__Wextra="no" 5934fi 5935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5936 CFLAGS="${sxe_save_FLAGS}" 5937 5938fi 5939 5940 eval sxe_check_flag=$sxe_cv_c_flag__Wextra 5941 ac_c_werror_flag="${save_ac_c_werror_flag}" 5942 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5944$as_echo "${sxe_check_flag}" >&6; } 5945 if test "${sxe_check_flag}" = "yes"; then 5946 : 5947 5948 warnflags="${warnflags} -Wextra" 5949 else 5950 : 5951 5952 fi 5953 5954 5955 ## Yuck, bad compares have been worth at 5956 ## least 3 crashes! 5957 ## Warnings about char subscripts are pretty 5958 ## pointless, though, 5959 ## and we use them in various places. 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5 5961$as_echo_n "checking whether C compiler accepts -Wsign-compare... " >&6; } 5962 5963 ## store werror status, then turn -Werror on 5964 save_ac_c_werror_flag="${ac_c_werror_flag}" 5965 5966ac_c_werror_flag=yes 5967 5968 if ${sxe_cv_c_flag__Wsign_compare+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 sxe_save_FLAGS="${CFLAGS}" 5972 CFLAGS="-Wsign-compare" 5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5974/* end confdefs.h. */ 5975 5976int 5977main () 5978{ 5979 5980 ; 5981 return 0; 5982} 5983_ACEOF 5984if ac_fn_c_try_compile "$LINENO"; then : 5985 eval sxe_cv_c_flag__Wsign_compare="yes" 5986else 5987 eval sxe_cv_c_flag__Wsign_compare="no" 5988fi 5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5990 CFLAGS="${sxe_save_FLAGS}" 5991 5992fi 5993 5994 eval sxe_check_flag=$sxe_cv_c_flag__Wsign_compare 5995 ac_c_werror_flag="${save_ac_c_werror_flag}" 5996 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 5998$as_echo "${sxe_check_flag}" >&6; } 5999 if test "${sxe_check_flag}" = "yes"; then 6000 : 6001 6002 warnflags="$warnflags -Wsign-compare" 6003 else 6004 : 6005 6006 fi 6007 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-char-subscripts" >&5 6009$as_echo_n "checking whether C compiler accepts -Wno-char-subscripts... " >&6; } 6010 6011 ## store werror status, then turn -Werror on 6012 save_ac_c_werror_flag="${ac_c_werror_flag}" 6013 6014ac_c_werror_flag=yes 6015 6016 if ${sxe_cv_c_flag__Wno_char_subscripts+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 sxe_save_FLAGS="${CFLAGS}" 6020 CFLAGS="-Wno-char-subscripts" 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023 6024int 6025main () 6026{ 6027 6028 ; 6029 return 0; 6030} 6031_ACEOF 6032if ac_fn_c_try_compile "$LINENO"; then : 6033 eval sxe_cv_c_flag__Wno_char_subscripts="yes" 6034else 6035 eval sxe_cv_c_flag__Wno_char_subscripts="no" 6036fi 6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6038 CFLAGS="${sxe_save_FLAGS}" 6039 6040fi 6041 6042 eval sxe_check_flag=$sxe_cv_c_flag__Wno_char_subscripts 6043 ac_c_werror_flag="${save_ac_c_werror_flag}" 6044 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6046$as_echo "${sxe_check_flag}" >&6; } 6047 if test "${sxe_check_flag}" = "yes"; then 6048 : 6049 6050 warnflags="$warnflags -Wno-char-subscripts" 6051 else 6052 : 6053 6054 fi 6055 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5 6057$as_echo_n "checking whether C compiler accepts -Wundef... " >&6; } 6058 6059 ## store werror status, then turn -Werror on 6060 save_ac_c_werror_flag="${ac_c_werror_flag}" 6061 6062ac_c_werror_flag=yes 6063 6064 if ${sxe_cv_c_flag__Wundef+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 sxe_save_FLAGS="${CFLAGS}" 6068 CFLAGS="-Wundef" 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071 6072int 6073main () 6074{ 6075 6076 ; 6077 return 0; 6078} 6079_ACEOF 6080if ac_fn_c_try_compile "$LINENO"; then : 6081 eval sxe_cv_c_flag__Wundef="yes" 6082else 6083 eval sxe_cv_c_flag__Wundef="no" 6084fi 6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6086 CFLAGS="${sxe_save_FLAGS}" 6087 6088fi 6089 6090 eval sxe_check_flag=$sxe_cv_c_flag__Wundef 6091 ac_c_werror_flag="${save_ac_c_werror_flag}" 6092 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6094$as_echo "${sxe_check_flag}" >&6; } 6095 if test "${sxe_check_flag}" = "yes"; then 6096 : 6097 6098 warnflags="$warnflags -Wundef" 6099 else 6100 : 6101 6102 fi 6103 6104 6105 ## too much at the moment, we rarely define protos 6106 #warnflags="$warnflags -Wmissing-prototypes -Wstrict-prototypes" 6107 6108 ## somehow clang seems to think -Wpacked is to inform me 6109 ## about how unnecessary the packed attr is, so conditionalise ... 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpacked" >&5 6111$as_echo_n "checking whether C compiler accepts -Wpacked... " >&6; } 6112 6113 ## store werror status, then turn -Werror on 6114 save_ac_c_werror_flag="${ac_c_werror_flag}" 6115 6116ac_c_werror_flag=yes 6117 6118 if ${sxe_cv_c_flag__Wpacked+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 sxe_save_FLAGS="${CFLAGS}" 6122 CFLAGS="-Wpacked" 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125 6126#if defined __clang__ 6127# error 6128#endif /* __clang__ */ 6129 6130int 6131main () 6132{ 6133 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO"; then : 6139 eval sxe_cv_c_flag__Wpacked="yes" 6140else 6141 eval sxe_cv_c_flag__Wpacked="no" 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144 CFLAGS="${sxe_save_FLAGS}" 6145 6146fi 6147 6148 eval sxe_check_flag=$sxe_cv_c_flag__Wpacked 6149 ac_c_werror_flag="${save_ac_c_werror_flag}" 6150 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6152$as_echo "${sxe_check_flag}" >&6; } 6153 if test "${sxe_check_flag}" = "yes"; then 6154 : 6155 6156 warnflags="$warnflags -Wpacked" 6157 else 6158 : 6159 : 6160 fi 6161 6162 6163 ## glibc is intentionally not `-Wpointer-arith'-clean. 6164 ## Ulrich Drepper has rejected patches to fix 6165 ## the glibc header files. 6166 ## we dont care 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5 6168$as_echo_n "checking whether C compiler accepts -Wpointer-arith... " >&6; } 6169 6170 ## store werror status, then turn -Werror on 6171 save_ac_c_werror_flag="${ac_c_werror_flag}" 6172 6173ac_c_werror_flag=yes 6174 6175 if ${sxe_cv_c_flag__Wpointer_arith+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 sxe_save_FLAGS="${CFLAGS}" 6179 CFLAGS="-Wpointer-arith" 6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182 6183int 6184main () 6185{ 6186 6187 ; 6188 return 0; 6189} 6190_ACEOF 6191if ac_fn_c_try_compile "$LINENO"; then : 6192 eval sxe_cv_c_flag__Wpointer_arith="yes" 6193else 6194 eval sxe_cv_c_flag__Wpointer_arith="no" 6195fi 6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6197 CFLAGS="${sxe_save_FLAGS}" 6198 6199fi 6200 6201 eval sxe_check_flag=$sxe_cv_c_flag__Wpointer_arith 6202 ac_c_werror_flag="${save_ac_c_werror_flag}" 6203 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6205$as_echo "${sxe_check_flag}" >&6; } 6206 if test "${sxe_check_flag}" = "yes"; then 6207 : 6208 6209 warnflags="$warnflags -Wpointer-arith" 6210 else 6211 : 6212 6213 fi 6214 6215 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5 6217$as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; } 6218 6219 ## store werror status, then turn -Werror on 6220 save_ac_c_werror_flag="${ac_c_werror_flag}" 6221 6222ac_c_werror_flag=yes 6223 6224 if ${sxe_cv_c_flag__Wshadow+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 sxe_save_FLAGS="${CFLAGS}" 6228 CFLAGS="-Wshadow" 6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6230/* end confdefs.h. */ 6231 6232int 6233main () 6234{ 6235 6236 ; 6237 return 0; 6238} 6239_ACEOF 6240if ac_fn_c_try_compile "$LINENO"; then : 6241 eval sxe_cv_c_flag__Wshadow="yes" 6242else 6243 eval sxe_cv_c_flag__Wshadow="no" 6244fi 6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6246 CFLAGS="${sxe_save_FLAGS}" 6247 6248fi 6249 6250 eval sxe_check_flag=$sxe_cv_c_flag__Wshadow 6251 ac_c_werror_flag="${save_ac_c_werror_flag}" 6252 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6254$as_echo "${sxe_check_flag}" >&6; } 6255 if test "${sxe_check_flag}" = "yes"; then 6256 : 6257 6258 warnflags="$warnflags -Wshadow" 6259 else 6260 : 6261 6262 fi 6263 6264 6265 ## our code lacks declarations almost all the time 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5 6267$as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; } 6268 6269 ## store werror status, then turn -Werror on 6270 save_ac_c_werror_flag="${ac_c_werror_flag}" 6271 6272ac_c_werror_flag=yes 6273 6274 if ${sxe_cv_c_flag__Wmissing_declarations+:} false; then : 6275 $as_echo_n "(cached) " >&6 6276else 6277 sxe_save_FLAGS="${CFLAGS}" 6278 CFLAGS="-Wmissing-declarations" 6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6280/* end confdefs.h. */ 6281 6282int 6283main () 6284{ 6285 6286 ; 6287 return 0; 6288} 6289_ACEOF 6290if ac_fn_c_try_compile "$LINENO"; then : 6291 eval sxe_cv_c_flag__Wmissing_declarations="yes" 6292else 6293 eval sxe_cv_c_flag__Wmissing_declarations="no" 6294fi 6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296 CFLAGS="${sxe_save_FLAGS}" 6297 6298fi 6299 6300 eval sxe_check_flag=$sxe_cv_c_flag__Wmissing_declarations 6301 ac_c_werror_flag="${save_ac_c_werror_flag}" 6302 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6304$as_echo "${sxe_check_flag}" >&6; } 6305 if test "${sxe_check_flag}" = "yes"; then 6306 : 6307 6308 warnflags="$warnflags -Wmissing-declarations" 6309 else 6310 : 6311 6312 fi 6313 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5 6315$as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; } 6316 6317 ## store werror status, then turn -Werror on 6318 save_ac_c_werror_flag="${ac_c_werror_flag}" 6319 6320ac_c_werror_flag=yes 6321 6322 if ${sxe_cv_c_flag__Wmissing_prototypes+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 sxe_save_FLAGS="${CFLAGS}" 6326 CFLAGS="-Wmissing-prototypes" 6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329 6330int 6331main () 6332{ 6333 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338if ac_fn_c_try_compile "$LINENO"; then : 6339 eval sxe_cv_c_flag__Wmissing_prototypes="yes" 6340else 6341 eval sxe_cv_c_flag__Wmissing_prototypes="no" 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6344 CFLAGS="${sxe_save_FLAGS}" 6345 6346fi 6347 6348 eval sxe_check_flag=$sxe_cv_c_flag__Wmissing_prototypes 6349 ac_c_werror_flag="${save_ac_c_werror_flag}" 6350 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6352$as_echo "${sxe_check_flag}" >&6; } 6353 if test "${sxe_check_flag}" = "yes"; then 6354 : 6355 6356 warnflags="$warnflags -Wmissing-prototypes" 6357 else 6358 : 6359 6360 fi 6361 6362 6363 ## gcc can't practically inline anything, so exclude this 6364 case "${CC}" in 6365 *"gcc"*) 6366 ;; 6367 *) 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5 6369$as_echo_n "checking whether C compiler accepts -Winline... " >&6; } 6370 6371 ## store werror status, then turn -Werror on 6372 save_ac_c_werror_flag="${ac_c_werror_flag}" 6373 6374ac_c_werror_flag=yes 6375 6376 if ${sxe_cv_c_flag__Winline+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 sxe_save_FLAGS="${CFLAGS}" 6380 CFLAGS="-Winline" 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_compile "$LINENO"; then : 6393 eval sxe_cv_c_flag__Winline="yes" 6394else 6395 eval sxe_cv_c_flag__Winline="no" 6396fi 6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6398 CFLAGS="${sxe_save_FLAGS}" 6399 6400fi 6401 6402 eval sxe_check_flag=$sxe_cv_c_flag__Winline 6403 ac_c_werror_flag="${save_ac_c_werror_flag}" 6404 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6406$as_echo "${sxe_check_flag}" >&6; } 6407 if test "${sxe_check_flag}" = "yes"; then 6408 : 6409 6410 warnflags="$warnflags -Winline" 6411 else 6412 : 6413 6414 fi 6415 6416 ;; 6417 esac 6418 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wbad-function-cast" >&5 6420$as_echo_n "checking whether C compiler accepts -Wbad-function-cast... " >&6; } 6421 6422 ## store werror status, then turn -Werror on 6423 save_ac_c_werror_flag="${ac_c_werror_flag}" 6424 6425ac_c_werror_flag=yes 6426 6427 if ${sxe_cv_c_flag__Wbad_function_cast+:} false; then : 6428 $as_echo_n "(cached) " >&6 6429else 6430 sxe_save_FLAGS="${CFLAGS}" 6431 CFLAGS="-Wbad-function-cast" 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434 6435int 6436main () 6437{ 6438 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO"; then : 6444 eval sxe_cv_c_flag__Wbad_function_cast="yes" 6445else 6446 eval sxe_cv_c_flag__Wbad_function_cast="no" 6447fi 6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6449 CFLAGS="${sxe_save_FLAGS}" 6450 6451fi 6452 6453 eval sxe_check_flag=$sxe_cv_c_flag__Wbad_function_cast 6454 ac_c_werror_flag="${save_ac_c_werror_flag}" 6455 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6457$as_echo "${sxe_check_flag}" >&6; } 6458 if test "${sxe_check_flag}" = "yes"; then 6459 : 6460 6461 warnflags="$warnflags -Wbad-function-cast" 6462 else 6463 : 6464 6465 fi 6466 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5 6468$as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; } 6469 6470 ## store werror status, then turn -Werror on 6471 save_ac_c_werror_flag="${ac_c_werror_flag}" 6472 6473ac_c_werror_flag=yes 6474 6475 if ${sxe_cv_c_flag__Wcast_qual+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 sxe_save_FLAGS="${CFLAGS}" 6479 CFLAGS="-Wcast-qual" 6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482 6483int 6484main () 6485{ 6486 6487 ; 6488 return 0; 6489} 6490_ACEOF 6491if ac_fn_c_try_compile "$LINENO"; then : 6492 eval sxe_cv_c_flag__Wcast_qual="yes" 6493else 6494 eval sxe_cv_c_flag__Wcast_qual="no" 6495fi 6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6497 CFLAGS="${sxe_save_FLAGS}" 6498 6499fi 6500 6501 eval sxe_check_flag=$sxe_cv_c_flag__Wcast_qual 6502 ac_c_werror_flag="${save_ac_c_werror_flag}" 6503 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6505$as_echo "${sxe_check_flag}" >&6; } 6506 if test "${sxe_check_flag}" = "yes"; then 6507 : 6508 6509 warnflags="$warnflags -Wcast-qual" 6510 else 6511 : 6512 6513 fi 6514 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5 6516$as_echo_n "checking whether C compiler accepts -Wcast-align... " >&6; } 6517 6518 ## store werror status, then turn -Werror on 6519 save_ac_c_werror_flag="${ac_c_werror_flag}" 6520 6521ac_c_werror_flag=yes 6522 6523 if ${sxe_cv_c_flag__Wcast_align+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 sxe_save_FLAGS="${CFLAGS}" 6527 CFLAGS="-Wcast-align" 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530 6531int 6532main () 6533{ 6534 6535 ; 6536 return 0; 6537} 6538_ACEOF 6539if ac_fn_c_try_compile "$LINENO"; then : 6540 eval sxe_cv_c_flag__Wcast_align="yes" 6541else 6542 eval sxe_cv_c_flag__Wcast_align="no" 6543fi 6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6545 CFLAGS="${sxe_save_FLAGS}" 6546 6547fi 6548 6549 eval sxe_check_flag=$sxe_cv_c_flag__Wcast_align 6550 ac_c_werror_flag="${save_ac_c_werror_flag}" 6551 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6553$as_echo "${sxe_check_flag}" >&6; } 6554 if test "${sxe_check_flag}" = "yes"; then 6555 : 6556 6557 warnflags="$warnflags -Wcast-align" 6558 else 6559 : 6560 6561 fi 6562 6563 6564 ## warn about incomplete switches 6565 ## for gcc, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50422 6566 ## we used to have -Wswitch-default and -Wswitch-enum but that 6567 ## set gcc off quite badly in the nested switch case 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-switch" >&5 6569$as_echo_n "checking whether C compiler accepts -Wno-switch... " >&6; } 6570 6571 ## store werror status, then turn -Werror on 6572 save_ac_c_werror_flag="${ac_c_werror_flag}" 6573 6574ac_c_werror_flag=yes 6575 6576 if ${sxe_cv_c_flag__Wno_switch+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 sxe_save_FLAGS="${CFLAGS}" 6580 CFLAGS="-Wno-switch" 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583 6584int 6585main () 6586{ 6587 6588 ; 6589 return 0; 6590} 6591_ACEOF 6592if ac_fn_c_try_compile "$LINENO"; then : 6593 eval sxe_cv_c_flag__Wno_switch="yes" 6594else 6595 eval sxe_cv_c_flag__Wno_switch="no" 6596fi 6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6598 CFLAGS="${sxe_save_FLAGS}" 6599 6600fi 6601 6602 eval sxe_check_flag=$sxe_cv_c_flag__Wno_switch 6603 ac_c_werror_flag="${save_ac_c_werror_flag}" 6604 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6606$as_echo "${sxe_check_flag}" >&6; } 6607 if test "${sxe_check_flag}" = "yes"; then 6608 : 6609 6610 warnflags="$warnflags -Wno-switch" 6611 else 6612 : 6613 6614 fi 6615 6616 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-function" >&5 6618$as_echo_n "checking whether C compiler accepts -Wunused-function... " >&6; } 6619 6620 ## store werror status, then turn -Werror on 6621 save_ac_c_werror_flag="${ac_c_werror_flag}" 6622 6623ac_c_werror_flag=yes 6624 6625 if ${sxe_cv_c_flag__Wunused_function+:} false; then : 6626 $as_echo_n "(cached) " >&6 6627else 6628 sxe_save_FLAGS="${CFLAGS}" 6629 CFLAGS="-Wunused-function" 6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631/* end confdefs.h. */ 6632 6633int 6634main () 6635{ 6636 6637 ; 6638 return 0; 6639} 6640_ACEOF 6641if ac_fn_c_try_compile "$LINENO"; then : 6642 eval sxe_cv_c_flag__Wunused_function="yes" 6643else 6644 eval sxe_cv_c_flag__Wunused_function="no" 6645fi 6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6647 CFLAGS="${sxe_save_FLAGS}" 6648 6649fi 6650 6651 eval sxe_check_flag=$sxe_cv_c_flag__Wunused_function 6652 ac_c_werror_flag="${save_ac_c_werror_flag}" 6653 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6655$as_echo "${sxe_check_flag}" >&6; } 6656 if test "${sxe_check_flag}" = "yes"; then 6657 : 6658 6659 warnflags="$warnflags -Wunused-function" 6660 else 6661 : 6662 6663 fi 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-variable" >&5 6666$as_echo_n "checking whether C compiler accepts -Wunused-variable... " >&6; } 6667 6668 ## store werror status, then turn -Werror on 6669 save_ac_c_werror_flag="${ac_c_werror_flag}" 6670 6671ac_c_werror_flag=yes 6672 6673 if ${sxe_cv_c_flag__Wunused_variable+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 sxe_save_FLAGS="${CFLAGS}" 6677 CFLAGS="-Wunused-variable" 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680 6681int 6682main () 6683{ 6684 6685 ; 6686 return 0; 6687} 6688_ACEOF 6689if ac_fn_c_try_compile "$LINENO"; then : 6690 eval sxe_cv_c_flag__Wunused_variable="yes" 6691else 6692 eval sxe_cv_c_flag__Wunused_variable="no" 6693fi 6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6695 CFLAGS="${sxe_save_FLAGS}" 6696 6697fi 6698 6699 eval sxe_check_flag=$sxe_cv_c_flag__Wunused_variable 6700 ac_c_werror_flag="${save_ac_c_werror_flag}" 6701 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6703$as_echo "${sxe_check_flag}" >&6; } 6704 if test "${sxe_check_flag}" = "yes"; then 6705 : 6706 6707 warnflags="$warnflags -Wunused-variable" 6708 else 6709 : 6710 6711 fi 6712 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5 6714$as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; } 6715 6716 ## store werror status, then turn -Werror on 6717 save_ac_c_werror_flag="${ac_c_werror_flag}" 6718 6719ac_c_werror_flag=yes 6720 6721 if ${sxe_cv_c_flag__Wunused_parameter+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 sxe_save_FLAGS="${CFLAGS}" 6725 CFLAGS="-Wunused-parameter" 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728 6729int 6730main () 6731{ 6732 6733 ; 6734 return 0; 6735} 6736_ACEOF 6737if ac_fn_c_try_compile "$LINENO"; then : 6738 eval sxe_cv_c_flag__Wunused_parameter="yes" 6739else 6740 eval sxe_cv_c_flag__Wunused_parameter="no" 6741fi 6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6743 CFLAGS="${sxe_save_FLAGS}" 6744 6745fi 6746 6747 eval sxe_check_flag=$sxe_cv_c_flag__Wunused_parameter 6748 ac_c_werror_flag="${save_ac_c_werror_flag}" 6749 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6751$as_echo "${sxe_check_flag}" >&6; } 6752 if test "${sxe_check_flag}" = "yes"; then 6753 : 6754 6755 warnflags="$warnflags -Wunused-parameter" 6756 else 6757 : 6758 6759 fi 6760 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-value" >&5 6762$as_echo_n "checking whether C compiler accepts -Wunused-value... " >&6; } 6763 6764 ## store werror status, then turn -Werror on 6765 save_ac_c_werror_flag="${ac_c_werror_flag}" 6766 6767ac_c_werror_flag=yes 6768 6769 if ${sxe_cv_c_flag__Wunused_value+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 sxe_save_FLAGS="${CFLAGS}" 6773 CFLAGS="-Wunused-value" 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6775/* end confdefs.h. */ 6776 6777int 6778main () 6779{ 6780 6781 ; 6782 return 0; 6783} 6784_ACEOF 6785if ac_fn_c_try_compile "$LINENO"; then : 6786 eval sxe_cv_c_flag__Wunused_value="yes" 6787else 6788 eval sxe_cv_c_flag__Wunused_value="no" 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6791 CFLAGS="${sxe_save_FLAGS}" 6792 6793fi 6794 6795 eval sxe_check_flag=$sxe_cv_c_flag__Wunused_value 6796 ac_c_werror_flag="${save_ac_c_werror_flag}" 6797 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6799$as_echo "${sxe_check_flag}" >&6; } 6800 if test "${sxe_check_flag}" = "yes"; then 6801 : 6802 6803 warnflags="$warnflags -Wunused-value" 6804 else 6805 : 6806 6807 fi 6808 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5 6810$as_echo_n "checking whether C compiler accepts -Wunused... " >&6; } 6811 6812 ## store werror status, then turn -Werror on 6813 save_ac_c_werror_flag="${ac_c_werror_flag}" 6814 6815ac_c_werror_flag=yes 6816 6817 if ${sxe_cv_c_flag__Wunused+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 sxe_save_FLAGS="${CFLAGS}" 6821 CFLAGS="-Wunused" 6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823/* end confdefs.h. */ 6824 6825int 6826main () 6827{ 6828 6829 ; 6830 return 0; 6831} 6832_ACEOF 6833if ac_fn_c_try_compile "$LINENO"; then : 6834 eval sxe_cv_c_flag__Wunused="yes" 6835else 6836 eval sxe_cv_c_flag__Wunused="no" 6837fi 6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6839 CFLAGS="${sxe_save_FLAGS}" 6840 6841fi 6842 6843 eval sxe_check_flag=$sxe_cv_c_flag__Wunused 6844 ac_c_werror_flag="${save_ac_c_werror_flag}" 6845 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6847$as_echo "${sxe_check_flag}" >&6; } 6848 if test "${sxe_check_flag}" = "yes"; then 6849 : 6850 6851 warnflags="$warnflags -Wunused" 6852 else 6853 : 6854 6855 fi 6856 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5 6858$as_echo_n "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; } 6859 6860 ## store werror status, then turn -Werror on 6861 save_ac_c_werror_flag="${ac_c_werror_flag}" 6862 6863ac_c_werror_flag=yes 6864 6865 if ${sxe_cv_c_flag__Wmaybe_uninitialized+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 sxe_save_FLAGS="${CFLAGS}" 6869 CFLAGS="-Wmaybe-uninitialized" 6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6871/* end confdefs.h. */ 6872 6873int 6874main () 6875{ 6876 6877 ; 6878 return 0; 6879} 6880_ACEOF 6881if ac_fn_c_try_compile "$LINENO"; then : 6882 eval sxe_cv_c_flag__Wmaybe_uninitialized="yes" 6883else 6884 eval sxe_cv_c_flag__Wmaybe_uninitialized="no" 6885fi 6886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6887 CFLAGS="${sxe_save_FLAGS}" 6888 6889fi 6890 6891 eval sxe_check_flag=$sxe_cv_c_flag__Wmaybe_uninitialized 6892 ac_c_werror_flag="${save_ac_c_werror_flag}" 6893 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6895$as_echo "${sxe_check_flag}" >&6; } 6896 if test "${sxe_check_flag}" = "yes"; then 6897 : 6898 6899 warnflags="${warnflags} -Wmaybe-uninitialized" 6900 else 6901 : 6902 6903 fi 6904 6905 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnopragma" >&5 6907$as_echo_n "checking whether C compiler accepts -Wnopragma... " >&6; } 6908 6909 ## store werror status, then turn -Werror on 6910 save_ac_c_werror_flag="${ac_c_werror_flag}" 6911 6912ac_c_werror_flag=yes 6913 6914 if ${sxe_cv_c_flag__Wnopragma+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 sxe_save_FLAGS="${CFLAGS}" 6918 CFLAGS="-Wnopragma" 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921 6922int 6923main () 6924{ 6925 6926 ; 6927 return 0; 6928} 6929_ACEOF 6930if ac_fn_c_try_compile "$LINENO"; then : 6931 eval sxe_cv_c_flag__Wnopragma="yes" 6932else 6933 eval sxe_cv_c_flag__Wnopragma="no" 6934fi 6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6936 CFLAGS="${sxe_save_FLAGS}" 6937 6938fi 6939 6940 eval sxe_check_flag=$sxe_cv_c_flag__Wnopragma 6941 ac_c_werror_flag="${save_ac_c_werror_flag}" 6942 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6944$as_echo "${sxe_check_flag}" >&6; } 6945 if test "${sxe_check_flag}" = "yes"; then 6946 : 6947 6948 warnflags="$warnflags -Wnopragma" 6949 else 6950 : 6951 6952 fi 6953 6954 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdiagnostics-show-option" >&5 6956$as_echo_n "checking whether C compiler accepts -fdiagnostics-show-option... " >&6; } 6957 6958 ## store werror status, then turn -Werror on 6959 save_ac_c_werror_flag="${ac_c_werror_flag}" 6960 6961ac_c_werror_flag=yes 6962 6963 if ${sxe_cv_c_flag__fdiagnostics_show_option+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 sxe_save_FLAGS="${CFLAGS}" 6967 CFLAGS="-fdiagnostics-show-option" 6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6969/* end confdefs.h. */ 6970 6971int 6972main () 6973{ 6974 6975 ; 6976 return 0; 6977} 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO"; then : 6980 eval sxe_cv_c_flag__fdiagnostics_show_option="yes" 6981else 6982 eval sxe_cv_c_flag__fdiagnostics_show_option="no" 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985 CFLAGS="${sxe_save_FLAGS}" 6986 6987fi 6988 6989 eval sxe_check_flag=$sxe_cv_c_flag__fdiagnostics_show_option 6990 ac_c_werror_flag="${save_ac_c_werror_flag}" 6991 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 6993$as_echo "${sxe_check_flag}" >&6; } 6994 if test "${sxe_check_flag}" = "yes"; then 6995 : 6996 6997 warnflags="${warnflags} -fdiagnostics-show-option" 6998 else 6999 : 7000 7001 fi 7002 7003 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunknown-pragmas" >&5 7005$as_echo_n "checking whether C compiler accepts -Wunknown-pragmas... " >&6; } 7006 7007 ## store werror status, then turn -Werror on 7008 save_ac_c_werror_flag="${ac_c_werror_flag}" 7009 7010ac_c_werror_flag=yes 7011 7012 if ${sxe_cv_c_flag__Wunknown_pragmas+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 sxe_save_FLAGS="${CFLAGS}" 7016 CFLAGS="-Wunknown-pragmas" 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019 7020int 7021main () 7022{ 7023 7024 ; 7025 return 0; 7026} 7027_ACEOF 7028if ac_fn_c_try_compile "$LINENO"; then : 7029 eval sxe_cv_c_flag__Wunknown_pragmas="yes" 7030else 7031 eval sxe_cv_c_flag__Wunknown_pragmas="no" 7032fi 7033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7034 CFLAGS="${sxe_save_FLAGS}" 7035 7036fi 7037 7038 eval sxe_check_flag=$sxe_cv_c_flag__Wunknown_pragmas 7039 ac_c_werror_flag="${save_ac_c_werror_flag}" 7040 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7042$as_echo "${sxe_check_flag}" >&6; } 7043 if test "${sxe_check_flag}" = "yes"; then 7044 : 7045 7046 warnflags="$warnflags -Wunknown-pragmas" 7047 else 7048 : 7049 7050 fi 7051 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wuninitialized" >&5 7053$as_echo_n "checking whether C compiler accepts -Wuninitialized... " >&6; } 7054 7055 ## store werror status, then turn -Werror on 7056 save_ac_c_werror_flag="${ac_c_werror_flag}" 7057 7058ac_c_werror_flag=yes 7059 7060 if ${sxe_cv_c_flag__Wuninitialized+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 sxe_save_FLAGS="${CFLAGS}" 7064 CFLAGS="-Wuninitialized" 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067 7068int 7069main () 7070{ 7071 7072 ; 7073 return 0; 7074} 7075_ACEOF 7076if ac_fn_c_try_compile "$LINENO"; then : 7077 eval sxe_cv_c_flag__Wuninitialized="yes" 7078else 7079 eval sxe_cv_c_flag__Wuninitialized="no" 7080fi 7081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7082 CFLAGS="${sxe_save_FLAGS}" 7083 7084fi 7085 7086 eval sxe_check_flag=$sxe_cv_c_flag__Wuninitialized 7087 ac_c_werror_flag="${save_ac_c_werror_flag}" 7088 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7090$as_echo "${sxe_check_flag}" >&6; } 7091 if test "${sxe_check_flag}" = "yes"; then 7092 : 7093 7094 warnflags="$warnflags -Wuninitialized" 7095 else 7096 : 7097 7098 fi 7099 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wreorder" >&5 7101$as_echo_n "checking whether C compiler accepts -Wreorder... " >&6; } 7102 7103 ## store werror status, then turn -Werror on 7104 save_ac_c_werror_flag="${ac_c_werror_flag}" 7105 7106ac_c_werror_flag=yes 7107 7108 if ${sxe_cv_c_flag__Wreorder+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 sxe_save_FLAGS="${CFLAGS}" 7112 CFLAGS="-Wreorder" 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114/* end confdefs.h. */ 7115 7116int 7117main () 7118{ 7119 7120 ; 7121 return 0; 7122} 7123_ACEOF 7124if ac_fn_c_try_compile "$LINENO"; then : 7125 eval sxe_cv_c_flag__Wreorder="yes" 7126else 7127 eval sxe_cv_c_flag__Wreorder="no" 7128fi 7129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7130 CFLAGS="${sxe_save_FLAGS}" 7131 7132fi 7133 7134 eval sxe_check_flag=$sxe_cv_c_flag__Wreorder 7135 ac_c_werror_flag="${save_ac_c_werror_flag}" 7136 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7138$as_echo "${sxe_check_flag}" >&6; } 7139 if test "${sxe_check_flag}" = "yes"; then 7140 : 7141 7142 warnflags="$warnflags -Wreorder" 7143 else 7144 : 7145 7146 fi 7147 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeprecated" >&5 7149$as_echo_n "checking whether C compiler accepts -Wdeprecated... " >&6; } 7150 7151 ## store werror status, then turn -Werror on 7152 save_ac_c_werror_flag="${ac_c_werror_flag}" 7153 7154ac_c_werror_flag=yes 7155 7156 if ${sxe_cv_c_flag__Wdeprecated+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 sxe_save_FLAGS="${CFLAGS}" 7160 CFLAGS="-Wdeprecated" 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163 7164int 7165main () 7166{ 7167 7168 ; 7169 return 0; 7170} 7171_ACEOF 7172if ac_fn_c_try_compile "$LINENO"; then : 7173 eval sxe_cv_c_flag__Wdeprecated="yes" 7174else 7175 eval sxe_cv_c_flag__Wdeprecated="no" 7176fi 7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7178 CFLAGS="${sxe_save_FLAGS}" 7179 7180fi 7181 7182 eval sxe_check_flag=$sxe_cv_c_flag__Wdeprecated 7183 ac_c_werror_flag="${save_ac_c_werror_flag}" 7184 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7186$as_echo "${sxe_check_flag}" >&6; } 7187 if test "${sxe_check_flag}" = "yes"; then 7188 : 7189 7190 warnflags="$warnflags -Wdeprecated" 7191 else 7192 : 7193 7194 fi 7195 7196 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-parentheses" >&5 7198$as_echo_n "checking whether C compiler accepts -Wno-parentheses... " >&6; } 7199 7200 ## store werror status, then turn -Werror on 7201 save_ac_c_werror_flag="${ac_c_werror_flag}" 7202 7203ac_c_werror_flag=yes 7204 7205 if ${sxe_cv_c_flag__Wno_parentheses+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 sxe_save_FLAGS="${CFLAGS}" 7209 CFLAGS="-Wno-parentheses" 7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211/* end confdefs.h. */ 7212 7213int 7214main () 7215{ 7216 7217 ; 7218 return 0; 7219} 7220_ACEOF 7221if ac_fn_c_try_compile "$LINENO"; then : 7222 eval sxe_cv_c_flag__Wno_parentheses="yes" 7223else 7224 eval sxe_cv_c_flag__Wno_parentheses="no" 7225fi 7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7227 CFLAGS="${sxe_save_FLAGS}" 7228 7229fi 7230 7231 eval sxe_check_flag=$sxe_cv_c_flag__Wno_parentheses 7232 ac_c_werror_flag="${save_ac_c_werror_flag}" 7233 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7235$as_echo "${sxe_check_flag}" >&6; } 7236 if test "${sxe_check_flag}" = "yes"; then 7237 : 7238 7239 warnflags="${warnflags} -Wno-parentheses" 7240 else 7241 : 7242 7243 fi 7244 7245 7246 ## icc specific 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcheck" >&5 7248$as_echo_n "checking whether C compiler accepts -Wcheck... " >&6; } 7249 7250 ## store werror status, then turn -Werror on 7251 save_ac_c_werror_flag="${ac_c_werror_flag}" 7252 7253ac_c_werror_flag=yes 7254 7255 if ${sxe_cv_c_flag__Wcheck+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 sxe_save_FLAGS="${CFLAGS}" 7259 CFLAGS="-Wcheck" 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262 7263int 7264main () 7265{ 7266 7267 ; 7268 return 0; 7269} 7270_ACEOF 7271if ac_fn_c_try_compile "$LINENO"; then : 7272 eval sxe_cv_c_flag__Wcheck="yes" 7273else 7274 eval sxe_cv_c_flag__Wcheck="no" 7275fi 7276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7277 CFLAGS="${sxe_save_FLAGS}" 7278 7279fi 7280 7281 eval sxe_check_flag=$sxe_cv_c_flag__Wcheck 7282 ac_c_werror_flag="${save_ac_c_werror_flag}" 7283 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7285$as_echo "${sxe_check_flag}" >&6; } 7286 if test "${sxe_check_flag}" = "yes"; then 7287 : 7288 7289 warnflags="$warnflags -Wcheck" 7290 else 7291 : 7292 7293 fi 7294 7295 7296 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-aliasing" >&5 7298$as_echo_n "checking whether C compiler accepts -Wstrict-aliasing... " >&6; } 7299 7300 ## store werror status, then turn -Werror on 7301 save_ac_c_werror_flag="${ac_c_werror_flag}" 7302 7303ac_c_werror_flag=yes 7304 7305 if ${sxe_cv_c_flag__Wstrict_aliasing+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 sxe_save_FLAGS="${CFLAGS}" 7309 CFLAGS="-Wstrict-aliasing" 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311/* end confdefs.h. */ 7312 7313int 7314main () 7315{ 7316 7317 ; 7318 return 0; 7319} 7320_ACEOF 7321if ac_fn_c_try_compile "$LINENO"; then : 7322 eval sxe_cv_c_flag__Wstrict_aliasing="yes" 7323else 7324 eval sxe_cv_c_flag__Wstrict_aliasing="no" 7325fi 7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7327 CFLAGS="${sxe_save_FLAGS}" 7328 7329fi 7330 7331 eval sxe_check_flag=$sxe_cv_c_flag__Wstrict_aliasing 7332 ac_c_werror_flag="${save_ac_c_werror_flag}" 7333 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7335$as_echo "${sxe_check_flag}" >&6; } 7336 if test "${sxe_check_flag}" = "yes"; then 7337 : 7338 7339 warnflags="$warnflags -Wstrict-aliasing" 7340 else 7341 : 7342 7343 fi 7344 7345 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -w3" >&5 7347$as_echo_n "checking whether C compiler accepts -w3... " >&6; } 7348 7349 ## store werror status, then turn -Werror on 7350 save_ac_c_werror_flag="${ac_c_werror_flag}" 7351 7352ac_c_werror_flag=yes 7353 7354 if ${sxe_cv_c_flag__w3+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356else 7357 sxe_save_FLAGS="${CFLAGS}" 7358 CFLAGS="-w3" 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361 7362int 7363main () 7364{ 7365 7366 ; 7367 return 0; 7368} 7369_ACEOF 7370if ac_fn_c_try_compile "$LINENO"; then : 7371 eval sxe_cv_c_flag__w3="yes" 7372else 7373 eval sxe_cv_c_flag__w3="no" 7374fi 7375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7376 CFLAGS="${sxe_save_FLAGS}" 7377 7378fi 7379 7380 eval sxe_check_flag=$sxe_cv_c_flag__w3 7381 ac_c_werror_flag="${save_ac_c_werror_flag}" 7382 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7384$as_echo "${sxe_check_flag}" >&6; } 7385 if test "${sxe_check_flag}" = "yes"; then 7386 : 7387 7388 warnflags="$warnflags -w3" 7389 else 7390 : 7391 7392 fi 7393 7394 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -diag-disable 10237" >&5 7396$as_echo_n "checking whether C compiler accepts -diag-disable 10237... " >&6; } 7397 7398 ## store werror status, then turn -Werror on 7399 save_ac_c_werror_flag="${ac_c_werror_flag}" 7400 7401ac_c_werror_flag=yes 7402 7403 if ${sxe_cv_c_flag__diag_disable_10237+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 sxe_save_FLAGS="${CFLAGS}" 7407 CFLAGS="-diag-disable 10237" 7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409/* end confdefs.h. */ 7410 7411int 7412main () 7413{ 7414 7415 ; 7416 return 0; 7417} 7418_ACEOF 7419if ac_fn_c_try_compile "$LINENO"; then : 7420 eval sxe_cv_c_flag__diag_disable_10237="yes" 7421else 7422 eval sxe_cv_c_flag__diag_disable_10237="no" 7423fi 7424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7425 CFLAGS="${sxe_save_FLAGS}" 7426 7427fi 7428 7429 eval sxe_check_flag=$sxe_cv_c_flag__diag_disable_10237 7430 ac_c_werror_flag="${save_ac_c_werror_flag}" 7431 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7433$as_echo "${sxe_check_flag}" >&6; } 7434 if test "${sxe_check_flag}" = "yes"; then 7435 : 7436 warnflags="${warnflags} -diag-disable 10237" 7437 else 7438 : 7439 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -wd 10237" >&5 7441$as_echo_n "checking whether C compiler accepts -wd 10237... " >&6; } 7442 7443 ## store werror status, then turn -Werror on 7444 save_ac_c_werror_flag="${ac_c_werror_flag}" 7445 7446ac_c_werror_flag=yes 7447 7448 if ${sxe_cv_c_flag__wd_10237+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 sxe_save_FLAGS="${CFLAGS}" 7452 CFLAGS="-wd 10237" 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455 7456int 7457main () 7458{ 7459 7460 ; 7461 return 0; 7462} 7463_ACEOF 7464if ac_fn_c_try_compile "$LINENO"; then : 7465 eval sxe_cv_c_flag__wd_10237="yes" 7466else 7467 eval sxe_cv_c_flag__wd_10237="no" 7468fi 7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7470 CFLAGS="${sxe_save_FLAGS}" 7471 7472fi 7473 7474 eval sxe_check_flag=$sxe_cv_c_flag__wd_10237 7475 ac_c_werror_flag="${save_ac_c_werror_flag}" 7476 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7478$as_echo "${sxe_check_flag}" >&6; } 7479 if test "${sxe_check_flag}" = "yes"; then 7480 : 7481 warnflags="${warnflags} -wd 10237" 7482 else 7483 : 7484 7485 fi 7486 7487 fi 7488 7489 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -diag-disable 2102" >&5 7491$as_echo_n "checking whether C compiler accepts -diag-disable 2102... " >&6; } 7492 7493 ## store werror status, then turn -Werror on 7494 save_ac_c_werror_flag="${ac_c_werror_flag}" 7495 7496ac_c_werror_flag=yes 7497 7498 if ${sxe_cv_c_flag__diag_disable_2102+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500else 7501 sxe_save_FLAGS="${CFLAGS}" 7502 CFLAGS="-diag-disable 2102" 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505 7506int 7507main () 7508{ 7509 7510 ; 7511 return 0; 7512} 7513_ACEOF 7514if ac_fn_c_try_compile "$LINENO"; then : 7515 eval sxe_cv_c_flag__diag_disable_2102="yes" 7516else 7517 eval sxe_cv_c_flag__diag_disable_2102="no" 7518fi 7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7520 CFLAGS="${sxe_save_FLAGS}" 7521 7522fi 7523 7524 eval sxe_check_flag=$sxe_cv_c_flag__diag_disable_2102 7525 ac_c_werror_flag="${save_ac_c_werror_flag}" 7526 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7528$as_echo "${sxe_check_flag}" >&6; } 7529 if test "${sxe_check_flag}" = "yes"; then 7530 : 7531 warnflags="${warnflags} -diag-disable 2102" 7532 else 7533 : 7534 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -wd 2102" >&5 7536$as_echo_n "checking whether C compiler accepts -wd 2102... " >&6; } 7537 7538 ## store werror status, then turn -Werror on 7539 save_ac_c_werror_flag="${ac_c_werror_flag}" 7540 7541ac_c_werror_flag=yes 7542 7543 if ${sxe_cv_c_flag__wd_2102+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 sxe_save_FLAGS="${CFLAGS}" 7547 CFLAGS="-wd 2102" 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550 7551int 7552main () 7553{ 7554 7555 ; 7556 return 0; 7557} 7558_ACEOF 7559if ac_fn_c_try_compile "$LINENO"; then : 7560 eval sxe_cv_c_flag__wd_2102="yes" 7561else 7562 eval sxe_cv_c_flag__wd_2102="no" 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7565 CFLAGS="${sxe_save_FLAGS}" 7566 7567fi 7568 7569 eval sxe_check_flag=$sxe_cv_c_flag__wd_2102 7570 ac_c_werror_flag="${save_ac_c_werror_flag}" 7571 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7573$as_echo "${sxe_check_flag}" >&6; } 7574 if test "${sxe_check_flag}" = "yes"; then 7575 : 7576 warnflags="${warnflags} -wd 2102" 7577 else 7578 : 7579 7580 fi 7581 7582 fi 7583 7584 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -debug inline-debug-info" >&5 7586$as_echo_n "checking whether C compiler accepts -debug inline-debug-info... " >&6; } 7587 7588 ## store werror status, then turn -Werror on 7589 save_ac_c_werror_flag="${ac_c_werror_flag}" 7590 7591ac_c_werror_flag=yes 7592 7593 if ${sxe_cv_c_flag__debug_inline_debug_info+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 sxe_save_FLAGS="${CFLAGS}" 7597 CFLAGS="-debug inline-debug-info" 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600 7601int 7602main () 7603{ 7604 7605 ; 7606 return 0; 7607} 7608_ACEOF 7609if ac_fn_c_try_compile "$LINENO"; then : 7610 eval sxe_cv_c_flag__debug_inline_debug_info="yes" 7611else 7612 eval sxe_cv_c_flag__debug_inline_debug_info="no" 7613fi 7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7615 CFLAGS="${sxe_save_FLAGS}" 7616 7617fi 7618 7619 eval sxe_check_flag=$sxe_cv_c_flag__debug_inline_debug_info 7620 ac_c_werror_flag="${save_ac_c_werror_flag}" 7621 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7623$as_echo "${sxe_check_flag}" >&6; } 7624 if test "${sxe_check_flag}" = "yes"; then 7625 : 7626 7627 warnflags="${warnflags} -debug inline-debug-info" 7628 else 7629 : 7630 7631 fi 7632 7633 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -diag-enable remark,vec,par" >&5 7635$as_echo_n "checking whether C compiler accepts -diag-enable remark,vec,par... " >&6; } 7636 7637 ## store werror status, then turn -Werror on 7638 save_ac_c_werror_flag="${ac_c_werror_flag}" 7639 7640ac_c_werror_flag=yes 7641 7642 if ${sxe_cv_c_flag__diag_enable_remark+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 sxe_save_FLAGS="${CFLAGS}" 7646 CFLAGS="-diag-enable remark,vec,par" 7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648/* end confdefs.h. */ 7649 7650int 7651main () 7652{ 7653 7654 ; 7655 return 0; 7656} 7657_ACEOF 7658if ac_fn_c_try_compile "$LINENO"; then : 7659 eval sxe_cv_c_flag__diag_enable_remark="yes" 7660else 7661 eval sxe_cv_c_flag__diag_enable_remark="no" 7662fi 7663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7664 CFLAGS="${sxe_save_FLAGS}" 7665 7666fi 7667 7668 eval sxe_check_flag=$sxe_cv_c_flag__diag_enable_remark 7669 ac_c_werror_flag="${save_ac_c_werror_flag}" 7670 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7672$as_echo "${sxe_check_flag}" >&6; } 7673 if test "${sxe_check_flag}" = "yes"; then 7674 : 7675 7676 warnflags="${warnflags} -diag-enable remark,vec,par" 7677 else 7678 : 7679 7680 fi 7681 7682 7683 ## for dfp754 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunsuffixed-float-constants" >&5 7685$as_echo_n "checking whether C compiler accepts -Wunsuffixed-float-constants... " >&6; } 7686 7687 ## store werror status, then turn -Werror on 7688 save_ac_c_werror_flag="${ac_c_werror_flag}" 7689 7690ac_c_werror_flag=yes 7691 7692 if ${sxe_cv_c_flag__Wunsuffixed_float_constants+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 sxe_save_FLAGS="${CFLAGS}" 7696 CFLAGS="-Wunsuffixed-float-constants" 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698/* end confdefs.h. */ 7699 7700int 7701main () 7702{ 7703 7704 ; 7705 return 0; 7706} 7707_ACEOF 7708if ac_fn_c_try_compile "$LINENO"; then : 7709 eval sxe_cv_c_flag__Wunsuffixed_float_constants="yes" 7710else 7711 eval sxe_cv_c_flag__Wunsuffixed_float_constants="no" 7712fi 7713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7714 CFLAGS="${sxe_save_FLAGS}" 7715 7716fi 7717 7718 eval sxe_check_flag=$sxe_cv_c_flag__Wunsuffixed_float_constants 7719 ac_c_werror_flag="${save_ac_c_werror_flag}" 7720 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7722$as_echo "${sxe_check_flag}" >&6; } 7723 if test "${sxe_check_flag}" = "yes"; then 7724 : 7725 7726 warnflags="$warnflags -Wunsuffixed-float-constants" 7727 else 7728 : 7729 7730 fi 7731 7732 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred warning flags" >&5 7734$as_echo_n "checking for preferred warning flags... " >&6; } 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${warnflags}" >&5 7736$as_echo "${warnflags}" >&6; } 7737 7738 7739 7740 7741 case " ${CFLAGS} ${EXTRA_CFLAGS} " in 7742 (*" -O"[0-9]" "*) 7743 ;; 7744 (*" -Os "*) 7745 ;; 7746 (*" -Og "*) 7747 ;; 7748 (*" -Ofast "*) 7749 ;; 7750 (*" -O "*) 7751 ;; 7752 (*) 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O3" >&5 7754$as_echo_n "checking whether C compiler accepts -O3... " >&6; } 7755 7756 ## store werror status, then turn -Werror on 7757 save_ac_c_werror_flag="${ac_c_werror_flag}" 7758 7759ac_c_werror_flag=yes 7760 7761 if ${sxe_cv_c_flag__O3+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 sxe_save_FLAGS="${CFLAGS}" 7765 CFLAGS="-O3" 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768 7769int 7770main () 7771{ 7772 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777if ac_fn_c_try_compile "$LINENO"; then : 7778 eval sxe_cv_c_flag__O3="yes" 7779else 7780 eval sxe_cv_c_flag__O3="no" 7781fi 7782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7783 CFLAGS="${sxe_save_FLAGS}" 7784 7785fi 7786 7787 eval sxe_check_flag=$sxe_cv_c_flag__O3 7788 ac_c_werror_flag="${save_ac_c_werror_flag}" 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7791$as_echo "${sxe_check_flag}" >&6; } 7792 if test "${sxe_check_flag}" = "yes"; then 7793 : 7794 7795 optiflags="${optiflags} -O3" 7796 else 7797 : 7798 7799 fi 7800 7801 ;; 7802 esac 7803 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ipo" >&5 7805$as_echo_n "checking whether C compiler accepts -ipo... " >&6; } 7806 7807 ## store werror status, then turn -Werror on 7808 save_ac_c_werror_flag="${ac_c_werror_flag}" 7809 7810ac_c_werror_flag=yes 7811 7812 if ${sxe_cv_c_flag__ipo+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814else 7815 sxe_save_FLAGS="${CFLAGS}" 7816 CFLAGS="-ipo" 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819 7820int 7821main () 7822{ 7823 7824 ; 7825 return 0; 7826} 7827_ACEOF 7828if ac_fn_c_try_compile "$LINENO"; then : 7829 eval sxe_cv_c_flag__ipo="yes" 7830else 7831 eval sxe_cv_c_flag__ipo="no" 7832fi 7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7834 CFLAGS="${sxe_save_FLAGS}" 7835 7836fi 7837 7838 eval sxe_check_flag=$sxe_cv_c_flag__ipo 7839 ac_c_werror_flag="${save_ac_c_werror_flag}" 7840 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 7842$as_echo "${sxe_check_flag}" >&6; } 7843 if test "${sxe_check_flag}" = "yes"; then 7844 : 7845 7846 optiflags="${optiflags} -ipo" 7847 7848 if test -n "$ac_tool_prefix"; then 7849 for ac_prog in xiar ar 7850 do 7851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7852set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7854$as_echo_n "checking for $ac_word... " >&6; } 7855if ${ac_cv_prog_AR+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 if test -n "$AR"; then 7859 ac_cv_prog_AR="$AR" # Let the user override the test. 7860else 7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH 7863do 7864 IFS=$as_save_IFS 7865 test -z "$as_dir" && as_dir=. 7866 for ac_exec_ext in '' $ac_executable_extensions; do 7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7868 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7870 break 2 7871 fi 7872done 7873 done 7874IFS=$as_save_IFS 7875 7876fi 7877fi 7878AR=$ac_cv_prog_AR 7879if test -n "$AR"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7881$as_echo "$AR" >&6; } 7882else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884$as_echo "no" >&6; } 7885fi 7886 7887 7888 test -n "$AR" && break 7889 done 7890fi 7891if test -z "$AR"; then 7892 ac_ct_AR=$AR 7893 for ac_prog in xiar ar 7894do 7895 # Extract the first word of "$ac_prog", so it can be a program name with args. 7896set dummy $ac_prog; ac_word=$2 7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7898$as_echo_n "checking for $ac_word... " >&6; } 7899if ${ac_cv_prog_ac_ct_AR+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 if test -n "$ac_ct_AR"; then 7903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7904else 7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7906for as_dir in $PATH 7907do 7908 IFS=$as_save_IFS 7909 test -z "$as_dir" && as_dir=. 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7912 ac_cv_prog_ac_ct_AR="$ac_prog" 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916done 7917 done 7918IFS=$as_save_IFS 7919 7920fi 7921fi 7922ac_ct_AR=$ac_cv_prog_ac_ct_AR 7923if test -n "$ac_ct_AR"; then 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7925$as_echo "$ac_ct_AR" >&6; } 7926else 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7928$as_echo "no" >&6; } 7929fi 7930 7931 7932 test -n "$ac_ct_AR" && break 7933done 7934 7935 if test "x$ac_ct_AR" = x; then 7936 AR="false" 7937 else 7938 case $cross_compiling:$ac_tool_warned in 7939yes:) 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7942ac_tool_warned=yes ;; 7943esac 7944 AR=$ac_ct_AR 7945 fi 7946fi 7947 7948 if test -n "$ac_tool_prefix"; then 7949 for ac_prog in xild ld 7950 do 7951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7954$as_echo_n "checking for $ac_word... " >&6; } 7955if ${ac_cv_prog_LD+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 if test -n "$LD"; then 7959 ac_cv_prog_LD="$LD" # Let the user override the test. 7960else 7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962for as_dir in $PATH 7963do 7964 IFS=$as_save_IFS 7965 test -z "$as_dir" && as_dir=. 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7968 ac_cv_prog_LD="$ac_tool_prefix$ac_prog" 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972done 7973 done 7974IFS=$as_save_IFS 7975 7976fi 7977fi 7978LD=$ac_cv_prog_LD 7979if test -n "$LD"; then 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7981$as_echo "$LD" >&6; } 7982else 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7984$as_echo "no" >&6; } 7985fi 7986 7987 7988 test -n "$LD" && break 7989 done 7990fi 7991if test -z "$LD"; then 7992 ac_ct_LD=$LD 7993 for ac_prog in xild ld 7994do 7995 # Extract the first word of "$ac_prog", so it can be a program name with args. 7996set dummy $ac_prog; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_ac_ct_LD+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$ac_ct_LD"; then 8003 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8012 ac_cv_prog_ac_ct_LD="$ac_prog" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022ac_ct_LD=$ac_cv_prog_ac_ct_LD 8023if test -n "$ac_ct_LD"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 8025$as_echo "$ac_ct_LD" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 8032 test -n "$ac_ct_LD" && break 8033done 8034 8035 if test "x$ac_ct_LD" = x; then 8036 LD="false" 8037 else 8038 case $cross_compiling:$ac_tool_warned in 8039yes:) 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8042ac_tool_warned=yes ;; 8043esac 8044 LD=$ac_ct_LD 8045 fi 8046fi 8047 8048 8049 ## fiddle with xiar and xild params, kick ansi aliasing warnings 8050 if test "${ac_cv_prog_ac_ct_AR}" = "xiar"; then 8051 AR="${AR} -qdiag-disable=2102" 8052 fi 8053 if test "${ac_cv_prog_ac_ct_LD}" = "xild"; then 8054 LD="${LD} -qdiag-disable=2102" 8055 fi 8056 8057 else 8058 : 8059 8060 fi 8061 8062 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-prec-div" >&5 8064$as_echo_n "checking whether C compiler accepts -no-prec-div... " >&6; } 8065 8066 ## store werror status, then turn -Werror on 8067 save_ac_c_werror_flag="${ac_c_werror_flag}" 8068 8069ac_c_werror_flag=yes 8070 8071 if ${sxe_cv_c_flag__no_prec_div+:} false; then : 8072 $as_echo_n "(cached) " >&6 8073else 8074 sxe_save_FLAGS="${CFLAGS}" 8075 CFLAGS="-no-prec-div" 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078 8079int 8080main () 8081{ 8082 8083 ; 8084 return 0; 8085} 8086_ACEOF 8087if ac_fn_c_try_compile "$LINENO"; then : 8088 eval sxe_cv_c_flag__no_prec_div="yes" 8089else 8090 eval sxe_cv_c_flag__no_prec_div="no" 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8093 CFLAGS="${sxe_save_FLAGS}" 8094 8095fi 8096 8097 eval sxe_check_flag=$sxe_cv_c_flag__no_prec_div 8098 ac_c_werror_flag="${save_ac_c_werror_flag}" 8099 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 8101$as_echo "${sxe_check_flag}" >&6; } 8102 if test "${sxe_check_flag}" = "yes"; then 8103 : 8104 8105 optiflags="${optiflags} -no-prec-div" 8106 else 8107 : 8108 8109 fi 8110 8111 8112 8113 SXE_CFLAGS="${SXE_CFLAGS} ${debugflags} ${optiflags} ${warnflags}" 8114 8115 ## default flags for needed features 8116 8117 XCCFLAG="${XFLAG}" 8118 8119 ## recent gentoos went ballistic again, they compile PIE gcc's 8120 ## but there's no way to turn that misconduct off ... 8121 ## however I've got one report about a working PIE build 8122 ## we'll just check for -nopie here, if it works, we turn it on 8123 ## (and hence PIE off) and hope bug 16 remains fixed 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -nopie" >&5 8125$as_echo_n "checking whether C compiler accepts -nopie... " >&6; } 8126 8127 ## store werror status, then turn -Werror on 8128 save_ac_c_werror_flag="${ac_c_werror_flag}" 8129 8130ac_c_werror_flag=yes 8131 8132 if ${sxe_cv_c_flag__nopie+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 sxe_save_FLAGS="${CFLAGS}" 8136 CFLAGS="-nopie" 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139 8140int 8141main () 8142{ 8143 8144 ; 8145 return 0; 8146} 8147_ACEOF 8148if ac_fn_c_try_compile "$LINENO"; then : 8149 eval sxe_cv_c_flag__nopie="yes" 8150else 8151 eval sxe_cv_c_flag__nopie="no" 8152fi 8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8154 CFLAGS="${sxe_save_FLAGS}" 8155 8156fi 8157 8158 eval sxe_check_flag=$sxe_cv_c_flag__nopie 8159 ac_c_werror_flag="${save_ac_c_werror_flag}" 8160 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 8162$as_echo "${sxe_check_flag}" >&6; } 8163 if test "${sxe_check_flag}" = "yes"; then 8164 : 8165 featflags="$featflags -nopie" 8166 else 8167 : 8168 8169 fi 8170 8171 8172 ## icc and gcc related 8173 ## check if some stuff can be staticalised 8174 ## actually requires SXE_WARNFLAGS so warnings would be disabled 8175 ## that affect the outcome of the following tests 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-intel" >&5 8177$as_echo_n "checking whether C compiler accepts -static-intel... " >&6; } 8178 8179 ## store werror status, then turn -Werror on 8180 save_ac_c_werror_flag="${ac_c_werror_flag}" 8181 8182ac_c_werror_flag=yes 8183 8184 if ${sxe_cv_c_flag__static_intel+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 sxe_save_FLAGS="${CFLAGS}" 8188 CFLAGS="-static-intel" 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191 8192int 8193main () 8194{ 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_compile "$LINENO"; then : 8201 eval sxe_cv_c_flag__static_intel="yes" 8202else 8203 eval sxe_cv_c_flag__static_intel="no" 8204fi 8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8206 CFLAGS="${sxe_save_FLAGS}" 8207 8208fi 8209 8210 eval sxe_check_flag=$sxe_cv_c_flag__static_intel 8211 ac_c_werror_flag="${save_ac_c_werror_flag}" 8212 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 8214$as_echo "${sxe_check_flag}" >&6; } 8215 if test "${sxe_check_flag}" = "yes"; then 8216 : 8217 8218 featflags="${featflags} -static-intel" 8219 XCCLDFLAGS="${XCCLDFLAGS} \${XCCFLAG} -static-intel" 8220 else 8221 : 8222 : 8223 fi 8224 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5 8226$as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; } 8227 8228 ## store werror status, then turn -Werror on 8229 save_ac_c_werror_flag="${ac_c_werror_flag}" 8230 8231ac_c_werror_flag=yes 8232 8233 if ${sxe_cv_c_flag__static_libgcc+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 sxe_save_FLAGS="${CFLAGS}" 8237 CFLAGS="-static-libgcc" 8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239/* end confdefs.h. */ 8240 8241int 8242main () 8243{ 8244 8245 ; 8246 return 0; 8247} 8248_ACEOF 8249if ac_fn_c_try_compile "$LINENO"; then : 8250 eval sxe_cv_c_flag__static_libgcc="yes" 8251else 8252 eval sxe_cv_c_flag__static_libgcc="no" 8253fi 8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8255 CFLAGS="${sxe_save_FLAGS}" 8256 8257fi 8258 8259 eval sxe_check_flag=$sxe_cv_c_flag__static_libgcc 8260 ac_c_werror_flag="${save_ac_c_werror_flag}" 8261 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 8263$as_echo "${sxe_check_flag}" >&6; } 8264 if test "${sxe_check_flag}" = "yes"; then 8265 : 8266 8267 featflags="${featflags} -static-libgcc" 8268 XCCLDFLAGS="${XCCLDFLAGS} \${XCCFLAG} -static-libgcc" 8269 else 8270 : 8271 : 8272 fi 8273 8274 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -intel-extensions" >&5 8276$as_echo_n "checking whether C compiler accepts -intel-extensions... " >&6; } 8277 8278 ## store werror status, then turn -Werror on 8279 save_ac_c_werror_flag="${ac_c_werror_flag}" 8280 8281ac_c_werror_flag=yes 8282 8283 if ${sxe_cv_c_flag__intel_extensions+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 sxe_save_FLAGS="${CFLAGS}" 8287 CFLAGS="-intel-extensions" 8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8289/* end confdefs.h. */ 8290 8291int 8292main () 8293{ 8294 8295 ; 8296 return 0; 8297} 8298_ACEOF 8299if ac_fn_c_try_compile "$LINENO"; then : 8300 eval sxe_cv_c_flag__intel_extensions="yes" 8301else 8302 eval sxe_cv_c_flag__intel_extensions="no" 8303fi 8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8305 CFLAGS="${sxe_save_FLAGS}" 8306 8307fi 8308 8309 eval sxe_check_flag=$sxe_cv_c_flag__intel_extensions 8310 ac_c_werror_flag="${save_ac_c_werror_flag}" 8311 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 8313$as_echo "${sxe_check_flag}" >&6; } 8314 if test "${sxe_check_flag}" = "yes"; then 8315 : 8316 featflags="${featflags} -intel-extensions" 8317 else 8318 : 8319 8320 fi 8321 8322 8323 ## check if ipo needs passing to the linker 8324 if test "${sxe_cv_c_flag__ipo}" = "yes"; then 8325 XCCLDFLAGS="${XCCLDFLAGS} \${XCCFLAG} -ipo" 8326 fi 8327 ## also pass on some diags to the linker 8328 if test "${sxe_cv_c_flag__diag_disable_10237}" = "yes"; then 8329 XCCLDFLAGS="${XCCLDFLAGS} \${XCCFLAG} -diag-disable=10237" 8330 fi 8331 if test "${sxe_cv_c_flag__diag_disable_2102}" = "yes"; then 8332 XCCLDFLAGS="${XCCLDFLAGS} \${XCCFLAG} -diag-disable=2102" 8333 fi 8334 8335 8336 8337 8338 SXE_CFLAGS="${SXE_CFLAGS} ${featflags}" 8339 8340 save_ac_c_werror_flag="${ac_c_werror_flag}" 8341 8342 CFLAGS="${CFLAGS} ${SXE_CFLAGS} ${EXTRA_CFLAGS}" 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred CFLAGS" >&5 8344$as_echo_n "checking for preferred CFLAGS... " >&6; } 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8346$as_echo "${CFLAGS}" >&6; } 8347 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: 8349If you wish to APPEND your own flags you want to stop here and rerun the 8350configure script like so: 8351 configure EXTRA_CFLAGS=<to-be-added-flags> 8352 8353If you wish to OVERRIDE these flags you want to stop here too and rerun 8354the configure script like this: 8355 configure CFLAGS=<the-definitive-flags-I-want> 8356 8357You can always override the determined CFLAGS, partially or totally, 8358using 8359 make -C <directory> CFLAGS=<your-own-flags> target 8360or 8361 make CFLAGS=<your-own-flags> target 8362respectively 8363 " >&5 8364$as_echo "$as_me: 8365If you wish to APPEND your own flags you want to stop here and rerun the 8366configure script like so: 8367 configure EXTRA_CFLAGS=<to-be-added-flags> 8368 8369If you wish to OVERRIDE these flags you want to stop here too and rerun 8370the configure script like this: 8371 configure CFLAGS=<the-definitive-flags-I-want> 8372 8373You can always override the determined CFLAGS, partially or totally, 8374using 8375 make -C <directory> CFLAGS=<your-own-flags> target 8376or 8377 make CFLAGS=<your-own-flags> target 8378respectively 8379 " >&6;} 8380 8381 ac_c_werror_flag="${save_ac_c_werror_flag}" 8382 8383 8384## check/generate version files 8385## initially generate version.mk and yuck.version here 8386## because only GNU make can do this at make time 8387 8388 8389 8390 ac_ext=c 8391ac_cpp='$CPP $CPPFLAGS' 8392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8394ac_compiler_gnu=$ac_cv_c_compiler_gnu 8395 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 8397$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 8398if ${ac_cv_prog_cc_c99+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 ac_cv_prog_cc_c99=no 8402ac_save_CC=$CC 8403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405#include <stdarg.h> 8406#include <stdbool.h> 8407#include <stdlib.h> 8408#include <wchar.h> 8409#include <stdio.h> 8410 8411// Check varargs macros. These examples are taken from C99 6.10.3.5. 8412#define debug(...) fprintf (stderr, __VA_ARGS__) 8413#define showlist(...) puts (#__VA_ARGS__) 8414#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 8415static void 8416test_varargs_macros (void) 8417{ 8418 int x = 1234; 8419 int y = 5678; 8420 debug ("Flag"); 8421 debug ("X = %d\n", x); 8422 showlist (The first, second, and third items.); 8423 report (x>y, "x is %d but y is %d", x, y); 8424} 8425 8426// Check long long types. 8427#define BIG64 18446744073709551615ull 8428#define BIG32 4294967295ul 8429#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 8430#if !BIG_OK 8431 your preprocessor is broken; 8432#endif 8433#if BIG_OK 8434#else 8435 your preprocessor is broken; 8436#endif 8437static long long int bignum = -9223372036854775807LL; 8438static unsigned long long int ubignum = BIG64; 8439 8440struct incomplete_array 8441{ 8442 int datasize; 8443 double data[]; 8444}; 8445 8446struct named_init { 8447 int number; 8448 const wchar_t *name; 8449 double average; 8450}; 8451 8452typedef const char *ccp; 8453 8454static inline int 8455test_restrict (ccp restrict text) 8456{ 8457 // See if C++-style comments work. 8458 // Iterate through items via the restricted pointer. 8459 // Also check for declarations in for loops. 8460 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 8461 continue; 8462 return 0; 8463} 8464 8465// Check varargs and va_copy. 8466static void 8467test_varargs (const char *format, ...) 8468{ 8469 va_list args; 8470 va_start (args, format); 8471 va_list args_copy; 8472 va_copy (args_copy, args); 8473 8474 const char *str; 8475 int number; 8476 float fnumber; 8477 8478 while (*format) 8479 { 8480 switch (*format++) 8481 { 8482 case 's': // string 8483 str = va_arg (args_copy, const char *); 8484 break; 8485 case 'd': // int 8486 number = va_arg (args_copy, int); 8487 break; 8488 case 'f': // float 8489 fnumber = va_arg (args_copy, double); 8490 break; 8491 default: 8492 break; 8493 } 8494 } 8495 va_end (args_copy); 8496 va_end (args); 8497} 8498 8499int 8500main () 8501{ 8502 8503 // Check bool. 8504 _Bool success = false; 8505 8506 // Check restrict. 8507 if (test_restrict ("String literal") == 0) 8508 success = true; 8509 char *restrict newvar = "Another string"; 8510 8511 // Check varargs. 8512 test_varargs ("s, d' f .", "string", 65, 34.234); 8513 test_varargs_macros (); 8514 8515 // Check flexible array members. 8516 struct incomplete_array *ia = 8517 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 8518 ia->datasize = 10; 8519 for (int i = 0; i < ia->datasize; ++i) 8520 ia->data[i] = i * 1.234; 8521 8522 // Check named initializers. 8523 struct named_init ni = { 8524 .number = 34, 8525 .name = L"Test wide string", 8526 .average = 543.34343, 8527 }; 8528 8529 ni.number = 58; 8530 8531 int dynamic_array[ni.number]; 8532 dynamic_array[ni.number - 1] = 543; 8533 8534 // work around unused variable warnings 8535 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 8536 || dynamic_array[ni.number - 1] != 543); 8537 8538 ; 8539 return 0; 8540} 8541_ACEOF 8542for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 8543do 8544 CC="$ac_save_CC $ac_arg" 8545 if ac_fn_c_try_compile "$LINENO"; then : 8546 ac_cv_prog_cc_c99=$ac_arg 8547fi 8548rm -f core conftest.err conftest.$ac_objext 8549 test "x$ac_cv_prog_cc_c99" != "xno" && break 8550done 8551rm -f conftest.$ac_ext 8552CC=$ac_save_CC 8553 8554fi 8555# AC_CACHE_VAL 8556case "x$ac_cv_prog_cc_c99" in 8557 x) 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8559$as_echo "none needed" >&6; } ;; 8560 xno) 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8562$as_echo "unsupported" >&6; } ;; 8563 *) 8564 CC="$CC $ac_cv_prog_cc_c99" 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 8566$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 8567esac 8568if test "x$ac_cv_prog_cc_c99" != xno; then : 8569 8570fi 8571 8572 8573 ## use our yuck-scmver tool 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stipulated version files" >&5 8575$as_echo_n "checking for stipulated version files... " >&6; } 8576 save_CPPFLAGS="${CPPFLAGS}" 8577 CPPFLAGS="-I${srcdir}/src -I${ac_aux_dir} ${CPPFLAGS}" 8578 if test "$cross_compiling" = yes; then : 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible, cross-compiling" >&5 8580$as_echo "impossible, cross-compiling" >&6; } 8581 if test -f "version.mk" -o \ 8582 -f "${srcdir}/version.mk" -o \ 8583 -f "${srcdir}/.version"; then 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: 8585Files that (possibly) mandate versions have been detected. 8586These are \`version.mk' or \`${srcdir}/version.mk' or \`${srcdir}/.version'. 8587However, their contents cannot be automatically checked for integrity 8588due to building for a platform other than the current one 8589(cross-compiling). 8590 8591I will proceed with the most conservative guess for the stipulated 8592version, which is \`${VERSION}'. 8593 8594If that appears to be wrong, or needs overriding, please edit the 8595aforementioned files manually. 8596 8597Also note, even though this project comes with all the tools to 8598perform a successful bootstrap for any of the files above, should 8599they go out of date or be deleted, they don't support cross-builds. 8600 " >&5 8601$as_echo "$as_me: 8602Files that (possibly) mandate versions have been detected. 8603These are \`version.mk' or \`${srcdir}/version.mk' or \`${srcdir}/.version'. 8604However, their contents cannot be automatically checked for integrity 8605due to building for a platform other than the current one 8606(cross-compiling). 8607 8608I will proceed with the most conservative guess for the stipulated 8609version, which is \`${VERSION}'. 8610 8611If that appears to be wrong, or needs overriding, please edit the 8612aforementioned files manually. 8613 8614Also note, even though this project comes with all the tools to 8615perform a successful bootstrap for any of the files above, should 8616they go out of date or be deleted, they don't support cross-builds. 8617 " >&6;} 8618 fi 8619 8620else 8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8622/* end confdefs.h. */ 8623 8624#define CONFIGURE 8625#define _XOPEN_SOURCE 600 8626#define VERSION_FILE "${srcdir}/.version" 8627#include "yuck-scmver.c" 8628 8629_ACEOF 8630if ac_fn_c_try_run "$LINENO"; then : 8631 STIP_VERSION=`./conftest$EXEEXT` 8632else 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8634$as_echo "none" >&6; } 8635fi 8636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8637 conftest.$ac_objext conftest.beam conftest.$ac_ext 8638fi 8639 8640 CPPFLAGS="${save_CPPFLAGS}" 8641 ac_ext=c 8642ac_cpp='$CPP $CPPFLAGS' 8643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8645ac_compiler_gnu=$ac_cv_c_compiler_gnu 8646 8647 8648 if test -n "${STIP_VERSION}"; then 8649 VERSION="${STIP_VERSION}" 8650 fi 8651 ## also massage version.mk file 8652 if test -f "version.mk" -a ! -w "version.mk"; then 8653 : 8654 elif test -f "${srcdir}/version.mk"; then 8655 ## make sure it's in the builddir as well 8656 cp -p "${srcdir}/version.mk" "version.mk" 2>/dev/null 8657 elif test -f "${srcdir}/version.mk.in"; then 8658 ${M4-m4} -DYUCK_SCMVER_VERSION="${VERSION}" \ 8659 "${srcdir}/version.mk.in" > "version.mk" 8660 else 8661 echo "VERSION = ${VERSION}" > "version.mk" 8662 fi 8663 ## make sure .version is generated (for version.mk target in GNUmakefile) 8664 if test -f "${srcdir}/.version"; then 8665 cp -p "${srcdir}/.version" ".version" 2>/dev/null 8666 else 8667 echo "v${VERSION}" > ".version" 2>/dev/null 8668 fi 8669 8670 8671 8672ac_config_links="$ac_config_links GNUmakefile:GNUmakefile" 8673 8674 8675## check for clitosis helper 8676 ## check for pseudo-tty support 8677 for ac_header in pty.h 8678do : 8679 ac_fn_c_check_header_mongrel "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 8680if test "x$ac_cv_header_pty_h" = xyes; then : 8681 cat >>confdefs.h <<_ACEOF 8682#define HAVE_PTY_H 1 8683_ACEOF 8684 8685fi 8686 8687done 8688 8689 if test "${ac_cv_header_pty_h}" = "yes"; then 8690 HAVE_PTY_H_TRUE= 8691 HAVE_PTY_H_FALSE='#' 8692else 8693 HAVE_PTY_H_TRUE='#' 8694 HAVE_PTY_H_FALSE= 8695fi 8696 8697 8698 ## we might want to use splice(2) 8699 for ac_func in splice 8700do : 8701 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" 8702if test "x$ac_cv_func_splice" = xyes; then : 8703 cat >>confdefs.h <<_ACEOF 8704#define HAVE_SPLICE 1 8705_ACEOF 8706 8707fi 8708done 8709 8710 8711 8712## check for byteorder utils 8713for ac_header in endian.h sys/endian.h machine/endian.h byteorder.h 8714do : 8715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8718 cat >>confdefs.h <<_ACEOF 8719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8720_ACEOF 8721 8722fi 8723 8724done 8725 8726for ac_header in byteswap.h 8727do : 8728 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 8729if test "x$ac_cv_header_byteswap_h" = xyes; then : 8730 cat >>confdefs.h <<_ACEOF 8731#define HAVE_BYTESWAP_H 1 8732_ACEOF 8733 8734fi 8735 8736done 8737 8738for ac_header in sys/param.h 8739do : 8740 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 8741if test "x$ac_cv_header_sys_param_h" = xyes; then : 8742 cat >>confdefs.h <<_ACEOF 8743#define HAVE_SYS_PARAM_H 1 8744_ACEOF 8745 8746fi 8747 8748done 8749 8750for ac_header in sys/types.h 8751do : 8752 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 8753if test "x$ac_cv_header_sys_types_h" = xyes; then : 8754 cat >>confdefs.h <<_ACEOF 8755#define HAVE_SYS_TYPES_H 1 8756_ACEOF 8757 8758fi 8759 8760done 8761 8762 8763## to make lintian happy 8764# Check whether --enable-largefile was given. 8765if test "${enable_largefile+set}" = set; then : 8766 enableval=$enable_largefile; 8767fi 8768 8769if test "$enable_largefile" != no; then 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 8772$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 8773if ${ac_cv_sys_largefile_CC+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 ac_cv_sys_largefile_CC=no 8777 if test "$GCC" != yes; then 8778 ac_save_CC=$CC 8779 while :; do 8780 # IRIX 6.2 and later do not support large files by default, 8781 # so use the C compiler's -n32 option if that helps. 8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8783/* end confdefs.h. */ 8784#include <sys/types.h> 8785 /* Check that off_t can represent 2**63 - 1 correctly. 8786 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8787 since some C++ compilers masquerading as C compilers 8788 incorrectly reject 9223372036854775807. */ 8789#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8791 && LARGE_OFF_T % 2147483647 == 1) 8792 ? 1 : -1]; 8793int 8794main () 8795{ 8796 8797 ; 8798 return 0; 8799} 8800_ACEOF 8801 if ac_fn_c_try_compile "$LINENO"; then : 8802 break 8803fi 8804rm -f core conftest.err conftest.$ac_objext 8805 CC="$CC -n32" 8806 if ac_fn_c_try_compile "$LINENO"; then : 8807 ac_cv_sys_largefile_CC=' -n32'; break 8808fi 8809rm -f core conftest.err conftest.$ac_objext 8810 break 8811 done 8812 CC=$ac_save_CC 8813 rm -f conftest.$ac_ext 8814 fi 8815fi 8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 8817$as_echo "$ac_cv_sys_largefile_CC" >&6; } 8818 if test "$ac_cv_sys_largefile_CC" != no; then 8819 CC=$CC$ac_cv_sys_largefile_CC 8820 fi 8821 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8823$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 8824if ${ac_cv_sys_file_offset_bits+:} false; then : 8825 $as_echo_n "(cached) " >&6 8826else 8827 while :; do 8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8829/* end confdefs.h. */ 8830#include <sys/types.h> 8831 /* Check that off_t can represent 2**63 - 1 correctly. 8832 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8833 since some C++ compilers masquerading as C compilers 8834 incorrectly reject 9223372036854775807. */ 8835#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8837 && LARGE_OFF_T % 2147483647 == 1) 8838 ? 1 : -1]; 8839int 8840main () 8841{ 8842 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847if ac_fn_c_try_compile "$LINENO"; then : 8848 ac_cv_sys_file_offset_bits=no; break 8849fi 8850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853#define _FILE_OFFSET_BITS 64 8854#include <sys/types.h> 8855 /* Check that off_t can represent 2**63 - 1 correctly. 8856 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8857 since some C++ compilers masquerading as C compilers 8858 incorrectly reject 9223372036854775807. */ 8859#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8861 && LARGE_OFF_T % 2147483647 == 1) 8862 ? 1 : -1]; 8863int 8864main () 8865{ 8866 8867 ; 8868 return 0; 8869} 8870_ACEOF 8871if ac_fn_c_try_compile "$LINENO"; then : 8872 ac_cv_sys_file_offset_bits=64; break 8873fi 8874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8875 ac_cv_sys_file_offset_bits=unknown 8876 break 8877done 8878fi 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 8880$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 8881case $ac_cv_sys_file_offset_bits in #( 8882 no | unknown) ;; 8883 *) 8884cat >>confdefs.h <<_ACEOF 8885#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 8886_ACEOF 8887;; 8888esac 8889rm -rf conftest* 8890 if test $ac_cv_sys_file_offset_bits = unknown; then 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 8892$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 8893if ${ac_cv_sys_large_files+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895else 8896 while :; do 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899#include <sys/types.h> 8900 /* Check that off_t can represent 2**63 - 1 correctly. 8901 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8902 since some C++ compilers masquerading as C compilers 8903 incorrectly reject 9223372036854775807. */ 8904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8906 && LARGE_OFF_T % 2147483647 == 1) 8907 ? 1 : -1]; 8908int 8909main () 8910{ 8911 8912 ; 8913 return 0; 8914} 8915_ACEOF 8916if ac_fn_c_try_compile "$LINENO"; then : 8917 ac_cv_sys_large_files=no; break 8918fi 8919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922#define _LARGE_FILES 1 8923#include <sys/types.h> 8924 /* Check that off_t can represent 2**63 - 1 correctly. 8925 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8926 since some C++ compilers masquerading as C compilers 8927 incorrectly reject 9223372036854775807. */ 8928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8930 && LARGE_OFF_T % 2147483647 == 1) 8931 ? 1 : -1]; 8932int 8933main () 8934{ 8935 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940if ac_fn_c_try_compile "$LINENO"; then : 8941 ac_cv_sys_large_files=1; break 8942fi 8943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8944 ac_cv_sys_large_files=unknown 8945 break 8946done 8947fi 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 8949$as_echo "$ac_cv_sys_large_files" >&6; } 8950case $ac_cv_sys_large_files in #( 8951 no | unknown) ;; 8952 *) 8953cat >>confdefs.h <<_ACEOF 8954#define _LARGE_FILES $ac_cv_sys_large_files 8955_ACEOF 8956;; 8957esac 8958rm -rf conftest* 8959 fi 8960fi 8961 8962 8963## check for mmap and friends 8964 for ac_header in sys/mman.h 8965do : 8966 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 8967if test "x$ac_cv_header_sys_mman_h" = xyes; then : 8968 cat >>confdefs.h <<_ACEOF 8969#define HAVE_SYS_MMAN_H 1 8970_ACEOF 8971 8972fi 8973 8974done 8975 8976 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANON maps" >&5 8978$as_echo_n "checking for ANON maps... " >&6; } 8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980/* end confdefs.h. */ 8981 8982#define _POSIX_C_SOURCE 200112L 8983#define _XOPEN_SOURCE 600 8984#define _BSD_SOURCE 8985#if defined HAVE_SYS_MMAN_H 8986# include <sys/mman.h> 8987#endif /* HAVE_SYS_MMAN_H */ 8988#if defined MAP_ANON 8989/* good */ 8990#elif defined MAP_ANONYMOUS 8991/* good too */ 8992#else 8993# error MAP_ANON | MAP_ANONYMOUS needed 8994#endif 8995 8996int 8997main () 8998{ 8999 9000 ; 9001 return 0; 9002} 9003_ACEOF 9004if ac_fn_c_try_compile "$LINENO"; then : 9005 sxe_cv_feat_anon_maps="yes" 9006else 9007 sxe_cv_feat_anon_maps="no" 9008fi 9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9010 if test "${sxe_cv_feat_anon_maps}" = "no"; then 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013 9014#define _POSIX_C_SOURCE 200112L 9015#define _BSD_SOURCE 9016#define _XOPEN_SOURCE 600 9017#define _ALL_SOURCE 9018#if defined HAVE_SYS_MMAN_H 9019# include <sys/mman.h> 9020#endif /* HAVE_SYS_MMAN_H */ 9021#if defined MAP_ANON 9022/* good */ 9023#elif defined MAP_ANONYMOUS 9024/* good too */ 9025#else 9026# error MAP_ANON | MAP_ANONYMOUS needed 9027#endif 9028 9029int 9030main () 9031{ 9032 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037if ac_fn_c_try_compile "$LINENO"; then : 9038 9039 sxe_cv_feat_anon_maps="yes" 9040 9041$as_echo "#define MAP_ANON_NEEDS_ALL_SOURCE 1" >>confdefs.h 9042 9043 9044else 9045 9046 sxe_cv_feat_anon_maps="no" 9047 9048fi 9049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9050 fi 9051 if test "${sxe_cv_feat_anon_maps}" = "no"; then 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054 9055#define _POSIX_C_SOURCE 200112L 9056#define _BSD_SOURCE 9057#define _XOPEN_SOURCE 600 9058#define _DARWIN_C_SOURCE 9059#if defined HAVE_SYS_MMAN_H 9060# include <sys/mman.h> 9061#endif /* HAVE_SYS_MMAN_H */ 9062#if defined MAP_ANON 9063/* good */ 9064#elif defined MAP_ANONYMOUS 9065/* good too */ 9066#else 9067# error MAP_ANON | MAP_ANONYMOUS needed 9068#endif 9069 9070int 9071main () 9072{ 9073 9074 ; 9075 return 0; 9076} 9077_ACEOF 9078if ac_fn_c_try_compile "$LINENO"; then : 9079 9080 sxe_cv_feat_anon_maps="yes" 9081 9082$as_echo "#define MAP_ANON_NEEDS_DARWIN_SOURCE 1" >>confdefs.h 9083 9084 9085else 9086 9087 sxe_cv_feat_anon_maps="no" 9088 9089fi 9090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9091 fi 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_feat_anon_maps}" >&5 9093$as_echo "${sxe_cv_feat_anon_maps}" >&6; } 9094 9095 9096 9097 9098 9099## for getline()/fgetln() code (e.g. tzmap.c) 9100for ac_func in getline 9101do : 9102 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 9103if test "x$ac_cv_func_getline" = xyes; then : 9104 cat >>confdefs.h <<_ACEOF 9105#define HAVE_GETLINE 1 9106_ACEOF 9107 9108fi 9109done 9110 9111for ac_func in fgetln 9112do : 9113 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln" 9114if test "x$ac_cv_func_fgetln" = xyes; then : 9115 cat >>confdefs.h <<_ACEOF 9116#define HAVE_FGETLN 1 9117_ACEOF 9118 9119fi 9120done 9121 9122 9123## AIX' take on stdint 9124for ac_header in sys/stdint.h 9125do : 9126 ac_fn_c_check_header_mongrel "$LINENO" "sys/stdint.h" "ac_cv_header_sys_stdint_h" "$ac_includes_default" 9127if test "x$ac_cv_header_sys_stdint_h" = xyes; then : 9128 cat >>confdefs.h <<_ACEOF 9129#define HAVE_SYS_STDINT_H 1 9130_ACEOF 9131 9132fi 9133 9134done 9135 9136 9137## check for tzfile.h 9138 ac_fn_c_check_header_mongrel "$LINENO" "tzfile.h" "ac_cv_header_tzfile_h" "$ac_includes_default" 9139if test "x$ac_cv_header_tzfile_h" = xyes; then : 9140 9141fi 9142 9143 9144 9145 9146 9147 if test -L "/etc/localtime"; then 9148 TZDIR_cand="`readlink /etc/localtime` ${TZDIR_cand}" 9149 fi 9150 9151 if test -n "${TZDIR}" && test -d "${TZDIR}" ; then 9152 ## bingo 9153 TZDIR_cand="${TZDIR} ${TZDIR_cand}" 9154 fi 9155 9156 # Extract the first word of "tzselect", so it can be a program name with args. 9157set dummy tzselect; ac_word=$2 9158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9159$as_echo_n "checking for $ac_word... " >&6; } 9160if ${ac_cv_path_TZSELECT+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 case $TZSELECT in 9164 [\\/]* | ?:[\\/]*) 9165 ac_cv_path_TZSELECT="$TZSELECT" # Let the user override the test with a path. 9166 ;; 9167 *) 9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9169for as_dir in $PATH 9170do 9171 IFS=$as_save_IFS 9172 test -z "$as_dir" && as_dir=. 9173 for ac_exec_ext in '' $ac_executable_extensions; do 9174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9175 ac_cv_path_TZSELECT="$as_dir/$ac_word$ac_exec_ext" 9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9177 break 2 9178 fi 9179done 9180 done 9181IFS=$as_save_IFS 9182 9183 ;; 9184esac 9185fi 9186TZSELECT=$ac_cv_path_TZSELECT 9187if test -n "$TZSELECT"; then 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TZSELECT" >&5 9189$as_echo "$TZSELECT" >&6; } 9190else 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9192$as_echo "no" >&6; } 9193fi 9194 9195 9196 if test -n "${ac_cv_path_TZSELECT}"; then 9197 valtmp="`mktemp`" 9198 strings "${ac_cv_path_TZSELECT}" | \ 9199 grep -F 'TZDIR=' > "${valtmp}" 9200 . "${valtmp}" 9201 TZDIR_cand="${TZDIR} ${TZDIR_cand}" 9202 rm -f -- "${valtmp}" 9203 fi 9204 9205 TZDIR_cand="${TZDIR_cand} \ 9206/usr/share/zoneinfo \ 9207/usr/lib/zoneinfo \ 9208/usr/local/etc/zoneinfo \ 9209/usr/share/lib/zoneinfo \ 9210" 9211 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TZDIR" >&5 9213$as_echo_n "checking for TZDIR... " >&6; } 9214if ${ax_cv_zoneinfo_tzdir+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 ax_tmp_zoneinfo_nested="yes" 9218 for c in ${TZDIR_cand}; do 9219 ax_cv_zoneinfo_utc="" 9220 for f in "UTC" "UCT" "Universal" "Zulu"; do 9221 9222 9223 9224 9225 9226 9227 if test -z "${ax_tmp_zoneinfo_nested}"; then 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zoneinfo file \"${c}/${f}\"" >&5 9229$as_echo_n "checking zoneinfo file \"${c}/${f}\"... " >&6; } 9230 fi 9231 9232 ac_ext=c 9233ac_cpp='$CPP $CPPFLAGS' 9234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9236ac_compiler_gnu=$ac_cv_c_compiler_gnu 9237 9238 if test "$cross_compiling" = yes; then : 9239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9241as_fn_error $? "cannot run test program while cross compiling 9242See \`config.log' for more details" "$LINENO" 5; } 9243else 9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9245/* end confdefs.h. */ 9246 9247#include <unistd.h> 9248#include <string.h> 9249#include <stdio.h> 9250#include <fcntl.h> 9251 9252 9253 9254/* simplified struct */ 9255struct tzhead { 9256 char tzh_magic[4]; /* TZ_MAGIC */ 9257 char tzh_version[1]; /* '\0' or '2' as of 2005 */ 9258 char tzh_reserved[15]; /* reserved--must be zero */ 9259 char tzh_ttisgmtcnt[4]; /* coded number of trans. time flags */ 9260 char tzh_ttisstdcnt[4]; /* coded number of trans. time flags */ 9261 char tzh_leapcnt[4]; /* coded number of leap seconds */ 9262 char tzh_timecnt[4]; /* coded number of transition times */ 9263 char tzh_typecnt[4]; /* coded number of local time types */ 9264 char tzh_charcnt[4]; /* coded number of abbr. chars */ 9265}; 9266 9267int 9268main(int argc, char *argv[]) 9269{ 9270 struct tzhead foo; 9271 int f; 9272 9273 if (argc <= 1) { 9274 return 0; 9275 } else if ((f = open(argv[1], O_RDONLY, 0644)) < 0) { 9276 return 1; 9277 } else if (read(f, &foo, sizeof(foo)) != sizeof(foo)) { 9278 return 1; 9279 } else if (close(f) < 0) { 9280 return 1; 9281 } 9282 9283 /* inspect the header */ 9284 if (memcmp(foo.tzh_magic, "TZif", sizeof(foo.tzh_magic))) { 9285 return 1; 9286 } else if (*foo.tzh_version && *foo.tzh_version != '2') { 9287 return 1; 9288#if defined CHECK_LEAPCNT 9289 } else if (!foo.tzh_leapcnt[0] && !foo.tzh_leapcnt[1] && 9290 !foo.tzh_leapcnt[2] && !foo.tzh_leapcnt[3]) { 9291 return CHECK_LEAPCNT; 9292#endif /* CHECK_LEAPCNT */ 9293 } 9294 9295 /* otherwise everything's in order */ 9296 return 0; 9297} 9298 9299_ACEOF 9300if ac_fn_c_try_run "$LINENO"; then : 9301 ## call the whole shebang again with the tzfile 9302 if ./conftest$EXEEXT "${c}/${f}"; then 9303 if test -z "${ax_tmp_zoneinfo_nested}"; then 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking good" >&5 9305$as_echo "looking good" >&6; } 9306 fi 9307 9308 ax_cv_zoneinfo_utc="${c}/${f}" 9309 break 9310 9311 else 9312 if test -z "${ax_tmp_zoneinfo_nested}"; then 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking bad ${ax_tmp_rc}" >&5 9314$as_echo "looking bad ${ax_tmp_rc}" >&6; } 9315 fi 9316 9317 fi 9318 9319else 9320 9321 if test -z "${ax_tmp_zoneinfo_nested}"; then 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible" >&5 9323$as_echo "impossible" >&6; } 9324 fi 9325 9326fi 9327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9328 conftest.$ac_objext conftest.beam conftest.$ac_ext 9329fi 9330 9331 ac_ext=c 9332ac_cpp='$CPP $CPPFLAGS' 9333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9335ac_compiler_gnu=$ac_cv_c_compiler_gnu 9336 9337 9338 9339 9340 9341 9342 done 9343 if test -n "${ax_cv_zoneinfo_utc}"; then 9344 ax_cv_zoneinfo_tzdir="${c}" 9345 break 9346 fi 9347 done 9348 ax_tmp_zoneinfo_nested="" 9349 9350fi 9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_zoneinfo_tzdir" >&5 9352$as_echo "$ax_cv_zoneinfo_tzdir" >&6; } 9353 TZDIR="${ax_cv_zoneinfo_tzdir}" 9354 9355 9356 if test -n "${ax_cv_zoneinfo_tzdir}" && test -d "${ax_cv_zoneinfo_tzdir}" ; then 9357 9358$as_echo "#define HAVE_ZONEINFO 1" >>confdefs.h 9359 9360 9361cat >>confdefs.h <<_ACEOF 9362#define TZDIR "${ax_cv_zoneinfo_tzdir}" 9363_ACEOF 9364 9365 fi 9366 9367 if test -n "${ax_cv_zoneinfo_utc}"; then 9368 9369cat >>confdefs.h <<_ACEOF 9370#define ZONEINFO_UTC "${ax_cv_zoneinfo_utc}" 9371_ACEOF 9372 9373 fi 9374 9375 9376 9377 9378 9379 TZDIR_cand="${TZDIR} \ 9380${TZDIR}/leapseconds \ 9381${TZDIR}-leaps \ 9382${TZDIR}/right \ 9383${TZDIR}-posix \ 9384${TZDIR}/posix \ 9385" 9386 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for leap second file" >&5 9388$as_echo_n "checking for leap second file... " >&6; } 9389if ${ax_cv_zoneinfo_utc_right+:} false; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 ax_tmp_zoneinfo_nested="yes" 9393 if test -n "${ax_cv_zoneinfo_utc}"; then 9394 __utc_file="`basename "${ax_cv_zoneinfo_utc}"`" 9395 for c in ${TZDIR_cand}; do 9396 if test -d "${c}"; then 9397 c="${c}/${__utc_file}" 9398 fi 9399 9400 9401 9402 9403 9404 9405 if test -z "${ax_tmp_zoneinfo_nested}"; then 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zoneinfo file \"${c}\"" >&5 9407$as_echo_n "checking zoneinfo file \"${c}\"... " >&6; } 9408 fi 9409 9410 ac_ext=c 9411ac_cpp='$CPP $CPPFLAGS' 9412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9414ac_compiler_gnu=$ac_cv_c_compiler_gnu 9415 9416 if test "$cross_compiling" = yes; then : 9417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9419as_fn_error $? "cannot run test program while cross compiling 9420See \`config.log' for more details" "$LINENO" 5; } 9421else 9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9423/* end confdefs.h. */ 9424 9425#include <unistd.h> 9426#include <string.h> 9427#include <stdio.h> 9428#include <fcntl.h> 9429 9430 9431#define CHECK_LEAPCNT 2 9432 9433 9434/* simplified struct */ 9435struct tzhead { 9436 char tzh_magic[4]; /* TZ_MAGIC */ 9437 char tzh_version[1]; /* '\0' or '2' as of 2005 */ 9438 char tzh_reserved[15]; /* reserved--must be zero */ 9439 char tzh_ttisgmtcnt[4]; /* coded number of trans. time flags */ 9440 char tzh_ttisstdcnt[4]; /* coded number of trans. time flags */ 9441 char tzh_leapcnt[4]; /* coded number of leap seconds */ 9442 char tzh_timecnt[4]; /* coded number of transition times */ 9443 char tzh_typecnt[4]; /* coded number of local time types */ 9444 char tzh_charcnt[4]; /* coded number of abbr. chars */ 9445}; 9446 9447int 9448main(int argc, char *argv[]) 9449{ 9450 struct tzhead foo; 9451 int f; 9452 9453 if (argc <= 1) { 9454 return 0; 9455 } else if ((f = open(argv[1], O_RDONLY, 0644)) < 0) { 9456 return 1; 9457 } else if (read(f, &foo, sizeof(foo)) != sizeof(foo)) { 9458 return 1; 9459 } else if (close(f) < 0) { 9460 return 1; 9461 } 9462 9463 /* inspect the header */ 9464 if (memcmp(foo.tzh_magic, "TZif", sizeof(foo.tzh_magic))) { 9465 return 1; 9466 } else if (*foo.tzh_version && *foo.tzh_version != '2') { 9467 return 1; 9468#if defined CHECK_LEAPCNT 9469 } else if (!foo.tzh_leapcnt[0] && !foo.tzh_leapcnt[1] && 9470 !foo.tzh_leapcnt[2] && !foo.tzh_leapcnt[3]) { 9471 return CHECK_LEAPCNT; 9472#endif /* CHECK_LEAPCNT */ 9473 } 9474 9475 /* otherwise everything's in order */ 9476 return 0; 9477} 9478 9479_ACEOF 9480if ac_fn_c_try_run "$LINENO"; then : 9481 ## call the whole shebang again with the tzfile 9482 if ./conftest$EXEEXT "${c}"; then 9483 if test -z "${ax_tmp_zoneinfo_nested}"; then 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking good" >&5 9485$as_echo "looking good" >&6; } 9486 fi 9487 9488 ax_cv_zoneinfo_utc_right="${c}" 9489 break 9490 9491 else 9492 if test -z "${ax_tmp_zoneinfo_nested}"; then 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking bad ${ax_tmp_rc}" >&5 9494$as_echo "looking bad ${ax_tmp_rc}" >&6; } 9495 fi 9496 : 9497 fi 9498 9499else 9500 9501 if test -z "${ax_tmp_zoneinfo_nested}"; then 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: impossible" >&5 9503$as_echo "impossible" >&6; } 9504 fi 9505 : 9506fi 9507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9508 conftest.$ac_objext conftest.beam conftest.$ac_ext 9509fi 9510 9511 ac_ext=c 9512ac_cpp='$CPP $CPPFLAGS' 9513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9515ac_compiler_gnu=$ac_cv_c_compiler_gnu 9516 9517 9518 9519 9520 9521 9522 done 9523 fi 9524 ax_tmp_zoneinfo_nested="" 9525 9526fi 9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_zoneinfo_utc_right" >&5 9528$as_echo "$ax_cv_zoneinfo_utc_right" >&6; } 9529 ZONEINFO_UTC_RIGHT="${ax_cv_zoneinfo_utc_right}" 9530 9531 9532 9533 if test -n "${ax_cv_zoneinfo_utc_right}"; then 9534 TZDIR_RIGHT="`dirname ${ax_cv_zoneinfo_utc_right}`" 9535 9536 9537$as_echo "#define HAVE_ZONEINFO_RIGHT 1" >>confdefs.h 9538 9539 9540cat >>confdefs.h <<_ACEOF 9541#define TZDIR_RIGHT "${TZDIR_RIGHT}" 9542_ACEOF 9543 9544 9545cat >>confdefs.h <<_ACEOF 9546#define ZONEINFO_UTC_RIGHT "${ax_cv_zoneinfo_utc_right}" 9547_ACEOF 9548 9549 fi 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 if test -n "${ax_cv_zoneinfo_utc_right}"; then 9561 ZONEINFO_UTC_RIGHT_TRUE= 9562 ZONEINFO_UTC_RIGHT_FALSE='#' 9563else 9564 ZONEINFO_UTC_RIGHT_TRUE='#' 9565 ZONEINFO_UTC_RIGHT_FALSE= 9566fi 9567 9568 9569## check for strptime 9570for ac_func in strptime 9571do : 9572 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 9573if test "x$ac_cv_func_strptime" = xyes; then : 9574 cat >>confdefs.h <<_ACEOF 9575#define HAVE_STRPTIME 1 9576_ACEOF 9577 9578fi 9579done 9580 9581have_strptime="${ac_cv_func_strptime}" 9582 if test "${have_strptime}" = "yes"; then 9583 HAVE_STRPTIME_TRUE= 9584 HAVE_STRPTIME_FALSE='#' 9585else 9586 HAVE_STRPTIME_TRUE='#' 9587 HAVE_STRPTIME_FALSE= 9588fi 9589 9590 9591## check for working c1x features 9592 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler can understand anonymous structs and unions" >&5 9594$as_echo_n "checking whether C compiler can understand anonymous structs and unions... " >&6; } 9595 ac_ext=c 9596ac_cpp='$CPP $CPPFLAGS' 9597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9599ac_compiler_gnu=$ac_cv_c_compiler_gnu 9600 9601 9602 ## backup our CFLAGS and unset it 9603 save_CFLAGS="${CFLAGS}" 9604 CFLAGS="" 9605 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608 9609union __test_u { 9610 int i; 9611 struct { 9612 char c; 9613 char padc; 9614 short int pads; 9615 }; 9616}; 9617 9618int 9619main () 9620{ 9621 9622 /* nothing to do really*/ 9623 union __test_u foo; 9624 foo.c = 0; 9625 9626 ; 9627 return 0; 9628} 9629_ACEOF 9630if ac_fn_c_try_compile "$LINENO"; then : 9631 9632 sxe_cv_have_anon_structs_decl="yes" 9633 9634else 9635 9636 sxe_cv_have_anon_structs_decl="no" 9637 9638fi 9639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_have_anon_structs_decl}" >&5 9641$as_echo "${sxe_cv_have_anon_structs_decl}" >&6; } 9642 9643 ## restore CFLAGS 9644 CFLAGS="${save_CFLAGS}" 9645 9646 if test "${sxe_cv_have_anon_structs_decl}" = "yes"; then 9647 9648$as_echo "#define HAVE_ANON_STRUCTS_DECL 1" >>confdefs.h 9649 9650 9651 : 9652 else 9653 9654 : 9655 fi 9656 ac_ext=c 9657ac_cpp='$CPP $CPPFLAGS' 9658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9660ac_compiler_gnu=$ac_cv_c_compiler_gnu 9661 9662 9663 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler can initialise anonymous structs and unions" >&5 9665$as_echo_n "checking whether C compiler can initialise anonymous structs and unions... " >&6; } 9666 ac_ext=c 9667ac_cpp='$CPP $CPPFLAGS' 9668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9670ac_compiler_gnu=$ac_cv_c_compiler_gnu 9671 9672 9673 ## backup our CFLAGS and unset it 9674 save_CFLAGS="${CFLAGS}" 9675 CFLAGS="" 9676 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679 9680union __test_u { 9681 int i; 9682 struct { 9683 char c; 9684 char padc; 9685 short int pads; 9686 }; 9687}; 9688 9689int 9690main () 9691{ 9692 9693 union __test_u tmp = {.c = '4'}; 9694 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699if ac_fn_c_try_compile "$LINENO"; then : 9700 9701 sxe_cv_have_anon_structs_init="yes" 9702 9703else 9704 9705 sxe_cv_have_anon_structs_init="no" 9706 9707fi 9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_have_anon_structs_init}" >&5 9710$as_echo "${sxe_cv_have_anon_structs_init}" >&6; } 9711 9712 ## restore CFLAGS 9713 CFLAGS="${save_CFLAGS}" 9714 9715 if test "${sxe_cv_have_anon_structs_init}" = "yes"; then 9716 9717$as_echo "#define HAVE_ANON_STRUCTS_INIT 1" >>confdefs.h 9718 9719 9720 : 9721 else 9722 9723 : 9724 fi 9725 ac_ext=c 9726ac_cpp='$CPP $CPPFLAGS' 9727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9729ac_compiler_gnu=$ac_cv_c_compiler_gnu 9730 9731 9732 9733 ac_ext=c 9734ac_cpp='$CPP $CPPFLAGS' 9735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9737ac_compiler_gnu=$ac_cv_c_compiler_gnu 9738 9739 9740 ## backup our CFLAGS and unset it 9741 save_CFLAGS="${CFLAGS}" 9742 CFLAGS="-Werror" 9743 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5 9745$as_echo_n "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; } 9746 9747 ## store werror status, then turn -Werror on 9748 save_ac_c_werror_flag="${ac_c_werror_flag}" 9749 9750ac_c_werror_flag=yes 9751 9752 if ${sxe_cv_c_flag__Wmissing_field_initializers+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754else 9755 sxe_save_FLAGS="${CFLAGS}" 9756 CFLAGS="-Wmissing-field-initializers" 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759 9760int 9761main () 9762{ 9763 9764 ; 9765 return 0; 9766} 9767_ACEOF 9768if ac_fn_c_try_compile "$LINENO"; then : 9769 eval sxe_cv_c_flag__Wmissing_field_initializers="yes" 9770else 9771 eval sxe_cv_c_flag__Wmissing_field_initializers="no" 9772fi 9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9774 CFLAGS="${sxe_save_FLAGS}" 9775 9776fi 9777 9778 eval sxe_check_flag=$sxe_cv_c_flag__Wmissing_field_initializers 9779 ac_c_werror_flag="${save_ac_c_werror_flag}" 9780 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 9782$as_echo "${sxe_check_flag}" >&6; } 9783 if test "${sxe_check_flag}" = "yes"; then 9784 : 9785 9786 CFLAGS="${CFLAGS} -Wmissing-field-initializers" 9787 else 9788 : 9789 9790 fi 9791 9792 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler can initialise structs and unions in a sloppy way" >&5 9794$as_echo_n "checking whether C compiler can initialise structs and unions in a sloppy way... " >&6; } 9795 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798 9799struct __test_s { 9800 int i; 9801 int j; 9802}; 9803 9804int 9805main () 9806{ 9807 9808 struct __test_s tmp = {}; 9809 9810 ; 9811 return 0; 9812} 9813_ACEOF 9814if ac_fn_c_try_compile "$LINENO"; then : 9815 9816 sxe_cv_have_sloppy_structs_init="yes" 9817 9818else 9819 9820 sxe_cv_have_sloppy_structs_init="no" 9821 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_have_sloppy_structs_init}" >&5 9825$as_echo "${sxe_cv_have_sloppy_structs_init}" >&6; } 9826 9827 ## restore CFLAGS 9828 CFLAGS="${save_CFLAGS}" 9829 9830 if test "${sxe_cv_have_sloppy_structs_init}" = "yes"; then 9831 9832$as_echo "#define HAVE_SLOPPY_STRUCTS_INIT 1" >>confdefs.h 9833 9834 9835 : 9836 else 9837 9838 : 9839 fi 9840 ac_ext=c 9841ac_cpp='$CPP $CPPFLAGS' 9842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9844ac_compiler_gnu=$ac_cv_c_compiler_gnu 9845 9846 9847 9848if test "${sxe_cv_have_anon_structs_decl}" != "yes"; then 9849 as_fn_error $? "C compiler unusable 9850 9851dateutils make extensive use of c11 anonymous structs/unions but your 9852compiler does not fully support them. 9853Change either the CFLAGS or the compiler. 9854Good day. 9855" "$LINENO" 5 9856fi 9857 9858 9859for ac_prog in flex lex 9860do 9861 # Extract the first word of "$ac_prog", so it can be a program name with args. 9862set dummy $ac_prog; ac_word=$2 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9864$as_echo_n "checking for $ac_word... " >&6; } 9865if ${ac_cv_prog_LEX+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867else 9868 if test -n "$LEX"; then 9869 ac_cv_prog_LEX="$LEX" # Let the user override the test. 9870else 9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9872for as_dir in $PATH 9873do 9874 IFS=$as_save_IFS 9875 test -z "$as_dir" && as_dir=. 9876 for ac_exec_ext in '' $ac_executable_extensions; do 9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9878 ac_cv_prog_LEX="$ac_prog" 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9880 break 2 9881 fi 9882done 9883 done 9884IFS=$as_save_IFS 9885 9886fi 9887fi 9888LEX=$ac_cv_prog_LEX 9889if test -n "$LEX"; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 9891$as_echo "$LEX" >&6; } 9892else 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894$as_echo "no" >&6; } 9895fi 9896 9897 9898 test -n "$LEX" && break 9899done 9900test -n "$LEX" || LEX=":" 9901 9902if test "x$LEX" != "x:"; then 9903 cat >conftest.l <<_ACEOF 9904%% 9905a { ECHO; } 9906b { REJECT; } 9907c { yymore (); } 9908d { yyless (1); } 9909e { yyless (input () != 0); } 9910f { unput (yytext[0]); } 9911. { BEGIN INITIAL; } 9912%% 9913#ifdef YYTEXT_POINTER 9914extern char *yytext; 9915#endif 9916int 9917main (void) 9918{ 9919 return ! yylex () + ! yywrap (); 9920} 9921_ACEOF 9922{ { ac_try="$LEX conftest.l" 9923case "(($ac_try" in 9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9925 *) ac_try_echo=$ac_try;; 9926esac 9927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9928$as_echo "$ac_try_echo"; } >&5 9929 (eval "$LEX conftest.l") 2>&5 9930 ac_status=$? 9931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9932 test $ac_status = 0; } 9933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 9934$as_echo_n "checking lex output file root... " >&6; } 9935if ${ac_cv_prog_lex_root+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937else 9938 9939if test -f lex.yy.c; then 9940 ac_cv_prog_lex_root=lex.yy 9941elif test -f lexyy.c; then 9942 ac_cv_prog_lex_root=lexyy 9943else 9944 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 9945fi 9946fi 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 9948$as_echo "$ac_cv_prog_lex_root" >&6; } 9949LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 9950 9951if test -z "${LEXLIB+set}"; then 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 9953$as_echo_n "checking lex library... " >&6; } 9954if ${ac_cv_lib_lex+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 9958 ac_save_LIBS=$LIBS 9959 ac_cv_lib_lex='none needed' 9960 for ac_lib in '' -lfl -ll; do 9961 LIBS="$ac_lib $ac_save_LIBS" 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964`cat $LEX_OUTPUT_ROOT.c` 9965_ACEOF 9966if ac_fn_c_try_link "$LINENO"; then : 9967 ac_cv_lib_lex=$ac_lib 9968fi 9969rm -f core conftest.err conftest.$ac_objext \ 9970 conftest$ac_exeext conftest.$ac_ext 9971 test "$ac_cv_lib_lex" != 'none needed' && break 9972 done 9973 LIBS=$ac_save_LIBS 9974 9975fi 9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 9977$as_echo "$ac_cv_lib_lex" >&6; } 9978 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 9979fi 9980 9981 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 9983$as_echo_n "checking whether yytext is a pointer... " >&6; } 9984if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986else 9987 # POSIX says lex can declare yytext either as a pointer or an array; the 9988# default is implementation-dependent. Figure out which it is, since 9989# not all implementations provide the %pointer and %array declarations. 9990ac_cv_prog_lex_yytext_pointer=no 9991ac_save_LIBS=$LIBS 9992LIBS="$LEXLIB $ac_save_LIBS" 9993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995 9996 #define YYTEXT_POINTER 1 9997`cat $LEX_OUTPUT_ROOT.c` 9998_ACEOF 9999if ac_fn_c_try_link "$LINENO"; then : 10000 ac_cv_prog_lex_yytext_pointer=yes 10001fi 10002rm -f core conftest.err conftest.$ac_objext \ 10003 conftest$ac_exeext conftest.$ac_ext 10004LIBS=$ac_save_LIBS 10005 10006fi 10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 10008$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 10009if test $ac_cv_prog_lex_yytext_pointer = yes; then 10010 10011$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 10012 10013fi 10014rm -f conftest.l $LEX_OUTPUT_ROOT.c 10015 10016fi 10017if test "$LEX" = :; then 10018 LEX=${am_missing_run}flex 10019fi 10020for ac_prog in 'bison -y' byacc 10021do 10022 # Extract the first word of "$ac_prog", so it can be a program name with args. 10023set dummy $ac_prog; ac_word=$2 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10025$as_echo_n "checking for $ac_word... " >&6; } 10026if ${ac_cv_prog_YACC+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 if test -n "$YACC"; then 10030 ac_cv_prog_YACC="$YACC" # Let the user override the test. 10031else 10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10033for as_dir in $PATH 10034do 10035 IFS=$as_save_IFS 10036 test -z "$as_dir" && as_dir=. 10037 for ac_exec_ext in '' $ac_executable_extensions; do 10038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10039 ac_cv_prog_YACC="$ac_prog" 10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10041 break 2 10042 fi 10043done 10044 done 10045IFS=$as_save_IFS 10046 10047fi 10048fi 10049YACC=$ac_cv_prog_YACC 10050if test -n "$YACC"; then 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 10052$as_echo "$YACC" >&6; } 10053else 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10055$as_echo "no" >&6; } 10056fi 10057 10058 10059 test -n "$YACC" && break 10060done 10061test -n "$YACC" || YACC="yacc" 10062 10063 10064# Extract the first word of "gperf", so it can be a program name with args. 10065set dummy gperf; ac_word=$2 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10067$as_echo_n "checking for $ac_word... " >&6; } 10068if ${ac_cv_path_GPERF+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 case $GPERF in 10072 [\\/]* | ?:[\\/]*) 10073 ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path. 10074 ;; 10075 *) 10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10077for as_dir in $PATH 10078do 10079 IFS=$as_save_IFS 10080 test -z "$as_dir" && as_dir=. 10081 for ac_exec_ext in '' $ac_executable_extensions; do 10082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10083 ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext" 10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10085 break 2 10086 fi 10087done 10088 done 10089IFS=$as_save_IFS 10090 10091 ;; 10092esac 10093fi 10094GPERF=$ac_cv_path_GPERF 10095if test -n "$GPERF"; then 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 10097$as_echo "$GPERF" >&6; } 10098else 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10100$as_echo "no" >&6; } 10101fi 10102 10103 10104if test -z "${GPERF}"; then 10105 GPERF="gperf" 10106fi 10107 10108 10109 10110## check if we've got curl, necessary to d/l the tzmaps 10111# Extract the first word of "curl", so it can be a program name with args. 10112set dummy curl; ac_word=$2 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10114$as_echo_n "checking for $ac_word... " >&6; } 10115if ${ac_cv_path_CURL+:} false; then : 10116 $as_echo_n "(cached) " >&6 10117else 10118 case $CURL in 10119 [\\/]* | ?:[\\/]*) 10120 ac_cv_path_CURL="$CURL" # Let the user override the test with a path. 10121 ;; 10122 *) 10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10124for as_dir in $PATH 10125do 10126 IFS=$as_save_IFS 10127 test -z "$as_dir" && as_dir=. 10128 for ac_exec_ext in '' $ac_executable_extensions; do 10129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10130 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext" 10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10132 break 2 10133 fi 10134done 10135 done 10136IFS=$as_save_IFS 10137 10138 ;; 10139esac 10140fi 10141CURL=$ac_cv_path_CURL 10142if test -n "$CURL"; then 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5 10144$as_echo "$CURL" >&6; } 10145else 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10147$as_echo "no" >&6; } 10148fi 10149 10150 10151 10152 if test -n "${CURL}"; then 10153 HAVE_CURL_TRUE= 10154 HAVE_CURL_FALSE='#' 10155else 10156 HAVE_CURL_TRUE='#' 10157 HAVE_CURL_FALSE= 10158fi 10159 10160 10161# Check whether --enable-tzmap-fetch was given. 10162if test "${enable_tzmap_fetch+set}" = set; then : 10163 enableval=$enable_tzmap_fetch; enable_tzmap_fetch="${enableval}" 10164 if test -z "${CURL}"; then 10165 enable_tzmap_fetch="no" 10166 fi 10167 10168else 10169 enable_tzmap_fetch="no" 10170fi 10171 10172 if test "${enable_tzmap_fetch}" = "yes"; then 10173 FETCH_TZMAPS_TRUE= 10174 FETCH_TZMAPS_FALSE='#' 10175else 10176 FETCH_TZMAPS_TRUE='#' 10177 FETCH_TZMAPS_FALSE= 10178fi 10179 10180 if test `find "${srcdir}/lib" -name '*.tzmap' -print | wc -l` -gt 0; then 10181 HAVE_TZMAPS_TRUE= 10182 HAVE_TZMAPS_FALSE='#' 10183else 10184 HAVE_TZMAPS_TRUE='#' 10185 HAVE_TZMAPS_FALSE= 10186fi 10187 10188 10189 10190# Extract the first word of "date", so it can be a program name with args. 10191set dummy date; ac_word=$2 10192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10193$as_echo_n "checking for $ac_word... " >&6; } 10194if ${ac_cv_path_GDATE+:} false; then : 10195 $as_echo_n "(cached) " >&6 10196else 10197 case $GDATE in 10198 [\\/]* | ?:[\\/]*) 10199 ac_cv_path_GDATE="$GDATE" # Let the user override the test with a path. 10200 ;; 10201 *) 10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10203for as_dir in $PATH 10204do 10205 IFS=$as_save_IFS 10206 test -z "$as_dir" && as_dir=. 10207 for ac_exec_ext in '' $ac_executable_extensions; do 10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10209 ac_cv_path_GDATE="$as_dir/$ac_word$ac_exec_ext" 10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10211 break 2 10212 fi 10213done 10214 done 10215IFS=$as_save_IFS 10216 10217 ;; 10218esac 10219fi 10220GDATE=$ac_cv_path_GDATE 10221if test -n "$GDATE"; then 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDATE" >&5 10223$as_echo "$GDATE" >&6; } 10224else 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10226$as_echo "no" >&6; } 10227fi 10228 10229 10230 10231if test -n "${GDATE}"; then 10232 ## try and use -d 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if date is of GNU flavour" >&5 10234$as_echo_n "checking if date is of GNU flavour... " >&6; } 10235 if "${GDATE}" -d "2012-01-01" >/dev/null 2>/dev/null; then 10236 have_gdate="yes" 10237 else 10238 have_gdate="no" 10239 fi 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gdate}" >&5 10241$as_echo "${have_gdate}" >&6; } 10242fi 10243if test -n "${GDATE}" -a "${have_gdate}" = "yes"; then 10244 ## try and use -d with a big year 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if date is immune to year 2038 problem" >&5 10246$as_echo_n "checking if date is immune to year 2038 problem... " >&6; } 10247 if "${GDATE}" -d "4095-01-01" >/dev/null 2>/dev/null; then 10248 have_gdate_2039="yes" 10249 else 10250 have_gdate_2039="no" 10251 fi 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gdate_2039}" >&5 10253$as_echo "${have_gdate_2039}" >&6; } 10254fi 10255 10256 10257 if test "${have_gdate}" = "yes"; then 10258 HAVE_GDATE_TRUE= 10259 HAVE_GDATE_FALSE='#' 10260else 10261 HAVE_GDATE_TRUE='#' 10262 HAVE_GDATE_FALSE= 10263fi 10264 10265 if test "${have_gdate_2039}" = "yes"; then 10266 HAVE_GDATE_2039_TRUE= 10267 HAVE_GDATE_2039_FALSE='#' 10268else 10269 HAVE_GDATE_2039_TRUE='#' 10270 HAVE_GDATE_2039_FALSE= 10271fi 10272 10273 10274 10275# Check whether --enable-fast-arith was given. 10276if test "${enable_fast_arith+set}" = set; then : 10277 enableval=$enable_fast_arith; enable_fast_arith="${enableval}" 10278else 10279 enable_fast_arith="no" 10280fi 10281 10282 10283# Check whether --enable-contrib was given. 10284if test "${enable_contrib+set}" = set; then : 10285 enableval=$enable_contrib; enable_contrib="${enableval}" 10286else 10287 enable_contrib="no" 10288fi 10289 10290 if test "${enable_contrib}" != "no"; then 10291 WITH_CONTRIB_TRUE= 10292 WITH_CONTRIB_FALSE='#' 10293else 10294 WITH_CONTRIB_TRUE='#' 10295 WITH_CONTRIB_FALSE= 10296fi 10297 10298 10299 10300# Check whether --with-old-names was given. 10301if test "${with_old_names+set}" = set; then : 10302 withval=$with_old_names; with_old_names="${withval}" 10303else 10304 with_old_names="no" 10305fi 10306 10307 if test "${with_old_names}" != "no"; then 10308 WITH_OLD_NAMES_TRUE= 10309 WITH_OLD_NAMES_FALSE='#' 10310else 10311 WITH_OLD_NAMES_TRUE='#' 10312 WITH_OLD_NAMES_FALSE= 10313fi 10314 10315 10316 10317# Check whether --with-old-links was given. 10318if test "${with_old_links+set}" = set; then : 10319 withval=$with_old_links; with_old_links="${withval}" 10320else 10321 with_old_links="yes" 10322fi 10323 10324 if test "${with_old_links}" != "no"; then 10325 WITH_OLD_LINKS_TRUE= 10326 WITH_OLD_LINKS_FALSE='#' 10327else 10328 WITH_OLD_LINKS_TRUE='#' 10329 WITH_OLD_LINKS_FALSE= 10330fi 10331 10332 10333## checks 10334if test "${enable_fast_arith}" = "yes"; then 10335 10336$as_echo "#define WITH_FAST_ARITH 1" >>confdefs.h 10337 10338fi 10339 10340## always define this one for now 10341 10342$as_echo "#define WITH_LEAP_SECONDS 1" >>confdefs.h 10343 10344 if test "1" = "1"; then 10345 WITH_LEAP_SECONDS_TRUE= 10346 WITH_LEAP_SECONDS_FALSE='#' 10347else 10348 WITH_LEAP_SECONDS_TRUE='#' 10349 WITH_LEAP_SECONDS_FALSE= 10350fi 10351 10352 10353## trivial conditional so that the dexpr scanner and parser are built 10354 if test "0" = "1"; then 10355 BUILD_DEXPR_TRUE= 10356 BUILD_DEXPR_FALSE='#' 10357else 10358 BUILD_DEXPR_TRUE='#' 10359 BUILD_DEXPR_FALSE= 10360fi 10361 10362 10363 if test ! -f "${srcdir}/lib/leapseconds.def"; then 10364 BUILD_LTRCC_TRUE= 10365 BUILD_LTRCC_FALSE='#' 10366else 10367 BUILD_LTRCC_TRUE='#' 10368 BUILD_LTRCC_FALSE= 10369fi 10370 10371 10372 10373## check for contrib stuff 10374if test "${enable_contrib}" != "no"; then 10375 ## check for matlab, then octave 10376 foo=`mktemp /tmp/sxe_check_matlab.XXXXXXXXXX` 10377 10378 10379 sxe_cv_matlab="${MATLAB:-matlab}" 10380 10381 10382 sxe_cv_matlabpath="${MATLABPATH:-no}" 10383 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matlab root" >&5 10385$as_echo_n "checking for matlab root... " >&6; } 10386 ## assume no matlab 10387 sxe_cv_matlabroot="no" 10388 10389 "${sxe_cv_matlab}" -e 2>/dev/null | grep "MATLAB" > "${foo}" 10390 10391 ## source that 10392 source "${foo}" 10393 10394 MATLABROOT="${MATLAB}" 10395 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MATLABROOT}" >&5 10397$as_echo "${MATLABROOT}" >&6; } 10398 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matlab toolbox path" >&5 10400$as_echo_n "checking for matlab toolbox path... " >&6; } 10401 if test -z "${sxe_cv_matlabpath}" \ 10402 -o "${sxe_cv_matlabpath}" = "no"; then 10403 MATLABORIGPATH="${MATLABPATH}" 10404 else 10405 MATLABORIGPATH="${MATLABPATH}" 10406 MATLABPATH="${sxe_cv_matlabpath}" 10407 fi 10408 10409 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MATLABPATH}" >&5 10411$as_echo "${MATLABPATH}" >&6; } 10412 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matlab mex file extension" >&5 10414$as_echo_n "checking for matlab mex file extension... " >&6; } 10415 sxe_cv_mexext=`"${MATLABROOT}/bin/mexext" 2>/dev/null` 10416 MEXEXT="${sxe_cv_mexext:-mex}" 10417 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_cv_mexext:-mex (assumed)}" >&5 10419$as_echo "${sxe_cv_mexext:-mex (assumed)}" >&6; } 10420 10421 ## now reset *our* idea of what MATLAB should be 10422 MATLAB="${sxe_cv_matlab}" 10423 10424 10425 10426 if test -n "${matlab_CFLAGS}"; then 10427 : 10428 elif test -z "${MATLABROOT}"; then 10429 ## big cluster fuck 10430 : 10431 else 10432 matlab_CFLAGS="-I${MATLABROOT}/extern/include" 10433 fi 10434 if test -n "${matlab_CFLAGS}"; then 10435 save_CPPFLAGS="${CPPFLAGS}" 10436 CPPFLAGS="${CPPFLAGS} ${matlab_CFLAGS}" 10437 ac_fn_c_check_header_mongrel "$LINENO" "mex.h" "ac_cv_header_mex_h" "$ac_includes_default" 10438if test "x$ac_cv_header_mex_h" = xyes; then : 10439 10440fi 10441 10442 10443 sxe_cv_matlab_mex_h="${ac_cv_header_mex_h}" 10444 unset ac_cv_header_mex_h 10445 CPPFLAGS="${save_CPPFLAGS}" 10446 fi 10447 10448 rm -f -- "${foo}" 10449 10450 ## mimic pkg-config 10451 10452 10453 10454 10455 sxe_cv_octavepath="${OCTAVEPATH:-no}" 10456 10457 ## prep the octave extension path, this is twofold 10458 # Extract the first word of "octave-config", so it can be a program name with args. 10459set dummy octave-config; ac_word=$2 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10461$as_echo_n "checking for $ac_word... " >&6; } 10462if ${ac_cv_path_OCTAVE_CONFIG+:} false; then : 10463 $as_echo_n "(cached) " >&6 10464else 10465 case $OCTAVE_CONFIG in 10466 [\\/]* | ?:[\\/]*) 10467 ac_cv_path_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test with a path. 10468 ;; 10469 *) 10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10471for as_dir in $PATH 10472do 10473 IFS=$as_save_IFS 10474 test -z "$as_dir" && as_dir=. 10475 for ac_exec_ext in '' $ac_executable_extensions; do 10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10477 ac_cv_path_OCTAVE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10479 break 2 10480 fi 10481done 10482 done 10483IFS=$as_save_IFS 10484 10485 ;; 10486esac 10487fi 10488OCTAVE_CONFIG=$ac_cv_path_OCTAVE_CONFIG 10489if test -n "$OCTAVE_CONFIG"; then 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5 10491$as_echo "$OCTAVE_CONFIG" >&6; } 10492else 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10494$as_echo "no" >&6; } 10495fi 10496 10497 10498 if test -n "${OCTAVE_CONFIG}"; then 10499 octave_CFLAGS=-I`"${OCTAVE_CONFIG}" -p OCTINCLUDEDIR` 10500 octave_LIBS=-L`"${OCTAVE_CONFIG}" -p OCTLIBDIR` 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave toolbox path" >&5 10502$as_echo_n "checking for octave toolbox path... " >&6; } 10503 OCTAVEORIGPATH=`"${OCTAVE_CONFIG}" -p LOCALOCTFILEDIR` 10504 OCTAVELIBDIR=`"${OCTAVE_CONFIG}" -p LIBDIR` 10505 OCTAVEPATH=`echo "${OCTAVEORIGPATH#${OCTAVELIBDIR}}"` 10506 if test "${OCTAVEPATH}" = "${OCTAVEORIGPATH}"; then 10507 : 10508 elif test -z "${sxe_cv_octavepath}" \ 10509 -o "${sxe_cv_octavepath}" = "no"; then 10510 ## we did substitute then innit? 10511 OCTAVEPATH="\${libdir}${OCTAVEPATH}" 10512 fi 10513 10514 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OCTAVEPATH}" >&5 10516$as_echo "${OCTAVEPATH}" >&6; } 10517 fi 10518 10519 save_CPPFLAGS="${CPPFLAGS}" 10520 CPPFLAGS="${CPPFLAGS} ${octave_CFLAGS}" 10521 for ac_header in mex.h 10522do : 10523 ac_fn_c_check_header_mongrel "$LINENO" "mex.h" "ac_cv_header_mex_h" "$ac_includes_default" 10524if test "x$ac_cv_header_mex_h" = xyes; then : 10525 cat >>confdefs.h <<_ACEOF 10526#define HAVE_MEX_H 1 10527_ACEOF 10528 10529fi 10530 10531done 10532 10533 for ac_header in octave/mex.h 10534do : 10535 ac_fn_c_check_header_mongrel "$LINENO" "octave/mex.h" "ac_cv_header_octave_mex_h" "$ac_includes_default" 10536if test "x$ac_cv_header_octave_mex_h" = xyes; then : 10537 cat >>confdefs.h <<_ACEOF 10538#define HAVE_OCTAVE_MEX_H 1 10539_ACEOF 10540 10541fi 10542 10543done 10544 10545 if test "${ac_cv_header_mex_h}" = "yes"; then 10546 sxe_cv_octave_mex_h="yes" 10547 elif test "${ac_cv_header_octave_mex_h}" = "yes"; then 10548 sxe_cv_octave_mex_h="yes" 10549 fi 10550 unset ac_cv_header_mex_h 10551 CPPFLAGS="${save_CPPFLAGS}" 10552 10553 if test "${sxe_cv_octave_mex_h}" = "yes"; then 10554 have_octave="yes" 10555 else 10556 have_octave="no" 10557 fi 10558 10559fi 10560 if test "${sxe_cv_matlab_mex_h}" = "yes" -a -n "${MATLABPATH}"; then 10561 BUILD_MEXCLI_TRUE= 10562 BUILD_MEXCLI_FALSE='#' 10563else 10564 BUILD_MEXCLI_TRUE='#' 10565 BUILD_MEXCLI_FALSE= 10566fi 10567 10568 if test "${sxe_cv_octave_mex_h}" = "yes" -a -n "${OCTAVEPATH}"; then 10569 BUILD_OCTCLI_TRUE= 10570 BUILD_OCTCLI_FALSE='#' 10571else 10572 BUILD_OCTCLI_TRUE='#' 10573 BUILD_OCTCLI_FALSE= 10574fi 10575 10576 10577 10578## prepare the summary page 10579if test "${with_old_names}" = "no"; then 10580 dut_apps="dateadd dateconv datediff dategrep dateround dateseq datesort datetest datezone" 10581else 10582 dut_apps="dadd dconv ddiff dgrep dround dseq dsort dtest dzone" 10583fi 10584if test "${have_strptime}" = "yes"; then 10585 misc_apps="strptime" 10586else 10587 misc_apps="none" 10588fi 10589if test "${enable_contrib}" != "no"; then 10590 if test "${sxe_cv_matlab_mex_h}" = "yes"; then 10591 cntrb_apps="${cntrb_apps}${cntrb_apps:+ }tzconv.m(atlab)" 10592 fi 10593 if test "${sxe_cv_octave_mex_h}" = "yes"; then 10594 cntrb_apps="${cntrb_apps}${cntrb_apps:+ }tzconv.m(octave)" 10595 fi 10596else 10597 cntrb_apps="none" 10598fi 10599 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 with sufficient capabilities" >&5 10601$as_echo_n "checking for m4 with sufficient capabilities... " >&6; } 10602 10603 10604 probe_M4="${M4-m4}" 10605 if ${probe_M4} >/dev/null 2>&1 \ 10606 -Dx='y y y y y y y y y y y y y y y y' \ 10607 -Dy='z z z z z z z z z z z z z z z z' \ 10608 -Dz='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' <<'EOF' 10609define(`foo', x) 10610EOF 10611 then 10612 ## ah well done 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${probe_M4}" >&5 10614$as_echo "${probe_M4}" >&6; } 10615 M4="${probe_M4}" 10616 else 10617 ## check if a little buffer massage solves the problem 10618 probe_M4="${M4-m4} -B16384" 10619 if ${probe_M4} >/dev/null 2>&1 \ 10620 -Dx='y y y y y y y y y y y y y y y y' \ 10621 -Dy='z z z z z z z z z z z z z z z z' \ 10622 -Dz='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' <<'EOF' 10623define(`foo', x) 10624EOF 10625 then 10626 ## very well then, let's use -B 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${probe_M4}" >&5 10628$as_echo "${probe_M4}" >&6; } 10629 M4="${probe_M4}" 10630 else 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: m4 on this machine might suffer from big buffers." >&5 10632$as_echo "$as_me: WARNING: m4 on this machine might suffer from big buffers." >&2;} 10633 M4="${M4-m4}" 10634 fi 10635 fi 10636 10637 10638cat >>confdefs.h <<_ACEOF 10639#define YUCK_M4 "${M4}" 10640_ACEOF 10641 10642 10643 10644# Check whether --with-included-yuck was given. 10645if test "${with_included_yuck+set}" = set; then : 10646 withval=$with_included_yuck; with_included_yuck="${withval}" 10647fi 10648 10649 10650 10651 if test "${with_included_yuck}" != "yes"; then 10652 # Extract the first word of "yuck", so it can be a program name with args. 10653set dummy yuck; ac_word=$2 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10655$as_echo_n "checking for $ac_word... " >&6; } 10656if ${ac_cv_path_YUCK+:} false; then : 10657 $as_echo_n "(cached) " >&6 10658else 10659 case $YUCK in 10660 [\\/]* | ?:[\\/]*) 10661 ac_cv_path_YUCK="$YUCK" # Let the user override the test with a path. 10662 ;; 10663 *) 10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10665for as_dir in $PATH 10666do 10667 IFS=$as_save_IFS 10668 test -z "$as_dir" && as_dir=. 10669 for ac_exec_ext in '' $ac_executable_extensions; do 10670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10671 ac_cv_path_YUCK="$as_dir/$ac_word$ac_exec_ext" 10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10673 break 2 10674 fi 10675done 10676 done 10677IFS=$as_save_IFS 10678 10679 ;; 10680esac 10681fi 10682YUCK=$ac_cv_path_YUCK 10683if test -n "$YUCK"; then 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YUCK" >&5 10685$as_echo "$YUCK" >&6; } 10686else 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10688$as_echo "no" >&6; } 10689fi 10690 10691 10692 10693 10694 if test -n "${YUCK}"; then 10695 ## see what m4 they used back then 10696 YUCK_M4=`${YUCK} config --m4 2>/dev/null` 10697 M4="${YUCK_M4-$M4}" 10698 fi 10699 fi 10700 if test "${with_included_yuck}" != "yes" -a -n "${YUCK}"; then 10701 HAVE_YUCK_TRUE= 10702 HAVE_YUCK_FALSE='#' 10703else 10704 HAVE_YUCK_TRUE='#' 10705 HAVE_YUCK_FALSE= 10706fi 10707 10708 10709 ## further requirement is either getline() or fgetln() 10710 for ac_func in getline 10711do : 10712 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 10713if test "x$ac_cv_func_getline" = xyes; then : 10714 cat >>confdefs.h <<_ACEOF 10715#define HAVE_GETLINE 1 10716_ACEOF 10717 10718fi 10719done 10720 10721 for ac_func in fgetln 10722do : 10723 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln" 10724if test "x$ac_cv_func_fgetln" = xyes; then : 10725 cat >>confdefs.h <<_ACEOF 10726#define HAVE_FGETLN 1 10727_ACEOF 10728 10729fi 10730done 10731 10732 10733 10734## check for the ldflags 10735 10736 10737 ## relocation 10738 10739 10740 10741 10742 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z combreloc" >&5 10744$as_echo_n "checking whether linker accepts -z combreloc... " >&6; } 10745 10746 10747ac_c_werror_flag=yes 10748 10749 if ${sxe_cv_c_flags__z_combreloc+:} false; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 10753 sxe_save_FLAGS=$CFLAGS 10754 CFLAGS=" ${XFLAG} -z combreloc" 10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10756/* end confdefs.h. */ 10757 10758int 10759main () 10760{ 10761 10762 ; 10763 return 0; 10764} 10765_ACEOF 10766if ac_fn_c_try_link "$LINENO"; then : 10767 sxe_cv_c_flags__z_combreloc="yes" 10768else 10769 sxe_cv_c_flags__z_combreloc="no" 10770fi 10771rm -f core conftest.err conftest.$ac_objext \ 10772 conftest$ac_exeext conftest.$ac_ext 10773 CFLAGS=$sxe_save_FLAGS 10774fi 10775 10776 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_combreloc 10777 10778ac_c_werror_flag=yes 10779 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 10781$as_echo "$sxe_check_linker_flags" >&6; } 10782 if test "$sxe_check_linker_flags" = "yes"; then 10783 : 10784 else 10785 : 10786 fi 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z nocombreloc" >&5 10799$as_echo_n "checking whether linker accepts -z nocombreloc... " >&6; } 10800 10801 10802ac_c_werror_flag=yes 10803 10804 if ${sxe_cv_c_flags__z_nocombreloc+:} false; then : 10805 $as_echo_n "(cached) " >&6 10806else 10807 10808 sxe_save_FLAGS=$CFLAGS 10809 CFLAGS=" ${XFLAG} -z nocombreloc" 10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811/* end confdefs.h. */ 10812 10813int 10814main () 10815{ 10816 10817 ; 10818 return 0; 10819} 10820_ACEOF 10821if ac_fn_c_try_link "$LINENO"; then : 10822 sxe_cv_c_flags__z_nocombreloc="yes" 10823else 10824 sxe_cv_c_flags__z_nocombreloc="no" 10825fi 10826rm -f core conftest.err conftest.$ac_objext \ 10827 conftest$ac_exeext conftest.$ac_ext 10828 CFLAGS=$sxe_save_FLAGS 10829fi 10830 10831 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_nocombreloc 10832 10833ac_c_werror_flag=yes 10834 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 10836$as_echo "$sxe_check_linker_flags" >&6; } 10837 if test "$sxe_check_linker_flags" = "yes"; then 10838 : 10839 else 10840 : 10841 fi 10842 10843 10844 10845 10846 10847 10848 ## symbols 10849 10850 10851 10852 10853 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z defs" >&5 10855$as_echo_n "checking whether linker accepts -z defs... " >&6; } 10856 10857 10858ac_c_werror_flag=yes 10859 10860 if ${sxe_cv_c_flags__z_defs+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 10864 sxe_save_FLAGS=$CFLAGS 10865 CFLAGS=" ${XFLAG} -z defs" 10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10867/* end confdefs.h. */ 10868 10869int 10870main () 10871{ 10872 10873 ; 10874 return 0; 10875} 10876_ACEOF 10877if ac_fn_c_try_link "$LINENO"; then : 10878 sxe_cv_c_flags__z_defs="yes" 10879else 10880 sxe_cv_c_flags__z_defs="no" 10881fi 10882rm -f core conftest.err conftest.$ac_objext \ 10883 conftest$ac_exeext conftest.$ac_ext 10884 CFLAGS=$sxe_save_FLAGS 10885fi 10886 10887 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_defs 10888 10889ac_c_werror_flag=yes 10890 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 10892$as_echo "$sxe_check_linker_flags" >&6; } 10893 if test "$sxe_check_linker_flags" = "yes"; then 10894 : 10895 else 10896 : 10897 fi 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z muldefs" >&5 10910$as_echo_n "checking whether linker accepts -z muldefs... " >&6; } 10911 10912 10913ac_c_werror_flag=yes 10914 10915 if ${sxe_cv_c_flags__z_muldefs+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 10919 sxe_save_FLAGS=$CFLAGS 10920 CFLAGS=" ${XFLAG} -z muldefs" 10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10922/* end confdefs.h. */ 10923 10924int 10925main () 10926{ 10927 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932if ac_fn_c_try_link "$LINENO"; then : 10933 sxe_cv_c_flags__z_muldefs="yes" 10934else 10935 sxe_cv_c_flags__z_muldefs="no" 10936fi 10937rm -f core conftest.err conftest.$ac_objext \ 10938 conftest$ac_exeext conftest.$ac_ext 10939 CFLAGS=$sxe_save_FLAGS 10940fi 10941 10942 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_muldefs 10943 10944ac_c_werror_flag=yes 10945 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 10947$as_echo "$sxe_check_linker_flags" >&6; } 10948 if test "$sxe_check_linker_flags" = "yes"; then 10949 : 10950 else 10951 : 10952 fi 10953 10954 10955 10956 10957 10958 10959 ## search paths 10960 10961 10962 10963 10964 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z nodefaultlib" >&5 10966$as_echo_n "checking whether linker accepts -z nodefaultlib... " >&6; } 10967 10968 10969ac_c_werror_flag=yes 10970 10971 if ${sxe_cv_c_flags__z_nodefaultlib+:} false; then : 10972 $as_echo_n "(cached) " >&6 10973else 10974 10975 sxe_save_FLAGS=$CFLAGS 10976 CFLAGS=" ${XFLAG} -z nodefaultlib" 10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10978/* end confdefs.h. */ 10979 10980int 10981main () 10982{ 10983 10984 ; 10985 return 0; 10986} 10987_ACEOF 10988if ac_fn_c_try_link "$LINENO"; then : 10989 sxe_cv_c_flags__z_nodefaultlib="yes" 10990else 10991 sxe_cv_c_flags__z_nodefaultlib="no" 10992fi 10993rm -f core conftest.err conftest.$ac_objext \ 10994 conftest$ac_exeext conftest.$ac_ext 10995 CFLAGS=$sxe_save_FLAGS 10996fi 10997 10998 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_nodefaultlib 10999 11000ac_c_werror_flag=yes 11001 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 11003$as_echo "$sxe_check_linker_flags" >&6; } 11004 if test "$sxe_check_linker_flags" = "yes"; then 11005 : 11006 else 11007 : 11008 fi 11009 11010 11011 11012 11013 11014 11015 ## binding policy 11016 11017 11018 11019 11020 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z lazy" >&5 11022$as_echo_n "checking whether linker accepts -z lazy... " >&6; } 11023 11024 11025ac_c_werror_flag=yes 11026 11027 if ${sxe_cv_c_flags__z_lazy+:} false; then : 11028 $as_echo_n "(cached) " >&6 11029else 11030 11031 sxe_save_FLAGS=$CFLAGS 11032 CFLAGS=" ${XFLAG} -z lazy" 11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034/* end confdefs.h. */ 11035 11036int 11037main () 11038{ 11039 11040 ; 11041 return 0; 11042} 11043_ACEOF 11044if ac_fn_c_try_link "$LINENO"; then : 11045 sxe_cv_c_flags__z_lazy="yes" 11046else 11047 sxe_cv_c_flags__z_lazy="no" 11048fi 11049rm -f core conftest.err conftest.$ac_objext \ 11050 conftest$ac_exeext conftest.$ac_ext 11051 CFLAGS=$sxe_save_FLAGS 11052fi 11053 11054 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_lazy 11055 11056ac_c_werror_flag=yes 11057 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 11059$as_echo "$sxe_check_linker_flags" >&6; } 11060 if test "$sxe_check_linker_flags" = "yes"; then 11061 : 11062 else 11063 : 11064 fi 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -z now" >&5 11077$as_echo_n "checking whether linker accepts -z now... " >&6; } 11078 11079 11080ac_c_werror_flag=yes 11081 11082 if ${sxe_cv_c_flags__z_now+:} false; then : 11083 $as_echo_n "(cached) " >&6 11084else 11085 11086 sxe_save_FLAGS=$CFLAGS 11087 CFLAGS=" ${XFLAG} -z now" 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11089/* end confdefs.h. */ 11090 11091int 11092main () 11093{ 11094 11095 ; 11096 return 0; 11097} 11098_ACEOF 11099if ac_fn_c_try_link "$LINENO"; then : 11100 sxe_cv_c_flags__z_now="yes" 11101else 11102 sxe_cv_c_flags__z_now="no" 11103fi 11104rm -f core conftest.err conftest.$ac_objext \ 11105 conftest$ac_exeext conftest.$ac_ext 11106 CFLAGS=$sxe_save_FLAGS 11107fi 11108 11109 eval sxe_check_linker_flags=$sxe_cv_c_flags__z_now 11110 11111ac_c_werror_flag=yes 11112 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 11114$as_echo "$sxe_check_linker_flags" >&6; } 11115 if test "$sxe_check_linker_flags" = "yes"; then 11116 : 11117 else 11118 : 11119 fi 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -export-dynamic" >&5 11130$as_echo_n "checking whether linker accepts -export-dynamic... " >&6; } 11131 11132 11133ac_c_werror_flag=yes 11134 11135 if ${sxe_cv_c_flags__export_dynamic+:} false; then : 11136 $as_echo_n "(cached) " >&6 11137else 11138 11139 sxe_save_FLAGS=$CFLAGS 11140 CFLAGS=" ${XFLAG} -export-dynamic" 11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11142/* end confdefs.h. */ 11143 11144int 11145main () 11146{ 11147 11148 ; 11149 return 0; 11150} 11151_ACEOF 11152if ac_fn_c_try_link "$LINENO"; then : 11153 sxe_cv_c_flags__export_dynamic="yes" 11154else 11155 sxe_cv_c_flags__export_dynamic="no" 11156fi 11157rm -f core conftest.err conftest.$ac_objext \ 11158 conftest$ac_exeext conftest.$ac_ext 11159 CFLAGS=$sxe_save_FLAGS 11160fi 11161 11162 eval sxe_check_linker_flags=$sxe_cv_c_flags__export_dynamic 11163 11164ac_c_werror_flag=yes 11165 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sxe_check_linker_flags" >&5 11167$as_echo "$sxe_check_linker_flags" >&6; } 11168 if test "$sxe_check_linker_flags" = "yes"; then 11169 11170 LD_EXPORT_DYNAMIC="-export-dynamic" 11171 11172 else 11173 : 11174 fi 11175 11176 11177 11178 11179 11180 LDFLAGS="${ldflags} ${ac_cv_env_LDFLAGS_value}" 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred LDFLAGS" >&5 11182$as_echo_n "checking for preferred LDFLAGS... " >&6; } 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LDFLAGS}" >&5 11184$as_echo "${LDFLAGS}" >&6; } 11185 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: 11187If you wish to ADD your own flags you want to stop here and rerun the 11188configure script like so: 11189 configure LDFLAGS=<to-be-added-flags> 11190 11191You can always override the determined LDFLAGS, partially or totally, 11192using 11193 make -C <directory> LDFLAGS=<your-own-flags> target 11194or 11195 make LDFLAGS=<your-own-flags> target 11196respectively 11197 11198NOTE: -C <directory> option is not available on all systems 11199 " >&5 11200$as_echo "$as_me: 11201If you wish to ADD your own flags you want to stop here and rerun the 11202configure script like so: 11203 configure LDFLAGS=<to-be-added-flags> 11204 11205You can always override the determined LDFLAGS, partially or totally, 11206using 11207 make -C <directory> LDFLAGS=<your-own-flags> target 11208or 11209 make LDFLAGS=<your-own-flags> target 11210respectively 11211 11212NOTE: -C <directory> option is not available on all systems 11213 " >&6;} 11214 11215case `pwd` in 11216 *\ * | *\ *) 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11218$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11219esac 11220 11221 11222 11223macro_version='2.4.2' 11224macro_revision='1.3337' 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238ltmain="$ac_aux_dir/ltmain.sh" 11239 11240# Backslashify metacharacters that are still active within 11241# double-quoted strings. 11242sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11243 11244# Same as above, but do not quote variable references. 11245double_quote_subst='s/\(["`\\]\)/\\\1/g' 11246 11247# Sed substitution to delay expansion of an escaped shell variable in a 11248# double_quote_subst'ed string. 11249delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11250 11251# Sed substitution to delay expansion of an escaped single quote. 11252delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11253 11254# Sed substitution to avoid accidental globbing in evaled expressions 11255no_glob_subst='s/\*/\\\*/g' 11256 11257ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11258ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11259ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11260 11261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11262$as_echo_n "checking how to print strings... " >&6; } 11263# Test print first, because it will be a builtin if present. 11264if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11265 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11266 ECHO='print -r --' 11267elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11268 ECHO='printf %s\n' 11269else 11270 # Use this function as a fallback that always works. 11271 func_fallback_echo () 11272 { 11273 eval 'cat <<_LTECHO_EOF 11274$1 11275_LTECHO_EOF' 11276 } 11277 ECHO='func_fallback_echo' 11278fi 11279 11280# func_echo_all arg... 11281# Invoke $ECHO with all args, space-separated. 11282func_echo_all () 11283{ 11284 $ECHO "" 11285} 11286 11287case "$ECHO" in 11288 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11289$as_echo "printf" >&6; } ;; 11290 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11291$as_echo "print -r" >&6; } ;; 11292 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11293$as_echo "cat" >&6; } ;; 11294esac 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11310$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11311if ${ac_cv_path_SED+:} false; then : 11312 $as_echo_n "(cached) " >&6 11313else 11314 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11315 for ac_i in 1 2 3 4 5 6 7; do 11316 ac_script="$ac_script$as_nl$ac_script" 11317 done 11318 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11319 { ac_script=; unset ac_script;} 11320 if test -z "$SED"; then 11321 ac_path_SED_found=false 11322 # Loop through the user's path and test for each of PROGNAME-LIST 11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11324for as_dir in $PATH 11325do 11326 IFS=$as_save_IFS 11327 test -z "$as_dir" && as_dir=. 11328 for ac_prog in sed gsed; do 11329 for ac_exec_ext in '' $ac_executable_extensions; do 11330 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11331 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 11332# Check for GNU ac_path_SED and select it if it is found. 11333 # Check for GNU $ac_path_SED 11334case `"$ac_path_SED" --version 2>&1` in 11335*GNU*) 11336 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11337*) 11338 ac_count=0 11339 $as_echo_n 0123456789 >"conftest.in" 11340 while : 11341 do 11342 cat "conftest.in" "conftest.in" >"conftest.tmp" 11343 mv "conftest.tmp" "conftest.in" 11344 cp "conftest.in" "conftest.nl" 11345 $as_echo '' >> "conftest.nl" 11346 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11348 as_fn_arith $ac_count + 1 && ac_count=$as_val 11349 if test $ac_count -gt ${ac_path_SED_max-0}; then 11350 # Best one so far, save it but keep looking for a better one 11351 ac_cv_path_SED="$ac_path_SED" 11352 ac_path_SED_max=$ac_count 11353 fi 11354 # 10*(2^10) chars as input seems more than enough 11355 test $ac_count -gt 10 && break 11356 done 11357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11358esac 11359 11360 $ac_path_SED_found && break 3 11361 done 11362 done 11363 done 11364IFS=$as_save_IFS 11365 if test -z "$ac_cv_path_SED"; then 11366 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11367 fi 11368else 11369 ac_cv_path_SED=$SED 11370fi 11371 11372fi 11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11374$as_echo "$ac_cv_path_SED" >&6; } 11375 SED="$ac_cv_path_SED" 11376 rm -f conftest.sed 11377 11378test -z "$SED" && SED=sed 11379Xsed="$SED -e 1s/^X//" 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11392$as_echo_n "checking for fgrep... " >&6; } 11393if ${ac_cv_path_FGREP+:} false; then : 11394 $as_echo_n "(cached) " >&6 11395else 11396 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11397 then ac_cv_path_FGREP="$GREP -F" 11398 else 11399 if test -z "$FGREP"; then 11400 ac_path_FGREP_found=false 11401 # Loop through the user's path and test for each of PROGNAME-LIST 11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11403for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11404do 11405 IFS=$as_save_IFS 11406 test -z "$as_dir" && as_dir=. 11407 for ac_prog in fgrep; do 11408 for ac_exec_ext in '' $ac_executable_extensions; do 11409 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11410 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 11411# Check for GNU ac_path_FGREP and select it if it is found. 11412 # Check for GNU $ac_path_FGREP 11413case `"$ac_path_FGREP" --version 2>&1` in 11414*GNU*) 11415 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11416*) 11417 ac_count=0 11418 $as_echo_n 0123456789 >"conftest.in" 11419 while : 11420 do 11421 cat "conftest.in" "conftest.in" >"conftest.tmp" 11422 mv "conftest.tmp" "conftest.in" 11423 cp "conftest.in" "conftest.nl" 11424 $as_echo 'FGREP' >> "conftest.nl" 11425 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11427 as_fn_arith $ac_count + 1 && ac_count=$as_val 11428 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11429 # Best one so far, save it but keep looking for a better one 11430 ac_cv_path_FGREP="$ac_path_FGREP" 11431 ac_path_FGREP_max=$ac_count 11432 fi 11433 # 10*(2^10) chars as input seems more than enough 11434 test $ac_count -gt 10 && break 11435 done 11436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11437esac 11438 11439 $ac_path_FGREP_found && break 3 11440 done 11441 done 11442 done 11443IFS=$as_save_IFS 11444 if test -z "$ac_cv_path_FGREP"; then 11445 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11446 fi 11447else 11448 ac_cv_path_FGREP=$FGREP 11449fi 11450 11451 fi 11452fi 11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11454$as_echo "$ac_cv_path_FGREP" >&6; } 11455 FGREP="$ac_cv_path_FGREP" 11456 11457 11458test -z "$GREP" && GREP=grep 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478# Check whether --with-gnu-ld was given. 11479if test "${with_gnu_ld+set}" = set; then : 11480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11481else 11482 with_gnu_ld=no 11483fi 11484 11485ac_prog=ld 11486if test "$GCC" = yes; then 11487 # Check if gcc -print-prog-name=ld gives a path. 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11489$as_echo_n "checking for ld used by $CC... " >&6; } 11490 case $host in 11491 *-*-mingw*) 11492 # gcc leaves a trailing carriage return which upsets mingw 11493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11494 *) 11495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11496 esac 11497 case $ac_prog in 11498 # Accept absolute paths. 11499 [\\/]* | ?:[\\/]*) 11500 re_direlt='/[^/][^/]*/\.\./' 11501 # Canonicalize the pathname of ld 11502 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11503 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11504 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11505 done 11506 test -z "$LD" && LD="$ac_prog" 11507 ;; 11508 "") 11509 # If it fails, then pretend we aren't using GCC. 11510 ac_prog=ld 11511 ;; 11512 *) 11513 # If it is relative, then search for the first ld in PATH. 11514 with_gnu_ld=unknown 11515 ;; 11516 esac 11517elif test "$with_gnu_ld" = yes; then 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11519$as_echo_n "checking for GNU ld... " >&6; } 11520else 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11522$as_echo_n "checking for non-GNU ld... " >&6; } 11523fi 11524if ${lt_cv_path_LD+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526else 11527 if test -z "$LD"; then 11528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11529 for ac_dir in $PATH; do 11530 IFS="$lt_save_ifs" 11531 test -z "$ac_dir" && ac_dir=. 11532 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11533 lt_cv_path_LD="$ac_dir/$ac_prog" 11534 # Check to see if the program is GNU ld. I'd rather use --version, 11535 # but apparently some variants of GNU ld only accept -v. 11536 # Break only if it was the GNU/non-GNU ld that we prefer. 11537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11538 *GNU* | *'with BFD'*) 11539 test "$with_gnu_ld" != no && break 11540 ;; 11541 *) 11542 test "$with_gnu_ld" != yes && break 11543 ;; 11544 esac 11545 fi 11546 done 11547 IFS="$lt_save_ifs" 11548else 11549 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11550fi 11551fi 11552 11553LD="$lt_cv_path_LD" 11554if test -n "$LD"; then 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11556$as_echo "$LD" >&6; } 11557else 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11559$as_echo "no" >&6; } 11560fi 11561test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11563$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11564if ${lt_cv_prog_gnu_ld+:} false; then : 11565 $as_echo_n "(cached) " >&6 11566else 11567 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11568case `$LD -v 2>&1 </dev/null` in 11569*GNU* | *'with BFD'*) 11570 lt_cv_prog_gnu_ld=yes 11571 ;; 11572*) 11573 lt_cv_prog_gnu_ld=no 11574 ;; 11575esac 11576fi 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11578$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11579with_gnu_ld=$lt_cv_prog_gnu_ld 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11590$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11591if ${lt_cv_path_NM+:} false; then : 11592 $as_echo_n "(cached) " >&6 11593else 11594 if test -n "$NM"; then 11595 # Let the user override the test. 11596 lt_cv_path_NM="$NM" 11597else 11598 lt_nm_to_check="${ac_tool_prefix}nm" 11599 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11600 lt_nm_to_check="$lt_nm_to_check nm" 11601 fi 11602 for lt_tmp_nm in $lt_nm_to_check; do 11603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11604 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11605 IFS="$lt_save_ifs" 11606 test -z "$ac_dir" && ac_dir=. 11607 tmp_nm="$ac_dir/$lt_tmp_nm" 11608 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11609 # Check to see if the nm accepts a BSD-compat flag. 11610 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11611 # nm: unknown option "B" ignored 11612 # Tru64's nm complains that /dev/null is an invalid object file 11613 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11614 */dev/null* | *'Invalid file or object type'*) 11615 lt_cv_path_NM="$tmp_nm -B" 11616 break 11617 ;; 11618 *) 11619 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11620 */dev/null*) 11621 lt_cv_path_NM="$tmp_nm -p" 11622 break 11623 ;; 11624 *) 11625 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11626 continue # so that we can try to find one that supports BSD flags 11627 ;; 11628 esac 11629 ;; 11630 esac 11631 fi 11632 done 11633 IFS="$lt_save_ifs" 11634 done 11635 : ${lt_cv_path_NM=no} 11636fi 11637fi 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11639$as_echo "$lt_cv_path_NM" >&6; } 11640if test "$lt_cv_path_NM" != "no"; then 11641 NM="$lt_cv_path_NM" 11642else 11643 # Didn't find any BSD compatible name lister, look for dumpbin. 11644 if test -n "$DUMPBIN"; then : 11645 # Let the user override the test. 11646 else 11647 if test -n "$ac_tool_prefix"; then 11648 for ac_prog in dumpbin "link -dump" 11649 do 11650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11651set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11653$as_echo_n "checking for $ac_word... " >&6; } 11654if ${ac_cv_prog_DUMPBIN+:} false; then : 11655 $as_echo_n "(cached) " >&6 11656else 11657 if test -n "$DUMPBIN"; then 11658 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11659else 11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11661for as_dir in $PATH 11662do 11663 IFS=$as_save_IFS 11664 test -z "$as_dir" && as_dir=. 11665 for ac_exec_ext in '' $ac_executable_extensions; do 11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11667 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11669 break 2 11670 fi 11671done 11672 done 11673IFS=$as_save_IFS 11674 11675fi 11676fi 11677DUMPBIN=$ac_cv_prog_DUMPBIN 11678if test -n "$DUMPBIN"; then 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11680$as_echo "$DUMPBIN" >&6; } 11681else 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11683$as_echo "no" >&6; } 11684fi 11685 11686 11687 test -n "$DUMPBIN" && break 11688 done 11689fi 11690if test -z "$DUMPBIN"; then 11691 ac_ct_DUMPBIN=$DUMPBIN 11692 for ac_prog in dumpbin "link -dump" 11693do 11694 # Extract the first word of "$ac_prog", so it can be a program name with args. 11695set dummy $ac_prog; ac_word=$2 11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697$as_echo_n "checking for $ac_word... " >&6; } 11698if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 if test -n "$ac_ct_DUMPBIN"; then 11702 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11703else 11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11705for as_dir in $PATH 11706do 11707 IFS=$as_save_IFS 11708 test -z "$as_dir" && as_dir=. 11709 for ac_exec_ext in '' $ac_executable_extensions; do 11710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11711 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11713 break 2 11714 fi 11715done 11716 done 11717IFS=$as_save_IFS 11718 11719fi 11720fi 11721ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11722if test -n "$ac_ct_DUMPBIN"; then 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11724$as_echo "$ac_ct_DUMPBIN" >&6; } 11725else 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11727$as_echo "no" >&6; } 11728fi 11729 11730 11731 test -n "$ac_ct_DUMPBIN" && break 11732done 11733 11734 if test "x$ac_ct_DUMPBIN" = x; then 11735 DUMPBIN=":" 11736 else 11737 case $cross_compiling:$ac_tool_warned in 11738yes:) 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11741ac_tool_warned=yes ;; 11742esac 11743 DUMPBIN=$ac_ct_DUMPBIN 11744 fi 11745fi 11746 11747 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11748 *COFF*) 11749 DUMPBIN="$DUMPBIN -symbols" 11750 ;; 11751 *) 11752 DUMPBIN=: 11753 ;; 11754 esac 11755 fi 11756 11757 if test "$DUMPBIN" != ":"; then 11758 NM="$DUMPBIN" 11759 fi 11760fi 11761test -z "$NM" && NM=nm 11762 11763 11764 11765 11766 11767 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11769$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11770if ${lt_cv_nm_interface+:} false; then : 11771 $as_echo_n "(cached) " >&6 11772else 11773 lt_cv_nm_interface="BSD nm" 11774 echo "int some_variable = 0;" > conftest.$ac_ext 11775 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11776 (eval "$ac_compile" 2>conftest.err) 11777 cat conftest.err >&5 11778 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11779 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11780 cat conftest.err >&5 11781 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11782 cat conftest.out >&5 11783 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11784 lt_cv_nm_interface="MS dumpbin" 11785 fi 11786 rm -f conftest* 11787fi 11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11789$as_echo "$lt_cv_nm_interface" >&6; } 11790 11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11792$as_echo_n "checking whether ln -s works... " >&6; } 11793LN_S=$as_ln_s 11794if test "$LN_S" = "ln -s"; then 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11796$as_echo "yes" >&6; } 11797else 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11799$as_echo "no, using $LN_S" >&6; } 11800fi 11801 11802# find the maximum length of command line arguments 11803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11804$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11805if ${lt_cv_sys_max_cmd_len+:} false; then : 11806 $as_echo_n "(cached) " >&6 11807else 11808 i=0 11809 teststring="ABCD" 11810 11811 case $build_os in 11812 msdosdjgpp*) 11813 # On DJGPP, this test can blow up pretty badly due to problems in libc 11814 # (any single argument exceeding 2000 bytes causes a buffer overrun 11815 # during glob expansion). Even if it were fixed, the result of this 11816 # check would be larger than it should be. 11817 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11818 ;; 11819 11820 gnu*) 11821 # Under GNU Hurd, this test is not required because there is 11822 # no limit to the length of command line arguments. 11823 # Libtool will interpret -1 as no limit whatsoever 11824 lt_cv_sys_max_cmd_len=-1; 11825 ;; 11826 11827 cygwin* | mingw* | cegcc*) 11828 # On Win9x/ME, this test blows up -- it succeeds, but takes 11829 # about 5 minutes as the teststring grows exponentially. 11830 # Worse, since 9x/ME are not pre-emptively multitasking, 11831 # you end up with a "frozen" computer, even though with patience 11832 # the test eventually succeeds (with a max line length of 256k). 11833 # Instead, let's just punt: use the minimum linelength reported by 11834 # all of the supported platforms: 8192 (on NT/2K/XP). 11835 lt_cv_sys_max_cmd_len=8192; 11836 ;; 11837 11838 mint*) 11839 # On MiNT this can take a long time and run out of memory. 11840 lt_cv_sys_max_cmd_len=8192; 11841 ;; 11842 11843 amigaos*) 11844 # On AmigaOS with pdksh, this test takes hours, literally. 11845 # So we just punt and use a minimum line length of 8192. 11846 lt_cv_sys_max_cmd_len=8192; 11847 ;; 11848 11849 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11850 # This has been around since 386BSD, at least. Likely further. 11851 if test -x /sbin/sysctl; then 11852 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11853 elif test -x /usr/sbin/sysctl; then 11854 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11855 else 11856 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11857 fi 11858 # And add a safety zone 11859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11861 ;; 11862 11863 interix*) 11864 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11865 lt_cv_sys_max_cmd_len=196608 11866 ;; 11867 11868 os2*) 11869 # The test takes a long time on OS/2. 11870 lt_cv_sys_max_cmd_len=8192 11871 ;; 11872 11873 osf*) 11874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11876 # nice to cause kernel panics so lets avoid the loop below. 11877 # First set a reasonable default. 11878 lt_cv_sys_max_cmd_len=16384 11879 # 11880 if test -x /sbin/sysconfig; then 11881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11882 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11883 esac 11884 fi 11885 ;; 11886 sco3.2v5*) 11887 lt_cv_sys_max_cmd_len=102400 11888 ;; 11889 sysv5* | sco5v6* | sysv4.2uw2*) 11890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11891 if test -n "$kargmax"; then 11892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11893 else 11894 lt_cv_sys_max_cmd_len=32768 11895 fi 11896 ;; 11897 *) 11898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11899 if test -n "$lt_cv_sys_max_cmd_len"; then 11900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11902 else 11903 # Make teststring a little bigger before we do anything with it. 11904 # a 1K string should be a reasonable start. 11905 for i in 1 2 3 4 5 6 7 8 ; do 11906 teststring=$teststring$teststring 11907 done 11908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11909 # If test is not a shell built-in, we'll probably end up computing a 11910 # maximum length that is only half of the actual maximum length, but 11911 # we can't tell. 11912 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11913 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11914 test $i != 17 # 1/2 MB should be enough 11915 do 11916 i=`expr $i + 1` 11917 teststring=$teststring$teststring 11918 done 11919 # Only check the string length outside the loop. 11920 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11921 teststring= 11922 # Add a significant safety factor because C++ compilers can tack on 11923 # massive amounts of additional arguments before passing them to the 11924 # linker. It appears as though 1/2 is a usable value. 11925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11926 fi 11927 ;; 11928 esac 11929 11930fi 11931 11932if test -n $lt_cv_sys_max_cmd_len ; then 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11934$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11935else 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11937$as_echo "none" >&6; } 11938fi 11939max_cmd_len=$lt_cv_sys_max_cmd_len 11940 11941 11942 11943 11944 11945 11946: ${CP="cp -f"} 11947: ${MV="mv -f"} 11948: ${RM="rm -f"} 11949 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11951$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11952# Try some XSI features 11953xsi_shell=no 11954( _lt_dummy="a/b/c" 11955 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11956 = c,a/b,b/c, \ 11957 && eval 'test $(( 1 + 1 )) -eq 2 \ 11958 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11959 && xsi_shell=yes 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11961$as_echo "$xsi_shell" >&6; } 11962 11963 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11965$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11966lt_shell_append=no 11967( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11968 >/dev/null 2>&1 \ 11969 && lt_shell_append=yes 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11971$as_echo "$lt_shell_append" >&6; } 11972 11973 11974if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11975 lt_unset=unset 11976else 11977 lt_unset=false 11978fi 11979 11980 11981 11982 11983 11984# test EBCDIC or ASCII 11985case `echo X|tr X '\101'` in 11986 A) # ASCII based system 11987 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11988 lt_SP2NL='tr \040 \012' 11989 lt_NL2SP='tr \015\012 \040\040' 11990 ;; 11991 *) # EBCDIC based system 11992 lt_SP2NL='tr \100 \n' 11993 lt_NL2SP='tr \r\n \100\100' 11994 ;; 11995esac 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12006$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12007if ${lt_cv_to_host_file_cmd+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 case $host in 12011 *-*-mingw* ) 12012 case $build in 12013 *-*-mingw* ) # actually msys 12014 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12015 ;; 12016 *-*-cygwin* ) 12017 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12018 ;; 12019 * ) # otherwise, assume *nix 12020 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12021 ;; 12022 esac 12023 ;; 12024 *-*-cygwin* ) 12025 case $build in 12026 *-*-mingw* ) # actually msys 12027 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12028 ;; 12029 *-*-cygwin* ) 12030 lt_cv_to_host_file_cmd=func_convert_file_noop 12031 ;; 12032 * ) # otherwise, assume *nix 12033 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12034 ;; 12035 esac 12036 ;; 12037 * ) # unhandled hosts (and "normal" native builds) 12038 lt_cv_to_host_file_cmd=func_convert_file_noop 12039 ;; 12040esac 12041 12042fi 12043 12044to_host_file_cmd=$lt_cv_to_host_file_cmd 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12046$as_echo "$lt_cv_to_host_file_cmd" >&6; } 12047 12048 12049 12050 12051 12052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12053$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 12054if ${lt_cv_to_tool_file_cmd+:} false; then : 12055 $as_echo_n "(cached) " >&6 12056else 12057 #assume ordinary cross tools, or native build. 12058lt_cv_to_tool_file_cmd=func_convert_file_noop 12059case $host in 12060 *-*-mingw* ) 12061 case $build in 12062 *-*-mingw* ) # actually msys 12063 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12064 ;; 12065 esac 12066 ;; 12067esac 12068 12069fi 12070 12071to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12073$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12074 12075 12076 12077 12078 12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12080$as_echo_n "checking for $LD option to reload object files... " >&6; } 12081if ${lt_cv_ld_reload_flag+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 lt_cv_ld_reload_flag='-r' 12085fi 12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12087$as_echo "$lt_cv_ld_reload_flag" >&6; } 12088reload_flag=$lt_cv_ld_reload_flag 12089case $reload_flag in 12090"" | " "*) ;; 12091*) reload_flag=" $reload_flag" ;; 12092esac 12093reload_cmds='$LD$reload_flag -o $output$reload_objs' 12094case $host_os in 12095 cygwin* | mingw* | pw32* | cegcc*) 12096 if test "$GCC" != yes; then 12097 reload_cmds=false 12098 fi 12099 ;; 12100 darwin*) 12101 if test "$GCC" = yes; then 12102 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 12103 else 12104 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12105 fi 12106 ;; 12107esac 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117if test -n "$ac_tool_prefix"; then 12118 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12119set dummy ${ac_tool_prefix}objdump; ac_word=$2 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12121$as_echo_n "checking for $ac_word... " >&6; } 12122if ${ac_cv_prog_OBJDUMP+:} false; then : 12123 $as_echo_n "(cached) " >&6 12124else 12125 if test -n "$OBJDUMP"; then 12126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12127else 12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12129for as_dir in $PATH 12130do 12131 IFS=$as_save_IFS 12132 test -z "$as_dir" && as_dir=. 12133 for ac_exec_ext in '' $ac_executable_extensions; do 12134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12135 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12137 break 2 12138 fi 12139done 12140 done 12141IFS=$as_save_IFS 12142 12143fi 12144fi 12145OBJDUMP=$ac_cv_prog_OBJDUMP 12146if test -n "$OBJDUMP"; then 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12148$as_echo "$OBJDUMP" >&6; } 12149else 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12151$as_echo "no" >&6; } 12152fi 12153 12154 12155fi 12156if test -z "$ac_cv_prog_OBJDUMP"; then 12157 ac_ct_OBJDUMP=$OBJDUMP 12158 # Extract the first word of "objdump", so it can be a program name with args. 12159set dummy objdump; ac_word=$2 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12161$as_echo_n "checking for $ac_word... " >&6; } 12162if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 if test -n "$ac_ct_OBJDUMP"; then 12166 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12167else 12168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12169for as_dir in $PATH 12170do 12171 IFS=$as_save_IFS 12172 test -z "$as_dir" && as_dir=. 12173 for ac_exec_ext in '' $ac_executable_extensions; do 12174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12175 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12177 break 2 12178 fi 12179done 12180 done 12181IFS=$as_save_IFS 12182 12183fi 12184fi 12185ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12186if test -n "$ac_ct_OBJDUMP"; then 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12188$as_echo "$ac_ct_OBJDUMP" >&6; } 12189else 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12191$as_echo "no" >&6; } 12192fi 12193 12194 if test "x$ac_ct_OBJDUMP" = x; then 12195 OBJDUMP="false" 12196 else 12197 case $cross_compiling:$ac_tool_warned in 12198yes:) 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12201ac_tool_warned=yes ;; 12202esac 12203 OBJDUMP=$ac_ct_OBJDUMP 12204 fi 12205else 12206 OBJDUMP="$ac_cv_prog_OBJDUMP" 12207fi 12208 12209test -z "$OBJDUMP" && OBJDUMP=objdump 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12220$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12221if ${lt_cv_deplibs_check_method+:} false; then : 12222 $as_echo_n "(cached) " >&6 12223else 12224 lt_cv_file_magic_cmd='$MAGIC_CMD' 12225lt_cv_file_magic_test_file= 12226lt_cv_deplibs_check_method='unknown' 12227# Need to set the preceding variable on all platforms that support 12228# interlibrary dependencies. 12229# 'none' -- dependencies not supported. 12230# `unknown' -- same as none, but documents that we really don't know. 12231# 'pass_all' -- all dependencies passed with no checks. 12232# 'test_compile' -- check by making test program. 12233# 'file_magic [[regex]]' -- check by looking for files in library path 12234# which responds to the $file_magic_cmd with a given extended regex. 12235# If you have `file' or equivalent on your system and you're not sure 12236# whether `pass_all' will *always* work, you probably want this one. 12237 12238case $host_os in 12239aix[4-9]*) 12240 lt_cv_deplibs_check_method=pass_all 12241 ;; 12242 12243beos*) 12244 lt_cv_deplibs_check_method=pass_all 12245 ;; 12246 12247bsdi[45]*) 12248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12249 lt_cv_file_magic_cmd='/usr/bin/file -L' 12250 lt_cv_file_magic_test_file=/shlib/libc.so 12251 ;; 12252 12253cygwin*) 12254 # func_win32_libid is a shell function defined in ltmain.sh 12255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12256 lt_cv_file_magic_cmd='func_win32_libid' 12257 ;; 12258 12259mingw* | pw32*) 12260 # Base MSYS/MinGW do not provide the 'file' command needed by 12261 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12262 # unless we find 'file', for example because we are cross-compiling. 12263 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 12264 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 12265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12266 lt_cv_file_magic_cmd='func_win32_libid' 12267 else 12268 # Keep this pattern in sync with the one in func_win32_libid. 12269 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12270 lt_cv_file_magic_cmd='$OBJDUMP -f' 12271 fi 12272 ;; 12273 12274cegcc*) 12275 # use the weaker test based on 'objdump'. See mingw*. 12276 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12277 lt_cv_file_magic_cmd='$OBJDUMP -f' 12278 ;; 12279 12280darwin* | rhapsody*) 12281 lt_cv_deplibs_check_method=pass_all 12282 ;; 12283 12284freebsd* | dragonfly*) 12285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12286 case $host_cpu in 12287 i*86 ) 12288 # Not sure whether the presence of OpenBSD here was a mistake. 12289 # Let's accept both of them until this is cleared up. 12290 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12291 lt_cv_file_magic_cmd=/usr/bin/file 12292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12293 ;; 12294 esac 12295 else 12296 lt_cv_deplibs_check_method=pass_all 12297 fi 12298 ;; 12299 12300gnu*) 12301 lt_cv_deplibs_check_method=pass_all 12302 ;; 12303 12304haiku*) 12305 lt_cv_deplibs_check_method=pass_all 12306 ;; 12307 12308hpux10.20* | hpux11*) 12309 lt_cv_file_magic_cmd=/usr/bin/file 12310 case $host_cpu in 12311 ia64*) 12312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12313 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12314 ;; 12315 hppa*64*) 12316 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]' 12317 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12318 ;; 12319 *) 12320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12321 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12322 ;; 12323 esac 12324 ;; 12325 12326interix[3-9]*) 12327 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12329 ;; 12330 12331irix5* | irix6* | nonstopux*) 12332 case $LD in 12333 *-32|*"-32 ") libmagic=32-bit;; 12334 *-n32|*"-n32 ") libmagic=N32;; 12335 *-64|*"-64 ") libmagic=64-bit;; 12336 *) libmagic=never-match;; 12337 esac 12338 lt_cv_deplibs_check_method=pass_all 12339 ;; 12340 12341# This must be glibc/ELF. 12342linux* | k*bsd*-gnu | kopensolaris*-gnu) 12343 lt_cv_deplibs_check_method=pass_all 12344 ;; 12345 12346netbsd* | netbsdelf*-gnu) 12347 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12349 else 12350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12351 fi 12352 ;; 12353 12354newos6*) 12355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12356 lt_cv_file_magic_cmd=/usr/bin/file 12357 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12358 ;; 12359 12360*nto* | *qnx*) 12361 lt_cv_deplibs_check_method=pass_all 12362 ;; 12363 12364openbsd*) 12365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12367 else 12368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12369 fi 12370 ;; 12371 12372osf3* | osf4* | osf5*) 12373 lt_cv_deplibs_check_method=pass_all 12374 ;; 12375 12376rdos*) 12377 lt_cv_deplibs_check_method=pass_all 12378 ;; 12379 12380solaris*) 12381 lt_cv_deplibs_check_method=pass_all 12382 ;; 12383 12384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12385 lt_cv_deplibs_check_method=pass_all 12386 ;; 12387 12388sysv4 | sysv4.3*) 12389 case $host_vendor in 12390 motorola) 12391 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]' 12392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12393 ;; 12394 ncr) 12395 lt_cv_deplibs_check_method=pass_all 12396 ;; 12397 sequent) 12398 lt_cv_file_magic_cmd='/bin/file' 12399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12400 ;; 12401 sni) 12402 lt_cv_file_magic_cmd='/bin/file' 12403 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12404 lt_cv_file_magic_test_file=/lib/libc.so 12405 ;; 12406 siemens) 12407 lt_cv_deplibs_check_method=pass_all 12408 ;; 12409 pc) 12410 lt_cv_deplibs_check_method=pass_all 12411 ;; 12412 esac 12413 ;; 12414 12415tpf*) 12416 lt_cv_deplibs_check_method=pass_all 12417 ;; 12418esac 12419 12420fi 12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12422$as_echo "$lt_cv_deplibs_check_method" >&6; } 12423 12424file_magic_glob= 12425want_nocaseglob=no 12426if test "$build" = "$host"; then 12427 case $host_os in 12428 mingw* | pw32*) 12429 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12430 want_nocaseglob=yes 12431 else 12432 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12433 fi 12434 ;; 12435 esac 12436fi 12437 12438file_magic_cmd=$lt_cv_file_magic_cmd 12439deplibs_check_method=$lt_cv_deplibs_check_method 12440test -z "$deplibs_check_method" && deplibs_check_method=unknown 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463if test -n "$ac_tool_prefix"; then 12464 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12465set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12467$as_echo_n "checking for $ac_word... " >&6; } 12468if ${ac_cv_prog_DLLTOOL+:} false; then : 12469 $as_echo_n "(cached) " >&6 12470else 12471 if test -n "$DLLTOOL"; then 12472 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12473else 12474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12475for as_dir in $PATH 12476do 12477 IFS=$as_save_IFS 12478 test -z "$as_dir" && as_dir=. 12479 for ac_exec_ext in '' $ac_executable_extensions; do 12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12481 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12483 break 2 12484 fi 12485done 12486 done 12487IFS=$as_save_IFS 12488 12489fi 12490fi 12491DLLTOOL=$ac_cv_prog_DLLTOOL 12492if test -n "$DLLTOOL"; then 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12494$as_echo "$DLLTOOL" >&6; } 12495else 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12497$as_echo "no" >&6; } 12498fi 12499 12500 12501fi 12502if test -z "$ac_cv_prog_DLLTOOL"; then 12503 ac_ct_DLLTOOL=$DLLTOOL 12504 # Extract the first word of "dlltool", so it can be a program name with args. 12505set dummy dlltool; ac_word=$2 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12507$as_echo_n "checking for $ac_word... " >&6; } 12508if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12509 $as_echo_n "(cached) " >&6 12510else 12511 if test -n "$ac_ct_DLLTOOL"; then 12512 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12513else 12514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12515for as_dir in $PATH 12516do 12517 IFS=$as_save_IFS 12518 test -z "$as_dir" && as_dir=. 12519 for ac_exec_ext in '' $ac_executable_extensions; do 12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12521 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12523 break 2 12524 fi 12525done 12526 done 12527IFS=$as_save_IFS 12528 12529fi 12530fi 12531ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12532if test -n "$ac_ct_DLLTOOL"; then 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12534$as_echo "$ac_ct_DLLTOOL" >&6; } 12535else 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12537$as_echo "no" >&6; } 12538fi 12539 12540 if test "x$ac_ct_DLLTOOL" = x; then 12541 DLLTOOL="false" 12542 else 12543 case $cross_compiling:$ac_tool_warned in 12544yes:) 12545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12547ac_tool_warned=yes ;; 12548esac 12549 DLLTOOL=$ac_ct_DLLTOOL 12550 fi 12551else 12552 DLLTOOL="$ac_cv_prog_DLLTOOL" 12553fi 12554 12555test -z "$DLLTOOL" && DLLTOOL=dlltool 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12567$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12568if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12569 $as_echo_n "(cached) " >&6 12570else 12571 lt_cv_sharedlib_from_linklib_cmd='unknown' 12572 12573case $host_os in 12574cygwin* | mingw* | pw32* | cegcc*) 12575 # two different shell functions defined in ltmain.sh 12576 # decide which to use based on capabilities of $DLLTOOL 12577 case `$DLLTOOL --help 2>&1` in 12578 *--identify-strict*) 12579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12580 ;; 12581 *) 12582 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12583 ;; 12584 esac 12585 ;; 12586*) 12587 # fallback: assume linklib IS sharedlib 12588 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12589 ;; 12590esac 12591 12592fi 12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12594$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12595sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12596test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12597 12598 12599 12600 12601 12602 12603 12604if test -n "$ac_tool_prefix"; then 12605 for ac_prog in ar 12606 do 12607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12608set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12610$as_echo_n "checking for $ac_word... " >&6; } 12611if ${ac_cv_prog_AR+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 if test -n "$AR"; then 12615 ac_cv_prog_AR="$AR" # Let the user override the test. 12616else 12617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12618for as_dir in $PATH 12619do 12620 IFS=$as_save_IFS 12621 test -z "$as_dir" && as_dir=. 12622 for ac_exec_ext in '' $ac_executable_extensions; do 12623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12624 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12626 break 2 12627 fi 12628done 12629 done 12630IFS=$as_save_IFS 12631 12632fi 12633fi 12634AR=$ac_cv_prog_AR 12635if test -n "$AR"; then 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12637$as_echo "$AR" >&6; } 12638else 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12640$as_echo "no" >&6; } 12641fi 12642 12643 12644 test -n "$AR" && break 12645 done 12646fi 12647if test -z "$AR"; then 12648 ac_ct_AR=$AR 12649 for ac_prog in ar 12650do 12651 # Extract the first word of "$ac_prog", so it can be a program name with args. 12652set dummy $ac_prog; ac_word=$2 12653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12654$as_echo_n "checking for $ac_word... " >&6; } 12655if ${ac_cv_prog_ac_ct_AR+:} false; then : 12656 $as_echo_n "(cached) " >&6 12657else 12658 if test -n "$ac_ct_AR"; then 12659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12660else 12661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12662for as_dir in $PATH 12663do 12664 IFS=$as_save_IFS 12665 test -z "$as_dir" && as_dir=. 12666 for ac_exec_ext in '' $ac_executable_extensions; do 12667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12668 ac_cv_prog_ac_ct_AR="$ac_prog" 12669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12670 break 2 12671 fi 12672done 12673 done 12674IFS=$as_save_IFS 12675 12676fi 12677fi 12678ac_ct_AR=$ac_cv_prog_ac_ct_AR 12679if test -n "$ac_ct_AR"; then 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12681$as_echo "$ac_ct_AR" >&6; } 12682else 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12684$as_echo "no" >&6; } 12685fi 12686 12687 12688 test -n "$ac_ct_AR" && break 12689done 12690 12691 if test "x$ac_ct_AR" = x; then 12692 AR="false" 12693 else 12694 case $cross_compiling:$ac_tool_warned in 12695yes:) 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12698ac_tool_warned=yes ;; 12699esac 12700 AR=$ac_ct_AR 12701 fi 12702fi 12703 12704: ${AR=ar} 12705: ${AR_FLAGS=cru} 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12718$as_echo_n "checking for archiver @FILE support... " >&6; } 12719if ${lt_cv_ar_at_file+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 lt_cv_ar_at_file=no 12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724/* end confdefs.h. */ 12725 12726int 12727main () 12728{ 12729 12730 ; 12731 return 0; 12732} 12733_ACEOF 12734if ac_fn_c_try_compile "$LINENO"; then : 12735 echo conftest.$ac_objext > conftest.lst 12736 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12738 (eval $lt_ar_try) 2>&5 12739 ac_status=$? 12740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12741 test $ac_status = 0; } 12742 if test "$ac_status" -eq 0; then 12743 # Ensure the archiver fails upon bogus file names. 12744 rm -f conftest.$ac_objext libconftest.a 12745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12746 (eval $lt_ar_try) 2>&5 12747 ac_status=$? 12748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12749 test $ac_status = 0; } 12750 if test "$ac_status" -ne 0; then 12751 lt_cv_ar_at_file=@ 12752 fi 12753 fi 12754 rm -f conftest.* libconftest.a 12755 12756fi 12757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12758 12759fi 12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12761$as_echo "$lt_cv_ar_at_file" >&6; } 12762 12763if test "x$lt_cv_ar_at_file" = xno; then 12764 archiver_list_spec= 12765else 12766 archiver_list_spec=$lt_cv_ar_at_file 12767fi 12768 12769 12770 12771 12772 12773 12774 12775if test -n "$ac_tool_prefix"; then 12776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12777set dummy ${ac_tool_prefix}strip; ac_word=$2 12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12779$as_echo_n "checking for $ac_word... " >&6; } 12780if ${ac_cv_prog_STRIP+:} false; then : 12781 $as_echo_n "(cached) " >&6 12782else 12783 if test -n "$STRIP"; then 12784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12785else 12786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12787for as_dir in $PATH 12788do 12789 IFS=$as_save_IFS 12790 test -z "$as_dir" && as_dir=. 12791 for ac_exec_ext in '' $ac_executable_extensions; do 12792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12793 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12795 break 2 12796 fi 12797done 12798 done 12799IFS=$as_save_IFS 12800 12801fi 12802fi 12803STRIP=$ac_cv_prog_STRIP 12804if test -n "$STRIP"; then 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12806$as_echo "$STRIP" >&6; } 12807else 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12809$as_echo "no" >&6; } 12810fi 12811 12812 12813fi 12814if test -z "$ac_cv_prog_STRIP"; then 12815 ac_ct_STRIP=$STRIP 12816 # Extract the first word of "strip", so it can be a program name with args. 12817set dummy strip; ac_word=$2 12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12819$as_echo_n "checking for $ac_word... " >&6; } 12820if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 if test -n "$ac_ct_STRIP"; then 12824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12825else 12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12827for as_dir in $PATH 12828do 12829 IFS=$as_save_IFS 12830 test -z "$as_dir" && as_dir=. 12831 for ac_exec_ext in '' $ac_executable_extensions; do 12832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12833 ac_cv_prog_ac_ct_STRIP="strip" 12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12835 break 2 12836 fi 12837done 12838 done 12839IFS=$as_save_IFS 12840 12841fi 12842fi 12843ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12844if test -n "$ac_ct_STRIP"; then 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12846$as_echo "$ac_ct_STRIP" >&6; } 12847else 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12849$as_echo "no" >&6; } 12850fi 12851 12852 if test "x$ac_ct_STRIP" = x; then 12853 STRIP=":" 12854 else 12855 case $cross_compiling:$ac_tool_warned in 12856yes:) 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12859ac_tool_warned=yes ;; 12860esac 12861 STRIP=$ac_ct_STRIP 12862 fi 12863else 12864 STRIP="$ac_cv_prog_STRIP" 12865fi 12866 12867test -z "$STRIP" && STRIP=: 12868 12869 12870 12871 12872 12873 12874if test -n "$ac_tool_prefix"; then 12875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12876set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12878$as_echo_n "checking for $ac_word... " >&6; } 12879if ${ac_cv_prog_RANLIB+:} false; then : 12880 $as_echo_n "(cached) " >&6 12881else 12882 if test -n "$RANLIB"; then 12883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12884else 12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12886for as_dir in $PATH 12887do 12888 IFS=$as_save_IFS 12889 test -z "$as_dir" && as_dir=. 12890 for ac_exec_ext in '' $ac_executable_extensions; do 12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12894 break 2 12895 fi 12896done 12897 done 12898IFS=$as_save_IFS 12899 12900fi 12901fi 12902RANLIB=$ac_cv_prog_RANLIB 12903if test -n "$RANLIB"; then 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12905$as_echo "$RANLIB" >&6; } 12906else 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12908$as_echo "no" >&6; } 12909fi 12910 12911 12912fi 12913if test -z "$ac_cv_prog_RANLIB"; then 12914 ac_ct_RANLIB=$RANLIB 12915 # Extract the first word of "ranlib", so it can be a program name with args. 12916set dummy ranlib; ac_word=$2 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12918$as_echo_n "checking for $ac_word... " >&6; } 12919if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12920 $as_echo_n "(cached) " >&6 12921else 12922 if test -n "$ac_ct_RANLIB"; then 12923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12924else 12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12926for as_dir in $PATH 12927do 12928 IFS=$as_save_IFS 12929 test -z "$as_dir" && as_dir=. 12930 for ac_exec_ext in '' $ac_executable_extensions; do 12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12932 ac_cv_prog_ac_ct_RANLIB="ranlib" 12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12934 break 2 12935 fi 12936done 12937 done 12938IFS=$as_save_IFS 12939 12940fi 12941fi 12942ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12943if test -n "$ac_ct_RANLIB"; then 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12945$as_echo "$ac_ct_RANLIB" >&6; } 12946else 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12948$as_echo "no" >&6; } 12949fi 12950 12951 if test "x$ac_ct_RANLIB" = x; then 12952 RANLIB=":" 12953 else 12954 case $cross_compiling:$ac_tool_warned in 12955yes:) 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12958ac_tool_warned=yes ;; 12959esac 12960 RANLIB=$ac_ct_RANLIB 12961 fi 12962else 12963 RANLIB="$ac_cv_prog_RANLIB" 12964fi 12965 12966test -z "$RANLIB" && RANLIB=: 12967 12968 12969 12970 12971 12972 12973# Determine commands to create old-style static archives. 12974old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12975old_postinstall_cmds='chmod 644 $oldlib' 12976old_postuninstall_cmds= 12977 12978if test -n "$RANLIB"; then 12979 case $host_os in 12980 openbsd*) 12981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12982 ;; 12983 *) 12984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12985 ;; 12986 esac 12987 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12988fi 12989 12990case $host_os in 12991 darwin*) 12992 lock_old_archive_extraction=yes ;; 12993 *) 12994 lock_old_archive_extraction=no ;; 12995esac 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035# If no C compiler was specified, use CC. 13036LTCC=${LTCC-"$CC"} 13037 13038# If no C compiler flags were specified, use CFLAGS. 13039LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13040 13041# Allow CC to be a program name with arguments. 13042compiler=$CC 13043 13044 13045# Check for command to grab the raw symbol name followed by C symbol from nm. 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13047$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13048if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13049 $as_echo_n "(cached) " >&6 13050else 13051 13052# These are sane defaults that work on at least a few old systems. 13053# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13054 13055# Character class describing NM global symbol codes. 13056symcode='[BCDEGRST]' 13057 13058# Regexp to match symbols that can be accessed directly from C. 13059sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13060 13061# Define system-specific variables. 13062case $host_os in 13063aix*) 13064 symcode='[BCDT]' 13065 ;; 13066cygwin* | mingw* | pw32* | cegcc*) 13067 symcode='[ABCDGISTW]' 13068 ;; 13069hpux*) 13070 if test "$host_cpu" = ia64; then 13071 symcode='[ABCDEGRST]' 13072 fi 13073 ;; 13074irix* | nonstopux*) 13075 symcode='[BCDEGRST]' 13076 ;; 13077osf*) 13078 symcode='[BCDEGQRST]' 13079 ;; 13080solaris*) 13081 symcode='[BDRT]' 13082 ;; 13083sco3.2v5*) 13084 symcode='[DT]' 13085 ;; 13086sysv4.2uw2*) 13087 symcode='[DT]' 13088 ;; 13089sysv5* | sco5v6* | unixware* | OpenUNIX*) 13090 symcode='[ABDT]' 13091 ;; 13092sysv4) 13093 symcode='[DFNSTU]' 13094 ;; 13095esac 13096 13097# If we're using GNU nm, then use its standard symbol codes. 13098case `$NM -V 2>&1` in 13099*GNU* | *'with BFD'*) 13100 symcode='[ABCDGIRSTW]' ;; 13101esac 13102 13103# Transform an extracted symbol line into a proper C declaration. 13104# Some systems (esp. on ia64) link data and code symbols differently, 13105# so use this general approach. 13106lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 13107 13108# Transform an extracted symbol line into symbol name and symbol address 13109lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 13110lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 13111 13112# Handle CRLF in mingw tool chain 13113opt_cr= 13114case $build_os in 13115mingw*) 13116 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13117 ;; 13118esac 13119 13120# Try without a prefix underscore, then with it. 13121for ac_symprfx in "" "_"; do 13122 13123 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13124 symxfrm="\\1 $ac_symprfx\\2 \\2" 13125 13126 # Write the raw and C identifiers. 13127 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13128 # Fake it for dumpbin and say T for any non-static function 13129 # and D for any global variable. 13130 # Also find C++ and __fastcall symbols from MSVC++, 13131 # which start with @ or ?. 13132 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13133" {last_section=section; section=\$ 3};"\ 13134" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13135" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13136" \$ 0!~/External *\|/{next};"\ 13137" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13138" {if(hide[section]) next};"\ 13139" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 13140" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 13141" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 13142" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 13143" ' prfx=^$ac_symprfx" 13144 else 13145 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13146 fi 13147 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13148 13149 # Check to see that the pipe works correctly. 13150 pipe_works=no 13151 13152 rm -f conftest* 13153 cat > conftest.$ac_ext <<_LT_EOF 13154#ifdef __cplusplus 13155extern "C" { 13156#endif 13157char nm_test_var; 13158void nm_test_func(void); 13159void nm_test_func(void){} 13160#ifdef __cplusplus 13161} 13162#endif 13163int main(){nm_test_var='a';nm_test_func();return(0);} 13164_LT_EOF 13165 13166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13167 (eval $ac_compile) 2>&5 13168 ac_status=$? 13169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13170 test $ac_status = 0; }; then 13171 # Now try to grab the symbols. 13172 nlist=conftest.nm 13173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13174 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13175 ac_status=$? 13176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13177 test $ac_status = 0; } && test -s "$nlist"; then 13178 # Try sorting and uniquifying the output. 13179 if sort "$nlist" | uniq > "$nlist"T; then 13180 mv -f "$nlist"T "$nlist" 13181 else 13182 rm -f "$nlist"T 13183 fi 13184 13185 # Make sure that we snagged all the symbols we need. 13186 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13187 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13188 cat <<_LT_EOF > conftest.$ac_ext 13189/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13190#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 13191/* DATA imports from DLLs on WIN32 con't be const, because runtime 13192 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13193# define LT_DLSYM_CONST 13194#elif defined(__osf__) 13195/* This system does not cope well with relocations in const data. */ 13196# define LT_DLSYM_CONST 13197#else 13198# define LT_DLSYM_CONST const 13199#endif 13200 13201#ifdef __cplusplus 13202extern "C" { 13203#endif 13204 13205_LT_EOF 13206 # Now generate the symbol file. 13207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13208 13209 cat <<_LT_EOF >> conftest.$ac_ext 13210 13211/* The mapping between symbol names and symbols. */ 13212LT_DLSYM_CONST struct { 13213 const char *name; 13214 void *address; 13215} 13216lt__PROGRAM__LTX_preloaded_symbols[] = 13217{ 13218 { "@PROGRAM@", (void *) 0 }, 13219_LT_EOF 13220 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13221 cat <<\_LT_EOF >> conftest.$ac_ext 13222 {0, (void *) 0} 13223}; 13224 13225/* This works around a problem in FreeBSD linker */ 13226#ifdef FREEBSD_WORKAROUND 13227static const void *lt_preloaded_setup() { 13228 return lt__PROGRAM__LTX_preloaded_symbols; 13229} 13230#endif 13231 13232#ifdef __cplusplus 13233} 13234#endif 13235_LT_EOF 13236 # Now try linking the two files. 13237 mv conftest.$ac_objext conftstm.$ac_objext 13238 lt_globsym_save_LIBS=$LIBS 13239 lt_globsym_save_CFLAGS=$CFLAGS 13240 LIBS="conftstm.$ac_objext" 13241 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13243 (eval $ac_link) 2>&5 13244 ac_status=$? 13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13246 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 13247 pipe_works=yes 13248 fi 13249 LIBS=$lt_globsym_save_LIBS 13250 CFLAGS=$lt_globsym_save_CFLAGS 13251 else 13252 echo "cannot find nm_test_func in $nlist" >&5 13253 fi 13254 else 13255 echo "cannot find nm_test_var in $nlist" >&5 13256 fi 13257 else 13258 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13259 fi 13260 else 13261 echo "$progname: failed program was:" >&5 13262 cat conftest.$ac_ext >&5 13263 fi 13264 rm -rf conftest* conftst* 13265 13266 # Do not use the global_symbol_pipe unless it works. 13267 if test "$pipe_works" = yes; then 13268 break 13269 else 13270 lt_cv_sys_global_symbol_pipe= 13271 fi 13272done 13273 13274fi 13275 13276if test -z "$lt_cv_sys_global_symbol_pipe"; then 13277 lt_cv_sys_global_symbol_to_cdecl= 13278fi 13279if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13281$as_echo "failed" >&6; } 13282else 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13284$as_echo "ok" >&6; } 13285fi 13286 13287# Response file support. 13288if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13289 nm_file_list_spec='@' 13290elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13291 nm_file_list_spec='@' 13292fi 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13321$as_echo_n "checking for sysroot... " >&6; } 13322 13323# Check whether --with-sysroot was given. 13324if test "${with_sysroot+set}" = set; then : 13325 withval=$with_sysroot; 13326else 13327 with_sysroot=no 13328fi 13329 13330 13331lt_sysroot= 13332case ${with_sysroot} in #( 13333 yes) 13334 if test "$GCC" = yes; then 13335 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13336 fi 13337 ;; #( 13338 /*) 13339 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13340 ;; #( 13341 no|'') 13342 ;; #( 13343 *) 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 13345$as_echo "${with_sysroot}" >&6; } 13346 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13347 ;; 13348esac 13349 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13351$as_echo "${lt_sysroot:-no}" >&6; } 13352 13353 13354 13355 13356 13357# Check whether --enable-libtool-lock was given. 13358if test "${enable_libtool_lock+set}" = set; then : 13359 enableval=$enable_libtool_lock; 13360fi 13361 13362test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 13363 13364# Some flags need to be propagated to the compiler or linker for good 13365# libtool support. 13366case $host in 13367ia64-*-hpux*) 13368 # Find out which ABI we are using. 13369 echo 'int i;' > conftest.$ac_ext 13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13371 (eval $ac_compile) 2>&5 13372 ac_status=$? 13373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13374 test $ac_status = 0; }; then 13375 case `/usr/bin/file conftest.$ac_objext` in 13376 *ELF-32*) 13377 HPUX_IA64_MODE="32" 13378 ;; 13379 *ELF-64*) 13380 HPUX_IA64_MODE="64" 13381 ;; 13382 esac 13383 fi 13384 rm -rf conftest* 13385 ;; 13386*-*-irix6*) 13387 # Find out which ABI we are using. 13388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13390 (eval $ac_compile) 2>&5 13391 ac_status=$? 13392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13393 test $ac_status = 0; }; then 13394 if test "$lt_cv_prog_gnu_ld" = yes; then 13395 case `/usr/bin/file conftest.$ac_objext` in 13396 *32-bit*) 13397 LD="${LD-ld} -melf32bsmip" 13398 ;; 13399 *N32*) 13400 LD="${LD-ld} -melf32bmipn32" 13401 ;; 13402 *64-bit*) 13403 LD="${LD-ld} -melf64bmip" 13404 ;; 13405 esac 13406 else 13407 case `/usr/bin/file conftest.$ac_objext` in 13408 *32-bit*) 13409 LD="${LD-ld} -32" 13410 ;; 13411 *N32*) 13412 LD="${LD-ld} -n32" 13413 ;; 13414 *64-bit*) 13415 LD="${LD-ld} -64" 13416 ;; 13417 esac 13418 fi 13419 fi 13420 rm -rf conftest* 13421 ;; 13422 13423x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 13424s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13425 # Find out which ABI we are using. 13426 echo 'int i;' > conftest.$ac_ext 13427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13428 (eval $ac_compile) 2>&5 13429 ac_status=$? 13430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13431 test $ac_status = 0; }; then 13432 case `/usr/bin/file conftest.o` in 13433 *32-bit*) 13434 case $host in 13435 x86_64-*kfreebsd*-gnu) 13436 LD="${LD-ld} -m elf_i386_fbsd" 13437 ;; 13438 x86_64-*linux*) 13439 LD="${LD-ld} -m elf_i386" 13440 ;; 13441 ppc64-*linux*|powerpc64-*linux*) 13442 LD="${LD-ld} -m elf32ppclinux" 13443 ;; 13444 s390x-*linux*) 13445 LD="${LD-ld} -m elf_s390" 13446 ;; 13447 sparc64-*linux*) 13448 LD="${LD-ld} -m elf32_sparc" 13449 ;; 13450 esac 13451 ;; 13452 *64-bit*) 13453 case $host in 13454 x86_64-*kfreebsd*-gnu) 13455 LD="${LD-ld} -m elf_x86_64_fbsd" 13456 ;; 13457 x86_64-*linux*) 13458 LD="${LD-ld} -m elf_x86_64" 13459 ;; 13460 ppc*-*linux*|powerpc*-*linux*) 13461 LD="${LD-ld} -m elf64ppc" 13462 ;; 13463 s390*-*linux*|s390*-*tpf*) 13464 LD="${LD-ld} -m elf64_s390" 13465 ;; 13466 sparc*-*linux*) 13467 LD="${LD-ld} -m elf64_sparc" 13468 ;; 13469 esac 13470 ;; 13471 esac 13472 fi 13473 rm -rf conftest* 13474 ;; 13475 13476*-*-sco3.2v5*) 13477 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13478 SAVE_CFLAGS="$CFLAGS" 13479 CFLAGS="$CFLAGS -belf" 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13481$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13482if ${lt_cv_cc_needs_belf+:} false; then : 13483 $as_echo_n "(cached) " >&6 13484else 13485 ac_ext=c 13486ac_cpp='$CPP $CPPFLAGS' 13487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13489ac_compiler_gnu=$ac_cv_c_compiler_gnu 13490 13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13492/* end confdefs.h. */ 13493 13494int 13495main () 13496{ 13497 13498 ; 13499 return 0; 13500} 13501_ACEOF 13502if ac_fn_c_try_link "$LINENO"; then : 13503 lt_cv_cc_needs_belf=yes 13504else 13505 lt_cv_cc_needs_belf=no 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext conftest.$ac_ext 13509 ac_ext=c 13510ac_cpp='$CPP $CPPFLAGS' 13511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13513ac_compiler_gnu=$ac_cv_c_compiler_gnu 13514 13515fi 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13517$as_echo "$lt_cv_cc_needs_belf" >&6; } 13518 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13520 CFLAGS="$SAVE_CFLAGS" 13521 fi 13522 ;; 13523*-*solaris*) 13524 # Find out which ABI we are using. 13525 echo 'int i;' > conftest.$ac_ext 13526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13527 (eval $ac_compile) 2>&5 13528 ac_status=$? 13529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13530 test $ac_status = 0; }; then 13531 case `/usr/bin/file conftest.o` in 13532 *64-bit*) 13533 case $lt_cv_prog_gnu_ld in 13534 yes*) 13535 case $host in 13536 i?86-*-solaris*) 13537 LD="${LD-ld} -m elf_x86_64" 13538 ;; 13539 sparc*-*-solaris*) 13540 LD="${LD-ld} -m elf64_sparc" 13541 ;; 13542 esac 13543 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13544 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13545 LD="${LD-ld}_sol2" 13546 fi 13547 ;; 13548 *) 13549 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13550 LD="${LD-ld} -64" 13551 fi 13552 ;; 13553 esac 13554 ;; 13555 esac 13556 fi 13557 rm -rf conftest* 13558 ;; 13559esac 13560 13561need_locks="$enable_libtool_lock" 13562 13563if test -n "$ac_tool_prefix"; then 13564 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13565set dummy ${ac_tool_prefix}mt; ac_word=$2 13566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13567$as_echo_n "checking for $ac_word... " >&6; } 13568if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 if test -n "$MANIFEST_TOOL"; then 13572 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13573else 13574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13575for as_dir in $PATH 13576do 13577 IFS=$as_save_IFS 13578 test -z "$as_dir" && as_dir=. 13579 for ac_exec_ext in '' $ac_executable_extensions; do 13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13581 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13583 break 2 13584 fi 13585done 13586 done 13587IFS=$as_save_IFS 13588 13589fi 13590fi 13591MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13592if test -n "$MANIFEST_TOOL"; then 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13594$as_echo "$MANIFEST_TOOL" >&6; } 13595else 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13597$as_echo "no" >&6; } 13598fi 13599 13600 13601fi 13602if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13603 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13604 # Extract the first word of "mt", so it can be a program name with args. 13605set dummy mt; ac_word=$2 13606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13607$as_echo_n "checking for $ac_word... " >&6; } 13608if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13609 $as_echo_n "(cached) " >&6 13610else 13611 if test -n "$ac_ct_MANIFEST_TOOL"; then 13612 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13613else 13614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13615for as_dir in $PATH 13616do 13617 IFS=$as_save_IFS 13618 test -z "$as_dir" && as_dir=. 13619 for ac_exec_ext in '' $ac_executable_extensions; do 13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13621 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13623 break 2 13624 fi 13625done 13626 done 13627IFS=$as_save_IFS 13628 13629fi 13630fi 13631ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13632if test -n "$ac_ct_MANIFEST_TOOL"; then 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13634$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13635else 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13637$as_echo "no" >&6; } 13638fi 13639 13640 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13641 MANIFEST_TOOL=":" 13642 else 13643 case $cross_compiling:$ac_tool_warned in 13644yes:) 13645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13647ac_tool_warned=yes ;; 13648esac 13649 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13650 fi 13651else 13652 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13653fi 13654 13655test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13657$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13658if ${lt_cv_path_mainfest_tool+:} false; then : 13659 $as_echo_n "(cached) " >&6 13660else 13661 lt_cv_path_mainfest_tool=no 13662 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13663 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13664 cat conftest.err >&5 13665 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13666 lt_cv_path_mainfest_tool=yes 13667 fi 13668 rm -f conftest* 13669fi 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13671$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13672if test "x$lt_cv_path_mainfest_tool" != xyes; then 13673 MANIFEST_TOOL=: 13674fi 13675 13676 13677 13678 13679 13680 13681 case $host_os in 13682 rhapsody* | darwin*) 13683 if test -n "$ac_tool_prefix"; then 13684 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13685set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13687$as_echo_n "checking for $ac_word... " >&6; } 13688if ${ac_cv_prog_DSYMUTIL+:} false; then : 13689 $as_echo_n "(cached) " >&6 13690else 13691 if test -n "$DSYMUTIL"; then 13692 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13693else 13694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13695for as_dir in $PATH 13696do 13697 IFS=$as_save_IFS 13698 test -z "$as_dir" && as_dir=. 13699 for ac_exec_ext in '' $ac_executable_extensions; do 13700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13701 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13703 break 2 13704 fi 13705done 13706 done 13707IFS=$as_save_IFS 13708 13709fi 13710fi 13711DSYMUTIL=$ac_cv_prog_DSYMUTIL 13712if test -n "$DSYMUTIL"; then 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13714$as_echo "$DSYMUTIL" >&6; } 13715else 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13717$as_echo "no" >&6; } 13718fi 13719 13720 13721fi 13722if test -z "$ac_cv_prog_DSYMUTIL"; then 13723 ac_ct_DSYMUTIL=$DSYMUTIL 13724 # Extract the first word of "dsymutil", so it can be a program name with args. 13725set dummy dsymutil; ac_word=$2 13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13727$as_echo_n "checking for $ac_word... " >&6; } 13728if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13729 $as_echo_n "(cached) " >&6 13730else 13731 if test -n "$ac_ct_DSYMUTIL"; then 13732 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13733else 13734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13735for as_dir in $PATH 13736do 13737 IFS=$as_save_IFS 13738 test -z "$as_dir" && as_dir=. 13739 for ac_exec_ext in '' $ac_executable_extensions; do 13740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13741 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13743 break 2 13744 fi 13745done 13746 done 13747IFS=$as_save_IFS 13748 13749fi 13750fi 13751ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13752if test -n "$ac_ct_DSYMUTIL"; then 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13754$as_echo "$ac_ct_DSYMUTIL" >&6; } 13755else 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13757$as_echo "no" >&6; } 13758fi 13759 13760 if test "x$ac_ct_DSYMUTIL" = x; then 13761 DSYMUTIL=":" 13762 else 13763 case $cross_compiling:$ac_tool_warned in 13764yes:) 13765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13767ac_tool_warned=yes ;; 13768esac 13769 DSYMUTIL=$ac_ct_DSYMUTIL 13770 fi 13771else 13772 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13773fi 13774 13775 if test -n "$ac_tool_prefix"; then 13776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13777set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13779$as_echo_n "checking for $ac_word... " >&6; } 13780if ${ac_cv_prog_NMEDIT+:} false; then : 13781 $as_echo_n "(cached) " >&6 13782else 13783 if test -n "$NMEDIT"; then 13784 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13785else 13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13787for as_dir in $PATH 13788do 13789 IFS=$as_save_IFS 13790 test -z "$as_dir" && as_dir=. 13791 for ac_exec_ext in '' $ac_executable_extensions; do 13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13793 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13795 break 2 13796 fi 13797done 13798 done 13799IFS=$as_save_IFS 13800 13801fi 13802fi 13803NMEDIT=$ac_cv_prog_NMEDIT 13804if test -n "$NMEDIT"; then 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13806$as_echo "$NMEDIT" >&6; } 13807else 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13809$as_echo "no" >&6; } 13810fi 13811 13812 13813fi 13814if test -z "$ac_cv_prog_NMEDIT"; then 13815 ac_ct_NMEDIT=$NMEDIT 13816 # Extract the first word of "nmedit", so it can be a program name with args. 13817set dummy nmedit; ac_word=$2 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13819$as_echo_n "checking for $ac_word... " >&6; } 13820if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13821 $as_echo_n "(cached) " >&6 13822else 13823 if test -n "$ac_ct_NMEDIT"; then 13824 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13825else 13826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13827for as_dir in $PATH 13828do 13829 IFS=$as_save_IFS 13830 test -z "$as_dir" && as_dir=. 13831 for ac_exec_ext in '' $ac_executable_extensions; do 13832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13833 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13835 break 2 13836 fi 13837done 13838 done 13839IFS=$as_save_IFS 13840 13841fi 13842fi 13843ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13844if test -n "$ac_ct_NMEDIT"; then 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13846$as_echo "$ac_ct_NMEDIT" >&6; } 13847else 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13849$as_echo "no" >&6; } 13850fi 13851 13852 if test "x$ac_ct_NMEDIT" = x; then 13853 NMEDIT=":" 13854 else 13855 case $cross_compiling:$ac_tool_warned in 13856yes:) 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13859ac_tool_warned=yes ;; 13860esac 13861 NMEDIT=$ac_ct_NMEDIT 13862 fi 13863else 13864 NMEDIT="$ac_cv_prog_NMEDIT" 13865fi 13866 13867 if test -n "$ac_tool_prefix"; then 13868 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13869set dummy ${ac_tool_prefix}lipo; ac_word=$2 13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13871$as_echo_n "checking for $ac_word... " >&6; } 13872if ${ac_cv_prog_LIPO+:} false; then : 13873 $as_echo_n "(cached) " >&6 13874else 13875 if test -n "$LIPO"; then 13876 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13877else 13878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13879for as_dir in $PATH 13880do 13881 IFS=$as_save_IFS 13882 test -z "$as_dir" && as_dir=. 13883 for ac_exec_ext in '' $ac_executable_extensions; do 13884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13885 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13887 break 2 13888 fi 13889done 13890 done 13891IFS=$as_save_IFS 13892 13893fi 13894fi 13895LIPO=$ac_cv_prog_LIPO 13896if test -n "$LIPO"; then 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13898$as_echo "$LIPO" >&6; } 13899else 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13901$as_echo "no" >&6; } 13902fi 13903 13904 13905fi 13906if test -z "$ac_cv_prog_LIPO"; then 13907 ac_ct_LIPO=$LIPO 13908 # Extract the first word of "lipo", so it can be a program name with args. 13909set dummy lipo; ac_word=$2 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13911$as_echo_n "checking for $ac_word... " >&6; } 13912if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13913 $as_echo_n "(cached) " >&6 13914else 13915 if test -n "$ac_ct_LIPO"; then 13916 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13917else 13918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13919for as_dir in $PATH 13920do 13921 IFS=$as_save_IFS 13922 test -z "$as_dir" && as_dir=. 13923 for ac_exec_ext in '' $ac_executable_extensions; do 13924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13925 ac_cv_prog_ac_ct_LIPO="lipo" 13926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13927 break 2 13928 fi 13929done 13930 done 13931IFS=$as_save_IFS 13932 13933fi 13934fi 13935ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13936if test -n "$ac_ct_LIPO"; then 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13938$as_echo "$ac_ct_LIPO" >&6; } 13939else 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13941$as_echo "no" >&6; } 13942fi 13943 13944 if test "x$ac_ct_LIPO" = x; then 13945 LIPO=":" 13946 else 13947 case $cross_compiling:$ac_tool_warned in 13948yes:) 13949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13951ac_tool_warned=yes ;; 13952esac 13953 LIPO=$ac_ct_LIPO 13954 fi 13955else 13956 LIPO="$ac_cv_prog_LIPO" 13957fi 13958 13959 if test -n "$ac_tool_prefix"; then 13960 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13961set dummy ${ac_tool_prefix}otool; ac_word=$2 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13963$as_echo_n "checking for $ac_word... " >&6; } 13964if ${ac_cv_prog_OTOOL+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 if test -n "$OTOOL"; then 13968 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13969else 13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13971for as_dir in $PATH 13972do 13973 IFS=$as_save_IFS 13974 test -z "$as_dir" && as_dir=. 13975 for ac_exec_ext in '' $ac_executable_extensions; do 13976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13977 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13979 break 2 13980 fi 13981done 13982 done 13983IFS=$as_save_IFS 13984 13985fi 13986fi 13987OTOOL=$ac_cv_prog_OTOOL 13988if test -n "$OTOOL"; then 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13990$as_echo "$OTOOL" >&6; } 13991else 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13993$as_echo "no" >&6; } 13994fi 13995 13996 13997fi 13998if test -z "$ac_cv_prog_OTOOL"; then 13999 ac_ct_OTOOL=$OTOOL 14000 # Extract the first word of "otool", so it can be a program name with args. 14001set dummy otool; ac_word=$2 14002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14003$as_echo_n "checking for $ac_word... " >&6; } 14004if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14005 $as_echo_n "(cached) " >&6 14006else 14007 if test -n "$ac_ct_OTOOL"; then 14008 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14009else 14010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14011for as_dir in $PATH 14012do 14013 IFS=$as_save_IFS 14014 test -z "$as_dir" && as_dir=. 14015 for ac_exec_ext in '' $ac_executable_extensions; do 14016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14017 ac_cv_prog_ac_ct_OTOOL="otool" 14018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14019 break 2 14020 fi 14021done 14022 done 14023IFS=$as_save_IFS 14024 14025fi 14026fi 14027ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14028if test -n "$ac_ct_OTOOL"; then 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14030$as_echo "$ac_ct_OTOOL" >&6; } 14031else 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14033$as_echo "no" >&6; } 14034fi 14035 14036 if test "x$ac_ct_OTOOL" = x; then 14037 OTOOL=":" 14038 else 14039 case $cross_compiling:$ac_tool_warned in 14040yes:) 14041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14043ac_tool_warned=yes ;; 14044esac 14045 OTOOL=$ac_ct_OTOOL 14046 fi 14047else 14048 OTOOL="$ac_cv_prog_OTOOL" 14049fi 14050 14051 if test -n "$ac_tool_prefix"; then 14052 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14053set dummy ${ac_tool_prefix}otool64; ac_word=$2 14054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14055$as_echo_n "checking for $ac_word... " >&6; } 14056if ${ac_cv_prog_OTOOL64+:} false; then : 14057 $as_echo_n "(cached) " >&6 14058else 14059 if test -n "$OTOOL64"; then 14060 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14061else 14062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14063for as_dir in $PATH 14064do 14065 IFS=$as_save_IFS 14066 test -z "$as_dir" && as_dir=. 14067 for ac_exec_ext in '' $ac_executable_extensions; do 14068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14069 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14071 break 2 14072 fi 14073done 14074 done 14075IFS=$as_save_IFS 14076 14077fi 14078fi 14079OTOOL64=$ac_cv_prog_OTOOL64 14080if test -n "$OTOOL64"; then 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14082$as_echo "$OTOOL64" >&6; } 14083else 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14085$as_echo "no" >&6; } 14086fi 14087 14088 14089fi 14090if test -z "$ac_cv_prog_OTOOL64"; then 14091 ac_ct_OTOOL64=$OTOOL64 14092 # Extract the first word of "otool64", so it can be a program name with args. 14093set dummy otool64; ac_word=$2 14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14095$as_echo_n "checking for $ac_word... " >&6; } 14096if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14097 $as_echo_n "(cached) " >&6 14098else 14099 if test -n "$ac_ct_OTOOL64"; then 14100 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14101else 14102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14103for as_dir in $PATH 14104do 14105 IFS=$as_save_IFS 14106 test -z "$as_dir" && as_dir=. 14107 for ac_exec_ext in '' $ac_executable_extensions; do 14108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14109 ac_cv_prog_ac_ct_OTOOL64="otool64" 14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14111 break 2 14112 fi 14113done 14114 done 14115IFS=$as_save_IFS 14116 14117fi 14118fi 14119ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14120if test -n "$ac_ct_OTOOL64"; then 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14122$as_echo "$ac_ct_OTOOL64" >&6; } 14123else 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14125$as_echo "no" >&6; } 14126fi 14127 14128 if test "x$ac_ct_OTOOL64" = x; then 14129 OTOOL64=":" 14130 else 14131 case $cross_compiling:$ac_tool_warned in 14132yes:) 14133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14135ac_tool_warned=yes ;; 14136esac 14137 OTOOL64=$ac_ct_OTOOL64 14138 fi 14139else 14140 OTOOL64="$ac_cv_prog_OTOOL64" 14141fi 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14170$as_echo_n "checking for -single_module linker flag... " >&6; } 14171if ${lt_cv_apple_cc_single_mod+:} false; then : 14172 $as_echo_n "(cached) " >&6 14173else 14174 lt_cv_apple_cc_single_mod=no 14175 if test -z "${LT_MULTI_MODULE}"; then 14176 # By default we will add the -single_module flag. You can override 14177 # by either setting the environment variable LT_MULTI_MODULE 14178 # non-empty at configure time, or by adding -multi_module to the 14179 # link flags. 14180 rm -rf libconftest.dylib* 14181 echo "int foo(void){return 1;}" > conftest.c 14182 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14183-dynamiclib -Wl,-single_module conftest.c" >&5 14184 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14185 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14186 _lt_result=$? 14187 # If there is a non-empty error log, and "single_module" 14188 # appears in it, assume the flag caused a linker warning 14189 if test -s conftest.err && $GREP single_module conftest.err; then 14190 cat conftest.err >&5 14191 # Otherwise, if the output was created with a 0 exit code from 14192 # the compiler, it worked. 14193 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 14194 lt_cv_apple_cc_single_mod=yes 14195 else 14196 cat conftest.err >&5 14197 fi 14198 rm -rf libconftest.dylib* 14199 rm -f conftest.* 14200 fi 14201fi 14202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14203$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14204 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14206$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14207if ${lt_cv_ld_exported_symbols_list+:} false; then : 14208 $as_echo_n "(cached) " >&6 14209else 14210 lt_cv_ld_exported_symbols_list=no 14211 save_LDFLAGS=$LDFLAGS 14212 echo "_main" > conftest.sym 14213 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14215/* end confdefs.h. */ 14216 14217int 14218main () 14219{ 14220 14221 ; 14222 return 0; 14223} 14224_ACEOF 14225if ac_fn_c_try_link "$LINENO"; then : 14226 lt_cv_ld_exported_symbols_list=yes 14227else 14228 lt_cv_ld_exported_symbols_list=no 14229fi 14230rm -f core conftest.err conftest.$ac_objext \ 14231 conftest$ac_exeext conftest.$ac_ext 14232 LDFLAGS="$save_LDFLAGS" 14233 14234fi 14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14236$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14237 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14239$as_echo_n "checking for -force_load linker flag... " >&6; } 14240if ${lt_cv_ld_force_load+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 lt_cv_ld_force_load=no 14244 cat > conftest.c << _LT_EOF 14245int forced_loaded() { return 2;} 14246_LT_EOF 14247 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14248 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14249 echo "$AR cru libconftest.a conftest.o" >&5 14250 $AR cru libconftest.a conftest.o 2>&5 14251 echo "$RANLIB libconftest.a" >&5 14252 $RANLIB libconftest.a 2>&5 14253 cat > conftest.c << _LT_EOF 14254int main() { return 0;} 14255_LT_EOF 14256 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14257 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14258 _lt_result=$? 14259 if test -s conftest.err && $GREP force_load conftest.err; then 14260 cat conftest.err >&5 14261 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 14262 lt_cv_ld_force_load=yes 14263 else 14264 cat conftest.err >&5 14265 fi 14266 rm -f conftest.err libconftest.a conftest conftest.c 14267 rm -rf conftest.dSYM 14268 14269fi 14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14271$as_echo "$lt_cv_ld_force_load" >&6; } 14272 case $host_os in 14273 rhapsody* | darwin1.[012]) 14274 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 14275 darwin1.*) 14276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14277 darwin*) # darwin 5.x on 14278 # if running on 10.5 or later, the deployment target defaults 14279 # to the OS version, if on x86, and 10.4, the deployment 14280 # target defaults to 10.4. Don't you love it? 14281 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14282 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14283 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14284 10.[012]*) 14285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14286 10.*) 14287 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14288 esac 14289 ;; 14290 esac 14291 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 14292 _lt_dar_single_mod='$single_module' 14293 fi 14294 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 14295 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 14296 else 14297 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 14298 fi 14299 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 14300 _lt_dsymutil='~$DSYMUTIL $lib || :' 14301 else 14302 _lt_dsymutil= 14303 fi 14304 ;; 14305 esac 14306 14307for ac_header in dlfcn.h 14308do : 14309 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14310" 14311if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14312 cat >>confdefs.h <<_ACEOF 14313#define HAVE_DLFCN_H 1 14314_ACEOF 14315 14316fi 14317 14318done 14319 14320 14321 14322 14323 14324# Set options 14325 14326 14327 14328 enable_dlopen=no 14329 14330 14331 enable_win32_dll=no 14332 14333 14334 # Check whether --enable-shared was given. 14335if test "${enable_shared+set}" = set; then : 14336 enableval=$enable_shared; p=${PACKAGE-default} 14337 case $enableval in 14338 yes) enable_shared=yes ;; 14339 no) enable_shared=no ;; 14340 *) 14341 enable_shared=no 14342 # Look at the argument we got. We use all the common list separators. 14343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14344 for pkg in $enableval; do 14345 IFS="$lt_save_ifs" 14346 if test "X$pkg" = "X$p"; then 14347 enable_shared=yes 14348 fi 14349 done 14350 IFS="$lt_save_ifs" 14351 ;; 14352 esac 14353else 14354 enable_shared=yes 14355fi 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 # Check whether --enable-static was given. 14366if test "${enable_static+set}" = set; then : 14367 enableval=$enable_static; p=${PACKAGE-default} 14368 case $enableval in 14369 yes) enable_static=yes ;; 14370 no) enable_static=no ;; 14371 *) 14372 enable_static=no 14373 # Look at the argument we got. We use all the common list separators. 14374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14375 for pkg in $enableval; do 14376 IFS="$lt_save_ifs" 14377 if test "X$pkg" = "X$p"; then 14378 enable_static=yes 14379 fi 14380 done 14381 IFS="$lt_save_ifs" 14382 ;; 14383 esac 14384else 14385 enable_static=yes 14386fi 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397# Check whether --with-pic was given. 14398if test "${with_pic+set}" = set; then : 14399 withval=$with_pic; lt_p=${PACKAGE-default} 14400 case $withval in 14401 yes|no) pic_mode=$withval ;; 14402 *) 14403 pic_mode=default 14404 # Look at the argument we got. We use all the common list separators. 14405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14406 for lt_pkg in $withval; do 14407 IFS="$lt_save_ifs" 14408 if test "X$lt_pkg" = "X$lt_p"; then 14409 pic_mode=yes 14410 fi 14411 done 14412 IFS="$lt_save_ifs" 14413 ;; 14414 esac 14415else 14416 pic_mode=default 14417fi 14418 14419 14420test -z "$pic_mode" && pic_mode=default 14421 14422 14423 14424 14425 14426 14427 14428 # Check whether --enable-fast-install was given. 14429if test "${enable_fast_install+set}" = set; then : 14430 enableval=$enable_fast_install; p=${PACKAGE-default} 14431 case $enableval in 14432 yes) enable_fast_install=yes ;; 14433 no) enable_fast_install=no ;; 14434 *) 14435 enable_fast_install=no 14436 # Look at the argument we got. We use all the common list separators. 14437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14438 for pkg in $enableval; do 14439 IFS="$lt_save_ifs" 14440 if test "X$pkg" = "X$p"; then 14441 enable_fast_install=yes 14442 fi 14443 done 14444 IFS="$lt_save_ifs" 14445 ;; 14446 esac 14447else 14448 enable_fast_install=yes 14449fi 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461# This can be used to rebuild libtool when needed 14462LIBTOOL_DEPS="$ltmain" 14463 14464# Always use our own libtool. 14465LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496test -z "$LN_S" && LN_S="ln -s" 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511if test -n "${ZSH_VERSION+set}" ; then 14512 setopt NO_GLOB_SUBST 14513fi 14514 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14516$as_echo_n "checking for objdir... " >&6; } 14517if ${lt_cv_objdir+:} false; then : 14518 $as_echo_n "(cached) " >&6 14519else 14520 rm -f .libs 2>/dev/null 14521mkdir .libs 2>/dev/null 14522if test -d .libs; then 14523 lt_cv_objdir=.libs 14524else 14525 # MS-DOS does not allow filenames that begin with a dot. 14526 lt_cv_objdir=_libs 14527fi 14528rmdir .libs 2>/dev/null 14529fi 14530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14531$as_echo "$lt_cv_objdir" >&6; } 14532objdir=$lt_cv_objdir 14533 14534 14535 14536 14537 14538cat >>confdefs.h <<_ACEOF 14539#define LT_OBJDIR "$lt_cv_objdir/" 14540_ACEOF 14541 14542 14543 14544 14545case $host_os in 14546aix3*) 14547 # AIX sometimes has problems with the GCC collect2 program. For some 14548 # reason, if we set the COLLECT_NAMES environment variable, the problems 14549 # vanish in a puff of smoke. 14550 if test "X${COLLECT_NAMES+set}" != Xset; then 14551 COLLECT_NAMES= 14552 export COLLECT_NAMES 14553 fi 14554 ;; 14555esac 14556 14557# Global variables: 14558ofile=libtool 14559can_build_shared=yes 14560 14561# All known linkers require a `.a' archive for static linking (except MSVC, 14562# which needs '.lib'). 14563libext=a 14564 14565with_gnu_ld="$lt_cv_prog_gnu_ld" 14566 14567old_CC="$CC" 14568old_CFLAGS="$CFLAGS" 14569 14570# Set sane defaults for various variables 14571test -z "$CC" && CC=cc 14572test -z "$LTCC" && LTCC=$CC 14573test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14574test -z "$LD" && LD=ld 14575test -z "$ac_objext" && ac_objext=o 14576 14577for cc_temp in $compiler""; do 14578 case $cc_temp in 14579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14581 \-*) ;; 14582 *) break;; 14583 esac 14584done 14585cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14586 14587 14588# Only perform the check for file, if the check method requires it 14589test -z "$MAGIC_CMD" && MAGIC_CMD=file 14590case $deplibs_check_method in 14591file_magic*) 14592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14594$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14595if ${lt_cv_path_MAGIC_CMD+:} false; then : 14596 $as_echo_n "(cached) " >&6 14597else 14598 case $MAGIC_CMD in 14599[\\/*] | ?:[\\/]*) 14600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14601 ;; 14602*) 14603 lt_save_MAGIC_CMD="$MAGIC_CMD" 14604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14606 for ac_dir in $ac_dummy; do 14607 IFS="$lt_save_ifs" 14608 test -z "$ac_dir" && ac_dir=. 14609 if test -f $ac_dir/${ac_tool_prefix}file; then 14610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14611 if test -n "$file_magic_test_file"; then 14612 case $deplibs_check_method in 14613 "file_magic "*) 14614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14617 $EGREP "$file_magic_regex" > /dev/null; then 14618 : 14619 else 14620 cat <<_LT_EOF 1>&2 14621 14622*** Warning: the command libtool uses to detect shared libraries, 14623*** $file_magic_cmd, produces output that libtool cannot recognize. 14624*** The result is that libtool may fail to recognize shared libraries 14625*** as such. This will affect the creation of libtool libraries that 14626*** depend on shared libraries, but programs linked with such libtool 14627*** libraries will work regardless of this problem. Nevertheless, you 14628*** may want to report the problem to your system manager and/or to 14629*** bug-libtool@gnu.org 14630 14631_LT_EOF 14632 fi ;; 14633 esac 14634 fi 14635 break 14636 fi 14637 done 14638 IFS="$lt_save_ifs" 14639 MAGIC_CMD="$lt_save_MAGIC_CMD" 14640 ;; 14641esac 14642fi 14643 14644MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14645if test -n "$MAGIC_CMD"; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14647$as_echo "$MAGIC_CMD" >&6; } 14648else 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14650$as_echo "no" >&6; } 14651fi 14652 14653 14654 14655 14656 14657if test -z "$lt_cv_path_MAGIC_CMD"; then 14658 if test -n "$ac_tool_prefix"; then 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14660$as_echo_n "checking for file... " >&6; } 14661if ${lt_cv_path_MAGIC_CMD+:} false; then : 14662 $as_echo_n "(cached) " >&6 14663else 14664 case $MAGIC_CMD in 14665[\\/*] | ?:[\\/]*) 14666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14667 ;; 14668*) 14669 lt_save_MAGIC_CMD="$MAGIC_CMD" 14670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14672 for ac_dir in $ac_dummy; do 14673 IFS="$lt_save_ifs" 14674 test -z "$ac_dir" && ac_dir=. 14675 if test -f $ac_dir/file; then 14676 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14677 if test -n "$file_magic_test_file"; then 14678 case $deplibs_check_method in 14679 "file_magic "*) 14680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14683 $EGREP "$file_magic_regex" > /dev/null; then 14684 : 14685 else 14686 cat <<_LT_EOF 1>&2 14687 14688*** Warning: the command libtool uses to detect shared libraries, 14689*** $file_magic_cmd, produces output that libtool cannot recognize. 14690*** The result is that libtool may fail to recognize shared libraries 14691*** as such. This will affect the creation of libtool libraries that 14692*** depend on shared libraries, but programs linked with such libtool 14693*** libraries will work regardless of this problem. Nevertheless, you 14694*** may want to report the problem to your system manager and/or to 14695*** bug-libtool@gnu.org 14696 14697_LT_EOF 14698 fi ;; 14699 esac 14700 fi 14701 break 14702 fi 14703 done 14704 IFS="$lt_save_ifs" 14705 MAGIC_CMD="$lt_save_MAGIC_CMD" 14706 ;; 14707esac 14708fi 14709 14710MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14711if test -n "$MAGIC_CMD"; then 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14713$as_echo "$MAGIC_CMD" >&6; } 14714else 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14716$as_echo "no" >&6; } 14717fi 14718 14719 14720 else 14721 MAGIC_CMD=: 14722 fi 14723fi 14724 14725 fi 14726 ;; 14727esac 14728 14729# Use C for the default configuration in the libtool script 14730 14731lt_save_CC="$CC" 14732ac_ext=c 14733ac_cpp='$CPP $CPPFLAGS' 14734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14736ac_compiler_gnu=$ac_cv_c_compiler_gnu 14737 14738 14739# Source file extension for C test sources. 14740ac_ext=c 14741 14742# Object file extension for compiled C test sources. 14743objext=o 14744objext=$objext 14745 14746# Code to be used in simple compile tests 14747lt_simple_compile_test_code="int some_variable = 0;" 14748 14749# Code to be used in simple link tests 14750lt_simple_link_test_code='int main(){return(0);}' 14751 14752 14753 14754 14755 14756 14757 14758# If no C compiler was specified, use CC. 14759LTCC=${LTCC-"$CC"} 14760 14761# If no C compiler flags were specified, use CFLAGS. 14762LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14763 14764# Allow CC to be a program name with arguments. 14765compiler=$CC 14766 14767# Save the default compiler, since it gets overwritten when the other 14768# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14769compiler_DEFAULT=$CC 14770 14771# save warnings/boilerplate of simple test code 14772ac_outfile=conftest.$ac_objext 14773echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14775_lt_compiler_boilerplate=`cat conftest.err` 14776$RM conftest* 14777 14778ac_outfile=conftest.$ac_objext 14779echo "$lt_simple_link_test_code" >conftest.$ac_ext 14780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14781_lt_linker_boilerplate=`cat conftest.err` 14782$RM -r conftest* 14783 14784 14785## CAVEAT EMPTOR: 14786## There is no encapsulation within the following macros, do not change 14787## the running order or otherwise move them around unless you know exactly 14788## what you are doing... 14789if test -n "$compiler"; then 14790 14791lt_prog_compiler_no_builtin_flag= 14792 14793if test "$GCC" = yes; then 14794 case $cc_basename in 14795 nvcc*) 14796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14797 *) 14798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14799 esac 14800 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14802$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14803if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14804 $as_echo_n "(cached) " >&6 14805else 14806 lt_cv_prog_compiler_rtti_exceptions=no 14807 ac_outfile=conftest.$ac_objext 14808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14809 lt_compiler_flag="-fno-rtti -fno-exceptions" 14810 # Insert the option either (1) after the last *FLAGS variable, or 14811 # (2) before a word containing "conftest.", or (3) at the end. 14812 # Note that $ac_compile itself does not contain backslashes and begins 14813 # with a dollar sign (not a hyphen), so the echo should work correctly. 14814 # The option is referenced via a variable to avoid confusing sed. 14815 lt_compile=`echo "$ac_compile" | $SED \ 14816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14818 -e 's:$: $lt_compiler_flag:'` 14819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14820 (eval "$lt_compile" 2>conftest.err) 14821 ac_status=$? 14822 cat conftest.err >&5 14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14824 if (exit $ac_status) && test -s "$ac_outfile"; then 14825 # The compiler can only warn and ignore the option if not recognized 14826 # So say no if there are warnings other than the usual output. 14827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14830 lt_cv_prog_compiler_rtti_exceptions=yes 14831 fi 14832 fi 14833 $RM conftest* 14834 14835fi 14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14837$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14838 14839if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14841else 14842 : 14843fi 14844 14845fi 14846 14847 14848 14849 14850 14851 14852 lt_prog_compiler_wl= 14853lt_prog_compiler_pic= 14854lt_prog_compiler_static= 14855 14856 14857 if test "$GCC" = yes; then 14858 lt_prog_compiler_wl='-Wl,' 14859 lt_prog_compiler_static='-static' 14860 14861 case $host_os in 14862 aix*) 14863 # All AIX code is PIC. 14864 if test "$host_cpu" = ia64; then 14865 # AIX 5 now supports IA64 processor 14866 lt_prog_compiler_static='-Bstatic' 14867 fi 14868 ;; 14869 14870 amigaos*) 14871 case $host_cpu in 14872 powerpc) 14873 # see comment about AmigaOS4 .so support 14874 lt_prog_compiler_pic='-fPIC' 14875 ;; 14876 m68k) 14877 # FIXME: we need at least 68020 code to build shared libraries, but 14878 # adding the `-m68020' flag to GCC prevents building anything better, 14879 # like `-m68040'. 14880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14881 ;; 14882 esac 14883 ;; 14884 14885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14886 # PIC is the default for these OSes. 14887 ;; 14888 14889 mingw* | cygwin* | pw32* | os2* | cegcc*) 14890 # This hack is so that the source file can tell whether it is being 14891 # built for inclusion in a dll (and should export symbols for example). 14892 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14893 # (--disable-auto-import) libraries 14894 lt_prog_compiler_pic='-DDLL_EXPORT' 14895 ;; 14896 14897 darwin* | rhapsody*) 14898 # PIC is the default on this platform 14899 # Common symbols not allowed in MH_DYLIB files 14900 lt_prog_compiler_pic='-fno-common' 14901 ;; 14902 14903 haiku*) 14904 # PIC is the default for Haiku. 14905 # The "-static" flag exists, but is broken. 14906 lt_prog_compiler_static= 14907 ;; 14908 14909 hpux*) 14910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14912 # sets the default TLS model and affects inlining. 14913 case $host_cpu in 14914 hppa*64*) 14915 # +Z the default 14916 ;; 14917 *) 14918 lt_prog_compiler_pic='-fPIC' 14919 ;; 14920 esac 14921 ;; 14922 14923 interix[3-9]*) 14924 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14925 # Instead, we relocate shared libraries at runtime. 14926 ;; 14927 14928 msdosdjgpp*) 14929 # Just because we use GCC doesn't mean we suddenly get shared libraries 14930 # on systems that don't support them. 14931 lt_prog_compiler_can_build_shared=no 14932 enable_shared=no 14933 ;; 14934 14935 *nto* | *qnx*) 14936 # QNX uses GNU C++, but need to define -shared option too, otherwise 14937 # it will coredump. 14938 lt_prog_compiler_pic='-fPIC -shared' 14939 ;; 14940 14941 sysv4*MP*) 14942 if test -d /usr/nec; then 14943 lt_prog_compiler_pic=-Kconform_pic 14944 fi 14945 ;; 14946 14947 *) 14948 lt_prog_compiler_pic='-fPIC' 14949 ;; 14950 esac 14951 14952 case $cc_basename in 14953 nvcc*) # Cuda Compiler Driver 2.2 14954 lt_prog_compiler_wl='-Xlinker ' 14955 if test -n "$lt_prog_compiler_pic"; then 14956 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14957 fi 14958 ;; 14959 esac 14960 else 14961 # PORTME Check for flag to pass linker flags through the system compiler. 14962 case $host_os in 14963 aix*) 14964 lt_prog_compiler_wl='-Wl,' 14965 if test "$host_cpu" = ia64; then 14966 # AIX 5 now supports IA64 processor 14967 lt_prog_compiler_static='-Bstatic' 14968 else 14969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14970 fi 14971 ;; 14972 14973 mingw* | cygwin* | pw32* | os2* | cegcc*) 14974 # This hack is so that the source file can tell whether it is being 14975 # built for inclusion in a dll (and should export symbols for example). 14976 lt_prog_compiler_pic='-DDLL_EXPORT' 14977 ;; 14978 14979 hpux9* | hpux10* | hpux11*) 14980 lt_prog_compiler_wl='-Wl,' 14981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14982 # not for PA HP-UX. 14983 case $host_cpu in 14984 hppa*64*|ia64*) 14985 # +Z the default 14986 ;; 14987 *) 14988 lt_prog_compiler_pic='+Z' 14989 ;; 14990 esac 14991 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14992 lt_prog_compiler_static='${wl}-a ${wl}archive' 14993 ;; 14994 14995 irix5* | irix6* | nonstopux*) 14996 lt_prog_compiler_wl='-Wl,' 14997 # PIC (with -KPIC) is the default. 14998 lt_prog_compiler_static='-non_shared' 14999 ;; 15000 15001 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15002 case $cc_basename in 15003 # old Intel for x86_64 which still supported -KPIC. 15004 ecc*) 15005 lt_prog_compiler_wl='-Wl,' 15006 lt_prog_compiler_pic='-KPIC' 15007 lt_prog_compiler_static='-static' 15008 ;; 15009 # icc used to be incompatible with GCC. 15010 # ICC 10 doesn't accept -KPIC any more. 15011 icc* | ifort*) 15012 lt_prog_compiler_wl='-Wl,' 15013 lt_prog_compiler_pic='-fPIC' 15014 lt_prog_compiler_static='-static' 15015 ;; 15016 # Lahey Fortran 8.1. 15017 lf95*) 15018 lt_prog_compiler_wl='-Wl,' 15019 lt_prog_compiler_pic='--shared' 15020 lt_prog_compiler_static='--static' 15021 ;; 15022 nagfor*) 15023 # NAG Fortran compiler 15024 lt_prog_compiler_wl='-Wl,-Wl,,' 15025 lt_prog_compiler_pic='-PIC' 15026 lt_prog_compiler_static='-Bstatic' 15027 ;; 15028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15029 # Portland Group compilers (*not* the Pentium gcc compiler, 15030 # which looks to be a dead project) 15031 lt_prog_compiler_wl='-Wl,' 15032 lt_prog_compiler_pic='-fpic' 15033 lt_prog_compiler_static='-Bstatic' 15034 ;; 15035 ccc*) 15036 lt_prog_compiler_wl='-Wl,' 15037 # All Alpha code is PIC. 15038 lt_prog_compiler_static='-non_shared' 15039 ;; 15040 xl* | bgxl* | bgf* | mpixl*) 15041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15042 lt_prog_compiler_wl='-Wl,' 15043 lt_prog_compiler_pic='-qpic' 15044 lt_prog_compiler_static='-qstaticlink' 15045 ;; 15046 *) 15047 case `$CC -V 2>&1 | sed 5q` in 15048 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15049 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15050 lt_prog_compiler_pic='-KPIC' 15051 lt_prog_compiler_static='-Bstatic' 15052 lt_prog_compiler_wl='' 15053 ;; 15054 *Sun\ F* | *Sun*Fortran*) 15055 lt_prog_compiler_pic='-KPIC' 15056 lt_prog_compiler_static='-Bstatic' 15057 lt_prog_compiler_wl='-Qoption ld ' 15058 ;; 15059 *Sun\ C*) 15060 # Sun C 5.9 15061 lt_prog_compiler_pic='-KPIC' 15062 lt_prog_compiler_static='-Bstatic' 15063 lt_prog_compiler_wl='-Wl,' 15064 ;; 15065 *Intel*\ [CF]*Compiler*) 15066 lt_prog_compiler_wl='-Wl,' 15067 lt_prog_compiler_pic='-fPIC' 15068 lt_prog_compiler_static='-static' 15069 ;; 15070 *Portland\ Group*) 15071 lt_prog_compiler_wl='-Wl,' 15072 lt_prog_compiler_pic='-fpic' 15073 lt_prog_compiler_static='-Bstatic' 15074 ;; 15075 esac 15076 ;; 15077 esac 15078 ;; 15079 15080 newsos6) 15081 lt_prog_compiler_pic='-KPIC' 15082 lt_prog_compiler_static='-Bstatic' 15083 ;; 15084 15085 *nto* | *qnx*) 15086 # QNX uses GNU C++, but need to define -shared option too, otherwise 15087 # it will coredump. 15088 lt_prog_compiler_pic='-fPIC -shared' 15089 ;; 15090 15091 osf3* | osf4* | osf5*) 15092 lt_prog_compiler_wl='-Wl,' 15093 # All OSF/1 code is PIC. 15094 lt_prog_compiler_static='-non_shared' 15095 ;; 15096 15097 rdos*) 15098 lt_prog_compiler_static='-non_shared' 15099 ;; 15100 15101 solaris*) 15102 lt_prog_compiler_pic='-KPIC' 15103 lt_prog_compiler_static='-Bstatic' 15104 case $cc_basename in 15105 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15106 lt_prog_compiler_wl='-Qoption ld ';; 15107 *) 15108 lt_prog_compiler_wl='-Wl,';; 15109 esac 15110 ;; 15111 15112 sunos4*) 15113 lt_prog_compiler_wl='-Qoption ld ' 15114 lt_prog_compiler_pic='-PIC' 15115 lt_prog_compiler_static='-Bstatic' 15116 ;; 15117 15118 sysv4 | sysv4.2uw2* | sysv4.3*) 15119 lt_prog_compiler_wl='-Wl,' 15120 lt_prog_compiler_pic='-KPIC' 15121 lt_prog_compiler_static='-Bstatic' 15122 ;; 15123 15124 sysv4*MP*) 15125 if test -d /usr/nec ;then 15126 lt_prog_compiler_pic='-Kconform_pic' 15127 lt_prog_compiler_static='-Bstatic' 15128 fi 15129 ;; 15130 15131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15132 lt_prog_compiler_wl='-Wl,' 15133 lt_prog_compiler_pic='-KPIC' 15134 lt_prog_compiler_static='-Bstatic' 15135 ;; 15136 15137 unicos*) 15138 lt_prog_compiler_wl='-Wl,' 15139 lt_prog_compiler_can_build_shared=no 15140 ;; 15141 15142 uts4*) 15143 lt_prog_compiler_pic='-pic' 15144 lt_prog_compiler_static='-Bstatic' 15145 ;; 15146 15147 *) 15148 lt_prog_compiler_can_build_shared=no 15149 ;; 15150 esac 15151 fi 15152 15153case $host_os in 15154 # For platforms which do not support PIC, -DPIC is meaningless: 15155 *djgpp*) 15156 lt_prog_compiler_pic= 15157 ;; 15158 *) 15159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15160 ;; 15161esac 15162 15163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15164$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15165if ${lt_cv_prog_compiler_pic+:} false; then : 15166 $as_echo_n "(cached) " >&6 15167else 15168 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15169fi 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15171$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15172lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15173 15174# 15175# Check to make sure the PIC flag actually works. 15176# 15177if test -n "$lt_prog_compiler_pic"; then 15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15179$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15180if ${lt_cv_prog_compiler_pic_works+:} false; then : 15181 $as_echo_n "(cached) " >&6 15182else 15183 lt_cv_prog_compiler_pic_works=no 15184 ac_outfile=conftest.$ac_objext 15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 15187 # Insert the option either (1) after the last *FLAGS variable, or 15188 # (2) before a word containing "conftest.", or (3) at the end. 15189 # Note that $ac_compile itself does not contain backslashes and begins 15190 # with a dollar sign (not a hyphen), so the echo should work correctly. 15191 # The option is referenced via a variable to avoid confusing sed. 15192 lt_compile=`echo "$ac_compile" | $SED \ 15193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15195 -e 's:$: $lt_compiler_flag:'` 15196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15197 (eval "$lt_compile" 2>conftest.err) 15198 ac_status=$? 15199 cat conftest.err >&5 15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15201 if (exit $ac_status) && test -s "$ac_outfile"; then 15202 # The compiler can only warn and ignore the option if not recognized 15203 # So say no if there are warnings other than the usual output. 15204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15207 lt_cv_prog_compiler_pic_works=yes 15208 fi 15209 fi 15210 $RM conftest* 15211 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15214$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15215 15216if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 15217 case $lt_prog_compiler_pic in 15218 "" | " "*) ;; 15219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15220 esac 15221else 15222 lt_prog_compiler_pic= 15223 lt_prog_compiler_can_build_shared=no 15224fi 15225 15226fi 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238# 15239# Check to make sure the static flag actually works. 15240# 15241wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15243$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15244if ${lt_cv_prog_compiler_static_works+:} false; then : 15245 $as_echo_n "(cached) " >&6 15246else 15247 lt_cv_prog_compiler_static_works=no 15248 save_LDFLAGS="$LDFLAGS" 15249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15250 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15252 # The linker can only warn and ignore the option if not recognized 15253 # So say no if there are warnings 15254 if test -s conftest.err; then 15255 # Append any errors to the config.log. 15256 cat conftest.err 1>&5 15257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15259 if diff conftest.exp conftest.er2 >/dev/null; then 15260 lt_cv_prog_compiler_static_works=yes 15261 fi 15262 else 15263 lt_cv_prog_compiler_static_works=yes 15264 fi 15265 fi 15266 $RM -r conftest* 15267 LDFLAGS="$save_LDFLAGS" 15268 15269fi 15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15271$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15272 15273if test x"$lt_cv_prog_compiler_static_works" = xyes; then 15274 : 15275else 15276 lt_prog_compiler_static= 15277fi 15278 15279 15280 15281 15282 15283 15284 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15287if ${lt_cv_prog_compiler_c_o+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289else 15290 lt_cv_prog_compiler_c_o=no 15291 $RM -r conftest 2>/dev/null 15292 mkdir conftest 15293 cd conftest 15294 mkdir out 15295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15296 15297 lt_compiler_flag="-o out/conftest2.$ac_objext" 15298 # Insert the option either (1) after the last *FLAGS variable, or 15299 # (2) before a word containing "conftest.", or (3) at the end. 15300 # Note that $ac_compile itself does not contain backslashes and begins 15301 # with a dollar sign (not a hyphen), so the echo should work correctly. 15302 lt_compile=`echo "$ac_compile" | $SED \ 15303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15305 -e 's:$: $lt_compiler_flag:'` 15306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15307 (eval "$lt_compile" 2>out/conftest.err) 15308 ac_status=$? 15309 cat out/conftest.err >&5 15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15311 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15312 then 15313 # The compiler can only warn and ignore the option if not recognized 15314 # So say no if there are warnings 15315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15318 lt_cv_prog_compiler_c_o=yes 15319 fi 15320 fi 15321 chmod u+w . 2>&5 15322 $RM conftest* 15323 # SGI C++ compiler will create directory out/ii_files/ for 15324 # template instantiation 15325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15326 $RM out/* && rmdir out 15327 cd .. 15328 $RM -r conftest 15329 $RM conftest* 15330 15331fi 15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15333$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15334 15335 15336 15337 15338 15339 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15342if ${lt_cv_prog_compiler_c_o+:} false; then : 15343 $as_echo_n "(cached) " >&6 15344else 15345 lt_cv_prog_compiler_c_o=no 15346 $RM -r conftest 2>/dev/null 15347 mkdir conftest 15348 cd conftest 15349 mkdir out 15350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15351 15352 lt_compiler_flag="-o out/conftest2.$ac_objext" 15353 # Insert the option either (1) after the last *FLAGS variable, or 15354 # (2) before a word containing "conftest.", or (3) at the end. 15355 # Note that $ac_compile itself does not contain backslashes and begins 15356 # with a dollar sign (not a hyphen), so the echo should work correctly. 15357 lt_compile=`echo "$ac_compile" | $SED \ 15358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15360 -e 's:$: $lt_compiler_flag:'` 15361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15362 (eval "$lt_compile" 2>out/conftest.err) 15363 ac_status=$? 15364 cat out/conftest.err >&5 15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15366 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15367 then 15368 # The compiler can only warn and ignore the option if not recognized 15369 # So say no if there are warnings 15370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15373 lt_cv_prog_compiler_c_o=yes 15374 fi 15375 fi 15376 chmod u+w . 2>&5 15377 $RM conftest* 15378 # SGI C++ compiler will create directory out/ii_files/ for 15379 # template instantiation 15380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15381 $RM out/* && rmdir out 15382 cd .. 15383 $RM -r conftest 15384 $RM conftest* 15385 15386fi 15387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15388$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15389 15390 15391 15392 15393hard_links="nottested" 15394if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 15395 # do not overwrite the value of need_locks provided by the user 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15397$as_echo_n "checking if we can lock with hard links... " >&6; } 15398 hard_links=yes 15399 $RM conftest* 15400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15401 touch conftest.a 15402 ln conftest.a conftest.b 2>&5 || hard_links=no 15403 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15405$as_echo "$hard_links" >&6; } 15406 if test "$hard_links" = no; then 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15409 need_locks=warn 15410 fi 15411else 15412 need_locks=no 15413fi 15414 15415 15416 15417 15418 15419 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15421$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15422 15423 runpath_var= 15424 allow_undefined_flag= 15425 always_export_symbols=no 15426 archive_cmds= 15427 archive_expsym_cmds= 15428 compiler_needs_object=no 15429 enable_shared_with_static_runtimes=no 15430 export_dynamic_flag_spec= 15431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15432 hardcode_automatic=no 15433 hardcode_direct=no 15434 hardcode_direct_absolute=no 15435 hardcode_libdir_flag_spec= 15436 hardcode_libdir_separator= 15437 hardcode_minus_L=no 15438 hardcode_shlibpath_var=unsupported 15439 inherit_rpath=no 15440 link_all_deplibs=unknown 15441 module_cmds= 15442 module_expsym_cmds= 15443 old_archive_from_new_cmds= 15444 old_archive_from_expsyms_cmds= 15445 thread_safe_flag_spec= 15446 whole_archive_flag_spec= 15447 # include_expsyms should be a list of space-separated symbols to be *always* 15448 # included in the symbol list 15449 include_expsyms= 15450 # exclude_expsyms can be an extended regexp of symbols to exclude 15451 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15452 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15453 # as well as any symbol that contains `d'. 15454 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15455 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15456 # platforms (ab)use it in PIC code, but their linkers get confused if 15457 # the symbol is explicitly referenced. Since portable code cannot 15458 # rely on this symbol name, it's probably fine to never include it in 15459 # preloaded symbol tables. 15460 # Exclude shared library initialization/finalization symbols. 15461 extract_expsyms_cmds= 15462 15463 case $host_os in 15464 cygwin* | mingw* | pw32* | cegcc*) 15465 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15466 # When not using gcc, we currently assume that we are using 15467 # Microsoft Visual C++. 15468 if test "$GCC" != yes; then 15469 with_gnu_ld=no 15470 fi 15471 ;; 15472 interix*) 15473 # we just hope/assume this is gcc and not c89 (= MSVC++) 15474 with_gnu_ld=yes 15475 ;; 15476 openbsd*) 15477 with_gnu_ld=no 15478 ;; 15479 linux* | k*bsd*-gnu | gnu*) 15480 link_all_deplibs=no 15481 ;; 15482 esac 15483 15484 ld_shlibs=yes 15485 15486 # On some targets, GNU ld is compatible enough with the native linker 15487 # that we're better off using the native interface for both. 15488 lt_use_gnu_ld_interface=no 15489 if test "$with_gnu_ld" = yes; then 15490 case $host_os in 15491 aix*) 15492 # The AIX port of GNU ld has always aspired to compatibility 15493 # with the native linker. However, as the warning in the GNU ld 15494 # block says, versions before 2.19.5* couldn't really create working 15495 # shared libraries, regardless of the interface used. 15496 case `$LD -v 2>&1` in 15497 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15498 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15499 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15500 *) 15501 lt_use_gnu_ld_interface=yes 15502 ;; 15503 esac 15504 ;; 15505 *) 15506 lt_use_gnu_ld_interface=yes 15507 ;; 15508 esac 15509 fi 15510 15511 if test "$lt_use_gnu_ld_interface" = yes; then 15512 # If archive_cmds runs LD, not CC, wlarc should be empty 15513 wlarc='${wl}' 15514 15515 # Set some defaults for GNU ld with shared library support. These 15516 # are reset later if shared libraries are not supported. Putting them 15517 # here allows them to be overridden if necessary. 15518 runpath_var=LD_RUN_PATH 15519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15520 export_dynamic_flag_spec='${wl}--export-dynamic' 15521 # ancient GNU ld didn't support --whole-archive et. al. 15522 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15523 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15524 else 15525 whole_archive_flag_spec= 15526 fi 15527 supports_anon_versioning=no 15528 case `$LD -v 2>&1` in 15529 *GNU\ gold*) supports_anon_versioning=yes ;; 15530 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15531 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15532 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15533 *\ 2.11.*) ;; # other 2.11 versions 15534 *) supports_anon_versioning=yes ;; 15535 esac 15536 15537 # See if GNU ld supports shared libraries. 15538 case $host_os in 15539 aix[3-9]*) 15540 # On AIX/PPC, the GNU linker is very broken 15541 if test "$host_cpu" != ia64; then 15542 ld_shlibs=no 15543 cat <<_LT_EOF 1>&2 15544 15545*** Warning: the GNU linker, at least up to release 2.19, is reported 15546*** to be unable to reliably create shared libraries on AIX. 15547*** Therefore, libtool is disabling shared libraries support. If you 15548*** really care for shared libraries, you may want to install binutils 15549*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15550*** You will then need to restart the configuration process. 15551 15552_LT_EOF 15553 fi 15554 ;; 15555 15556 amigaos*) 15557 case $host_cpu in 15558 powerpc) 15559 # see comment about AmigaOS4 .so support 15560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15561 archive_expsym_cmds='' 15562 ;; 15563 m68k) 15564 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)' 15565 hardcode_libdir_flag_spec='-L$libdir' 15566 hardcode_minus_L=yes 15567 ;; 15568 esac 15569 ;; 15570 15571 beos*) 15572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15573 allow_undefined_flag=unsupported 15574 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15575 # support --undefined. This deserves some investigation. FIXME 15576 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15577 else 15578 ld_shlibs=no 15579 fi 15580 ;; 15581 15582 cygwin* | mingw* | pw32* | cegcc*) 15583 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15584 # as there is no search path for DLLs. 15585 hardcode_libdir_flag_spec='-L$libdir' 15586 export_dynamic_flag_spec='${wl}--export-all-symbols' 15587 allow_undefined_flag=unsupported 15588 always_export_symbols=no 15589 enable_shared_with_static_runtimes=yes 15590 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' 15591 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15592 15593 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15595 # If the export-symbols file already is a .def file (1st line 15596 # is EXPORTS), use it as is; otherwise, prepend... 15597 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15598 cp $export_symbols $output_objdir/$soname.def; 15599 else 15600 echo EXPORTS > $output_objdir/$soname.def; 15601 cat $export_symbols >> $output_objdir/$soname.def; 15602 fi~ 15603 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15604 else 15605 ld_shlibs=no 15606 fi 15607 ;; 15608 15609 haiku*) 15610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15611 link_all_deplibs=yes 15612 ;; 15613 15614 interix[3-9]*) 15615 hardcode_direct=no 15616 hardcode_shlibpath_var=no 15617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15618 export_dynamic_flag_spec='${wl}-E' 15619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15620 # Instead, shared libraries are loaded at an image base (0x10000000 by 15621 # default) and relocated if they conflict, which is a slow very memory 15622 # consuming and fragmenting process. To avoid this, we pick a random, 15623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15624 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15626 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' 15627 ;; 15628 15629 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15630 tmp_diet=no 15631 if test "$host_os" = linux-dietlibc; then 15632 case $cc_basename in 15633 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15634 esac 15635 fi 15636 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15637 && test "$tmp_diet" = no 15638 then 15639 tmp_addflag=' $pic_flag' 15640 tmp_sharedflag='-shared' 15641 case $cc_basename,$host_cpu in 15642 pgcc*) # Portland Group C compiler 15643 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' 15644 tmp_addflag=' $pic_flag' 15645 ;; 15646 pgf77* | pgf90* | pgf95* | pgfortran*) 15647 # Portland Group f77 and f90 compilers 15648 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' 15649 tmp_addflag=' $pic_flag -Mnomain' ;; 15650 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15651 tmp_addflag=' -i_dynamic' ;; 15652 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15653 tmp_addflag=' -i_dynamic -nofor_main' ;; 15654 ifc* | ifort*) # Intel Fortran compiler 15655 tmp_addflag=' -nofor_main' ;; 15656 lf95*) # Lahey Fortran 8.1 15657 whole_archive_flag_spec= 15658 tmp_sharedflag='--shared' ;; 15659 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15660 tmp_sharedflag='-qmkshrobj' 15661 tmp_addflag= ;; 15662 nvcc*) # Cuda Compiler Driver 2.2 15663 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' 15664 compiler_needs_object=yes 15665 ;; 15666 esac 15667 case `$CC -V 2>&1 | sed 5q` in 15668 *Sun\ C*) # Sun C 5.9 15669 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' 15670 compiler_needs_object=yes 15671 tmp_sharedflag='-G' ;; 15672 *Sun\ F*) # Sun Fortran 8.3 15673 tmp_sharedflag='-G' ;; 15674 esac 15675 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15676 15677 if test "x$supports_anon_versioning" = xyes; then 15678 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15680 echo "local: *; };" >> $output_objdir/$libname.ver~ 15681 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15682 fi 15683 15684 case $cc_basename in 15685 xlf* | bgf* | bgxlf* | mpixlf*) 15686 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15687 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15689 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15690 if test "x$supports_anon_versioning" = xyes; then 15691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15693 echo "local: *; };" >> $output_objdir/$libname.ver~ 15694 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15695 fi 15696 ;; 15697 esac 15698 else 15699 ld_shlibs=no 15700 fi 15701 ;; 15702 15703 netbsd* | netbsdelf*-gnu) 15704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15706 wlarc= 15707 else 15708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15709 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15710 fi 15711 ;; 15712 15713 solaris*) 15714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15715 ld_shlibs=no 15716 cat <<_LT_EOF 1>&2 15717 15718*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15719*** create shared libraries on Solaris systems. Therefore, libtool 15720*** is disabling shared libraries support. We urge you to upgrade GNU 15721*** binutils to release 2.9.1 or newer. Another option is to modify 15722*** your PATH or compiler configuration so that the native linker is 15723*** used, and then restart. 15724 15725_LT_EOF 15726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15728 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15729 else 15730 ld_shlibs=no 15731 fi 15732 ;; 15733 15734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15735 case `$LD -v 2>&1` in 15736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15737 ld_shlibs=no 15738 cat <<_LT_EOF 1>&2 15739 15740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15741*** reliably create shared libraries on SCO systems. Therefore, libtool 15742*** is disabling shared libraries support. We urge you to upgrade GNU 15743*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15744*** your PATH or compiler configuration so that the native linker is 15745*** used, and then restart. 15746 15747_LT_EOF 15748 ;; 15749 *) 15750 # For security reasons, it is highly recommended that you always 15751 # use absolute paths for naming shared libraries, and exclude the 15752 # DT_RUNPATH tag from executables and libraries. But doing so 15753 # requires that you compile everything twice, which is a pain. 15754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15758 else 15759 ld_shlibs=no 15760 fi 15761 ;; 15762 esac 15763 ;; 15764 15765 sunos4*) 15766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15767 wlarc= 15768 hardcode_direct=yes 15769 hardcode_shlibpath_var=no 15770 ;; 15771 15772 *) 15773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15775 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15776 else 15777 ld_shlibs=no 15778 fi 15779 ;; 15780 esac 15781 15782 if test "$ld_shlibs" = no; then 15783 runpath_var= 15784 hardcode_libdir_flag_spec= 15785 export_dynamic_flag_spec= 15786 whole_archive_flag_spec= 15787 fi 15788 else 15789 # PORTME fill in a description of your system's linker (not GNU ld) 15790 case $host_os in 15791 aix3*) 15792 allow_undefined_flag=unsupported 15793 always_export_symbols=yes 15794 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' 15795 # Note: this linker hardcodes the directories in LIBPATH if there 15796 # are no directories specified by -L. 15797 hardcode_minus_L=yes 15798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15799 # Neither direct hardcoding nor static linking is supported with a 15800 # broken collect2. 15801 hardcode_direct=unsupported 15802 fi 15803 ;; 15804 15805 aix[4-9]*) 15806 if test "$host_cpu" = ia64; then 15807 # On IA64, the linker does run time linking by default, so we don't 15808 # have to do anything special. 15809 aix_use_runtimelinking=no 15810 exp_sym_flag='-Bexport' 15811 no_entry_flag="" 15812 else 15813 # If we're using GNU nm, then we don't want the "-C" option. 15814 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15815 # Also, AIX nm treats weak defined symbols like other global 15816 # defined symbols, whereas GNU nm marks them as "W". 15817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15818 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15819 else 15820 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15821 fi 15822 aix_use_runtimelinking=no 15823 15824 # Test if we are trying to use run time linking or normal 15825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15826 # need to do runtime linking. 15827 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15828 for ld_flag in $LDFLAGS; do 15829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15830 aix_use_runtimelinking=yes 15831 break 15832 fi 15833 done 15834 ;; 15835 esac 15836 15837 exp_sym_flag='-bexport' 15838 no_entry_flag='-bnoentry' 15839 fi 15840 15841 # When large executables or shared objects are built, AIX ld can 15842 # have problems creating the table of contents. If linking a library 15843 # or program results in "error TOC overflow" add -mminimal-toc to 15844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15846 15847 archive_cmds='' 15848 hardcode_direct=yes 15849 hardcode_direct_absolute=yes 15850 hardcode_libdir_separator=':' 15851 link_all_deplibs=yes 15852 file_list_spec='${wl}-f,' 15853 15854 if test "$GCC" = yes; then 15855 case $host_os in aix4.[012]|aix4.[012].*) 15856 # We only want to do this on AIX 4.2 and lower, the check 15857 # below for broken collect2 doesn't work under 4.3+ 15858 collect2name=`${CC} -print-prog-name=collect2` 15859 if test -f "$collect2name" && 15860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15861 then 15862 # We have reworked collect2 15863 : 15864 else 15865 # We have old collect2 15866 hardcode_direct=unsupported 15867 # It fails to find uninstalled libraries when the uninstalled 15868 # path is not listed in the libpath. Setting hardcode_minus_L 15869 # to unsupported forces relinking 15870 hardcode_minus_L=yes 15871 hardcode_libdir_flag_spec='-L$libdir' 15872 hardcode_libdir_separator= 15873 fi 15874 ;; 15875 esac 15876 shared_flag='-shared' 15877 if test "$aix_use_runtimelinking" = yes; then 15878 shared_flag="$shared_flag "'${wl}-G' 15879 fi 15880 link_all_deplibs=no 15881 else 15882 # not using gcc 15883 if test "$host_cpu" = ia64; then 15884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15885 # chokes on -Wl,-G. The following line is correct: 15886 shared_flag='-G' 15887 else 15888 if test "$aix_use_runtimelinking" = yes; then 15889 shared_flag='${wl}-G' 15890 else 15891 shared_flag='${wl}-bM:SRE' 15892 fi 15893 fi 15894 fi 15895 15896 export_dynamic_flag_spec='${wl}-bexpall' 15897 # It seems that -bexpall does not export symbols beginning with 15898 # underscore (_), so it is better to generate a list of symbols to export. 15899 always_export_symbols=yes 15900 if test "$aix_use_runtimelinking" = yes; then 15901 # Warning - without using the other runtime loading flags (-brtl), 15902 # -berok will link without error, but may produce a broken library. 15903 allow_undefined_flag='-berok' 15904 # Determine the default libpath from the value encoded in an 15905 # empty executable. 15906 if test "${lt_cv_aix_libpath+set}" = set; then 15907 aix_libpath=$lt_cv_aix_libpath 15908else 15909 if ${lt_cv_aix_libpath_+:} false; then : 15910 $as_echo_n "(cached) " >&6 15911else 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914 15915int 15916main () 15917{ 15918 15919 ; 15920 return 0; 15921} 15922_ACEOF 15923if ac_fn_c_try_link "$LINENO"; then : 15924 15925 lt_aix_libpath_sed=' 15926 /Import File Strings/,/^$/ { 15927 /^0/ { 15928 s/^0 *\([^ ]*\) *$/\1/ 15929 p 15930 } 15931 }' 15932 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15933 # Check for a 64-bit object if we didn't find anything. 15934 if test -z "$lt_cv_aix_libpath_"; then 15935 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15936 fi 15937fi 15938rm -f core conftest.err conftest.$ac_objext \ 15939 conftest$ac_exeext conftest.$ac_ext 15940 if test -z "$lt_cv_aix_libpath_"; then 15941 lt_cv_aix_libpath_="/usr/lib:/lib" 15942 fi 15943 15944fi 15945 15946 aix_libpath=$lt_cv_aix_libpath_ 15947fi 15948 15949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15950 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15951 else 15952 if test "$host_cpu" = ia64; then 15953 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15954 allow_undefined_flag="-z nodefs" 15955 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" 15956 else 15957 # Determine the default libpath from the value encoded in an 15958 # empty executable. 15959 if test "${lt_cv_aix_libpath+set}" = set; then 15960 aix_libpath=$lt_cv_aix_libpath 15961else 15962 if ${lt_cv_aix_libpath_+:} false; then : 15963 $as_echo_n "(cached) " >&6 15964else 15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15966/* end confdefs.h. */ 15967 15968int 15969main () 15970{ 15971 15972 ; 15973 return 0; 15974} 15975_ACEOF 15976if ac_fn_c_try_link "$LINENO"; then : 15977 15978 lt_aix_libpath_sed=' 15979 /Import File Strings/,/^$/ { 15980 /^0/ { 15981 s/^0 *\([^ ]*\) *$/\1/ 15982 p 15983 } 15984 }' 15985 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15986 # Check for a 64-bit object if we didn't find anything. 15987 if test -z "$lt_cv_aix_libpath_"; then 15988 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15989 fi 15990fi 15991rm -f core conftest.err conftest.$ac_objext \ 15992 conftest$ac_exeext conftest.$ac_ext 15993 if test -z "$lt_cv_aix_libpath_"; then 15994 lt_cv_aix_libpath_="/usr/lib:/lib" 15995 fi 15996 15997fi 15998 15999 aix_libpath=$lt_cv_aix_libpath_ 16000fi 16001 16002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16003 # Warning - without using the other run time loading flags, 16004 # -berok will link without error, but may produce a broken library. 16005 no_undefined_flag=' ${wl}-bernotok' 16006 allow_undefined_flag=' ${wl}-berok' 16007 if test "$with_gnu_ld" = yes; then 16008 # We only use this code for GNU lds that support --whole-archive. 16009 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16010 else 16011 # Exported symbols can be pulled into shared objects from archives 16012 whole_archive_flag_spec='$convenience' 16013 fi 16014 archive_cmds_need_lc=yes 16015 # This is similar to how AIX traditionally builds its shared libraries. 16016 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16017 fi 16018 fi 16019 ;; 16020 16021 amigaos*) 16022 case $host_cpu in 16023 powerpc) 16024 # see comment about AmigaOS4 .so support 16025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16026 archive_expsym_cmds='' 16027 ;; 16028 m68k) 16029 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)' 16030 hardcode_libdir_flag_spec='-L$libdir' 16031 hardcode_minus_L=yes 16032 ;; 16033 esac 16034 ;; 16035 16036 bsdi[45]*) 16037 export_dynamic_flag_spec=-rdynamic 16038 ;; 16039 16040 cygwin* | mingw* | pw32* | cegcc*) 16041 # When not using gcc, we currently assume that we are using 16042 # Microsoft Visual C++. 16043 # hardcode_libdir_flag_spec is actually meaningless, as there is 16044 # no search path for DLLs. 16045 case $cc_basename in 16046 cl*) 16047 # Native MSVC 16048 hardcode_libdir_flag_spec=' ' 16049 allow_undefined_flag=unsupported 16050 always_export_symbols=yes 16051 file_list_spec='@' 16052 # Tell ltmain to make .lib files, not .a files. 16053 libext=lib 16054 # Tell ltmain to make .dll files, not .so files. 16055 shrext_cmds=".dll" 16056 # FIXME: Setting linknames here is a bad hack. 16057 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 16058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16059 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 16060 else 16061 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 16062 fi~ 16063 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16064 linknames=' 16065 # The linker will not automatically build a static lib if we build a DLL. 16066 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16067 enable_shared_with_static_runtimes=yes 16068 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16070 # Don't use ranlib 16071 old_postinstall_cmds='chmod 644 $oldlib' 16072 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16073 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16074 case $lt_outputfile in 16075 *.exe|*.EXE) ;; 16076 *) 16077 lt_outputfile="$lt_outputfile.exe" 16078 lt_tool_outputfile="$lt_tool_outputfile.exe" 16079 ;; 16080 esac~ 16081 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 16082 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16083 $RM "$lt_outputfile.manifest"; 16084 fi' 16085 ;; 16086 *) 16087 # Assume MSVC wrapper 16088 hardcode_libdir_flag_spec=' ' 16089 allow_undefined_flag=unsupported 16090 # Tell ltmain to make .lib files, not .a files. 16091 libext=lib 16092 # Tell ltmain to make .dll files, not .so files. 16093 shrext_cmds=".dll" 16094 # FIXME: Setting linknames here is a bad hack. 16095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16096 # The linker will automatically build a .lib file if we build a DLL. 16097 old_archive_from_new_cmds='true' 16098 # FIXME: Should let the user specify the lib program. 16099 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16100 enable_shared_with_static_runtimes=yes 16101 ;; 16102 esac 16103 ;; 16104 16105 darwin* | rhapsody*) 16106 16107 16108 archive_cmds_need_lc=no 16109 hardcode_direct=no 16110 hardcode_automatic=yes 16111 hardcode_shlibpath_var=unsupported 16112 if test "$lt_cv_ld_force_load" = "yes"; then 16113 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\"`' 16114 16115 else 16116 whole_archive_flag_spec='' 16117 fi 16118 link_all_deplibs=yes 16119 allow_undefined_flag="$_lt_dar_allow_undefined" 16120 case $cc_basename in 16121 ifort*) _lt_dar_can_shared=yes ;; 16122 *) _lt_dar_can_shared=$GCC ;; 16123 esac 16124 if test "$_lt_dar_can_shared" = "yes"; then 16125 output_verbose_link_cmd=func_echo_all 16126 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16127 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16128 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}" 16129 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}" 16130 16131 else 16132 ld_shlibs=no 16133 fi 16134 16135 ;; 16136 16137 dgux*) 16138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16139 hardcode_libdir_flag_spec='-L$libdir' 16140 hardcode_shlibpath_var=no 16141 ;; 16142 16143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16144 # support. Future versions do this automatically, but an explicit c++rt0.o 16145 # does not break anything, and helps significantly (at the cost of a little 16146 # extra space). 16147 freebsd2.2*) 16148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16149 hardcode_libdir_flag_spec='-R$libdir' 16150 hardcode_direct=yes 16151 hardcode_shlibpath_var=no 16152 ;; 16153 16154 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16155 freebsd2.*) 16156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16157 hardcode_direct=yes 16158 hardcode_minus_L=yes 16159 hardcode_shlibpath_var=no 16160 ;; 16161 16162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16163 freebsd* | dragonfly*) 16164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16165 hardcode_libdir_flag_spec='-R$libdir' 16166 hardcode_direct=yes 16167 hardcode_shlibpath_var=no 16168 ;; 16169 16170 hpux9*) 16171 if test "$GCC" = yes; then 16172 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16173 else 16174 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16175 fi 16176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16177 hardcode_libdir_separator=: 16178 hardcode_direct=yes 16179 16180 # hardcode_minus_L: Not really in the search PATH, 16181 # but as the default location of the library. 16182 hardcode_minus_L=yes 16183 export_dynamic_flag_spec='${wl}-E' 16184 ;; 16185 16186 hpux10*) 16187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16188 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16189 else 16190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16191 fi 16192 if test "$with_gnu_ld" = no; then 16193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16194 hardcode_libdir_separator=: 16195 hardcode_direct=yes 16196 hardcode_direct_absolute=yes 16197 export_dynamic_flag_spec='${wl}-E' 16198 # hardcode_minus_L: Not really in the search PATH, 16199 # but as the default location of the library. 16200 hardcode_minus_L=yes 16201 fi 16202 ;; 16203 16204 hpux11*) 16205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16206 case $host_cpu in 16207 hppa*64*) 16208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16209 ;; 16210 ia64*) 16211 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16212 ;; 16213 *) 16214 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16215 ;; 16216 esac 16217 else 16218 case $host_cpu in 16219 hppa*64*) 16220 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16221 ;; 16222 ia64*) 16223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16224 ;; 16225 *) 16226 16227 # Older versions of the 11.00 compiler do not understand -b yet 16228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16230$as_echo_n "checking if $CC understands -b... " >&6; } 16231if ${lt_cv_prog_compiler__b+:} false; then : 16232 $as_echo_n "(cached) " >&6 16233else 16234 lt_cv_prog_compiler__b=no 16235 save_LDFLAGS="$LDFLAGS" 16236 LDFLAGS="$LDFLAGS -b" 16237 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16239 # The linker can only warn and ignore the option if not recognized 16240 # So say no if there are warnings 16241 if test -s conftest.err; then 16242 # Append any errors to the config.log. 16243 cat conftest.err 1>&5 16244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16246 if diff conftest.exp conftest.er2 >/dev/null; then 16247 lt_cv_prog_compiler__b=yes 16248 fi 16249 else 16250 lt_cv_prog_compiler__b=yes 16251 fi 16252 fi 16253 $RM -r conftest* 16254 LDFLAGS="$save_LDFLAGS" 16255 16256fi 16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16258$as_echo "$lt_cv_prog_compiler__b" >&6; } 16259 16260if test x"$lt_cv_prog_compiler__b" = xyes; then 16261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16262else 16263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16264fi 16265 16266 ;; 16267 esac 16268 fi 16269 if test "$with_gnu_ld" = no; then 16270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16271 hardcode_libdir_separator=: 16272 16273 case $host_cpu in 16274 hppa*64*|ia64*) 16275 hardcode_direct=no 16276 hardcode_shlibpath_var=no 16277 ;; 16278 *) 16279 hardcode_direct=yes 16280 hardcode_direct_absolute=yes 16281 export_dynamic_flag_spec='${wl}-E' 16282 16283 # hardcode_minus_L: Not really in the search PATH, 16284 # but as the default location of the library. 16285 hardcode_minus_L=yes 16286 ;; 16287 esac 16288 fi 16289 ;; 16290 16291 irix5* | irix6* | nonstopux*) 16292 if test "$GCC" = yes; then 16293 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' 16294 # Try to use the -exported_symbol ld option, if it does not 16295 # work, assume that -exports_file does not work either and 16296 # implicitly export all symbols. 16297 # This should be the same for all languages, so no per-tag cache variable. 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16299$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16300if ${lt_cv_irix_exported_symbol+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302else 16303 save_LDFLAGS="$LDFLAGS" 16304 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307int foo (void) { return 0; } 16308_ACEOF 16309if ac_fn_c_try_link "$LINENO"; then : 16310 lt_cv_irix_exported_symbol=yes 16311else 16312 lt_cv_irix_exported_symbol=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext \ 16315 conftest$ac_exeext conftest.$ac_ext 16316 LDFLAGS="$save_LDFLAGS" 16317fi 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16319$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16320 if test "$lt_cv_irix_exported_symbol" = yes; then 16321 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' 16322 fi 16323 else 16324 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' 16325 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' 16326 fi 16327 archive_cmds_need_lc='no' 16328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16329 hardcode_libdir_separator=: 16330 inherit_rpath=yes 16331 link_all_deplibs=yes 16332 ;; 16333 16334 netbsd* | netbsdelf*-gnu) 16335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16337 else 16338 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16339 fi 16340 hardcode_libdir_flag_spec='-R$libdir' 16341 hardcode_direct=yes 16342 hardcode_shlibpath_var=no 16343 ;; 16344 16345 newsos6) 16346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16347 hardcode_direct=yes 16348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16349 hardcode_libdir_separator=: 16350 hardcode_shlibpath_var=no 16351 ;; 16352 16353 *nto* | *qnx*) 16354 ;; 16355 16356 openbsd*) 16357 if test -f /usr/libexec/ld.so; then 16358 hardcode_direct=yes 16359 hardcode_shlibpath_var=no 16360 hardcode_direct_absolute=yes 16361 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16363 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16365 export_dynamic_flag_spec='${wl}-E' 16366 else 16367 case $host_os in 16368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16370 hardcode_libdir_flag_spec='-R$libdir' 16371 ;; 16372 *) 16373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16375 ;; 16376 esac 16377 fi 16378 else 16379 ld_shlibs=no 16380 fi 16381 ;; 16382 16383 os2*) 16384 hardcode_libdir_flag_spec='-L$libdir' 16385 hardcode_minus_L=yes 16386 allow_undefined_flag=unsupported 16387 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 16388 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16389 ;; 16390 16391 osf3*) 16392 if test "$GCC" = yes; then 16393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16394 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' 16395 else 16396 allow_undefined_flag=' -expect_unresolved \*' 16397 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' 16398 fi 16399 archive_cmds_need_lc='no' 16400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16401 hardcode_libdir_separator=: 16402 ;; 16403 16404 osf4* | osf5*) # as osf3* with the addition of -msym flag 16405 if test "$GCC" = yes; then 16406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16407 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' 16408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16409 else 16410 allow_undefined_flag=' -expect_unresolved \*' 16411 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' 16412 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~ 16413 $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' 16414 16415 # Both c and cxx compiler support -rpath directly 16416 hardcode_libdir_flag_spec='-rpath $libdir' 16417 fi 16418 archive_cmds_need_lc='no' 16419 hardcode_libdir_separator=: 16420 ;; 16421 16422 solaris*) 16423 no_undefined_flag=' -z defs' 16424 if test "$GCC" = yes; then 16425 wlarc='${wl}' 16426 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16428 $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' 16429 else 16430 case `$CC -V 2>&1` in 16431 *"Compilers 5.0"*) 16432 wlarc='' 16433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16434 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16436 ;; 16437 *) 16438 wlarc='${wl}' 16439 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16441 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16442 ;; 16443 esac 16444 fi 16445 hardcode_libdir_flag_spec='-R$libdir' 16446 hardcode_shlibpath_var=no 16447 case $host_os in 16448 solaris2.[0-5] | solaris2.[0-5].*) ;; 16449 *) 16450 # The compiler driver will combine and reorder linker options, 16451 # but understands `-z linker_flag'. GCC discards it without `$wl', 16452 # but is careful enough not to reorder. 16453 # Supported since Solaris 2.6 (maybe 2.5.1?) 16454 if test "$GCC" = yes; then 16455 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16456 else 16457 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16458 fi 16459 ;; 16460 esac 16461 link_all_deplibs=yes 16462 ;; 16463 16464 sunos4*) 16465 if test "x$host_vendor" = xsequent; then 16466 # Use $CC to link under sequent, because it throws in some extra .o 16467 # files that make .init and .fini sections work. 16468 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16469 else 16470 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16471 fi 16472 hardcode_libdir_flag_spec='-L$libdir' 16473 hardcode_direct=yes 16474 hardcode_minus_L=yes 16475 hardcode_shlibpath_var=no 16476 ;; 16477 16478 sysv4) 16479 case $host_vendor in 16480 sni) 16481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16482 hardcode_direct=yes # is this really true??? 16483 ;; 16484 siemens) 16485 ## LD is ld it makes a PLAMLIB 16486 ## CC just makes a GrossModule. 16487 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16488 reload_cmds='$CC -r -o $output$reload_objs' 16489 hardcode_direct=no 16490 ;; 16491 motorola) 16492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16493 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16494 ;; 16495 esac 16496 runpath_var='LD_RUN_PATH' 16497 hardcode_shlibpath_var=no 16498 ;; 16499 16500 sysv4.3*) 16501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16502 hardcode_shlibpath_var=no 16503 export_dynamic_flag_spec='-Bexport' 16504 ;; 16505 16506 sysv4*MP*) 16507 if test -d /usr/nec; then 16508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16509 hardcode_shlibpath_var=no 16510 runpath_var=LD_RUN_PATH 16511 hardcode_runpath_var=yes 16512 ld_shlibs=yes 16513 fi 16514 ;; 16515 16516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16517 no_undefined_flag='${wl}-z,text' 16518 archive_cmds_need_lc=no 16519 hardcode_shlibpath_var=no 16520 runpath_var='LD_RUN_PATH' 16521 16522 if test "$GCC" = yes; then 16523 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16524 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16525 else 16526 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16527 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16528 fi 16529 ;; 16530 16531 sysv5* | sco3.2v5* | sco5v6*) 16532 # Note: We can NOT use -z defs as we might desire, because we do not 16533 # link with -lc, and that would cause any symbols used from libc to 16534 # always be unresolved, which means just about no library would 16535 # ever link correctly. If we're not using GNU ld we use -z text 16536 # though, which does catch some bad symbols but isn't as heavy-handed 16537 # as -z defs. 16538 no_undefined_flag='${wl}-z,text' 16539 allow_undefined_flag='${wl}-z,nodefs' 16540 archive_cmds_need_lc=no 16541 hardcode_shlibpath_var=no 16542 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16543 hardcode_libdir_separator=':' 16544 link_all_deplibs=yes 16545 export_dynamic_flag_spec='${wl}-Bexport' 16546 runpath_var='LD_RUN_PATH' 16547 16548 if test "$GCC" = yes; then 16549 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16550 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16551 else 16552 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16553 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16554 fi 16555 ;; 16556 16557 uts4*) 16558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16559 hardcode_libdir_flag_spec='-L$libdir' 16560 hardcode_shlibpath_var=no 16561 ;; 16562 16563 *) 16564 ld_shlibs=no 16565 ;; 16566 esac 16567 16568 if test x$host_vendor = xsni; then 16569 case $host in 16570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16571 export_dynamic_flag_spec='${wl}-Blargedynsym' 16572 ;; 16573 esac 16574 fi 16575 fi 16576 16577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16578$as_echo "$ld_shlibs" >&6; } 16579test "$ld_shlibs" = no && can_build_shared=no 16580 16581with_gnu_ld=$with_gnu_ld 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597# 16598# Do we need to explicitly link libc? 16599# 16600case "x$archive_cmds_need_lc" in 16601x|xyes) 16602 # Assume -lc should be added 16603 archive_cmds_need_lc=yes 16604 16605 if test "$enable_shared" = yes && test "$GCC" = yes; then 16606 case $archive_cmds in 16607 *'~'*) 16608 # FIXME: we may have to deal with multi-command sequences. 16609 ;; 16610 '$CC '*) 16611 # Test whether the compiler implicitly links with -lc since on some 16612 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16613 # to ld, don't add -lc before -lgcc. 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16615$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16616if ${lt_cv_archive_cmds_need_lc+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 $RM conftest* 16620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16621 16622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16623 (eval $ac_compile) 2>&5 16624 ac_status=$? 16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16626 test $ac_status = 0; } 2>conftest.err; then 16627 soname=conftest 16628 lib=conftest 16629 libobjs=conftest.$ac_objext 16630 deplibs= 16631 wl=$lt_prog_compiler_wl 16632 pic_flag=$lt_prog_compiler_pic 16633 compiler_flags=-v 16634 linker_flags=-v 16635 verstring= 16636 output_objdir=. 16637 libname=conftest 16638 lt_save_allow_undefined_flag=$allow_undefined_flag 16639 allow_undefined_flag= 16640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16641 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16642 ac_status=$? 16643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16644 test $ac_status = 0; } 16645 then 16646 lt_cv_archive_cmds_need_lc=no 16647 else 16648 lt_cv_archive_cmds_need_lc=yes 16649 fi 16650 allow_undefined_flag=$lt_save_allow_undefined_flag 16651 else 16652 cat conftest.err 1>&5 16653 fi 16654 $RM conftest* 16655 16656fi 16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16658$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16659 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16660 ;; 16661 esac 16662 fi 16663 ;; 16664esac 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16818$as_echo_n "checking dynamic linker characteristics... " >&6; } 16819 16820if test "$GCC" = yes; then 16821 case $host_os in 16822 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16823 *) lt_awk_arg="/^libraries:/" ;; 16824 esac 16825 case $host_os in 16826 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16827 *) lt_sed_strip_eq="s,=/,/,g" ;; 16828 esac 16829 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16830 case $lt_search_path_spec in 16831 *\;*) 16832 # if the path contains ";" then we assume it to be the separator 16833 # otherwise default to the standard path separator (i.e. ":") - it is 16834 # assumed that no part of a normal pathname contains ";" but that should 16835 # okay in the real world where ";" in dirpaths is itself problematic. 16836 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16837 ;; 16838 *) 16839 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16840 ;; 16841 esac 16842 # Ok, now we have the path, separated by spaces, we can step through it 16843 # and add multilib dir if necessary. 16844 lt_tmp_lt_search_path_spec= 16845 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16846 for lt_sys_path in $lt_search_path_spec; do 16847 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16849 else 16850 test -d "$lt_sys_path" && \ 16851 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16852 fi 16853 done 16854 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16855BEGIN {RS=" "; FS="/|\n";} { 16856 lt_foo=""; 16857 lt_count=0; 16858 for (lt_i = NF; lt_i > 0; lt_i--) { 16859 if ($lt_i != "" && $lt_i != ".") { 16860 if ($lt_i == "..") { 16861 lt_count++; 16862 } else { 16863 if (lt_count == 0) { 16864 lt_foo="/" $lt_i lt_foo; 16865 } else { 16866 lt_count--; 16867 } 16868 } 16869 } 16870 } 16871 if (lt_foo != "") { lt_freq[lt_foo]++; } 16872 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16873}'` 16874 # AWK program above erroneously prepends '/' to C:/dos/paths 16875 # for these hosts. 16876 case $host_os in 16877 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16878 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16879 esac 16880 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16881else 16882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16883fi 16884library_names_spec= 16885libname_spec='lib$name' 16886soname_spec= 16887shrext_cmds=".so" 16888postinstall_cmds= 16889postuninstall_cmds= 16890finish_cmds= 16891finish_eval= 16892shlibpath_var= 16893shlibpath_overrides_runpath=unknown 16894version_type=none 16895dynamic_linker="$host_os ld.so" 16896sys_lib_dlsearch_path_spec="/lib /usr/lib" 16897need_lib_prefix=unknown 16898hardcode_into_libs=no 16899 16900# when you set need_version to no, make sure it does not cause -set_version 16901# flags to be left without arguments 16902need_version=unknown 16903 16904case $host_os in 16905aix3*) 16906 version_type=linux # correct to gnu/linux during the next big refactor 16907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16908 shlibpath_var=LIBPATH 16909 16910 # AIX 3 has no versioning support, so we append a major version to the name. 16911 soname_spec='${libname}${release}${shared_ext}$major' 16912 ;; 16913 16914aix[4-9]*) 16915 version_type=linux # correct to gnu/linux during the next big refactor 16916 need_lib_prefix=no 16917 need_version=no 16918 hardcode_into_libs=yes 16919 if test "$host_cpu" = ia64; then 16920 # AIX 5 supports IA64 16921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16922 shlibpath_var=LD_LIBRARY_PATH 16923 else 16924 # With GCC up to 2.95.x, collect2 would create an import file 16925 # for dependence libraries. The import file would start with 16926 # the line `#! .'. This would cause the generated library to 16927 # depend on `.', always an invalid library. This was fixed in 16928 # development snapshots of GCC prior to 3.0. 16929 case $host_os in 16930 aix4 | aix4.[01] | aix4.[01].*) 16931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16932 echo ' yes ' 16933 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16934 : 16935 else 16936 can_build_shared=no 16937 fi 16938 ;; 16939 esac 16940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16941 # soname into executable. Probably we can add versioning support to 16942 # collect2, so additional links can be useful in future. 16943 if test "$aix_use_runtimelinking" = yes; then 16944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16945 # instead of lib<name>.a to let people know that these are not 16946 # typical AIX shared libraries. 16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16948 else 16949 # We preserve .a as extension for shared libraries through AIX4.2 16950 # and later when we are not doing run time linking. 16951 library_names_spec='${libname}${release}.a $libname.a' 16952 soname_spec='${libname}${release}${shared_ext}$major' 16953 fi 16954 shlibpath_var=LIBPATH 16955 fi 16956 ;; 16957 16958amigaos*) 16959 case $host_cpu in 16960 powerpc) 16961 # Since July 2007 AmigaOS4 officially supports .so libraries. 16962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16964 ;; 16965 m68k) 16966 library_names_spec='$libname.ixlibrary $libname.a' 16967 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16968 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16969 ;; 16970 esac 16971 ;; 16972 16973beos*) 16974 library_names_spec='${libname}${shared_ext}' 16975 dynamic_linker="$host_os ld.so" 16976 shlibpath_var=LIBRARY_PATH 16977 ;; 16978 16979bsdi[45]*) 16980 version_type=linux # correct to gnu/linux during the next big refactor 16981 need_version=no 16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16983 soname_spec='${libname}${release}${shared_ext}$major' 16984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16985 shlibpath_var=LD_LIBRARY_PATH 16986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16988 # the default ld.so.conf also contains /usr/contrib/lib and 16989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16990 # libtool to hard-code these into programs 16991 ;; 16992 16993cygwin* | mingw* | pw32* | cegcc*) 16994 version_type=windows 16995 shrext_cmds=".dll" 16996 need_version=no 16997 need_lib_prefix=no 16998 16999 case $GCC,$cc_basename in 17000 yes,*) 17001 # gcc 17002 library_names_spec='$libname.dll.a' 17003 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17004 postinstall_cmds='base_file=`basename \${file}`~ 17005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17006 dldir=$destdir/`dirname \$dlpath`~ 17007 test -d \$dldir || mkdir -p \$dldir~ 17008 $install_prog $dir/$dlname \$dldir/$dlname~ 17009 chmod a+x \$dldir/$dlname~ 17010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17012 fi' 17013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17014 dlpath=$dir/\$dldll~ 17015 $RM \$dlpath' 17016 shlibpath_overrides_runpath=yes 17017 17018 case $host_os in 17019 cygwin*) 17020 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17022 17023 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17024 ;; 17025 mingw* | cegcc*) 17026 # MinGW DLLs use traditional 'lib' prefix 17027 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17028 ;; 17029 pw32*) 17030 # pw32 DLLs use 'pw' prefix rather than 'lib' 17031 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17032 ;; 17033 esac 17034 dynamic_linker='Win32 ld.exe' 17035 ;; 17036 17037 *,cl*) 17038 # Native MSVC 17039 libname_spec='$name' 17040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17041 library_names_spec='${libname}.dll.lib' 17042 17043 case $build_os in 17044 mingw*) 17045 sys_lib_search_path_spec= 17046 lt_save_ifs=$IFS 17047 IFS=';' 17048 for lt_path in $LIB 17049 do 17050 IFS=$lt_save_ifs 17051 # Let DOS variable expansion print the short 8.3 style file name. 17052 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17053 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17054 done 17055 IFS=$lt_save_ifs 17056 # Convert to MSYS style. 17057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17058 ;; 17059 cygwin*) 17060 # Convert to unix form, then to dos form, then back to unix form 17061 # but this time dos style (no spaces!) so that the unix form looks 17062 # like /cygdrive/c/PROGRA~1:/cygdr... 17063 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17064 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17065 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17066 ;; 17067 *) 17068 sys_lib_search_path_spec="$LIB" 17069 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17070 # It is most probably a Windows format PATH. 17071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17072 else 17073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17074 fi 17075 # FIXME: find the short name or the path components, as spaces are 17076 # common. (e.g. "Program Files" -> "PROGRA~1") 17077 ;; 17078 esac 17079 17080 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17081 postinstall_cmds='base_file=`basename \${file}`~ 17082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17083 dldir=$destdir/`dirname \$dlpath`~ 17084 test -d \$dldir || mkdir -p \$dldir~ 17085 $install_prog $dir/$dlname \$dldir/$dlname' 17086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17087 dlpath=$dir/\$dldll~ 17088 $RM \$dlpath' 17089 shlibpath_overrides_runpath=yes 17090 dynamic_linker='Win32 link.exe' 17091 ;; 17092 17093 *) 17094 # Assume MSVC wrapper 17095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17096 dynamic_linker='Win32 ld.exe' 17097 ;; 17098 esac 17099 # FIXME: first we should search . and the directory the executable is in 17100 shlibpath_var=PATH 17101 ;; 17102 17103darwin* | rhapsody*) 17104 dynamic_linker="$host_os dyld" 17105 version_type=darwin 17106 need_lib_prefix=no 17107 need_version=no 17108 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17109 soname_spec='${libname}${release}${major}$shared_ext' 17110 shlibpath_overrides_runpath=yes 17111 shlibpath_var=DYLD_LIBRARY_PATH 17112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17113 17114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17116 ;; 17117 17118dgux*) 17119 version_type=linux # correct to gnu/linux during the next big refactor 17120 need_lib_prefix=no 17121 need_version=no 17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17123 soname_spec='${libname}${release}${shared_ext}$major' 17124 shlibpath_var=LD_LIBRARY_PATH 17125 ;; 17126 17127freebsd* | dragonfly*) 17128 # DragonFly does not have aout. When/if they implement a new 17129 # versioning mechanism, adjust this. 17130 if test -x /usr/bin/objformat; then 17131 objformat=`/usr/bin/objformat` 17132 else 17133 case $host_os in 17134 freebsd[23].*) objformat=aout ;; 17135 *) objformat=elf ;; 17136 esac 17137 fi 17138 version_type=freebsd-$objformat 17139 case $version_type in 17140 freebsd-elf*) 17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17142 need_version=no 17143 need_lib_prefix=no 17144 ;; 17145 freebsd-*) 17146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17147 need_version=yes 17148 ;; 17149 esac 17150 shlibpath_var=LD_LIBRARY_PATH 17151 case $host_os in 17152 freebsd2.*) 17153 shlibpath_overrides_runpath=yes 17154 ;; 17155 freebsd3.[01]* | freebsdelf3.[01]*) 17156 shlibpath_overrides_runpath=yes 17157 hardcode_into_libs=yes 17158 ;; 17159 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17160 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17161 shlibpath_overrides_runpath=no 17162 hardcode_into_libs=yes 17163 ;; 17164 *) # from 4.6 on, and DragonFly 17165 shlibpath_overrides_runpath=yes 17166 hardcode_into_libs=yes 17167 ;; 17168 esac 17169 ;; 17170 17171gnu*) 17172 version_type=linux # correct to gnu/linux during the next big refactor 17173 need_lib_prefix=no 17174 need_version=no 17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17176 soname_spec='${libname}${release}${shared_ext}$major' 17177 shlibpath_var=LD_LIBRARY_PATH 17178 shlibpath_overrides_runpath=no 17179 hardcode_into_libs=yes 17180 ;; 17181 17182haiku*) 17183 version_type=linux # correct to gnu/linux during the next big refactor 17184 need_lib_prefix=no 17185 need_version=no 17186 dynamic_linker="$host_os runtime_loader" 17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17188 soname_spec='${libname}${release}${shared_ext}$major' 17189 shlibpath_var=LIBRARY_PATH 17190 shlibpath_overrides_runpath=yes 17191 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17192 hardcode_into_libs=yes 17193 ;; 17194 17195hpux9* | hpux10* | hpux11*) 17196 # Give a soname corresponding to the major version so that dld.sl refuses to 17197 # link against other versions. 17198 version_type=sunos 17199 need_lib_prefix=no 17200 need_version=no 17201 case $host_cpu in 17202 ia64*) 17203 shrext_cmds='.so' 17204 hardcode_into_libs=yes 17205 dynamic_linker="$host_os dld.so" 17206 shlibpath_var=LD_LIBRARY_PATH 17207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17209 soname_spec='${libname}${release}${shared_ext}$major' 17210 if test "X$HPUX_IA64_MODE" = X32; then 17211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17212 else 17213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17214 fi 17215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17216 ;; 17217 hppa*64*) 17218 shrext_cmds='.sl' 17219 hardcode_into_libs=yes 17220 dynamic_linker="$host_os dld.sl" 17221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17224 soname_spec='${libname}${release}${shared_ext}$major' 17225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17227 ;; 17228 *) 17229 shrext_cmds='.sl' 17230 dynamic_linker="$host_os dld.sl" 17231 shlibpath_var=SHLIB_PATH 17232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17234 soname_spec='${libname}${release}${shared_ext}$major' 17235 ;; 17236 esac 17237 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17238 postinstall_cmds='chmod 555 $lib' 17239 # or fails outright, so override atomically: 17240 install_override_mode=555 17241 ;; 17242 17243interix[3-9]*) 17244 version_type=linux # correct to gnu/linux during the next big refactor 17245 need_lib_prefix=no 17246 need_version=no 17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17248 soname_spec='${libname}${release}${shared_ext}$major' 17249 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17250 shlibpath_var=LD_LIBRARY_PATH 17251 shlibpath_overrides_runpath=no 17252 hardcode_into_libs=yes 17253 ;; 17254 17255irix5* | irix6* | nonstopux*) 17256 case $host_os in 17257 nonstopux*) version_type=nonstopux ;; 17258 *) 17259 if test "$lt_cv_prog_gnu_ld" = yes; then 17260 version_type=linux # correct to gnu/linux during the next big refactor 17261 else 17262 version_type=irix 17263 fi ;; 17264 esac 17265 need_lib_prefix=no 17266 need_version=no 17267 soname_spec='${libname}${release}${shared_ext}$major' 17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17269 case $host_os in 17270 irix5* | nonstopux*) 17271 libsuff= shlibsuff= 17272 ;; 17273 *) 17274 case $LD in # libtool.m4 will add one of these switches to LD 17275 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17276 libsuff= shlibsuff= libmagic=32-bit;; 17277 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17278 libsuff=32 shlibsuff=N32 libmagic=N32;; 17279 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17280 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17281 *) libsuff= shlibsuff= libmagic=never-match;; 17282 esac 17283 ;; 17284 esac 17285 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17286 shlibpath_overrides_runpath=no 17287 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17288 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17289 hardcode_into_libs=yes 17290 ;; 17291 17292# No shared lib support for Linux oldld, aout, or coff. 17293linux*oldld* | linux*aout* | linux*coff*) 17294 dynamic_linker=no 17295 ;; 17296 17297# This must be glibc/ELF. 17298linux* | k*bsd*-gnu | kopensolaris*-gnu) 17299 version_type=linux # correct to gnu/linux during the next big refactor 17300 need_lib_prefix=no 17301 need_version=no 17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17303 soname_spec='${libname}${release}${shared_ext}$major' 17304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17305 shlibpath_var=LD_LIBRARY_PATH 17306 shlibpath_overrides_runpath=no 17307 17308 # Some binutils ld are patched to set DT_RUNPATH 17309 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17310 $as_echo_n "(cached) " >&6 17311else 17312 lt_cv_shlibpath_overrides_runpath=no 17313 save_LDFLAGS=$LDFLAGS 17314 save_libdir=$libdir 17315 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17316 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17318/* end confdefs.h. */ 17319 17320int 17321main () 17322{ 17323 17324 ; 17325 return 0; 17326} 17327_ACEOF 17328if ac_fn_c_try_link "$LINENO"; then : 17329 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17330 lt_cv_shlibpath_overrides_runpath=yes 17331fi 17332fi 17333rm -f core conftest.err conftest.$ac_objext \ 17334 conftest$ac_exeext conftest.$ac_ext 17335 LDFLAGS=$save_LDFLAGS 17336 libdir=$save_libdir 17337 17338fi 17339 17340 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17341 17342 # This implies no fast_install, which is unacceptable. 17343 # Some rework will be needed to allow for fast_install 17344 # before this can be enabled. 17345 hardcode_into_libs=yes 17346 17347 # Append ld.so.conf contents to the search path 17348 if test -f /etc/ld.so.conf; then 17349 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' ' '` 17350 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17351 fi 17352 17353 # We used to test for /lib/ld.so.1 and disable shared libraries on 17354 # powerpc, because MkLinux only supported shared libraries with the 17355 # GNU dynamic linker. Since this was broken with cross compilers, 17356 # most powerpc-linux boxes support dynamic linking these days and 17357 # people can always --disable-shared, the test was removed, and we 17358 # assume the GNU/Linux dynamic linker is in use. 17359 dynamic_linker='GNU/Linux ld.so' 17360 ;; 17361 17362netbsdelf*-gnu) 17363 version_type=linux 17364 need_lib_prefix=no 17365 need_version=no 17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17367 soname_spec='${libname}${release}${shared_ext}$major' 17368 shlibpath_var=LD_LIBRARY_PATH 17369 shlibpath_overrides_runpath=no 17370 hardcode_into_libs=yes 17371 dynamic_linker='NetBSD ld.elf_so' 17372 ;; 17373 17374netbsd*) 17375 version_type=sunos 17376 need_lib_prefix=no 17377 need_version=no 17378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17381 dynamic_linker='NetBSD (a.out) ld.so' 17382 else 17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17384 soname_spec='${libname}${release}${shared_ext}$major' 17385 dynamic_linker='NetBSD ld.elf_so' 17386 fi 17387 shlibpath_var=LD_LIBRARY_PATH 17388 shlibpath_overrides_runpath=yes 17389 hardcode_into_libs=yes 17390 ;; 17391 17392newsos6) 17393 version_type=linux # correct to gnu/linux during the next big refactor 17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17395 shlibpath_var=LD_LIBRARY_PATH 17396 shlibpath_overrides_runpath=yes 17397 ;; 17398 17399*nto* | *qnx*) 17400 version_type=qnx 17401 need_lib_prefix=no 17402 need_version=no 17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17404 soname_spec='${libname}${release}${shared_ext}$major' 17405 shlibpath_var=LD_LIBRARY_PATH 17406 shlibpath_overrides_runpath=no 17407 hardcode_into_libs=yes 17408 dynamic_linker='ldqnx.so' 17409 ;; 17410 17411openbsd*) 17412 version_type=sunos 17413 sys_lib_dlsearch_path_spec="/usr/lib" 17414 need_lib_prefix=no 17415 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17416 case $host_os in 17417 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17418 *) need_version=no ;; 17419 esac 17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17422 shlibpath_var=LD_LIBRARY_PATH 17423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17424 case $host_os in 17425 openbsd2.[89] | openbsd2.[89].*) 17426 shlibpath_overrides_runpath=no 17427 ;; 17428 *) 17429 shlibpath_overrides_runpath=yes 17430 ;; 17431 esac 17432 else 17433 shlibpath_overrides_runpath=yes 17434 fi 17435 ;; 17436 17437os2*) 17438 libname_spec='$name' 17439 shrext_cmds=".dll" 17440 need_lib_prefix=no 17441 library_names_spec='$libname${shared_ext} $libname.a' 17442 dynamic_linker='OS/2 ld.exe' 17443 shlibpath_var=LIBPATH 17444 ;; 17445 17446osf3* | osf4* | osf5*) 17447 version_type=osf 17448 need_lib_prefix=no 17449 need_version=no 17450 soname_spec='${libname}${release}${shared_ext}$major' 17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17452 shlibpath_var=LD_LIBRARY_PATH 17453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17455 ;; 17456 17457rdos*) 17458 dynamic_linker=no 17459 ;; 17460 17461solaris*) 17462 version_type=linux # correct to gnu/linux during the next big refactor 17463 need_lib_prefix=no 17464 need_version=no 17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17466 soname_spec='${libname}${release}${shared_ext}$major' 17467 shlibpath_var=LD_LIBRARY_PATH 17468 shlibpath_overrides_runpath=yes 17469 hardcode_into_libs=yes 17470 # ldd complains unless libraries are executable 17471 postinstall_cmds='chmod +x $lib' 17472 ;; 17473 17474sunos4*) 17475 version_type=sunos 17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17478 shlibpath_var=LD_LIBRARY_PATH 17479 shlibpath_overrides_runpath=yes 17480 if test "$with_gnu_ld" = yes; then 17481 need_lib_prefix=no 17482 fi 17483 need_version=yes 17484 ;; 17485 17486sysv4 | sysv4.3*) 17487 version_type=linux # correct to gnu/linux during the next big refactor 17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17489 soname_spec='${libname}${release}${shared_ext}$major' 17490 shlibpath_var=LD_LIBRARY_PATH 17491 case $host_vendor in 17492 sni) 17493 shlibpath_overrides_runpath=no 17494 need_lib_prefix=no 17495 runpath_var=LD_RUN_PATH 17496 ;; 17497 siemens) 17498 need_lib_prefix=no 17499 ;; 17500 motorola) 17501 need_lib_prefix=no 17502 need_version=no 17503 shlibpath_overrides_runpath=no 17504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17505 ;; 17506 esac 17507 ;; 17508 17509sysv4*MP*) 17510 if test -d /usr/nec ;then 17511 version_type=linux # correct to gnu/linux during the next big refactor 17512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17513 soname_spec='$libname${shared_ext}.$major' 17514 shlibpath_var=LD_LIBRARY_PATH 17515 fi 17516 ;; 17517 17518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17519 version_type=freebsd-elf 17520 need_lib_prefix=no 17521 need_version=no 17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17523 soname_spec='${libname}${release}${shared_ext}$major' 17524 shlibpath_var=LD_LIBRARY_PATH 17525 shlibpath_overrides_runpath=yes 17526 hardcode_into_libs=yes 17527 if test "$with_gnu_ld" = yes; then 17528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17529 else 17530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17531 case $host_os in 17532 sco3.2v5*) 17533 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17534 ;; 17535 esac 17536 fi 17537 sys_lib_dlsearch_path_spec='/usr/lib' 17538 ;; 17539 17540tpf*) 17541 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17542 version_type=linux # correct to gnu/linux during the next big refactor 17543 need_lib_prefix=no 17544 need_version=no 17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17546 shlibpath_var=LD_LIBRARY_PATH 17547 shlibpath_overrides_runpath=no 17548 hardcode_into_libs=yes 17549 ;; 17550 17551uts4*) 17552 version_type=linux # correct to gnu/linux during the next big refactor 17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17554 soname_spec='${libname}${release}${shared_ext}$major' 17555 shlibpath_var=LD_LIBRARY_PATH 17556 ;; 17557 17558*) 17559 dynamic_linker=no 17560 ;; 17561esac 17562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17563$as_echo "$dynamic_linker" >&6; } 17564test "$dynamic_linker" = no && can_build_shared=no 17565 17566variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17567if test "$GCC" = yes; then 17568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17569fi 17570 17571if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17572 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17573fi 17574if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17575 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17576fi 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17670$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17671hardcode_action= 17672if test -n "$hardcode_libdir_flag_spec" || 17673 test -n "$runpath_var" || 17674 test "X$hardcode_automatic" = "Xyes" ; then 17675 17676 # We can hardcode non-existent directories. 17677 if test "$hardcode_direct" != no && 17678 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17679 # have to relink, otherwise we might link with an installed library 17680 # when we should be linking with a yet-to-be-installed one 17681 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17682 test "$hardcode_minus_L" != no; then 17683 # Linking always hardcodes the temporary library directory. 17684 hardcode_action=relink 17685 else 17686 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17687 hardcode_action=immediate 17688 fi 17689else 17690 # We cannot hardcode anything, or else we can only hardcode existing 17691 # directories. 17692 hardcode_action=unsupported 17693fi 17694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17695$as_echo "$hardcode_action" >&6; } 17696 17697if test "$hardcode_action" = relink || 17698 test "$inherit_rpath" = yes; then 17699 # Fast installation is not supported 17700 enable_fast_install=no 17701elif test "$shlibpath_overrides_runpath" = yes || 17702 test "$enable_shared" = no; then 17703 # Fast installation is not necessary 17704 enable_fast_install=needless 17705fi 17706 17707 17708 17709 17710 17711 17712 if test "x$enable_dlopen" != xyes; then 17713 enable_dlopen=unknown 17714 enable_dlopen_self=unknown 17715 enable_dlopen_self_static=unknown 17716else 17717 lt_cv_dlopen=no 17718 lt_cv_dlopen_libs= 17719 17720 case $host_os in 17721 beos*) 17722 lt_cv_dlopen="load_add_on" 17723 lt_cv_dlopen_libs= 17724 lt_cv_dlopen_self=yes 17725 ;; 17726 17727 mingw* | pw32* | cegcc*) 17728 lt_cv_dlopen="LoadLibrary" 17729 lt_cv_dlopen_libs= 17730 ;; 17731 17732 cygwin*) 17733 lt_cv_dlopen="dlopen" 17734 lt_cv_dlopen_libs= 17735 ;; 17736 17737 darwin*) 17738 # if libdl is installed we need to link against it 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17740$as_echo_n "checking for dlopen in -ldl... " >&6; } 17741if ${ac_cv_lib_dl_dlopen+:} false; then : 17742 $as_echo_n "(cached) " >&6 17743else 17744 ac_check_lib_save_LIBS=$LIBS 17745LIBS="-ldl $LIBS" 17746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17747/* end confdefs.h. */ 17748 17749/* Override any GCC internal prototype to avoid an error. 17750 Use char because int might match the return type of a GCC 17751 builtin and then its argument prototype would still apply. */ 17752#ifdef __cplusplus 17753extern "C" 17754#endif 17755char dlopen (); 17756int 17757main () 17758{ 17759return dlopen (); 17760 ; 17761 return 0; 17762} 17763_ACEOF 17764if ac_fn_c_try_link "$LINENO"; then : 17765 ac_cv_lib_dl_dlopen=yes 17766else 17767 ac_cv_lib_dl_dlopen=no 17768fi 17769rm -f core conftest.err conftest.$ac_objext \ 17770 conftest$ac_exeext conftest.$ac_ext 17771LIBS=$ac_check_lib_save_LIBS 17772fi 17773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17774$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17775if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17777else 17778 17779 lt_cv_dlopen="dyld" 17780 lt_cv_dlopen_libs= 17781 lt_cv_dlopen_self=yes 17782 17783fi 17784 17785 ;; 17786 17787 *) 17788 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17789if test "x$ac_cv_func_shl_load" = xyes; then : 17790 lt_cv_dlopen="shl_load" 17791else 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17793$as_echo_n "checking for shl_load in -ldld... " >&6; } 17794if ${ac_cv_lib_dld_shl_load+:} false; then : 17795 $as_echo_n "(cached) " >&6 17796else 17797 ac_check_lib_save_LIBS=$LIBS 17798LIBS="-ldld $LIBS" 17799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17800/* end confdefs.h. */ 17801 17802/* Override any GCC internal prototype to avoid an error. 17803 Use char because int might match the return type of a GCC 17804 builtin and then its argument prototype would still apply. */ 17805#ifdef __cplusplus 17806extern "C" 17807#endif 17808char shl_load (); 17809int 17810main () 17811{ 17812return shl_load (); 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817if ac_fn_c_try_link "$LINENO"; then : 17818 ac_cv_lib_dld_shl_load=yes 17819else 17820 ac_cv_lib_dld_shl_load=no 17821fi 17822rm -f core conftest.err conftest.$ac_objext \ 17823 conftest$ac_exeext conftest.$ac_ext 17824LIBS=$ac_check_lib_save_LIBS 17825fi 17826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17827$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17828if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17829 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17830else 17831 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17832if test "x$ac_cv_func_dlopen" = xyes; then : 17833 lt_cv_dlopen="dlopen" 17834else 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17836$as_echo_n "checking for dlopen in -ldl... " >&6; } 17837if ${ac_cv_lib_dl_dlopen+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 ac_check_lib_save_LIBS=$LIBS 17841LIBS="-ldl $LIBS" 17842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843/* end confdefs.h. */ 17844 17845/* Override any GCC internal prototype to avoid an error. 17846 Use char because int might match the return type of a GCC 17847 builtin and then its argument prototype would still apply. */ 17848#ifdef __cplusplus 17849extern "C" 17850#endif 17851char dlopen (); 17852int 17853main () 17854{ 17855return dlopen (); 17856 ; 17857 return 0; 17858} 17859_ACEOF 17860if ac_fn_c_try_link "$LINENO"; then : 17861 ac_cv_lib_dl_dlopen=yes 17862else 17863 ac_cv_lib_dl_dlopen=no 17864fi 17865rm -f core conftest.err conftest.$ac_objext \ 17866 conftest$ac_exeext conftest.$ac_ext 17867LIBS=$ac_check_lib_save_LIBS 17868fi 17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17870$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17871if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17873else 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17875$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17876if ${ac_cv_lib_svld_dlopen+:} false; then : 17877 $as_echo_n "(cached) " >&6 17878else 17879 ac_check_lib_save_LIBS=$LIBS 17880LIBS="-lsvld $LIBS" 17881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17882/* end confdefs.h. */ 17883 17884/* Override any GCC internal prototype to avoid an error. 17885 Use char because int might match the return type of a GCC 17886 builtin and then its argument prototype would still apply. */ 17887#ifdef __cplusplus 17888extern "C" 17889#endif 17890char dlopen (); 17891int 17892main () 17893{ 17894return dlopen (); 17895 ; 17896 return 0; 17897} 17898_ACEOF 17899if ac_fn_c_try_link "$LINENO"; then : 17900 ac_cv_lib_svld_dlopen=yes 17901else 17902 ac_cv_lib_svld_dlopen=no 17903fi 17904rm -f core conftest.err conftest.$ac_objext \ 17905 conftest$ac_exeext conftest.$ac_ext 17906LIBS=$ac_check_lib_save_LIBS 17907fi 17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17909$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17910if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17912else 17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17914$as_echo_n "checking for dld_link in -ldld... " >&6; } 17915if ${ac_cv_lib_dld_dld_link+:} false; then : 17916 $as_echo_n "(cached) " >&6 17917else 17918 ac_check_lib_save_LIBS=$LIBS 17919LIBS="-ldld $LIBS" 17920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17921/* end confdefs.h. */ 17922 17923/* Override any GCC internal prototype to avoid an error. 17924 Use char because int might match the return type of a GCC 17925 builtin and then its argument prototype would still apply. */ 17926#ifdef __cplusplus 17927extern "C" 17928#endif 17929char dld_link (); 17930int 17931main () 17932{ 17933return dld_link (); 17934 ; 17935 return 0; 17936} 17937_ACEOF 17938if ac_fn_c_try_link "$LINENO"; then : 17939 ac_cv_lib_dld_dld_link=yes 17940else 17941 ac_cv_lib_dld_dld_link=no 17942fi 17943rm -f core conftest.err conftest.$ac_objext \ 17944 conftest$ac_exeext conftest.$ac_ext 17945LIBS=$ac_check_lib_save_LIBS 17946fi 17947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17948$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17949if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17950 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17951fi 17952 17953 17954fi 17955 17956 17957fi 17958 17959 17960fi 17961 17962 17963fi 17964 17965 17966fi 17967 17968 ;; 17969 esac 17970 17971 if test "x$lt_cv_dlopen" != xno; then 17972 enable_dlopen=yes 17973 else 17974 enable_dlopen=no 17975 fi 17976 17977 case $lt_cv_dlopen in 17978 dlopen) 17979 save_CPPFLAGS="$CPPFLAGS" 17980 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17981 17982 save_LDFLAGS="$LDFLAGS" 17983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17984 17985 save_LIBS="$LIBS" 17986 LIBS="$lt_cv_dlopen_libs $LIBS" 17987 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17989$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17990if ${lt_cv_dlopen_self+:} false; then : 17991 $as_echo_n "(cached) " >&6 17992else 17993 if test "$cross_compiling" = yes; then : 17994 lt_cv_dlopen_self=cross 17995else 17996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17997 lt_status=$lt_dlunknown 17998 cat > conftest.$ac_ext <<_LT_EOF 17999#line $LINENO "configure" 18000#include "confdefs.h" 18001 18002#if HAVE_DLFCN_H 18003#include <dlfcn.h> 18004#endif 18005 18006#include <stdio.h> 18007 18008#ifdef RTLD_GLOBAL 18009# define LT_DLGLOBAL RTLD_GLOBAL 18010#else 18011# ifdef DL_GLOBAL 18012# define LT_DLGLOBAL DL_GLOBAL 18013# else 18014# define LT_DLGLOBAL 0 18015# endif 18016#endif 18017 18018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18019 find out it does not work in some platform. */ 18020#ifndef LT_DLLAZY_OR_NOW 18021# ifdef RTLD_LAZY 18022# define LT_DLLAZY_OR_NOW RTLD_LAZY 18023# else 18024# ifdef DL_LAZY 18025# define LT_DLLAZY_OR_NOW DL_LAZY 18026# else 18027# ifdef RTLD_NOW 18028# define LT_DLLAZY_OR_NOW RTLD_NOW 18029# else 18030# ifdef DL_NOW 18031# define LT_DLLAZY_OR_NOW DL_NOW 18032# else 18033# define LT_DLLAZY_OR_NOW 0 18034# endif 18035# endif 18036# endif 18037# endif 18038#endif 18039 18040/* When -fvisbility=hidden is used, assume the code has been annotated 18041 correspondingly for the symbols needed. */ 18042#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18043int fnord () __attribute__((visibility("default"))); 18044#endif 18045 18046int fnord () { return 42; } 18047int main () 18048{ 18049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18050 int status = $lt_dlunknown; 18051 18052 if (self) 18053 { 18054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18055 else 18056 { 18057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18058 else puts (dlerror ()); 18059 } 18060 /* dlclose (self); */ 18061 } 18062 else 18063 puts (dlerror ()); 18064 18065 return status; 18066} 18067_LT_EOF 18068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18069 (eval $ac_link) 2>&5 18070 ac_status=$? 18071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18072 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18073 (./conftest; exit; ) >&5 2>/dev/null 18074 lt_status=$? 18075 case x$lt_status in 18076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18078 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18079 esac 18080 else : 18081 # compilation failed 18082 lt_cv_dlopen_self=no 18083 fi 18084fi 18085rm -fr conftest* 18086 18087 18088fi 18089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18090$as_echo "$lt_cv_dlopen_self" >&6; } 18091 18092 if test "x$lt_cv_dlopen_self" = xyes; then 18093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18095$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18096if ${lt_cv_dlopen_self_static+:} false; then : 18097 $as_echo_n "(cached) " >&6 18098else 18099 if test "$cross_compiling" = yes; then : 18100 lt_cv_dlopen_self_static=cross 18101else 18102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18103 lt_status=$lt_dlunknown 18104 cat > conftest.$ac_ext <<_LT_EOF 18105#line $LINENO "configure" 18106#include "confdefs.h" 18107 18108#if HAVE_DLFCN_H 18109#include <dlfcn.h> 18110#endif 18111 18112#include <stdio.h> 18113 18114#ifdef RTLD_GLOBAL 18115# define LT_DLGLOBAL RTLD_GLOBAL 18116#else 18117# ifdef DL_GLOBAL 18118# define LT_DLGLOBAL DL_GLOBAL 18119# else 18120# define LT_DLGLOBAL 0 18121# endif 18122#endif 18123 18124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18125 find out it does not work in some platform. */ 18126#ifndef LT_DLLAZY_OR_NOW 18127# ifdef RTLD_LAZY 18128# define LT_DLLAZY_OR_NOW RTLD_LAZY 18129# else 18130# ifdef DL_LAZY 18131# define LT_DLLAZY_OR_NOW DL_LAZY 18132# else 18133# ifdef RTLD_NOW 18134# define LT_DLLAZY_OR_NOW RTLD_NOW 18135# else 18136# ifdef DL_NOW 18137# define LT_DLLAZY_OR_NOW DL_NOW 18138# else 18139# define LT_DLLAZY_OR_NOW 0 18140# endif 18141# endif 18142# endif 18143# endif 18144#endif 18145 18146/* When -fvisbility=hidden is used, assume the code has been annotated 18147 correspondingly for the symbols needed. */ 18148#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18149int fnord () __attribute__((visibility("default"))); 18150#endif 18151 18152int fnord () { return 42; } 18153int main () 18154{ 18155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18156 int status = $lt_dlunknown; 18157 18158 if (self) 18159 { 18160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18161 else 18162 { 18163 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18164 else puts (dlerror ()); 18165 } 18166 /* dlclose (self); */ 18167 } 18168 else 18169 puts (dlerror ()); 18170 18171 return status; 18172} 18173_LT_EOF 18174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18175 (eval $ac_link) 2>&5 18176 ac_status=$? 18177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18178 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18179 (./conftest; exit; ) >&5 2>/dev/null 18180 lt_status=$? 18181 case x$lt_status in 18182 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18183 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18184 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18185 esac 18186 else : 18187 # compilation failed 18188 lt_cv_dlopen_self_static=no 18189 fi 18190fi 18191rm -fr conftest* 18192 18193 18194fi 18195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18196$as_echo "$lt_cv_dlopen_self_static" >&6; } 18197 fi 18198 18199 CPPFLAGS="$save_CPPFLAGS" 18200 LDFLAGS="$save_LDFLAGS" 18201 LIBS="$save_LIBS" 18202 ;; 18203 esac 18204 18205 case $lt_cv_dlopen_self in 18206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18207 *) enable_dlopen_self=unknown ;; 18208 esac 18209 18210 case $lt_cv_dlopen_self_static in 18211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18212 *) enable_dlopen_self_static=unknown ;; 18213 esac 18214fi 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232striplib= 18233old_striplib= 18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18235$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18236if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18237 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18238 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18240$as_echo "yes" >&6; } 18241else 18242# FIXME - insert some real tests, host_os isn't really good enough 18243 case $host_os in 18244 darwin*) 18245 if test -n "$STRIP" ; then 18246 striplib="$STRIP -x" 18247 old_striplib="$STRIP -S" 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18249$as_echo "yes" >&6; } 18250 else 18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18252$as_echo "no" >&6; } 18253 fi 18254 ;; 18255 *) 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18257$as_echo "no" >&6; } 18258 ;; 18259 esac 18260fi 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 # Report which library types will actually be built 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18275$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18277$as_echo "$can_build_shared" >&6; } 18278 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18280$as_echo_n "checking whether to build shared libraries... " >&6; } 18281 test "$can_build_shared" = "no" && enable_shared=no 18282 18283 # On AIX, shared libraries and static libraries use the same namespace, and 18284 # are all built from PIC. 18285 case $host_os in 18286 aix3*) 18287 test "$enable_shared" = yes && enable_static=no 18288 if test -n "$RANLIB"; then 18289 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18290 postinstall_cmds='$RANLIB $lib' 18291 fi 18292 ;; 18293 18294 aix[4-9]*) 18295 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 18296 test "$enable_shared" = yes && enable_static=no 18297 fi 18298 ;; 18299 esac 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18301$as_echo "$enable_shared" >&6; } 18302 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18304$as_echo_n "checking whether to build static libraries... " >&6; } 18305 # Make sure either enable_shared or enable_static is yes. 18306 test "$enable_shared" = yes || enable_static=yes 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18308$as_echo "$enable_static" >&6; } 18309 18310 18311 18312 18313fi 18314ac_ext=c 18315ac_cpp='$CPP $CPPFLAGS' 18316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18318ac_compiler_gnu=$ac_cv_c_compiler_gnu 18319 18320CC="$lt_save_CC" 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 ac_config_commands="$ac_config_commands libtool" 18337 18338 18339 18340 18341# Only expand once: 18342 18343 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: starting libtool investigation..." >&5 18345$as_echo "starting libtool investigation..." >&6; } 18346 18347 ## turn off -Werror'ing 18348 ac_c_werror_flag= 18349 18350 18351 18352 18353 18354LT_DLLOADERS= 18355 18356 18357ac_ext=c 18358ac_cpp='$CPP $CPPFLAGS' 18359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18361ac_compiler_gnu=$ac_cv_c_compiler_gnu 18362 18363 18364LIBADD_DLOPEN= 18365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18366$as_echo_n "checking for library containing dlopen... " >&6; } 18367if ${ac_cv_search_dlopen+:} false; then : 18368 $as_echo_n "(cached) " >&6 18369else 18370 ac_func_search_save_LIBS=$LIBS 18371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18372/* end confdefs.h. */ 18373 18374/* Override any GCC internal prototype to avoid an error. 18375 Use char because int might match the return type of a GCC 18376 builtin and then its argument prototype would still apply. */ 18377#ifdef __cplusplus 18378extern "C" 18379#endif 18380char dlopen (); 18381int 18382main () 18383{ 18384return dlopen (); 18385 ; 18386 return 0; 18387} 18388_ACEOF 18389for ac_lib in '' dl; do 18390 if test -z "$ac_lib"; then 18391 ac_res="none required" 18392 else 18393 ac_res=-l$ac_lib 18394 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18395 fi 18396 if ac_fn_c_try_link "$LINENO"; then : 18397 ac_cv_search_dlopen=$ac_res 18398fi 18399rm -f core conftest.err conftest.$ac_objext \ 18400 conftest$ac_exeext 18401 if ${ac_cv_search_dlopen+:} false; then : 18402 break 18403fi 18404done 18405if ${ac_cv_search_dlopen+:} false; then : 18406 18407else 18408 ac_cv_search_dlopen=no 18409fi 18410rm conftest.$ac_ext 18411LIBS=$ac_func_search_save_LIBS 18412fi 18413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18414$as_echo "$ac_cv_search_dlopen" >&6; } 18415ac_res=$ac_cv_search_dlopen 18416if test "$ac_res" != no; then : 18417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18418 18419$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 18420 18421 if test "$ac_cv_search_dlopen" != "none required" ; then 18422 LIBADD_DLOPEN="-ldl" 18423 fi 18424 libltdl_cv_lib_dl_dlopen="yes" 18425 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 18426else 18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18428/* end confdefs.h. */ 18429#if HAVE_DLFCN_H 18430# include <dlfcn.h> 18431#endif 18432 18433int 18434main () 18435{ 18436dlopen(0, 0); 18437 ; 18438 return 0; 18439} 18440_ACEOF 18441if ac_fn_c_try_link "$LINENO"; then : 18442 18443$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 18444 18445 libltdl_cv_func_dlopen="yes" 18446 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 18447else 18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18449$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18450if ${ac_cv_lib_svld_dlopen+:} false; then : 18451 $as_echo_n "(cached) " >&6 18452else 18453 ac_check_lib_save_LIBS=$LIBS 18454LIBS="-lsvld $LIBS" 18455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18456/* end confdefs.h. */ 18457 18458/* Override any GCC internal prototype to avoid an error. 18459 Use char because int might match the return type of a GCC 18460 builtin and then its argument prototype would still apply. */ 18461#ifdef __cplusplus 18462extern "C" 18463#endif 18464char dlopen (); 18465int 18466main () 18467{ 18468return dlopen (); 18469 ; 18470 return 0; 18471} 18472_ACEOF 18473if ac_fn_c_try_link "$LINENO"; then : 18474 ac_cv_lib_svld_dlopen=yes 18475else 18476 ac_cv_lib_svld_dlopen=no 18477fi 18478rm -f core conftest.err conftest.$ac_objext \ 18479 conftest$ac_exeext conftest.$ac_ext 18480LIBS=$ac_check_lib_save_LIBS 18481fi 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18483$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18484if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18485 18486$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 18487 18488 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 18489 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 18490fi 18491 18492fi 18493rm -f core conftest.err conftest.$ac_objext \ 18494 conftest$ac_exeext conftest.$ac_ext 18495fi 18496 18497if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 18498then 18499 lt_save_LIBS="$LIBS" 18500 LIBS="$LIBS $LIBADD_DLOPEN" 18501 for ac_func in dlerror 18502do : 18503 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 18504if test "x$ac_cv_func_dlerror" = xyes; then : 18505 cat >>confdefs.h <<_ACEOF 18506#define HAVE_DLERROR 1 18507_ACEOF 18508 18509fi 18510done 18511 18512 LIBS="$lt_save_LIBS" 18513fi 18514 18515 18516LIBADD_SHL_LOAD= 18517ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18518if test "x$ac_cv_func_shl_load" = xyes; then : 18519 18520$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 18521 18522 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 18523else 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18525$as_echo_n "checking for shl_load in -ldld... " >&6; } 18526if ${ac_cv_lib_dld_shl_load+:} false; then : 18527 $as_echo_n "(cached) " >&6 18528else 18529 ac_check_lib_save_LIBS=$LIBS 18530LIBS="-ldld $LIBS" 18531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18532/* end confdefs.h. */ 18533 18534/* Override any GCC internal prototype to avoid an error. 18535 Use char because int might match the return type of a GCC 18536 builtin and then its argument prototype would still apply. */ 18537#ifdef __cplusplus 18538extern "C" 18539#endif 18540char shl_load (); 18541int 18542main () 18543{ 18544return shl_load (); 18545 ; 18546 return 0; 18547} 18548_ACEOF 18549if ac_fn_c_try_link "$LINENO"; then : 18550 ac_cv_lib_dld_shl_load=yes 18551else 18552 ac_cv_lib_dld_shl_load=no 18553fi 18554rm -f core conftest.err conftest.$ac_objext \ 18555 conftest$ac_exeext conftest.$ac_ext 18556LIBS=$ac_check_lib_save_LIBS 18557fi 18558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18559$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18560if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18561 18562$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 18563 18564 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 18565 LIBADD_SHL_LOAD="-ldld" 18566fi 18567 18568fi 18569 18570 18571 18572case $host_os in 18573darwin[1567].*) 18574# We only want this for pre-Mac OS X 10.4. 18575 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 18576if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 18577 18578$as_echo "#define HAVE_DYLD 1" >>confdefs.h 18579 18580 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 18581fi 18582 18583 ;; 18584beos*) 18585 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 18586 ;; 18587cygwin* | mingw* | os2* | pw32*) 18588 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 18589" 18590if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 18591 ac_have_decl=1 18592else 18593 ac_have_decl=0 18594fi 18595 18596cat >>confdefs.h <<_ACEOF 18597#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 18598_ACEOF 18599 18600 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 18601 ;; 18602esac 18603 18604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18605$as_echo_n "checking for dld_link in -ldld... " >&6; } 18606if ${ac_cv_lib_dld_dld_link+:} false; then : 18607 $as_echo_n "(cached) " >&6 18608else 18609 ac_check_lib_save_LIBS=$LIBS 18610LIBS="-ldld $LIBS" 18611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18612/* end confdefs.h. */ 18613 18614/* Override any GCC internal prototype to avoid an error. 18615 Use char because int might match the return type of a GCC 18616 builtin and then its argument prototype would still apply. */ 18617#ifdef __cplusplus 18618extern "C" 18619#endif 18620char dld_link (); 18621int 18622main () 18623{ 18624return dld_link (); 18625 ; 18626 return 0; 18627} 18628_ACEOF 18629if ac_fn_c_try_link "$LINENO"; then : 18630 ac_cv_lib_dld_dld_link=yes 18631else 18632 ac_cv_lib_dld_dld_link=no 18633fi 18634rm -f core conftest.err conftest.$ac_objext \ 18635 conftest$ac_exeext conftest.$ac_ext 18636LIBS=$ac_check_lib_save_LIBS 18637fi 18638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18639$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18640if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18641 18642$as_echo "#define HAVE_DLD 1" >>confdefs.h 18643 18644 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 18645fi 18646 18647 18648 18649 18650LT_DLPREOPEN= 18651if test -n "$LT_DLLOADERS" 18652then 18653 for lt_loader in $LT_DLLOADERS; do 18654 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 18655 done 18656 18657$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 18658 18659fi 18660 18661 18662LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 18663 18664 18665ac_ext=c 18666ac_cpp='$CPP $CPPFLAGS' 18667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18669ac_compiler_gnu=$ac_cv_c_compiler_gnu 18670 18671 18672 LIBM= 18673case $host in 18674*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 18675 # These system don't have libm, or don't need it 18676 ;; 18677*-ncr-sysv4.3*) 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 18679$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 18680if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 18681 $as_echo_n "(cached) " >&6 18682else 18683 ac_check_lib_save_LIBS=$LIBS 18684LIBS="-lmw $LIBS" 18685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18686/* end confdefs.h. */ 18687 18688/* Override any GCC internal prototype to avoid an error. 18689 Use char because int might match the return type of a GCC 18690 builtin and then its argument prototype would still apply. */ 18691#ifdef __cplusplus 18692extern "C" 18693#endif 18694char _mwvalidcheckl (); 18695int 18696main () 18697{ 18698return _mwvalidcheckl (); 18699 ; 18700 return 0; 18701} 18702_ACEOF 18703if ac_fn_c_try_link "$LINENO"; then : 18704 ac_cv_lib_mw__mwvalidcheckl=yes 18705else 18706 ac_cv_lib_mw__mwvalidcheckl=no 18707fi 18708rm -f core conftest.err conftest.$ac_objext \ 18709 conftest$ac_exeext conftest.$ac_ext 18710LIBS=$ac_check_lib_save_LIBS 18711fi 18712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 18713$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 18714if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 18715 LIBM="-lmw" 18716fi 18717 18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 18719$as_echo_n "checking for cos in -lm... " >&6; } 18720if ${ac_cv_lib_m_cos+:} false; then : 18721 $as_echo_n "(cached) " >&6 18722else 18723 ac_check_lib_save_LIBS=$LIBS 18724LIBS="-lm $LIBS" 18725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18726/* end confdefs.h. */ 18727 18728/* Override any GCC internal prototype to avoid an error. 18729 Use char because int might match the return type of a GCC 18730 builtin and then its argument prototype would still apply. */ 18731#ifdef __cplusplus 18732extern "C" 18733#endif 18734char cos (); 18735int 18736main () 18737{ 18738return cos (); 18739 ; 18740 return 0; 18741} 18742_ACEOF 18743if ac_fn_c_try_link "$LINENO"; then : 18744 ac_cv_lib_m_cos=yes 18745else 18746 ac_cv_lib_m_cos=no 18747fi 18748rm -f core conftest.err conftest.$ac_objext \ 18749 conftest$ac_exeext conftest.$ac_ext 18750LIBS=$ac_check_lib_save_LIBS 18751fi 18752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 18753$as_echo "$ac_cv_lib_m_cos" >&6; } 18754if test "x$ac_cv_lib_m_cos" = xyes; then : 18755 LIBM="$LIBM -lm" 18756fi 18757 18758 ;; 18759*) 18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 18761$as_echo_n "checking for cos in -lm... " >&6; } 18762if ${ac_cv_lib_m_cos+:} false; then : 18763 $as_echo_n "(cached) " >&6 18764else 18765 ac_check_lib_save_LIBS=$LIBS 18766LIBS="-lm $LIBS" 18767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18768/* end confdefs.h. */ 18769 18770/* Override any GCC internal prototype to avoid an error. 18771 Use char because int might match the return type of a GCC 18772 builtin and then its argument prototype would still apply. */ 18773#ifdef __cplusplus 18774extern "C" 18775#endif 18776char cos (); 18777int 18778main () 18779{ 18780return cos (); 18781 ; 18782 return 0; 18783} 18784_ACEOF 18785if ac_fn_c_try_link "$LINENO"; then : 18786 ac_cv_lib_m_cos=yes 18787else 18788 ac_cv_lib_m_cos=no 18789fi 18790rm -f core conftest.err conftest.$ac_objext \ 18791 conftest$ac_exeext conftest.$ac_ext 18792LIBS=$ac_check_lib_save_LIBS 18793fi 18794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 18795$as_echo "$ac_cv_lib_m_cos" >&6; } 18796if test "x$ac_cv_lib_m_cos" = xyes; then : 18797 LIBM="-lm" 18798fi 18799 18800 ;; 18801esac 18802 18803 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 18805$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } 18806if ${lt_cv_sys_dlopen_deplibs+:} false; then : 18807 $as_echo_n "(cached) " >&6 18808else 18809 # PORTME does your system automatically load deplibs for dlopen? 18810 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 18811 # For now, we just catch OSes we know something about -- in the 18812 # future, we'll try test this programmatically. 18813 lt_cv_sys_dlopen_deplibs=unknown 18814 case $host_os in 18815 aix3*|aix4.1.*|aix4.2.*) 18816 # Unknown whether this is true for these versions of AIX, but 18817 # we want this `case' here to explicitly catch those versions. 18818 lt_cv_sys_dlopen_deplibs=unknown 18819 ;; 18820 aix[4-9]*) 18821 lt_cv_sys_dlopen_deplibs=yes 18822 ;; 18823 amigaos*) 18824 case $host_cpu in 18825 powerpc) 18826 lt_cv_sys_dlopen_deplibs=no 18827 ;; 18828 esac 18829 ;; 18830 darwin*) 18831 # Assuming the user has installed a libdl from somewhere, this is true 18832 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 18833 lt_cv_sys_dlopen_deplibs=yes 18834 ;; 18835 freebsd* | dragonfly*) 18836 lt_cv_sys_dlopen_deplibs=yes 18837 ;; 18838 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) 18839 # GNU and its variants, using gnu ld.so (Glibc) 18840 lt_cv_sys_dlopen_deplibs=yes 18841 ;; 18842 hpux10*|hpux11*) 18843 lt_cv_sys_dlopen_deplibs=yes 18844 ;; 18845 interix*) 18846 lt_cv_sys_dlopen_deplibs=yes 18847 ;; 18848 irix[12345]*|irix6.[01]*) 18849 # Catch all versions of IRIX before 6.2, and indicate that we don't 18850 # know how it worked for any of those versions. 18851 lt_cv_sys_dlopen_deplibs=unknown 18852 ;; 18853 irix*) 18854 # The case above catches anything before 6.2, and it's known that 18855 # at 6.2 and later dlopen does load deplibs. 18856 lt_cv_sys_dlopen_deplibs=yes 18857 ;; 18858 netbsd* | netbsdelf*-gnu) 18859 lt_cv_sys_dlopen_deplibs=yes 18860 ;; 18861 openbsd*) 18862 lt_cv_sys_dlopen_deplibs=yes 18863 ;; 18864 osf[1234]*) 18865 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 18866 # it did *not* use an RPATH in a shared library to find objects the 18867 # library depends on, so we explicitly say `no'. 18868 lt_cv_sys_dlopen_deplibs=no 18869 ;; 18870 osf5.0|osf5.0a|osf5.1) 18871 # dlopen *does* load deplibs and with the right loader patch applied 18872 # it even uses RPATH in a shared library to search for shared objects 18873 # that the library depends on, but there's no easy way to know if that 18874 # patch is installed. Since this is the case, all we can really 18875 # say is unknown -- it depends on the patch being installed. If 18876 # it is, this changes to `yes'. Without it, it would be `no'. 18877 lt_cv_sys_dlopen_deplibs=unknown 18878 ;; 18879 osf*) 18880 # the two cases above should catch all versions of osf <= 5.1. Read 18881 # the comments above for what we know about them. 18882 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 18883 # is used to find them so we can finally say `yes'. 18884 lt_cv_sys_dlopen_deplibs=yes 18885 ;; 18886 qnx*) 18887 lt_cv_sys_dlopen_deplibs=yes 18888 ;; 18889 solaris*) 18890 lt_cv_sys_dlopen_deplibs=yes 18891 ;; 18892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18893 libltdl_cv_sys_dlopen_deplibs=yes 18894 ;; 18895 esac 18896 18897fi 18898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 18899$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } 18900if test "$lt_cv_sys_dlopen_deplibs" != yes; then 18901 18902$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h 18903 18904fi 18905 18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 18907$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 18908if ${lt_cv_sys_symbol_underscore+:} false; then : 18909 $as_echo_n "(cached) " >&6 18910else 18911 lt_cv_sys_symbol_underscore=no 18912 cat > conftest.$ac_ext <<_LT_EOF 18913void nm_test_func(){} 18914int main(){nm_test_func;return 0;} 18915_LT_EOF 18916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18917 (eval $ac_compile) 2>&5 18918 ac_status=$? 18919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18920 test $ac_status = 0; }; then 18921 # Now try to grab the symbols. 18922 ac_nlist=conftest.nm 18923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 18924 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 18925 ac_status=$? 18926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18927 test $ac_status = 0; } && test -s "$ac_nlist"; then 18928 # See whether the symbols have a leading underscore. 18929 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 18930 lt_cv_sys_symbol_underscore=yes 18931 else 18932 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 18933 : 18934 else 18935 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 18936 fi 18937 fi 18938 else 18939 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 18940 fi 18941 else 18942 echo "configure: failed program was:" >&5 18943 cat conftest.c >&5 18944 fi 18945 rm -rf conftest* 18946 18947fi 18948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 18949$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 18950 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 18951 18952 18953 if test x"$lt_cv_sys_symbol_underscore" = xyes; then 18954 if test x"$libltdl_cv_func_dlopen" = xyes || 18955 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 18957$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } 18958if ${libltdl_cv_need_uscore+:} false; then : 18959 $as_echo_n "(cached) " >&6 18960else 18961 libltdl_cv_need_uscore=unknown 18962 save_LIBS="$LIBS" 18963 LIBS="$LIBS $LIBADD_DLOPEN" 18964 if test "$cross_compiling" = yes; then : 18965 libltdl_cv_need_uscore=cross 18966else 18967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18968 lt_status=$lt_dlunknown 18969 cat > conftest.$ac_ext <<_LT_EOF 18970#line $LINENO "configure" 18971#include "confdefs.h" 18972 18973#if HAVE_DLFCN_H 18974#include <dlfcn.h> 18975#endif 18976 18977#include <stdio.h> 18978 18979#ifdef RTLD_GLOBAL 18980# define LT_DLGLOBAL RTLD_GLOBAL 18981#else 18982# ifdef DL_GLOBAL 18983# define LT_DLGLOBAL DL_GLOBAL 18984# else 18985# define LT_DLGLOBAL 0 18986# endif 18987#endif 18988 18989/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18990 find out it does not work in some platform. */ 18991#ifndef LT_DLLAZY_OR_NOW 18992# ifdef RTLD_LAZY 18993# define LT_DLLAZY_OR_NOW RTLD_LAZY 18994# else 18995# ifdef DL_LAZY 18996# define LT_DLLAZY_OR_NOW DL_LAZY 18997# else 18998# ifdef RTLD_NOW 18999# define LT_DLLAZY_OR_NOW RTLD_NOW 19000# else 19001# ifdef DL_NOW 19002# define LT_DLLAZY_OR_NOW DL_NOW 19003# else 19004# define LT_DLLAZY_OR_NOW 0 19005# endif 19006# endif 19007# endif 19008# endif 19009#endif 19010 19011/* When -fvisbility=hidden is used, assume the code has been annotated 19012 correspondingly for the symbols needed. */ 19013#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19014int fnord () __attribute__((visibility("default"))); 19015#endif 19016 19017int fnord () { return 42; } 19018int main () 19019{ 19020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19021 int status = $lt_dlunknown; 19022 19023 if (self) 19024 { 19025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19026 else 19027 { 19028 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19029 else puts (dlerror ()); 19030 } 19031 /* dlclose (self); */ 19032 } 19033 else 19034 puts (dlerror ()); 19035 19036 return status; 19037} 19038_LT_EOF 19039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19040 (eval $ac_link) 2>&5 19041 ac_status=$? 19042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19043 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19044 (./conftest; exit; ) >&5 2>/dev/null 19045 lt_status=$? 19046 case x$lt_status in 19047 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 19048 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 19049 x$lt_dlunknown|x*) ;; 19050 esac 19051 else : 19052 # compilation failed 19053 19054 fi 19055fi 19056rm -fr conftest* 19057 19058 LIBS="$save_LIBS" 19059 19060fi 19061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 19062$as_echo "$libltdl_cv_need_uscore" >&6; } 19063 fi 19064fi 19065 19066if test x"$libltdl_cv_need_uscore" = xyes; then 19067 19068$as_echo "#define NEED_USCORE 1" >>confdefs.h 19069 19070fi 19071 19072 19073 ## cope with libtool's convenience lib/bin concept 19074 if test -n "$lt_cv_objdir"; then 19075 ## this variable is a #define, too 19076 LT_OBJDIR="$lt_cv_objdir" 19077 else 19078 ## hm, probably not the best idea but let's try 19079 LT_OBJDIR="." 19080 fi 19081 ## definitely subst that though 19082 19083 19084 ## currently there's no official variable for that, but `lt-' 19085 ## seems to be a consistent choice throughout all libtools 19086 LT_CONVENIENCE_PREFIX="lt-" 19087 19088 19089 ## reset XCCFLAG, we KNOW it's XCClinker in libtool 19090 XCCFLAG="-XCClinker" 19091 19092 19093ac_config_files="$ac_config_files Makefile" 19094 19095ac_config_files="$ac_config_files build-aux/Makefile" 19096 19097ac_config_files="$ac_config_files data/Makefile" 19098 19099ac_config_files="$ac_config_files lib/Makefile" 19100 19101ac_config_files="$ac_config_files src/Makefile" 19102 19103ac_config_files="$ac_config_files info/Makefile" 19104 19105ac_config_files="$ac_config_files test/Makefile" 19106 19107ac_config_files="$ac_config_files contrib/Makefile" 19108 19109cat >confcache <<\_ACEOF 19110# This file is a shell script that caches the results of configure 19111# tests run on this system so they can be shared between configure 19112# scripts and configure runs, see configure's option --config-cache. 19113# It is not useful on other systems. If it contains results you don't 19114# want to keep, you may remove or edit it. 19115# 19116# config.status only pays attention to the cache file if you give it 19117# the --recheck option to rerun configure. 19118# 19119# `ac_cv_env_foo' variables (set or unset) will be overridden when 19120# loading this file, other *unset* `ac_cv_foo' will be assigned the 19121# following values. 19122 19123_ACEOF 19124 19125# The following way of writing the cache mishandles newlines in values, 19126# but we know of no workaround that is simple, portable, and efficient. 19127# So, we kill variables containing newlines. 19128# Ultrix sh set writes to stderr and can't be redirected directly, 19129# and sets the high bit in the cache file unless we assign to the vars. 19130( 19131 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19132 eval ac_val=\$$ac_var 19133 case $ac_val in #( 19134 *${as_nl}*) 19135 case $ac_var in #( 19136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19137$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19138 esac 19139 case $ac_var in #( 19140 _ | IFS | as_nl) ;; #( 19141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19142 *) { eval $ac_var=; unset $ac_var;} ;; 19143 esac ;; 19144 esac 19145 done 19146 19147 (set) 2>&1 | 19148 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19149 *${as_nl}ac_space=\ *) 19150 # `set' does not quote correctly, so add quotes: double-quote 19151 # substitution turns \\\\ into \\, and sed turns \\ into \. 19152 sed -n \ 19153 "s/'/'\\\\''/g; 19154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19155 ;; #( 19156 *) 19157 # `set' quotes correctly as required by POSIX, so do not add quotes. 19158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19159 ;; 19160 esac | 19161 sort 19162) | 19163 sed ' 19164 /^ac_cv_env_/b end 19165 t clear 19166 :clear 19167 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19168 t end 19169 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19170 :end' >>confcache 19171if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19172 if test -w "$cache_file"; then 19173 if test "x$cache_file" != "x/dev/null"; then 19174 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19175$as_echo "$as_me: updating cache $cache_file" >&6;} 19176 if test ! -f "$cache_file" || test -h "$cache_file"; then 19177 cat confcache >"$cache_file" 19178 else 19179 case $cache_file in #( 19180 */* | ?:*) 19181 mv -f confcache "$cache_file"$$ && 19182 mv -f "$cache_file"$$ "$cache_file" ;; #( 19183 *) 19184 mv -f confcache "$cache_file" ;; 19185 esac 19186 fi 19187 fi 19188 else 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19190$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19191 fi 19192fi 19193rm -f confcache 19194 19195test "x$prefix" = xNONE && prefix=$ac_default_prefix 19196# Let make expand exec_prefix. 19197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19198 19199DEFS=-DHAVE_CONFIG_H 19200 19201ac_libobjs= 19202ac_ltlibobjs= 19203U= 19204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19205 # 1. Remove the extension, and $U if already installed. 19206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19207 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19209 # will be set to the directory where LIBOBJS objects are built. 19210 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19211 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19212done 19213LIBOBJS=$ac_libobjs 19214 19215LTLIBOBJS=$ac_ltlibobjs 19216 19217 19218 if test -n "$EXEEXT"; then 19219 am__EXEEXT_TRUE= 19220 am__EXEEXT_FALSE='#' 19221else 19222 am__EXEEXT_TRUE='#' 19223 am__EXEEXT_FALSE= 19224fi 19225 19226if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19227 as_fn_error $? "conditional \"AMDEP\" was never defined. 19228Usually this means the macro was only invoked conditionally." "$LINENO" 5 19229fi 19230if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19231 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19232Usually this means the macro was only invoked conditionally." "$LINENO" 5 19233fi 19234 19235if test -z "${HAVE_PTY_H_TRUE}" && test -z "${HAVE_PTY_H_FALSE}"; then 19236 as_fn_error $? "conditional \"HAVE_PTY_H\" was never defined. 19237Usually this means the macro was only invoked conditionally." "$LINENO" 5 19238fi 19239if test -z "${ZONEINFO_UTC_RIGHT_TRUE}" && test -z "${ZONEINFO_UTC_RIGHT_FALSE}"; then 19240 as_fn_error $? "conditional \"ZONEINFO_UTC_RIGHT\" was never defined. 19241Usually this means the macro was only invoked conditionally." "$LINENO" 5 19242fi 19243if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then 19244 as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined. 19245Usually this means the macro was only invoked conditionally." "$LINENO" 5 19246fi 19247if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then 19248 as_fn_error $? "conditional \"HAVE_CURL\" was never defined. 19249Usually this means the macro was only invoked conditionally." "$LINENO" 5 19250fi 19251if test -z "${FETCH_TZMAPS_TRUE}" && test -z "${FETCH_TZMAPS_FALSE}"; then 19252 as_fn_error $? "conditional \"FETCH_TZMAPS\" was never defined. 19253Usually this means the macro was only invoked conditionally." "$LINENO" 5 19254fi 19255if test -z "${HAVE_TZMAPS_TRUE}" && test -z "${HAVE_TZMAPS_FALSE}"; then 19256 as_fn_error $? "conditional \"HAVE_TZMAPS\" was never defined. 19257Usually this means the macro was only invoked conditionally." "$LINENO" 5 19258fi 19259if test -z "${HAVE_GDATE_TRUE}" && test -z "${HAVE_GDATE_FALSE}"; then 19260 as_fn_error $? "conditional \"HAVE_GDATE\" was never defined. 19261Usually this means the macro was only invoked conditionally." "$LINENO" 5 19262fi 19263if test -z "${HAVE_GDATE_2039_TRUE}" && test -z "${HAVE_GDATE_2039_FALSE}"; then 19264 as_fn_error $? "conditional \"HAVE_GDATE_2039\" was never defined. 19265Usually this means the macro was only invoked conditionally." "$LINENO" 5 19266fi 19267if test -z "${WITH_CONTRIB_TRUE}" && test -z "${WITH_CONTRIB_FALSE}"; then 19268 as_fn_error $? "conditional \"WITH_CONTRIB\" was never defined. 19269Usually this means the macro was only invoked conditionally." "$LINENO" 5 19270fi 19271if test -z "${WITH_OLD_NAMES_TRUE}" && test -z "${WITH_OLD_NAMES_FALSE}"; then 19272 as_fn_error $? "conditional \"WITH_OLD_NAMES\" was never defined. 19273Usually this means the macro was only invoked conditionally." "$LINENO" 5 19274fi 19275if test -z "${WITH_OLD_LINKS_TRUE}" && test -z "${WITH_OLD_LINKS_FALSE}"; then 19276 as_fn_error $? "conditional \"WITH_OLD_LINKS\" was never defined. 19277Usually this means the macro was only invoked conditionally." "$LINENO" 5 19278fi 19279if test -z "${WITH_LEAP_SECONDS_TRUE}" && test -z "${WITH_LEAP_SECONDS_FALSE}"; then 19280 as_fn_error $? "conditional \"WITH_LEAP_SECONDS\" was never defined. 19281Usually this means the macro was only invoked conditionally." "$LINENO" 5 19282fi 19283if test -z "${BUILD_DEXPR_TRUE}" && test -z "${BUILD_DEXPR_FALSE}"; then 19284 as_fn_error $? "conditional \"BUILD_DEXPR\" was never defined. 19285Usually this means the macro was only invoked conditionally." "$LINENO" 5 19286fi 19287if test -z "${BUILD_LTRCC_TRUE}" && test -z "${BUILD_LTRCC_FALSE}"; then 19288 as_fn_error $? "conditional \"BUILD_LTRCC\" was never defined. 19289Usually this means the macro was only invoked conditionally." "$LINENO" 5 19290fi 19291if test -z "${BUILD_MEXCLI_TRUE}" && test -z "${BUILD_MEXCLI_FALSE}"; then 19292 as_fn_error $? "conditional \"BUILD_MEXCLI\" was never defined. 19293Usually this means the macro was only invoked conditionally." "$LINENO" 5 19294fi 19295if test -z "${BUILD_OCTCLI_TRUE}" && test -z "${BUILD_OCTCLI_FALSE}"; then 19296 as_fn_error $? "conditional \"BUILD_OCTCLI\" was never defined. 19297Usually this means the macro was only invoked conditionally." "$LINENO" 5 19298fi 19299if test -z "${HAVE_YUCK_TRUE}" && test -z "${HAVE_YUCK_FALSE}"; then 19300 as_fn_error $? "conditional \"HAVE_YUCK\" was never defined. 19301Usually this means the macro was only invoked conditionally." "$LINENO" 5 19302fi 19303 19304: "${CONFIG_STATUS=./config.status}" 19305ac_write_fail=0 19306ac_clean_files_save=$ac_clean_files 19307ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19308{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19309$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19310as_write_fail=0 19311cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19312#! $SHELL 19313# Generated by $as_me. 19314# Run this file to recreate the current configuration. 19315# Compiler output produced by configure, useful for debugging 19316# configure, is in config.log if it exists. 19317 19318debug=false 19319ac_cs_recheck=false 19320ac_cs_silent=false 19321 19322SHELL=\${CONFIG_SHELL-$SHELL} 19323export SHELL 19324_ASEOF 19325cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19326## -------------------- ## 19327## M4sh Initialization. ## 19328## -------------------- ## 19329 19330# Be more Bourne compatible 19331DUALCASE=1; export DUALCASE # for MKS sh 19332if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19333 emulate sh 19334 NULLCMD=: 19335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19336 # is contrary to our usage. Disable this feature. 19337 alias -g '${1+"$@"}'='"$@"' 19338 setopt NO_GLOB_SUBST 19339else 19340 case `(set -o) 2>/dev/null` in #( 19341 *posix*) : 19342 set -o posix ;; #( 19343 *) : 19344 ;; 19345esac 19346fi 19347 19348 19349as_nl=' 19350' 19351export as_nl 19352# Printing a long string crashes Solaris 7 /usr/bin/printf. 19353as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19356# Prefer a ksh shell builtin over an external printf program on Solaris, 19357# but without wasting forks for bash or zsh. 19358if test -z "$BASH_VERSION$ZSH_VERSION" \ 19359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19360 as_echo='print -r --' 19361 as_echo_n='print -rn --' 19362elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19363 as_echo='printf %s\n' 19364 as_echo_n='printf %s' 19365else 19366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19367 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19368 as_echo_n='/usr/ucb/echo -n' 19369 else 19370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19371 as_echo_n_body='eval 19372 arg=$1; 19373 case $arg in #( 19374 *"$as_nl"*) 19375 expr "X$arg" : "X\\(.*\\)$as_nl"; 19376 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19377 esac; 19378 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19379 ' 19380 export as_echo_n_body 19381 as_echo_n='sh -c $as_echo_n_body as_echo' 19382 fi 19383 export as_echo_body 19384 as_echo='sh -c $as_echo_body as_echo' 19385fi 19386 19387# The user is always right. 19388if test "${PATH_SEPARATOR+set}" != set; then 19389 PATH_SEPARATOR=: 19390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19392 PATH_SEPARATOR=';' 19393 } 19394fi 19395 19396 19397# IFS 19398# We need space, tab and new line, in precisely that order. Quoting is 19399# there to prevent editors from complaining about space-tab. 19400# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19401# splitting by setting IFS to empty value.) 19402IFS=" "" $as_nl" 19403 19404# Find who we are. Look in the path if we contain no directory separator. 19405as_myself= 19406case $0 in #(( 19407 *[\\/]* ) as_myself=$0 ;; 19408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19409for as_dir in $PATH 19410do 19411 IFS=$as_save_IFS 19412 test -z "$as_dir" && as_dir=. 19413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19414 done 19415IFS=$as_save_IFS 19416 19417 ;; 19418esac 19419# We did not find ourselves, most probably we were run as `sh COMMAND' 19420# in which case we are not to be found in the path. 19421if test "x$as_myself" = x; then 19422 as_myself=$0 19423fi 19424if test ! -f "$as_myself"; then 19425 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19426 exit 1 19427fi 19428 19429# Unset variables that we do not need and which cause bugs (e.g. in 19430# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19431# suppresses any "Segmentation fault" message there. '((' could 19432# trigger a bug in pdksh 5.2.14. 19433for as_var in BASH_ENV ENV MAIL MAILPATH 19434do eval test x\${$as_var+set} = xset \ 19435 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19436done 19437PS1='$ ' 19438PS2='> ' 19439PS4='+ ' 19440 19441# NLS nuisances. 19442LC_ALL=C 19443export LC_ALL 19444LANGUAGE=C 19445export LANGUAGE 19446 19447# CDPATH. 19448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19449 19450 19451# as_fn_error STATUS ERROR [LINENO LOG_FD] 19452# ---------------------------------------- 19453# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19454# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19455# script with STATUS, using 1 if that was 0. 19456as_fn_error () 19457{ 19458 as_status=$1; test $as_status -eq 0 && as_status=1 19459 if test "$4"; then 19460 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19461 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19462 fi 19463 $as_echo "$as_me: error: $2" >&2 19464 as_fn_exit $as_status 19465} # as_fn_error 19466 19467 19468# as_fn_set_status STATUS 19469# ----------------------- 19470# Set $? to STATUS, without forking. 19471as_fn_set_status () 19472{ 19473 return $1 19474} # as_fn_set_status 19475 19476# as_fn_exit STATUS 19477# ----------------- 19478# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19479as_fn_exit () 19480{ 19481 set +e 19482 as_fn_set_status $1 19483 exit $1 19484} # as_fn_exit 19485 19486# as_fn_unset VAR 19487# --------------- 19488# Portably unset VAR. 19489as_fn_unset () 19490{ 19491 { eval $1=; unset $1;} 19492} 19493as_unset=as_fn_unset 19494# as_fn_append VAR VALUE 19495# ---------------------- 19496# Append the text in VALUE to the end of the definition contained in VAR. Take 19497# advantage of any shell optimizations that allow amortized linear growth over 19498# repeated appends, instead of the typical quadratic growth present in naive 19499# implementations. 19500if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19501 eval 'as_fn_append () 19502 { 19503 eval $1+=\$2 19504 }' 19505else 19506 as_fn_append () 19507 { 19508 eval $1=\$$1\$2 19509 } 19510fi # as_fn_append 19511 19512# as_fn_arith ARG... 19513# ------------------ 19514# Perform arithmetic evaluation on the ARGs, and store the result in the 19515# global $as_val. Take advantage of shells that can avoid forks. The arguments 19516# must be portable across $(()) and expr. 19517if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19518 eval 'as_fn_arith () 19519 { 19520 as_val=$(( $* )) 19521 }' 19522else 19523 as_fn_arith () 19524 { 19525 as_val=`expr "$@" || test $? -eq 1` 19526 } 19527fi # as_fn_arith 19528 19529 19530if expr a : '\(a\)' >/dev/null 2>&1 && 19531 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19532 as_expr=expr 19533else 19534 as_expr=false 19535fi 19536 19537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19538 as_basename=basename 19539else 19540 as_basename=false 19541fi 19542 19543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19544 as_dirname=dirname 19545else 19546 as_dirname=false 19547fi 19548 19549as_me=`$as_basename -- "$0" || 19550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19551 X"$0" : 'X\(//\)$' \| \ 19552 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19553$as_echo X/"$0" | 19554 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19555 s//\1/ 19556 q 19557 } 19558 /^X\/\(\/\/\)$/{ 19559 s//\1/ 19560 q 19561 } 19562 /^X\/\(\/\).*/{ 19563 s//\1/ 19564 q 19565 } 19566 s/.*/./; q'` 19567 19568# Avoid depending upon Character Ranges. 19569as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19571as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19572as_cr_digits='0123456789' 19573as_cr_alnum=$as_cr_Letters$as_cr_digits 19574 19575ECHO_C= ECHO_N= ECHO_T= 19576case `echo -n x` in #((((( 19577-n*) 19578 case `echo 'xy\c'` in 19579 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19580 xy) ECHO_C='\c';; 19581 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19582 ECHO_T=' ';; 19583 esac;; 19584*) 19585 ECHO_N='-n';; 19586esac 19587 19588rm -f conf$$ conf$$.exe conf$$.file 19589if test -d conf$$.dir; then 19590 rm -f conf$$.dir/conf$$.file 19591else 19592 rm -f conf$$.dir 19593 mkdir conf$$.dir 2>/dev/null 19594fi 19595if (echo >conf$$.file) 2>/dev/null; then 19596 if ln -s conf$$.file conf$$ 2>/dev/null; then 19597 as_ln_s='ln -s' 19598 # ... but there are two gotchas: 19599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19601 # In both cases, we have to default to `cp -p'. 19602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19603 as_ln_s='cp -p' 19604 elif ln conf$$.file conf$$ 2>/dev/null; then 19605 as_ln_s=ln 19606 else 19607 as_ln_s='cp -p' 19608 fi 19609else 19610 as_ln_s='cp -p' 19611fi 19612rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19613rmdir conf$$.dir 2>/dev/null 19614 19615 19616# as_fn_mkdir_p 19617# ------------- 19618# Create "$as_dir" as a directory, including parents if necessary. 19619as_fn_mkdir_p () 19620{ 19621 19622 case $as_dir in #( 19623 -*) as_dir=./$as_dir;; 19624 esac 19625 test -d "$as_dir" || eval $as_mkdir_p || { 19626 as_dirs= 19627 while :; do 19628 case $as_dir in #( 19629 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19630 *) as_qdir=$as_dir;; 19631 esac 19632 as_dirs="'$as_qdir' $as_dirs" 19633 as_dir=`$as_dirname -- "$as_dir" || 19634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19635 X"$as_dir" : 'X\(//\)[^/]' \| \ 19636 X"$as_dir" : 'X\(//\)$' \| \ 19637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19638$as_echo X"$as_dir" | 19639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19640 s//\1/ 19641 q 19642 } 19643 /^X\(\/\/\)[^/].*/{ 19644 s//\1/ 19645 q 19646 } 19647 /^X\(\/\/\)$/{ 19648 s//\1/ 19649 q 19650 } 19651 /^X\(\/\).*/{ 19652 s//\1/ 19653 q 19654 } 19655 s/.*/./; q'` 19656 test -d "$as_dir" && break 19657 done 19658 test -z "$as_dirs" || eval "mkdir $as_dirs" 19659 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19660 19661 19662} # as_fn_mkdir_p 19663if mkdir -p . 2>/dev/null; then 19664 as_mkdir_p='mkdir -p "$as_dir"' 19665else 19666 test -d ./-p && rmdir ./-p 19667 as_mkdir_p=false 19668fi 19669 19670if test -x / >/dev/null 2>&1; then 19671 as_test_x='test -x' 19672else 19673 if ls -dL / >/dev/null 2>&1; then 19674 as_ls_L_option=L 19675 else 19676 as_ls_L_option= 19677 fi 19678 as_test_x=' 19679 eval sh -c '\'' 19680 if test -d "$1"; then 19681 test -d "$1/."; 19682 else 19683 case $1 in #( 19684 -*)set "./$1";; 19685 esac; 19686 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19687 ???[sx]*):;;*)false;;esac;fi 19688 '\'' sh 19689 ' 19690fi 19691as_executable_p=$as_test_x 19692 19693# Sed expression to map a string onto a valid CPP name. 19694as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19695 19696# Sed expression to map a string onto a valid variable name. 19697as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19698 19699 19700exec 6>&1 19701## ----------------------------------- ## 19702## Main body of $CONFIG_STATUS script. ## 19703## ----------------------------------- ## 19704_ASEOF 19705test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19706 19707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19708# Save the log message, to keep $0 and so on meaningful, and to 19709# report actual input values of CONFIG_FILES etc. instead of their 19710# values after options handling. 19711ac_log=" 19712This file was extended by dateutils $as_me 0.4.1, which was 19713generated by GNU Autoconf 2.68. Invocation command line was 19714 19715 CONFIG_FILES = $CONFIG_FILES 19716 CONFIG_HEADERS = $CONFIG_HEADERS 19717 CONFIG_LINKS = $CONFIG_LINKS 19718 CONFIG_COMMANDS = $CONFIG_COMMANDS 19719 $ $0 $@ 19720 19721on `(hostname || uname -n) 2>/dev/null | sed 1q` 19722" 19723 19724_ACEOF 19725 19726case $ac_config_files in *" 19727"*) set x $ac_config_files; shift; ac_config_files=$*;; 19728esac 19729 19730case $ac_config_headers in *" 19731"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19732esac 19733 19734 19735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19736# Files that config.status was made for. 19737config_files="$ac_config_files" 19738config_headers="$ac_config_headers" 19739config_links="$ac_config_links" 19740config_commands="$ac_config_commands" 19741 19742_ACEOF 19743 19744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19745ac_cs_usage="\ 19746\`$as_me' instantiates files and other configuration actions 19747from templates according to the current configuration. Unless the files 19748and actions are specified as TAGs, all are instantiated by default. 19749 19750Usage: $0 [OPTION]... [TAG]... 19751 19752 -h, --help print this help, then exit 19753 -V, --version print version number and configuration settings, then exit 19754 --config print configuration, then exit 19755 -q, --quiet, --silent 19756 do not print progress messages 19757 -d, --debug don't remove temporary files 19758 --recheck update $as_me by reconfiguring in the same conditions 19759 --file=FILE[:TEMPLATE] 19760 instantiate the configuration file FILE 19761 --header=FILE[:TEMPLATE] 19762 instantiate the configuration header FILE 19763 19764Configuration files: 19765$config_files 19766 19767Configuration headers: 19768$config_headers 19769 19770Configuration links: 19771$config_links 19772 19773Configuration commands: 19774$config_commands 19775 19776Report bugs to <https://github.com/hroptatyr/dateutils/issues>." 19777 19778_ACEOF 19779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19780ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19781ac_cs_version="\\ 19782dateutils config.status 0.4.1 19783configured by $0, generated by GNU Autoconf 2.68, 19784 with options \\"\$ac_cs_config\\" 19785 19786Copyright (C) 2010 Free Software Foundation, Inc. 19787This config.status script is free software; the Free Software Foundation 19788gives unlimited permission to copy, distribute and modify it." 19789 19790ac_pwd='$ac_pwd' 19791srcdir='$srcdir' 19792INSTALL='$INSTALL' 19793MKDIR_P='$MKDIR_P' 19794AWK='$AWK' 19795test -n "\$AWK" || AWK=awk 19796_ACEOF 19797 19798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19799# The default lists apply if the user does not specify any file. 19800ac_need_defaults=: 19801while test $# != 0 19802do 19803 case $1 in 19804 --*=?*) 19805 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19807 ac_shift=: 19808 ;; 19809 --*=) 19810 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19811 ac_optarg= 19812 ac_shift=: 19813 ;; 19814 *) 19815 ac_option=$1 19816 ac_optarg=$2 19817 ac_shift=shift 19818 ;; 19819 esac 19820 19821 case $ac_option in 19822 # Handling of the options. 19823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19824 ac_cs_recheck=: ;; 19825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19826 $as_echo "$ac_cs_version"; exit ;; 19827 --config | --confi | --conf | --con | --co | --c ) 19828 $as_echo "$ac_cs_config"; exit ;; 19829 --debug | --debu | --deb | --de | --d | -d ) 19830 debug=: ;; 19831 --file | --fil | --fi | --f ) 19832 $ac_shift 19833 case $ac_optarg in 19834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19835 '') as_fn_error $? "missing file argument" ;; 19836 esac 19837 as_fn_append CONFIG_FILES " '$ac_optarg'" 19838 ac_need_defaults=false;; 19839 --header | --heade | --head | --hea ) 19840 $ac_shift 19841 case $ac_optarg in 19842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19843 esac 19844 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19845 ac_need_defaults=false;; 19846 --he | --h) 19847 # Conflict between --help and --header 19848 as_fn_error $? "ambiguous option: \`$1' 19849Try \`$0 --help' for more information.";; 19850 --help | --hel | -h ) 19851 $as_echo "$ac_cs_usage"; exit ;; 19852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19853 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19854 ac_cs_silent=: ;; 19855 19856 # This is an error. 19857 -*) as_fn_error $? "unrecognized option: \`$1' 19858Try \`$0 --help' for more information." ;; 19859 19860 *) as_fn_append ac_config_targets " $1" 19861 ac_need_defaults=false ;; 19862 19863 esac 19864 shift 19865done 19866 19867ac_configure_extra_args= 19868 19869if $ac_cs_silent; then 19870 exec 6>/dev/null 19871 ac_configure_extra_args="$ac_configure_extra_args --silent" 19872fi 19873 19874_ACEOF 19875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19876if \$ac_cs_recheck; then 19877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19878 shift 19879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19880 CONFIG_SHELL='$SHELL' 19881 export CONFIG_SHELL 19882 exec "\$@" 19883fi 19884 19885_ACEOF 19886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19887exec 5>>config.log 19888{ 19889 echo 19890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19891## Running $as_me. ## 19892_ASBOX 19893 $as_echo "$ac_log" 19894} >&5 19895 19896_ACEOF 19897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19898# 19899# INIT-COMMANDS 19900# 19901AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19902 19903 19904# The HP-UX ksh and POSIX shell print the target directory to stdout 19905# if CDPATH is set. 19906(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19907 19908sed_quote_subst='$sed_quote_subst' 19909double_quote_subst='$double_quote_subst' 19910delay_variable_subst='$delay_variable_subst' 19911macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19912macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19913enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19914enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19915pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19916enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19917SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19918ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19919PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19920host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19921host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19922host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19923build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19924build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19925build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19926SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19927Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19928GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19929EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19930FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19931LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19932NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19933LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19934max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19935ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19936exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19937lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19938lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19939lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19940lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19941lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19942reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19943reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19944OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19945deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19946file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19947file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19948want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19949DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19950sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19951AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19952AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19953archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19954STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19955RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19956old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19957old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19958old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19959lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19960CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19961CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19962compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19963GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19964lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19965lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19966lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19967lt_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"`' 19968nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19969lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19970objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19971MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19972lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19973lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19974lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19975lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19976lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19977need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19978MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19979DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19980NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19981LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19982OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19983OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19984libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19985shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19986extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19987archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19988enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19989export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19990whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19991compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19992old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19993old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19994archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19995archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19996module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19997module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19998with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19999allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20000no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20001hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20002hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20003hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20004hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20005hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20006hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20007hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20008inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20009link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20010always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20011export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20012exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20013include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20014prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20015postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20016file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20017variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20018need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20019need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20020version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20021runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20022shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20023shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20024libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20025library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20026soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20027install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20028postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20029postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20030finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20031finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20032hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20033sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20034sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20035hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20036enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20037enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20038enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20039old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20040striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20041 20042LTCC='$LTCC' 20043LTCFLAGS='$LTCFLAGS' 20044compiler='$compiler_DEFAULT' 20045 20046# A function that is used when there is no print builtin or printf. 20047func_fallback_echo () 20048{ 20049 eval 'cat <<_LTECHO_EOF 20050\$1 20051_LTECHO_EOF' 20052} 20053 20054# Quote evaled strings. 20055for var in SHELL \ 20056ECHO \ 20057PATH_SEPARATOR \ 20058SED \ 20059GREP \ 20060EGREP \ 20061FGREP \ 20062LD \ 20063NM \ 20064LN_S \ 20065lt_SP2NL \ 20066lt_NL2SP \ 20067reload_flag \ 20068OBJDUMP \ 20069deplibs_check_method \ 20070file_magic_cmd \ 20071file_magic_glob \ 20072want_nocaseglob \ 20073DLLTOOL \ 20074sharedlib_from_linklib_cmd \ 20075AR \ 20076AR_FLAGS \ 20077archiver_list_spec \ 20078STRIP \ 20079RANLIB \ 20080CC \ 20081CFLAGS \ 20082compiler \ 20083lt_cv_sys_global_symbol_pipe \ 20084lt_cv_sys_global_symbol_to_cdecl \ 20085lt_cv_sys_global_symbol_to_c_name_address \ 20086lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20087nm_file_list_spec \ 20088lt_prog_compiler_no_builtin_flag \ 20089lt_prog_compiler_pic \ 20090lt_prog_compiler_wl \ 20091lt_prog_compiler_static \ 20092lt_cv_prog_compiler_c_o \ 20093need_locks \ 20094MANIFEST_TOOL \ 20095DSYMUTIL \ 20096NMEDIT \ 20097LIPO \ 20098OTOOL \ 20099OTOOL64 \ 20100shrext_cmds \ 20101export_dynamic_flag_spec \ 20102whole_archive_flag_spec \ 20103compiler_needs_object \ 20104with_gnu_ld \ 20105allow_undefined_flag \ 20106no_undefined_flag \ 20107hardcode_libdir_flag_spec \ 20108hardcode_libdir_separator \ 20109exclude_expsyms \ 20110include_expsyms \ 20111file_list_spec \ 20112variables_saved_for_relink \ 20113libname_spec \ 20114library_names_spec \ 20115soname_spec \ 20116install_override_mode \ 20117finish_eval \ 20118old_striplib \ 20119striplib; do 20120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20121 *[\\\\\\\`\\"\\\$]*) 20122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20123 ;; 20124 *) 20125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20126 ;; 20127 esac 20128done 20129 20130# Double-quote double-evaled strings. 20131for var in reload_cmds \ 20132old_postinstall_cmds \ 20133old_postuninstall_cmds \ 20134old_archive_cmds \ 20135extract_expsyms_cmds \ 20136old_archive_from_new_cmds \ 20137old_archive_from_expsyms_cmds \ 20138archive_cmds \ 20139archive_expsym_cmds \ 20140module_cmds \ 20141module_expsym_cmds \ 20142export_symbols_cmds \ 20143prelink_cmds \ 20144postlink_cmds \ 20145postinstall_cmds \ 20146postuninstall_cmds \ 20147finish_cmds \ 20148sys_lib_search_path_spec \ 20149sys_lib_dlsearch_path_spec; do 20150 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20151 *[\\\\\\\`\\"\\\$]*) 20152 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20153 ;; 20154 *) 20155 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20156 ;; 20157 esac 20158done 20159 20160ac_aux_dir='$ac_aux_dir' 20161xsi_shell='$xsi_shell' 20162lt_shell_append='$lt_shell_append' 20163 20164# See if we are running on zsh, and set the options which allow our 20165# commands through without removal of \ escapes INIT. 20166if test -n "\${ZSH_VERSION+set}" ; then 20167 setopt NO_GLOB_SUBST 20168fi 20169 20170 20171 PACKAGE='$PACKAGE' 20172 VERSION='$VERSION' 20173 TIMESTAMP='$TIMESTAMP' 20174 RM='$RM' 20175 ofile='$ofile' 20176 20177 20178 20179 20180_ACEOF 20181 20182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20183 20184# Handling of arguments. 20185for ac_config_target in $ac_config_targets 20186do 20187 case $ac_config_target in 20188 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 20189 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20190 "GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS GNUmakefile:GNUmakefile" ;; 20191 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20193 "build-aux/Makefile") CONFIG_FILES="$CONFIG_FILES build-aux/Makefile" ;; 20194 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 20195 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 20196 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20197 "info/Makefile") CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; 20198 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20199 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 20200 20201 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20202 esac 20203done 20204 20205 20206# If the user did not use the arguments to specify the items to instantiate, 20207# then the envvar interface is used. Set only those that are not. 20208# We use the long form for the default assignment because of an extremely 20209# bizarre bug on SunOS 4.1.3. 20210if $ac_need_defaults; then 20211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20213 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 20214 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20215fi 20216 20217# Have a temporary directory for convenience. Make it in the build tree 20218# simply because there is no reason against having it here, and in addition, 20219# creating and moving files from /tmp can sometimes cause problems. 20220# Hook for its removal unless debugging. 20221# Note that there is a small window in which the directory will not be cleaned: 20222# after its creation but before its name has been assigned to `$tmp'. 20223$debug || 20224{ 20225 tmp= ac_tmp= 20226 trap 'exit_status=$? 20227 : "${ac_tmp:=$tmp}" 20228 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20229' 0 20230 trap 'as_fn_exit 1' 1 2 13 15 20231} 20232# Create a (secure) tmp directory for tmp files. 20233 20234{ 20235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20236 test -d "$tmp" 20237} || 20238{ 20239 tmp=./conf$$-$RANDOM 20240 (umask 077 && mkdir "$tmp") 20241} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20242ac_tmp=$tmp 20243 20244# Set up the scripts for CONFIG_FILES section. 20245# No need to generate them if there are no CONFIG_FILES. 20246# This happens for instance with `./config.status config.h'. 20247if test -n "$CONFIG_FILES"; then 20248 20249 20250ac_cr=`echo X | tr X '\015'` 20251# On cygwin, bash can eat \r inside `` if the user requested igncr. 20252# But we know of no other shell where ac_cr would be empty at this 20253# point, so we can use a bashism as a fallback. 20254if test "x$ac_cr" = x; then 20255 eval ac_cr=\$\'\\r\' 20256fi 20257ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20258if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20259 ac_cs_awk_cr='\\r' 20260else 20261 ac_cs_awk_cr=$ac_cr 20262fi 20263 20264echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20265_ACEOF 20266 20267 20268{ 20269 echo "cat >conf$$subs.awk <<_ACEOF" && 20270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20271 echo "_ACEOF" 20272} >conf$$subs.sh || 20273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20274ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20275ac_delim='%!_!# ' 20276for ac_last_try in false false false false false :; do 20277 . ./conf$$subs.sh || 20278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20279 20280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20281 if test $ac_delim_n = $ac_delim_num; then 20282 break 20283 elif $ac_last_try; then 20284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20285 else 20286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20287 fi 20288done 20289rm -f conf$$subs.sh 20290 20291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20292cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20293_ACEOF 20294sed -n ' 20295h 20296s/^/S["/; s/!.*/"]=/ 20297p 20298g 20299s/^[^!]*!// 20300:repl 20301t repl 20302s/'"$ac_delim"'$// 20303t delim 20304:nl 20305h 20306s/\(.\{148\}\)..*/\1/ 20307t more1 20308s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20309p 20310n 20311b repl 20312:more1 20313s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20314p 20315g 20316s/.\{148\}// 20317t nl 20318:delim 20319h 20320s/\(.\{148\}\)..*/\1/ 20321t more2 20322s/["\\]/\\&/g; s/^/"/; s/$/"/ 20323p 20324b 20325:more2 20326s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20327p 20328g 20329s/.\{148\}// 20330t delim 20331' <conf$$subs.awk | sed ' 20332/^[^""]/{ 20333 N 20334 s/\n// 20335} 20336' >>$CONFIG_STATUS || ac_write_fail=1 20337rm -f conf$$subs.awk 20338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20339_ACAWK 20340cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20341 for (key in S) S_is_set[key] = 1 20342 FS = "" 20343 20344} 20345{ 20346 line = $ 0 20347 nfields = split(line, field, "@") 20348 substed = 0 20349 len = length(field[1]) 20350 for (i = 2; i < nfields; i++) { 20351 key = field[i] 20352 keylen = length(key) 20353 if (S_is_set[key]) { 20354 value = S[key] 20355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20356 len += length(value) + length(field[++i]) 20357 substed = 1 20358 } else 20359 len += 1 + keylen 20360 } 20361 20362 print line 20363} 20364 20365_ACAWK 20366_ACEOF 20367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20368if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20369 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20370else 20371 cat 20372fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20373 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20374_ACEOF 20375 20376# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20377# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20378# trailing colons and then remove the whole line if VPATH becomes empty 20379# (actually we leave an empty line to preserve line numbers). 20380if test "x$srcdir" = x.; then 20381 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20382h 20383s/// 20384s/^/:/ 20385s/[ ]*$/:/ 20386s/:\$(srcdir):/:/g 20387s/:\${srcdir}:/:/g 20388s/:@srcdir@:/:/g 20389s/^:*// 20390s/:*$// 20391x 20392s/\(=[ ]*\).*/\1/ 20393G 20394s/\n// 20395s/^[^=]*=[ ]*$// 20396}' 20397fi 20398 20399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20400fi # test -n "$CONFIG_FILES" 20401 20402# Set up the scripts for CONFIG_HEADERS section. 20403# No need to generate them if there are no CONFIG_HEADERS. 20404# This happens for instance with `./config.status Makefile'. 20405if test -n "$CONFIG_HEADERS"; then 20406cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20407BEGIN { 20408_ACEOF 20409 20410# Transform confdefs.h into an awk script `defines.awk', embedded as 20411# here-document in config.status, that substitutes the proper values into 20412# config.h.in to produce config.h. 20413 20414# Create a delimiter string that does not exist in confdefs.h, to ease 20415# handling of long lines. 20416ac_delim='%!_!# ' 20417for ac_last_try in false false :; do 20418 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20419 if test -z "$ac_tt"; then 20420 break 20421 elif $ac_last_try; then 20422 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20423 else 20424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20425 fi 20426done 20427 20428# For the awk script, D is an array of macro values keyed by name, 20429# likewise P contains macro parameters if any. Preserve backslash 20430# newline sequences. 20431 20432ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20433sed -n ' 20434s/.\{148\}/&'"$ac_delim"'/g 20435t rset 20436:rset 20437s/^[ ]*#[ ]*define[ ][ ]*/ / 20438t def 20439d 20440:def 20441s/\\$// 20442t bsnl 20443s/["\\]/\\&/g 20444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20445D["\1"]=" \3"/p 20446s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20447d 20448:bsnl 20449s/["\\]/\\&/g 20450s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20451D["\1"]=" \3\\\\\\n"\\/p 20452t cont 20453s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20454t cont 20455d 20456:cont 20457n 20458s/.\{148\}/&'"$ac_delim"'/g 20459t clear 20460:clear 20461s/\\$// 20462t bsnlc 20463s/["\\]/\\&/g; s/^/"/; s/$/"/p 20464d 20465:bsnlc 20466s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20467b cont 20468' <confdefs.h | sed ' 20469s/'"$ac_delim"'/"\\\ 20470"/g' >>$CONFIG_STATUS || ac_write_fail=1 20471 20472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20473 for (key in D) D_is_set[key] = 1 20474 FS = "" 20475} 20476/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20477 line = \$ 0 20478 split(line, arg, " ") 20479 if (arg[1] == "#") { 20480 defundef = arg[2] 20481 mac1 = arg[3] 20482 } else { 20483 defundef = substr(arg[1], 2) 20484 mac1 = arg[2] 20485 } 20486 split(mac1, mac2, "(") #) 20487 macro = mac2[1] 20488 prefix = substr(line, 1, index(line, defundef) - 1) 20489 if (D_is_set[macro]) { 20490 # Preserve the white space surrounding the "#". 20491 print prefix "define", macro P[macro] D[macro] 20492 next 20493 } else { 20494 # Replace #undef with comments. This is necessary, for example, 20495 # in the case of _POSIX_SOURCE, which is predefined and required 20496 # on some systems where configure will not decide to define it. 20497 if (defundef == "undef") { 20498 print "/*", prefix defundef, macro, "*/" 20499 next 20500 } 20501 } 20502} 20503{ print } 20504_ACAWK 20505_ACEOF 20506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20507 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20508fi # test -n "$CONFIG_HEADERS" 20509 20510 20511eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 20512shift 20513for ac_tag 20514do 20515 case $ac_tag in 20516 :[FHLC]) ac_mode=$ac_tag; continue;; 20517 esac 20518 case $ac_mode$ac_tag in 20519 :[FHL]*:*);; 20520 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20521 :[FH]-) ac_tag=-:-;; 20522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20523 esac 20524 ac_save_IFS=$IFS 20525 IFS=: 20526 set x $ac_tag 20527 IFS=$ac_save_IFS 20528 shift 20529 ac_file=$1 20530 shift 20531 20532 case $ac_mode in 20533 :L) ac_source=$1;; 20534 :[FH]) 20535 ac_file_inputs= 20536 for ac_f 20537 do 20538 case $ac_f in 20539 -) ac_f="$ac_tmp/stdin";; 20540 *) # Look for the file first in the build tree, then in the source tree 20541 # (if the path is not absolute). The absolute path cannot be DOS-style, 20542 # because $ac_f cannot contain `:'. 20543 test -f "$ac_f" || 20544 case $ac_f in 20545 [\\/$]*) false;; 20546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20547 esac || 20548 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20549 esac 20550 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20551 as_fn_append ac_file_inputs " '$ac_f'" 20552 done 20553 20554 # Let's still pretend it is `configure' which instantiates (i.e., don't 20555 # use $as_me), people would be surprised to read: 20556 # /* config.h. Generated by config.status. */ 20557 configure_input='Generated from '` 20558 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20559 `' by configure.' 20560 if test x"$ac_file" != x-; then 20561 configure_input="$ac_file. $configure_input" 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20563$as_echo "$as_me: creating $ac_file" >&6;} 20564 fi 20565 # Neutralize special characters interpreted by sed in replacement strings. 20566 case $configure_input in #( 20567 *\&* | *\|* | *\\* ) 20568 ac_sed_conf_input=`$as_echo "$configure_input" | 20569 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20570 *) ac_sed_conf_input=$configure_input;; 20571 esac 20572 20573 case $ac_tag in 20574 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20576 esac 20577 ;; 20578 esac 20579 20580 ac_dir=`$as_dirname -- "$ac_file" || 20581$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20582 X"$ac_file" : 'X\(//\)[^/]' \| \ 20583 X"$ac_file" : 'X\(//\)$' \| \ 20584 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20585$as_echo X"$ac_file" | 20586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20587 s//\1/ 20588 q 20589 } 20590 /^X\(\/\/\)[^/].*/{ 20591 s//\1/ 20592 q 20593 } 20594 /^X\(\/\/\)$/{ 20595 s//\1/ 20596 q 20597 } 20598 /^X\(\/\).*/{ 20599 s//\1/ 20600 q 20601 } 20602 s/.*/./; q'` 20603 as_dir="$ac_dir"; as_fn_mkdir_p 20604 ac_builddir=. 20605 20606case "$ac_dir" in 20607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20608*) 20609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20610 # A ".." for each directory in $ac_dir_suffix. 20611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20612 case $ac_top_builddir_sub in 20613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20615 esac ;; 20616esac 20617ac_abs_top_builddir=$ac_pwd 20618ac_abs_builddir=$ac_pwd$ac_dir_suffix 20619# for backward compatibility: 20620ac_top_builddir=$ac_top_build_prefix 20621 20622case $srcdir in 20623 .) # We are building in place. 20624 ac_srcdir=. 20625 ac_top_srcdir=$ac_top_builddir_sub 20626 ac_abs_top_srcdir=$ac_pwd ;; 20627 [\\/]* | ?:[\\/]* ) # Absolute name. 20628 ac_srcdir=$srcdir$ac_dir_suffix; 20629 ac_top_srcdir=$srcdir 20630 ac_abs_top_srcdir=$srcdir ;; 20631 *) # Relative name. 20632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20633 ac_top_srcdir=$ac_top_build_prefix$srcdir 20634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20635esac 20636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20637 20638 20639 case $ac_mode in 20640 :F) 20641 # 20642 # CONFIG_FILE 20643 # 20644 20645 case $INSTALL in 20646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20647 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20648 esac 20649 ac_MKDIR_P=$MKDIR_P 20650 case $MKDIR_P in 20651 [\\/$]* | ?:[\\/]* ) ;; 20652 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20653 esac 20654_ACEOF 20655 20656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20657# If the template does not know about datarootdir, expand it. 20658# FIXME: This hack should be removed a few years after 2.60. 20659ac_datarootdir_hack=; ac_datarootdir_seen= 20660ac_sed_dataroot=' 20661/datarootdir/ { 20662 p 20663 q 20664} 20665/@datadir@/p 20666/@docdir@/p 20667/@infodir@/p 20668/@localedir@/p 20669/@mandir@/p' 20670case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20671*datarootdir*) ac_datarootdir_seen=yes;; 20672*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20674$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20675_ACEOF 20676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20677 ac_datarootdir_hack=' 20678 s&@datadir@&$datadir&g 20679 s&@docdir@&$docdir&g 20680 s&@infodir@&$infodir&g 20681 s&@localedir@&$localedir&g 20682 s&@mandir@&$mandir&g 20683 s&\\\${datarootdir}&$datarootdir&g' ;; 20684esac 20685_ACEOF 20686 20687# Neutralize VPATH when `$srcdir' = `.'. 20688# Shell code in configure.ac might set extrasub. 20689# FIXME: do we really want to maintain this feature? 20690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20691ac_sed_extra="$ac_vpsub 20692$extrasub 20693_ACEOF 20694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20695:t 20696/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20697s|@configure_input@|$ac_sed_conf_input|;t t 20698s&@top_builddir@&$ac_top_builddir_sub&;t t 20699s&@top_build_prefix@&$ac_top_build_prefix&;t t 20700s&@srcdir@&$ac_srcdir&;t t 20701s&@abs_srcdir@&$ac_abs_srcdir&;t t 20702s&@top_srcdir@&$ac_top_srcdir&;t t 20703s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20704s&@builddir@&$ac_builddir&;t t 20705s&@abs_builddir@&$ac_abs_builddir&;t t 20706s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20707s&@INSTALL@&$ac_INSTALL&;t t 20708s&@MKDIR_P@&$ac_MKDIR_P&;t t 20709$ac_datarootdir_hack 20710" 20711eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20712 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20713 20714test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20715 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20717 "$ac_tmp/out"`; test -z "$ac_out"; } && 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20719which seems to be undefined. Please make sure it is defined" >&5 20720$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20721which seems to be undefined. Please make sure it is defined" >&2;} 20722 20723 rm -f "$ac_tmp/stdin" 20724 case $ac_file in 20725 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20726 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20727 esac \ 20728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20729 ;; 20730 :H) 20731 # 20732 # CONFIG_HEADER 20733 # 20734 if test x"$ac_file" != x-; then 20735 { 20736 $as_echo "/* $configure_input */" \ 20737 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20738 } >"$ac_tmp/config.h" \ 20739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20740 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20742$as_echo "$as_me: $ac_file is unchanged" >&6;} 20743 else 20744 rm -f "$ac_file" 20745 mv "$ac_tmp/config.h" "$ac_file" \ 20746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20747 fi 20748 else 20749 $as_echo "/* $configure_input */" \ 20750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20751 || as_fn_error $? "could not create -" "$LINENO" 5 20752 fi 20753# Compute "$ac_file"'s index in $config_headers. 20754_am_arg="$ac_file" 20755_am_stamp_count=1 20756for _am_header in $config_headers :; do 20757 case $_am_header in 20758 $_am_arg | $_am_arg:* ) 20759 break ;; 20760 * ) 20761 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20762 esac 20763done 20764echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20765$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20766 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20767 X"$_am_arg" : 'X\(//\)$' \| \ 20768 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20769$as_echo X"$_am_arg" | 20770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20771 s//\1/ 20772 q 20773 } 20774 /^X\(\/\/\)[^/].*/{ 20775 s//\1/ 20776 q 20777 } 20778 /^X\(\/\/\)$/{ 20779 s//\1/ 20780 q 20781 } 20782 /^X\(\/\).*/{ 20783 s//\1/ 20784 q 20785 } 20786 s/.*/./; q'`/stamp-h$_am_stamp_count 20787 ;; 20788 :L) 20789 # 20790 # CONFIG_LINK 20791 # 20792 20793 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 20794 : 20795 else 20796 # Prefer the file from the source tree if names are identical. 20797 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 20798 ac_source=$srcdir/$ac_source 20799 fi 20800 20801 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 20802$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 20803 20804 if test ! -r "$ac_source"; then 20805 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 20806 fi 20807 rm -f "$ac_file" 20808 20809 # Try a relative symlink, then a hard link, then a copy. 20810 case $ac_source in 20811 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 20812 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 20813 esac 20814 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 20815 ln "$ac_source" "$ac_file" 2>/dev/null || 20816 cp -p "$ac_source" "$ac_file" || 20817 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 20818 fi 20819 ;; 20820 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20821$as_echo "$as_me: executing $ac_file commands" >&6;} 20822 ;; 20823 esac 20824 20825 20826 case $ac_file$ac_mode in 20827 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20828 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20829 # are listed without --file. Let's play safe and only enable the eval 20830 # if we detect the quoting. 20831 case $CONFIG_FILES in 20832 *\'*) eval set x "$CONFIG_FILES" ;; 20833 *) set x $CONFIG_FILES ;; 20834 esac 20835 shift 20836 for mf 20837 do 20838 # Strip MF so we end up with the name of the file. 20839 mf=`echo "$mf" | sed -e 's/:.*$//'` 20840 # Check whether this is an Automake generated Makefile or not. 20841 # We used to match only the files named `Makefile.in', but 20842 # some people rename them; so instead we look at the file content. 20843 # Grep'ing the first line is not enough: some people post-process 20844 # each Makefile.in and add a new line on top of each file to say so. 20845 # Grep'ing the whole file is not good either: AIX grep has a line 20846 # limit of 2048, but all sed's we know have understand at least 4000. 20847 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20848 dirpart=`$as_dirname -- "$mf" || 20849$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20850 X"$mf" : 'X\(//\)[^/]' \| \ 20851 X"$mf" : 'X\(//\)$' \| \ 20852 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20853$as_echo X"$mf" | 20854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20855 s//\1/ 20856 q 20857 } 20858 /^X\(\/\/\)[^/].*/{ 20859 s//\1/ 20860 q 20861 } 20862 /^X\(\/\/\)$/{ 20863 s//\1/ 20864 q 20865 } 20866 /^X\(\/\).*/{ 20867 s//\1/ 20868 q 20869 } 20870 s/.*/./; q'` 20871 else 20872 continue 20873 fi 20874 # Extract the definition of DEPDIR, am__include, and am__quote 20875 # from the Makefile without running `make'. 20876 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20877 test -z "$DEPDIR" && continue 20878 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20879 test -z "am__include" && continue 20880 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20881 # When using ansi2knr, U may be empty or an underscore; expand it 20882 U=`sed -n 's/^U = //p' < "$mf"` 20883 # Find all dependency output files, they are included files with 20884 # $(DEPDIR) in their names. We invoke sed twice because it is the 20885 # simplest approach to changing $(DEPDIR) to its actual value in the 20886 # expansion. 20887 for file in `sed -n " 20888 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20889 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20890 # Make sure the directory exists. 20891 test -f "$dirpart/$file" && continue 20892 fdir=`$as_dirname -- "$file" || 20893$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20894 X"$file" : 'X\(//\)[^/]' \| \ 20895 X"$file" : 'X\(//\)$' \| \ 20896 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20897$as_echo X"$file" | 20898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20899 s//\1/ 20900 q 20901 } 20902 /^X\(\/\/\)[^/].*/{ 20903 s//\1/ 20904 q 20905 } 20906 /^X\(\/\/\)$/{ 20907 s//\1/ 20908 q 20909 } 20910 /^X\(\/\).*/{ 20911 s//\1/ 20912 q 20913 } 20914 s/.*/./; q'` 20915 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20916 # echo "creating $dirpart/$file" 20917 echo '# dummy' > "$dirpart/$file" 20918 done 20919 done 20920} 20921 ;; 20922 "libtool":C) 20923 20924 # See if we are running on zsh, and set the options which allow our 20925 # commands through without removal of \ escapes. 20926 if test -n "${ZSH_VERSION+set}" ; then 20927 setopt NO_GLOB_SUBST 20928 fi 20929 20930 cfgfile="${ofile}T" 20931 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20932 $RM "$cfgfile" 20933 20934 cat <<_LT_EOF >> "$cfgfile" 20935#! $SHELL 20936 20937# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20938# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20939# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20940# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20941# 20942# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20943# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20944# Foundation, Inc. 20945# Written by Gordon Matzigkeit, 1996 20946# 20947# This file is part of GNU Libtool. 20948# 20949# GNU Libtool is free software; you can redistribute it and/or 20950# modify it under the terms of the GNU General Public License as 20951# published by the Free Software Foundation; either version 2 of 20952# the License, or (at your option) any later version. 20953# 20954# As a special exception to the GNU General Public License, 20955# if you distribute this file as part of a program or library that 20956# is built using GNU Libtool, you may include this file under the 20957# same distribution terms that you use for the rest of that program. 20958# 20959# GNU Libtool is distributed in the hope that it will be useful, 20960# but WITHOUT ANY WARRANTY; without even the implied warranty of 20961# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20962# GNU General Public License for more details. 20963# 20964# You should have received a copy of the GNU General Public License 20965# along with GNU Libtool; see the file COPYING. If not, a copy 20966# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20967# obtained by writing to the Free Software Foundation, Inc., 20968# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20969 20970 20971# The names of the tagged configurations supported by this script. 20972available_tags="" 20973 20974# ### BEGIN LIBTOOL CONFIG 20975 20976# Which release of libtool.m4 was used? 20977macro_version=$macro_version 20978macro_revision=$macro_revision 20979 20980# Whether or not to build shared libraries. 20981build_libtool_libs=$enable_shared 20982 20983# Whether or not to build static libraries. 20984build_old_libs=$enable_static 20985 20986# What type of objects to build. 20987pic_mode=$pic_mode 20988 20989# Whether or not to optimize for fast installation. 20990fast_install=$enable_fast_install 20991 20992# Shell to use when invoking shell scripts. 20993SHELL=$lt_SHELL 20994 20995# An echo program that protects backslashes. 20996ECHO=$lt_ECHO 20997 20998# The PATH separator for the build system. 20999PATH_SEPARATOR=$lt_PATH_SEPARATOR 21000 21001# The host system. 21002host_alias=$host_alias 21003host=$host 21004host_os=$host_os 21005 21006# The build system. 21007build_alias=$build_alias 21008build=$build 21009build_os=$build_os 21010 21011# A sed program that does not truncate output. 21012SED=$lt_SED 21013 21014# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21015Xsed="\$SED -e 1s/^X//" 21016 21017# A grep program that handles long lines. 21018GREP=$lt_GREP 21019 21020# An ERE matcher. 21021EGREP=$lt_EGREP 21022 21023# A literal string matcher. 21024FGREP=$lt_FGREP 21025 21026# A BSD- or MS-compatible name lister. 21027NM=$lt_NM 21028 21029# Whether we need soft or hard links. 21030LN_S=$lt_LN_S 21031 21032# What is the maximum length of a command? 21033max_cmd_len=$max_cmd_len 21034 21035# Object file suffix (normally "o"). 21036objext=$ac_objext 21037 21038# Executable file suffix (normally ""). 21039exeext=$exeext 21040 21041# whether the shell understands "unset". 21042lt_unset=$lt_unset 21043 21044# turn spaces into newlines. 21045SP2NL=$lt_lt_SP2NL 21046 21047# turn newlines into spaces. 21048NL2SP=$lt_lt_NL2SP 21049 21050# convert \$build file names to \$host format. 21051to_host_file_cmd=$lt_cv_to_host_file_cmd 21052 21053# convert \$build files to toolchain format. 21054to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21055 21056# An object symbol dumper. 21057OBJDUMP=$lt_OBJDUMP 21058 21059# Method to check whether dependent libraries are shared objects. 21060deplibs_check_method=$lt_deplibs_check_method 21061 21062# Command to use when deplibs_check_method = "file_magic". 21063file_magic_cmd=$lt_file_magic_cmd 21064 21065# How to find potential files when deplibs_check_method = "file_magic". 21066file_magic_glob=$lt_file_magic_glob 21067 21068# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21069want_nocaseglob=$lt_want_nocaseglob 21070 21071# DLL creation program. 21072DLLTOOL=$lt_DLLTOOL 21073 21074# Command to associate shared and link libraries. 21075sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21076 21077# The archiver. 21078AR=$lt_AR 21079 21080# Flags to create an archive. 21081AR_FLAGS=$lt_AR_FLAGS 21082 21083# How to feed a file listing to the archiver. 21084archiver_list_spec=$lt_archiver_list_spec 21085 21086# A symbol stripping program. 21087STRIP=$lt_STRIP 21088 21089# Commands used to install an old-style archive. 21090RANLIB=$lt_RANLIB 21091old_postinstall_cmds=$lt_old_postinstall_cmds 21092old_postuninstall_cmds=$lt_old_postuninstall_cmds 21093 21094# Whether to use a lock for old archive extraction. 21095lock_old_archive_extraction=$lock_old_archive_extraction 21096 21097# A C compiler. 21098LTCC=$lt_CC 21099 21100# LTCC compiler flags. 21101LTCFLAGS=$lt_CFLAGS 21102 21103# Take the output of nm and produce a listing of raw symbols and C names. 21104global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21105 21106# Transform the output of nm in a proper C declaration. 21107global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21108 21109# Transform the output of nm in a C name address pair. 21110global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21111 21112# Transform the output of nm in a C name address pair when lib prefix is needed. 21113global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21114 21115# Specify filename containing input files for \$NM. 21116nm_file_list_spec=$lt_nm_file_list_spec 21117 21118# The root where to search for dependent libraries,and in which our libraries should be installed. 21119lt_sysroot=$lt_sysroot 21120 21121# The name of the directory that contains temporary libtool files. 21122objdir=$objdir 21123 21124# Used to examine libraries when file_magic_cmd begins with "file". 21125MAGIC_CMD=$MAGIC_CMD 21126 21127# Must we lock files when doing compilation? 21128need_locks=$lt_need_locks 21129 21130# Manifest tool. 21131MANIFEST_TOOL=$lt_MANIFEST_TOOL 21132 21133# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21134DSYMUTIL=$lt_DSYMUTIL 21135 21136# Tool to change global to local symbols on Mac OS X. 21137NMEDIT=$lt_NMEDIT 21138 21139# Tool to manipulate fat objects and archives on Mac OS X. 21140LIPO=$lt_LIPO 21141 21142# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21143OTOOL=$lt_OTOOL 21144 21145# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21146OTOOL64=$lt_OTOOL64 21147 21148# Old archive suffix (normally "a"). 21149libext=$libext 21150 21151# Shared library suffix (normally ".so"). 21152shrext_cmds=$lt_shrext_cmds 21153 21154# The commands to extract the exported symbol list from a shared archive. 21155extract_expsyms_cmds=$lt_extract_expsyms_cmds 21156 21157# Variables whose values should be saved in libtool wrapper scripts and 21158# restored at link time. 21159variables_saved_for_relink=$lt_variables_saved_for_relink 21160 21161# Do we need the "lib" prefix for modules? 21162need_lib_prefix=$need_lib_prefix 21163 21164# Do we need a version for libraries? 21165need_version=$need_version 21166 21167# Library versioning type. 21168version_type=$version_type 21169 21170# Shared library runtime path variable. 21171runpath_var=$runpath_var 21172 21173# Shared library path variable. 21174shlibpath_var=$shlibpath_var 21175 21176# Is shlibpath searched before the hard-coded library search path? 21177shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21178 21179# Format of library name prefix. 21180libname_spec=$lt_libname_spec 21181 21182# List of archive names. First name is the real one, the rest are links. 21183# The last name is the one that the linker finds with -lNAME 21184library_names_spec=$lt_library_names_spec 21185 21186# The coded name of the library, if different from the real name. 21187soname_spec=$lt_soname_spec 21188 21189# Permission mode override for installation of shared libraries. 21190install_override_mode=$lt_install_override_mode 21191 21192# Command to use after installation of a shared archive. 21193postinstall_cmds=$lt_postinstall_cmds 21194 21195# Command to use after uninstallation of a shared archive. 21196postuninstall_cmds=$lt_postuninstall_cmds 21197 21198# Commands used to finish a libtool library installation in a directory. 21199finish_cmds=$lt_finish_cmds 21200 21201# As "finish_cmds", except a single script fragment to be evaled but 21202# not shown. 21203finish_eval=$lt_finish_eval 21204 21205# Whether we should hardcode library paths into libraries. 21206hardcode_into_libs=$hardcode_into_libs 21207 21208# Compile-time system search path for libraries. 21209sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21210 21211# Run-time system search path for libraries. 21212sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21213 21214# Whether dlopen is supported. 21215dlopen_support=$enable_dlopen 21216 21217# Whether dlopen of programs is supported. 21218dlopen_self=$enable_dlopen_self 21219 21220# Whether dlopen of statically linked programs is supported. 21221dlopen_self_static=$enable_dlopen_self_static 21222 21223# Commands to strip libraries. 21224old_striplib=$lt_old_striplib 21225striplib=$lt_striplib 21226 21227 21228# The linker used to build libraries. 21229LD=$lt_LD 21230 21231# How to create reloadable object files. 21232reload_flag=$lt_reload_flag 21233reload_cmds=$lt_reload_cmds 21234 21235# Commands used to build an old-style archive. 21236old_archive_cmds=$lt_old_archive_cmds 21237 21238# A language specific compiler. 21239CC=$lt_compiler 21240 21241# Is the compiler the GNU compiler? 21242with_gcc=$GCC 21243 21244# Compiler flag to turn off builtin functions. 21245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21246 21247# Additional compiler flags for building library objects. 21248pic_flag=$lt_lt_prog_compiler_pic 21249 21250# How to pass a linker flag through the compiler. 21251wl=$lt_lt_prog_compiler_wl 21252 21253# Compiler flag to prevent dynamic linking. 21254link_static_flag=$lt_lt_prog_compiler_static 21255 21256# Does compiler simultaneously support -c and -o options? 21257compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21258 21259# Whether or not to add -lc for building shared libraries. 21260build_libtool_need_lc=$archive_cmds_need_lc 21261 21262# Whether or not to disallow shared libs when runtime libs are static. 21263allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21264 21265# Compiler flag to allow reflexive dlopens. 21266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21267 21268# Compiler flag to generate shared objects directly from archives. 21269whole_archive_flag_spec=$lt_whole_archive_flag_spec 21270 21271# Whether the compiler copes with passing no objects directly. 21272compiler_needs_object=$lt_compiler_needs_object 21273 21274# Create an old-style archive from a shared archive. 21275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21276 21277# Create a temporary old-style archive to link instead of a shared archive. 21278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21279 21280# Commands used to build a shared archive. 21281archive_cmds=$lt_archive_cmds 21282archive_expsym_cmds=$lt_archive_expsym_cmds 21283 21284# Commands used to build a loadable module if different from building 21285# a shared archive. 21286module_cmds=$lt_module_cmds 21287module_expsym_cmds=$lt_module_expsym_cmds 21288 21289# Whether we are building with GNU ld or not. 21290with_gnu_ld=$lt_with_gnu_ld 21291 21292# Flag that allows shared libraries with undefined symbols to be built. 21293allow_undefined_flag=$lt_allow_undefined_flag 21294 21295# Flag that enforces no undefined symbols. 21296no_undefined_flag=$lt_no_undefined_flag 21297 21298# Flag to hardcode \$libdir into a binary during linking. 21299# This must work even if \$libdir does not exist 21300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21301 21302# Whether we need a single "-rpath" flag with a separated argument. 21303hardcode_libdir_separator=$lt_hardcode_libdir_separator 21304 21305# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21306# DIR into the resulting binary. 21307hardcode_direct=$hardcode_direct 21308 21309# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21310# DIR into the resulting binary and the resulting library dependency is 21311# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21312# library is relocated. 21313hardcode_direct_absolute=$hardcode_direct_absolute 21314 21315# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21316# into the resulting binary. 21317hardcode_minus_L=$hardcode_minus_L 21318 21319# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21320# into the resulting binary. 21321hardcode_shlibpath_var=$hardcode_shlibpath_var 21322 21323# Set to "yes" if building a shared library automatically hardcodes DIR 21324# into the library and all subsequent libraries and executables linked 21325# against it. 21326hardcode_automatic=$hardcode_automatic 21327 21328# Set to yes if linker adds runtime paths of dependent libraries 21329# to runtime path list. 21330inherit_rpath=$inherit_rpath 21331 21332# Whether libtool must link a program against all its dependency libraries. 21333link_all_deplibs=$link_all_deplibs 21334 21335# Set to "yes" if exported symbols are required. 21336always_export_symbols=$always_export_symbols 21337 21338# The commands to list exported symbols. 21339export_symbols_cmds=$lt_export_symbols_cmds 21340 21341# Symbols that should not be listed in the preloaded symbols. 21342exclude_expsyms=$lt_exclude_expsyms 21343 21344# Symbols that must always be exported. 21345include_expsyms=$lt_include_expsyms 21346 21347# Commands necessary for linking programs (against libraries) with templates. 21348prelink_cmds=$lt_prelink_cmds 21349 21350# Commands necessary for finishing linking programs. 21351postlink_cmds=$lt_postlink_cmds 21352 21353# Specify filename containing input files. 21354file_list_spec=$lt_file_list_spec 21355 21356# How to hardcode a shared library path into an executable. 21357hardcode_action=$hardcode_action 21358 21359# ### END LIBTOOL CONFIG 21360 21361_LT_EOF 21362 21363 case $host_os in 21364 aix3*) 21365 cat <<\_LT_EOF >> "$cfgfile" 21366# AIX sometimes has problems with the GCC collect2 program. For some 21367# reason, if we set the COLLECT_NAMES environment variable, the problems 21368# vanish in a puff of smoke. 21369if test "X${COLLECT_NAMES+set}" != Xset; then 21370 COLLECT_NAMES= 21371 export COLLECT_NAMES 21372fi 21373_LT_EOF 21374 ;; 21375 esac 21376 21377 21378ltmain="$ac_aux_dir/ltmain.sh" 21379 21380 21381 # We use sed instead of cat because bash on DJGPP gets confused if 21382 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21383 # text mode, it properly converts lines to CR/LF. This bash problem 21384 # is reportedly fixed, but why not run on old versions too? 21385 sed '$q' "$ltmain" >> "$cfgfile" \ 21386 || (rm -f "$cfgfile"; exit 1) 21387 21388 if test x"$xsi_shell" = xyes; then 21389 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21390func_dirname ()\ 21391{\ 21392\ case ${1} in\ 21393\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21394\ * ) func_dirname_result="${3}" ;;\ 21395\ esac\ 21396} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21397 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21399test 0 -eq $? || _lt_function_replace_fail=: 21400 21401 21402 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21403func_basename ()\ 21404{\ 21405\ func_basename_result="${1##*/}"\ 21406} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21407 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21409test 0 -eq $? || _lt_function_replace_fail=: 21410 21411 21412 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21413func_dirname_and_basename ()\ 21414{\ 21415\ case ${1} in\ 21416\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21417\ * ) func_dirname_result="${3}" ;;\ 21418\ esac\ 21419\ func_basename_result="${1##*/}"\ 21420} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21421 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21423test 0 -eq $? || _lt_function_replace_fail=: 21424 21425 21426 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21427func_stripname ()\ 21428{\ 21429\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21430\ # positional parameters, so assign one to ordinary parameter first.\ 21431\ func_stripname_result=${3}\ 21432\ func_stripname_result=${func_stripname_result#"${1}"}\ 21433\ func_stripname_result=${func_stripname_result%"${2}"}\ 21434} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21435 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21437test 0 -eq $? || _lt_function_replace_fail=: 21438 21439 21440 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21441func_split_long_opt ()\ 21442{\ 21443\ func_split_long_opt_name=${1%%=*}\ 21444\ func_split_long_opt_arg=${1#*=}\ 21445} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21446 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21448test 0 -eq $? || _lt_function_replace_fail=: 21449 21450 21451 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21452func_split_short_opt ()\ 21453{\ 21454\ func_split_short_opt_arg=${1#??}\ 21455\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21456} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21457 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21459test 0 -eq $? || _lt_function_replace_fail=: 21460 21461 21462 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21463func_lo2o ()\ 21464{\ 21465\ case ${1} in\ 21466\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21467\ *) func_lo2o_result=${1} ;;\ 21468\ esac\ 21469} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21470 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21471 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21472test 0 -eq $? || _lt_function_replace_fail=: 21473 21474 21475 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21476func_xform ()\ 21477{\ 21478 func_xform_result=${1%.*}.lo\ 21479} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21480 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21482test 0 -eq $? || _lt_function_replace_fail=: 21483 21484 21485 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21486func_arith ()\ 21487{\ 21488 func_arith_result=$(( $* ))\ 21489} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21490 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21492test 0 -eq $? || _lt_function_replace_fail=: 21493 21494 21495 sed -e '/^func_len ()$/,/^} # func_len /c\ 21496func_len ()\ 21497{\ 21498 func_len_result=${#1}\ 21499} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21502test 0 -eq $? || _lt_function_replace_fail=: 21503 21504fi 21505 21506if test x"$lt_shell_append" = xyes; then 21507 sed -e '/^func_append ()$/,/^} # func_append /c\ 21508func_append ()\ 21509{\ 21510 eval "${1}+=\\${2}"\ 21511} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21512 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21514test 0 -eq $? || _lt_function_replace_fail=: 21515 21516 21517 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21518func_append_quoted ()\ 21519{\ 21520\ func_quote_for_eval "${2}"\ 21521\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21522} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21523 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21525test 0 -eq $? || _lt_function_replace_fail=: 21526 21527 21528 # Save a `func_append' function call where possible by direct use of '+=' 21529 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21530 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21531 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21532 test 0 -eq $? || _lt_function_replace_fail=: 21533else 21534 # Save a `func_append' function call even when '+=' is not available 21535 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21536 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21538 test 0 -eq $? || _lt_function_replace_fail=: 21539fi 21540 21541if test x"$_lt_function_replace_fail" = x":"; then 21542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21543$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21544fi 21545 21546 21547 mv -f "$cfgfile" "$ofile" || 21548 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21549 chmod +x "$ofile" 21550 21551 ;; 21552 21553 esac 21554done # for ac_tag 21555 21556 21557as_fn_exit 0 21558_ACEOF 21559ac_clean_files=$ac_clean_files_save 21560 21561test $ac_write_fail = 0 || 21562 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21563 21564 21565# configure is writing to config.log, and then calls config.status. 21566# config.status does its own redirection, appending to config.log. 21567# Unfortunately, on DOS this fails, as config.log is still kept open 21568# by configure, so config.status won't be able to write to it; its 21569# output is simply discarded. So we exec the FD to /dev/null, 21570# effectively closing config.log, so it can be properly (re)opened and 21571# appended to by config.status. When coming back to configure, we 21572# need to make the FD available again. 21573if test "$no_create" != yes; then 21574 ac_cs_success=: 21575 ac_config_status_args= 21576 test "$silent" = yes && 21577 ac_config_status_args="$ac_config_status_args --quiet" 21578 exec 5>/dev/null 21579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21580 exec 5>>config.log 21581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21582 # would make configure fail if this is the last instruction. 21583 $ac_cs_success || as_fn_exit 1 21584fi 21585if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21587$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21588fi 21589 21590 21591cat <<EOF 21592 21593 21594Build summary 21595============= 21596Build date/time apps: ${dut_apps} 21597Build misc apps: ${misc_apps} 21598Build contrib apps: ${cntrb_apps} 21599 21600EOF 21601 21602if test "${with_old_names}" = "no"; then 21603 cat <<EOF 21604New binary names will be used (compatibility symlinks: $with_old_links). 21605See configure options --with-old-names and --with-old-links. 21606EOF 21607else 21608 echo "Old binary names will be used." 21609fi 21610 21611